Issue 89845

Summary: TextFrame - can't remove hardcoded formatting
Product: Writer Reporter: rvojta
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: cno, frank.meies, issues
Version: OOo 3.0 Beta   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description rvojta 2008-05-23 11:29:04 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 ;-)
Comment 1 stefan.baltzer 2008-05-23 13:57:27 UTC
Reassifgned to OS. Put FME on CC.
Set Target OOo 3.x
Comment 2 chenjunjun 2008-05-26 03:09:05 UTC
What's it for?Is there any advantage or disadvantage between text frames 
hardcoded formatting and styles?
Comment 3 rvojta 2008-05-27 15:51:41 UTC
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.
Comment 4 Marcus 2017-05-20 11:15:28 UTC
Reset assigne to the default "".