Hello,
The IDL description of most of the properties of Header and Footer says :
[ maybevoid ]
Except for HeaderIsOn and FooterIsOn.

If the API was designed to accept values when Header/Footer is off, then the properties would always be available, with default values.
IMO this design is on purpose. You have to live with it.

 Bernard

Message de Jörg Schmidt  date 2015-01-11 20:26 :
Hello,

There is a nasty problem with .HeaderBackColor in Writer page-templates.

When I read all PropertyValues of a page-style "A" and transfer them to page-style 
"B", the reading is done in a certain, specified by the API, order:

BorderDistance|HeaderText|GridLines|HeaderBorderDistance|TopBorder|GridPrint|FootnoteLineRelativeWidth|Width|FooterRightMargin|ShadowFormat|DisplayName|LeftBorder|BackGraphicLocation|BottomBorderDistance|FootnoteLineColor|HeaderRightMargin|*FooterIsOn*|FootnoteHeight|HeaderHeight|FootnoteLineTextDistance|FollowStyle|BottomMargin|RightBorderDistance|HeaderIsShared|GridBaseWidth|FooterTextRight|Height|PrinterPaperTray|HeaderBackGraphicFilter|RegisterParagraphStyle|GridColor|HeaderLeftBorderDistance|StandardPageMode|GridSnapToChars|FooterIsShared|HeaderRightBorder|HeaderBottomBorder|NumberingType|FooterLeftMargin|IsLandscape|*HeaderBackColor*|HeaderIsDynamicHeight|FooterBackGraphicLocation|HeaderShadowFormat|GridMode|BottomBorder|*HeaderIsOn*|TextColumns|*FooterBackColor*|FooterShadowFormat
 ...

--> Please observing the order: "FooterIsOn" before "FooterBackColor", but "HeaderIsOn" 
after "HeaderBackColor".

This has the the effect that, when in "B", the header is not turned on, the background 
color of the header of "A" is not transmitted because this can only be written if the 
header is switched on.


I think this is a deficiency in the API? What do you think?


Greetigs
Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org
For additional commands, e-mail: api-h...@openoffice.apache.org

Reply via email to