Hi, I am new to open office development and am looking for some help/guidance on how to save additional paragraph property attributes into a document.
I want to associate a security classification (e.g. "unclassified", "restricted") with a style in Writer. I have successfully updated the user interface to allow the setting of the classification but now want the value to be saved/restored into the document. My understanding (or mis-understanding) is that this is done with property names. I have defined the name "SecLblClass" in sw/source/core/unocore/unoprnms.cxx: /* 0739 UNO_NAME_SECLBL_CLASS */ {MAP_CHAR_LEN("SecLblClass")}, which is mapped to the associated attribute in sw/source/core/unocore/unomap.cxx: #define COMMON_CRSR_PARA_PROPERTIES_WITHOUT_FN_O1 ... SW_PROP_NMID(UNO_NAME_SECLBL_CLASS), RES_PARATR_SECLBL_CLASS, CPPUE2T(CPPUTYPE_INT16), PropertyAttribute:MAYBEVOID, 0 The attribute is defined in sw/source/core/bastyp/init.cxx: _InitCore() ... aAttrTab[ RES_PARATR_SECLBL_CLASS - POOLATTR_BEGIN] = new SfxUInt16Item (RES_PARATR_SECLBL_CLASS, 0); Then to get this attribute saved into the document, I have just added the name to the list of paragraph properties in xmloff/source/text/txtprmap.cxx: aXMLParaPropMap[] ... MP_E ("SecLblClass", X841, X841_LABEL, XML_TYPE_NUMBER16, 0) The X841 namespace is also configured and can be successfully written to the style.xml. However, the X841_Label attribute is not written to the styles.xml. Can anyone point me at any appropriate examples/documentation, or point out any steps I am missing? Thanks, Graeme --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org