LibreOffice Module xmloff (master) 1
|
This class handles the export of index marks for table of content, alphabetical and user index. More...
#include <XMLIndexMarkExport.hxx>
Public Member Functions | |
XMLIndexMarkExport (SvXMLExport &rExp) | |
void | ExportIndexMark (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, bool bAutoStyles) |
export by the property set of its text portion. More... | |
Private Member Functions | |
void | ExportTOCMarkAttributes (const css::uno::Reference< css::beans::XPropertySet > &rPropSet) |
export attributes of table-of-content index marks More... | |
void | ExportUserIndexMarkAttributes (const css::uno::Reference< css::beans::XPropertySet > &rPropSet) |
export attributes of user index marks More... | |
void | ExportAlphabeticalIndexMarkAttributes (const css::uno::Reference< css::beans::XPropertySet > &rPropSet) |
export attributes of alphabetical index marks More... | |
Static Private Member Functions | |
static void | GetID (OUStringBuffer &sBuffer, const css::uno::Reference< css::beans::XPropertySet > &rPropSet) |
create a numerical ID for this index mark (represented by its properties) More... | |
Private Attributes | |
SvXMLExport & | rExport |
Static Private Attributes | |
static constexpr OUStringLiteral | gsLevel = u"Level" |
static constexpr OUStringLiteral | gsUserIndexName = u"UserIndexName" |
static constexpr OUStringLiteral | gsPrimaryKey = u"PrimaryKey" |
static constexpr OUStringLiteral | gsSecondaryKey = u"SecondaryKey" |
static constexpr OUStringLiteral | gsDocumentIndexMark = u"DocumentIndexMark" |
static constexpr OUStringLiteral | gsIsStart = u"IsStart" |
static constexpr OUStringLiteral | gsIsCollapsed = u"IsCollapsed" |
static constexpr OUStringLiteral | gsAlternativeText = u"AlternativeText" |
static constexpr OUStringLiteral | gsTextReading = u"TextReading" |
static constexpr OUStringLiteral | gsPrimaryKeyReading = u"PrimaryKeyReading" |
static constexpr OUStringLiteral | gsSecondaryKeyReading = u"SecondaryKeyReading" |
static constexpr OUStringLiteral | gsMainEntry = u"IsMainEntry" |
This class handles the export of index marks for table of content, alphabetical and user index.
Marks for bibliography indices are internally modelled as text fields and thus handled in txtparae.cxx
Definition at line 38 of file XMLIndexMarkExport.hxx.
|
explicit |
Definition at line 40 of file XMLIndexMarkExport.cxx.
|
private |
export attributes of alphabetical index marks
Definition at line 205 of file XMLIndexMarkExport.cxx.
References Any, gsMainEntry, gsPrimaryKey, gsPrimaryKeyReading, gsSecondaryKey, gsSecondaryKeyReading, gsTextReading, lcl_ExportPropertyBool(), lcl_ExportPropertyString(), rExport, xmloff::token::XML_KEY1, xmloff::token::XML_KEY1_PHONETIC, xmloff::token::XML_KEY2, xmloff::token::XML_KEY2_PHONETIC, xmloff::token::XML_MAIN_ENTRY, and xmloff::token::XML_STRING_VALUE_PHONETIC.
Referenced by ExportIndexMark().
void XMLIndexMarkExport::ExportIndexMark | ( | const css::uno::Reference< css::beans::XPropertySet > & | rPropSet, |
bool | bAutoStyles | ||
) |
export by the property set of its text portion.
The text portion supplies us with the properties of the index mark itself, as well as the information whether we are at the start or end of an index mark, or whether the index mark is collapsed.
index marks have no styles!
Definition at line 57 of file XMLIndexMarkExport.cxx.
References SvXMLExport::AddAttribute(), Any, DBG_ASSERT, ExportAlphabeticalIndexMarkAttributes(), ExportTOCMarkAttributes(), ExportUserIndexMarkAttributes(), GetID(), gsAlternativeText, gsDocumentIndexMark, gsIsCollapsed, gsIsStart, gsPrimaryKey, gsUserIndexName, lcl_pAlphaIndexMarkName, lcl_pTocMarkNames, lcl_pUserIndexMarkName, rExport, xmloff::token::XML_ID, XML_NAMESPACE_TEXT, and xmloff::token::XML_STRING_VALUE.
|
private |
export attributes of table-of-content index marks
Definition at line 152 of file XMLIndexMarkExport.cxx.
References SvXMLExport::AddAttribute(), Any, gsLevel, rExport, XML_NAMESPACE_TEXT, and xmloff::token::XML_OUTLINE_LEVEL.
Referenced by ExportIndexMark(), and ExportUserIndexMarkAttributes().
|
private |
export attributes of user index marks
Definition at line 193 of file XMLIndexMarkExport.cxx.
References Any, ExportTOCMarkAttributes(), gsUserIndexName, lcl_ExportPropertyString(), rExport, and xmloff::token::XML_INDEX_NAME.
Referenced by ExportIndexMark().
|
staticprivate |
create a numerical ID for this index mark (represented by its properties)
Definition at line 218 of file XMLIndexMarkExport.cxx.
References nId.
Referenced by ExportIndexMark().
|
staticconstexprprivate |
Definition at line 47 of file XMLIndexMarkExport.hxx.
Referenced by ExportIndexMark().
|
staticconstexprprivate |
Definition at line 44 of file XMLIndexMarkExport.hxx.
Referenced by ExportIndexMark().
|
staticconstexprprivate |
Definition at line 46 of file XMLIndexMarkExport.hxx.
Referenced by ExportIndexMark().
|
staticconstexprprivate |
Definition at line 45 of file XMLIndexMarkExport.hxx.
Referenced by ExportIndexMark().
|
staticconstexprprivate |
Definition at line 40 of file XMLIndexMarkExport.hxx.
Referenced by ExportTOCMarkAttributes().
|
staticconstexprprivate |
Definition at line 51 of file XMLIndexMarkExport.hxx.
Referenced by ExportAlphabeticalIndexMarkAttributes().
|
staticconstexprprivate |
Definition at line 42 of file XMLIndexMarkExport.hxx.
Referenced by ExportAlphabeticalIndexMarkAttributes(), and ExportIndexMark().
|
staticconstexprprivate |
Definition at line 49 of file XMLIndexMarkExport.hxx.
Referenced by ExportAlphabeticalIndexMarkAttributes().
|
staticconstexprprivate |
Definition at line 43 of file XMLIndexMarkExport.hxx.
Referenced by ExportAlphabeticalIndexMarkAttributes().
|
staticconstexprprivate |
Definition at line 50 of file XMLIndexMarkExport.hxx.
Referenced by ExportAlphabeticalIndexMarkAttributes().
|
staticconstexprprivate |
Definition at line 48 of file XMLIndexMarkExport.hxx.
Referenced by ExportAlphabeticalIndexMarkAttributes().
|
staticconstexprprivate |
Definition at line 41 of file XMLIndexMarkExport.hxx.
Referenced by ExportIndexMark(), and ExportUserIndexMarkAttributes().
|
private |
Definition at line 53 of file XMLIndexMarkExport.hxx.
Referenced by ExportAlphabeticalIndexMarkAttributes(), ExportIndexMark(), ExportTOCMarkAttributes(), and ExportUserIndexMarkAttributes().