Hi Amit,
The Style.java code that you sent will always get the style
information
for the style named P1. You ignore the style name
parameter.
What about the style factory? We discussed that the factory
is
responsible for finding the nodes representing the styles in
sytles.xml
and content.xml (which are available from the package
object)
Consequently, the Style object should be initialized with
the style node
provided by the factory. The factory must also take care
about not
creating multiple instances of style objects for the same
node.
/Lars
Amit krishna Saha wrote:
> Hi Lars,
>
> I feel I have made some good progress with the style
handling. The
> class "Style.java" successfully dumps the
style information. There has
> also been some modifications in
"Element.java" and "OdtToText2.java".
> All of them are attached.
>
> However there are some glitches which has to be cleared
and require
> your help. They are:
>
> 1. How can I get access to the current
"content.xml"? [for the purpose
> of testing my code, please put the
"content.xml" in the
> "test" directory. I apologize for that.]
>
> 2. As you will observe I am using a "fixed"
style name for XPath
> query. How can I use a Java variable (style_name in
Style.java) in my
> Xpath query?
>
> 3. Also please comment on the code organization.
>
> Let me know your comments so that I can start with the
modification of
> the Document Explorer.
>
> Regards & Thanks
>
>
>
>
------------------------------------------------------------
------------
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribe odftoolkit.openoffice.org
> For additional commands, e-mail: dev-help odftoolkit.openoffice.org
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe odftoolkit.openoffice.org
For additional commands, e-mail: dev-help odftoolkit.openoffice.org
|