Hi Robert,

On 05/20/08 23:25, Robert Vojta wrote:

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.

Any hints? I'm trying this with 2.4.0.

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 ;-)

Regards,

Frank

--
Frank Meies (fme) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to