[Libreoffice] Need some informations on format attributes

Maxime de Roucy mderoucy at linagora.com
Wed Nov 23 10:06:55 PST 2011


Hello

I am the author of the bug number 43067
( https://bugs.freedesktop.org/show_bug.cgi?id=43067 ).

I am trying to solve that bug.
I tried to insert
"rWrtShell.ResetAttr();" 
just before the 
"rWrtShell.SetAttr(*pTemplateItemSet);"
line.

It works but only when I just apply text formatting (hold Ctrl when you
select the text to format).

I would like to know how to differentiate formatting attributes that
come from style:family="paragraph" and those that come from
style:family="text".

For example, in the document attached, I would like to know that the
color attribute comes from P1 (a paragraph attribute set) and the
font-weight attribute comes from T1 (a text attribute set).

Thanks in advance.

-- 
Maxime de Roucy
Groupe LINAGORA - OSSA
80 rue Roque de Fillol
92800 PUTEAUX 
Tel. : 0 810 251 251
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.odt
Type: application/vnd.oasis.opendocument.text
Size: 8686 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111123/9dcc5b04/attachment.odt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: content.xml
Type: application/xml
Size: 3233 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111123/9dcc5b04/attachment.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111123/9dcc5b04/attachment.pgp>


More information about the LibreOffice mailing list