ian_mcr123 wrote:
Hi,
I'm working on an export filter so I enumerate all paragraphs in a document
and then process each paragraph.
This works for the xtext content of each paragraph.
I now need to find the xtext for the header and footer.
I experimented with the following - I check that the header is on. I then
find the "HeaderText" property value. However this doesn't return the header
for each page - it seems to return the header of the first page and footer
of the final page.
How can I access the header and footer xtext for each page? Is there a
relationship between the enumerated paragraphs and the "style" containing
the footer content?
Hi,
you have to query for the property "PageStyle" to get the name of the
page style that is set at the given text. Then you have to access this
page style using the XStyleFamilySupplier interface (implemented at the
model) via getStyleFamilies().getStyleFamily( "PageStyles").getByName(
<current page style name>).
This page style has the properties HeaderText/FooterText. If headers are
different left/right then you have to access the properties
Header/FooterTextLeft/Right.
HTH,
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]