The problem is I can't use those properties to add attributes into the office:body. All I can add are attributes for specific styles (office:automatic-styles):

<<style:style style:name="*P1*" style:family="*paragraph*" style:parent-style-name="*Heading_20_1*">
    <style:paragraph-properties additionalAttribute="*java*" />
</style:style>
- <#><style:style style:name="*T1*" style:family="*text*">
<style:text-properties style:font-name="*ComicSansif*" additionalAttribute="*halla*" />
</style:style>

But what I need to do is to add attributes here:

<<office:body>
- <#> <office:text>
<<text:h text:style-name="*P1*" text:outline-level="*1*" additionalAttribute="hey">Hello Title</text:h>
- <#>    <text:p text:style-name="*Standard*">
   Some Text
<text:span text:style-name="*T1*" additionalAttribute="again">is</text:span>
        <text:span text:style-name="*T2*">nice</text:span>
   , right?
   </text:p>
...


Niklas Nebel wrote:
Jimmy wrote:
Is it possible to add additional attributes to text:h, text:p and text:span?

I've come across the UserDefinedAttributes for Cells but haven't been able to find out how to add additional attributes to the currently selected text (paragraph, heading, span) through a macro.

In a text document? The service CharacterProperties has a property TextUserDefinedAttributes, and ParagraphProperties has ParaUserDefinedAttributes, which work the same way as UserDefinedAttributes in CellProperties.

Niklas

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


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

Reply via email to