Hi Jörg,
Using the following code will _not_ transfer the setting
position-at (in a german AOO Position-bei) of an numbering style.
i think you have to iterate over the NumberingRules Objects and Copy it's
properties
For j = 0 To oPStyle.NumberingRules.getCount()-1
Hello,
From: Jörg Schmidt [mailto:joe...@j-m-schmidt.de]
Thank You. The following works for me:
Sub Vorlage_kopieren()
...
I use the same for numberingstyles it does not work properly.
Using the following code will _not_ transfer the setting position-at (in a
german AOO Position-bei)
Hi,
res = xModel.getStyleFamilies().loadStylesFromURL(url, (ppp,))
yes, XStyleLoader should work in general but there are some limitations,
for example:
https://issues.apache.org/ooo/show_bug.cgi?id=75048
XStyleLoader - user defined number formats are not imported
Regards
Oliver
Hi Jörg,
the_style =
ThisComponent.getStyleFamilies.getByName(ParagraphStyles).getByName(jms1)
ThisComponent.getStyleFamilies.getByName(ParagraphStyles).insertByName(jms3,
the_style)
i think you have to copy all Properties from old to new style.
this should work for Pagestyles:
REM *
Hi Jörg,
or try to set the parent style:
newStyle.ParentStyle = oldStyle.Name
oStyles.insertByName(myNewStyle, newStyle)
so newStyle inherits all properties from oldStyle
Regards
Oliver
-
To unsubscribe, e-mail:
From: Oliver Brinzing [mailto:oliver.brinz...@gmx.de]
i think you have to copy all Properties from old to new style.
this should work for Pagestyles:
REM * BASIC *
OPTION EXPLICIT
Sub PageStyle
[...]
Thank You. The following works for me:
Sub Vorlage_kopieren()
From: Oliver Brinzing [mailto:oliver.brinz...@gmx.de]
Sent: Saturday, January 03, 2015 10:00 AM
To: api@openoffice.apache.org
Subject: Re: copy an existing style
Hi Jörg,
or try to set the parent style:
newStyle.ParentStyle = oldStyle.Name
oStyles.insertByName(myNewStyle, newStyle