107 OUString strIndexName;
109 OUString strSourceName;
113 strIndexName =
"text:table-of-content";
114 strSourceName =
"text:table-of-content-source";
115 strTplName =
"text:table-of-content-entry-template";
119 strIndexName =
"text:alphabetical-index";
120 strSourceName =
"text:alphabetical-index-source";
121 strTplName =
"text:alphabetical-index-entry-template";
125 strIndexName =
"text:user-index";
126 strSourceName =
"text:text:user-index-source";
127 strTplName =
"text:user-index-entry-template";
131 strIndexName =
"text:object-index";
132 strSourceName =
"text:object-index-source";
133 strTplName =
"text:object-index-entry-template";
137 strIndexName =
"text:illustration-index";
138 strSourceName =
"text:illustration-index-source";
139 strTplName =
"text:illustration-index-entry-template";
143 strIndexName =
"text:table-index";
144 strSourceName =
"text:table-index-source";
145 strTplName =
"text:table-index-entry-template";
163 pAttrList->
AddAttribute(
"text:outline-level", OUString::number(10));
164 pAttrList->
AddAttribute(
"text:use-index-source-styles",
"true");
165 pAttrList->
AddAttribute(
"text:use-index-marks",
"true");
166 pAttrList->
AddAttribute(
"text:use-outline-level",
"false");
169 pAttrList->
AddAttribute(
"text:alphabetical-separators",
"true" );
177 pStrm->
EndElement(
"text:index-title-template" );
182 elem->SetTagName( strTplName);
198 pAttrList->
AddAttribute(
"text:outline-level", OUString::number(
i));
204 pAttrList->
AddAttribute(
"text:style-name", elemTOCSource);
206 pStrm->
EndElement(
"text:index-source-style" );
208 pStrm->
EndElement(
"text:index-source-styles" );
252 pStrm->
StartElement(
"text:index-entry-chapter-number" );
253 pStrm->
EndElement(
"text:index-entry-chapter-number" );
294 pStrm->
EndElement(
"text:index-entry-tab-stop" );
301 pStrm->
EndElement(
"text:index-entry-page-number" );
305 pStrm->
EndElement(
"text:index-entry-link-start" );
309 pStrm->
EndElement(
"text:index-entry-link-end" );
320 pStrm->
EndElement(
"text:index-entry-bibliography" );
Attribute list interface for sax writer.
virtual void Clear()=0
@descr: Clear all the attributes in the attribute list.
virtual void AddAttribute(const OUString &name, const OUString &value)=0
@descr: Add an attribute to the attribute list.
Stream wrapper for sax writer.
virtual void Characters(const OUString &oustr)=0
@descr output text node.
virtual IXFAttrList * GetAttrList()=0
@descr return the Attribute list interface.
virtual void StartElement(const OUString &oustr)=0
@descr Wrap XDocumentHandler::startElement()
virtual void EndElement(const OUString &oustr)=0
@descr Wrap XDocumentHandler::endElement()
virtual void ToXml(IXFStream *pStrm) override
@descr Output to OOo model or local file.
const OUString & GetStyleName() const
: return the style name.
std::map< sal_uInt16, OUString > m_aTextEntries
OUString m_strTabDelimiter
void SetStyleName(const OUString &style) override
@descr Set style.
std::vector< TOCTEMPLATE_ENTRY_TYPE > m_aEntries
void SetLevel(const OUString &level)
@descr Set template level.
virtual void ToXml(IXFStream *pStrm) override
void SetProtected(bool protect)
@descr Set if protected index to prevent handy-revise.
void SetSeparator(bool sep)
@descr Set separator.
virtual ~XFIndex() override
void AddTemplate(const OUString &level, const OUString &style, XFIndexTemplate *templ)
@descr Add index template entry.
virtual void ToXml(IXFStream *pStrm) override
@descr Output to OOo model or local file.
void AddTocSource(sal_uInt16 nLevel, const OUString &sStyleName)
std::vector< OUString > m_aTOCSource[MAX_TOC_LEVEL+1]
std::vector< rtl::Reference< XFIndexTemplate > > m_aTemplates
const EnumerationType m_eType
constexpr OUStringLiteral first
@ enumXFIndexIllustration
@ enumXFIndexAlphabetical
@ enumXFIndexTemplateLinkEnd
@ enumXFIndexTemplateBibliography
@ enumXFIndexTemplateSpan
@ enumXFIndexTemplateText
@ enumXFIndexTemplateLinkStart
@ enumXFIndexTemplateChapter
@ enumXFIndexTemplatePage