Apache OpenOffice (AOO) Bugzilla – Issue 89845
TextFrame - can't remove hardcoded formatting
Last modified: 2017-05-20 11:15:28 UTC
My goal is to remove text frames hardcoded formatting and replace it with styles (frame width and horizontal position in my case, Java extension). So, when I change frame width and horizontal position (in frame style), all affected frames will be changed too. I tried following things ... a) call setPropertyToDefault( ... ) on all HoriOrient* properties b) copy HoriOrient* property values from frame style directly to text frame (to synchronize them) and call setPropertyToDefault( ... ) ... and it doesn't work (yes, the correct style is applied to this frame). There's still DIRECT_VALUE instead of DEFAULT_VALUE = still hardcoded. Should I treat text frames in another way? Because when I try this on simple text with setPropertyToDefault( "CharWeight" ) for example, hardcoded formatting is removed and DIRECT_VALUE is switched to DEFAULT_VALUE = style is followed. --- Frank Meies response --- I had a look at the code in unoframe.cxx. This code handling your case looks like it has been designed to do nothing. Please file an issue for this. Oliver (OS) volunteered to take over ;-)
Reassifgned to OS. Put FME on CC. Set Target OOo 3.x
What's it for?Is there any advantage or disadvantage between text frames hardcoded formatting and styles?
When do you use styles, you can change position of frames (with the same style applied) in one step - just modify text frame style settings. Otherwise (hardcoded formatting), you have to change position for each frame, which is not effective and not preffered way.
Reset assigne to the default "issues@openoffice.apache.org".