22#include <rtl/ustring.hxx>
23#include <com/sun/star/uno/Reference.h>
24#include <com/sun/star/uno/Sequence.h>
25#include <com/sun/star/beans/PropertyValue.hpp>
83 const css::uno::Reference < css::text::XTextSection > & rSection,
90 const css::uno::Reference < css::text::XTextSection > & rSection,
98 const css::uno::Reference < css::text::XTextSection > & rSection)
const;
105 const css::uno::Reference < css::text::XTextContent > & rSection,
107 bool bDefault)
const;
114 const css::uno::Reference < css::text::XTextSection > & rEnclosingSection,
115 const css::uno::Reference < css::text::XTextContent > & rContent,
143 const css::uno::Reference < css::text::XDocumentIndex > & rSection);
147 const css::uno::Reference < css::text::XTextSection > & rSection);
151 const css::uno::Reference < css::text::XTextSection > & rSection);
155 const css::uno::Reference < css::beans::XPropertySet > & rSection);
159 const css::uno::Reference < css::beans::XPropertySet > & rSection);
163 const css::uno::Reference < css::beans::XPropertySet > & rSection);
167 const css::uno::Reference < css::beans::XPropertySet > & rSection);
171 const css::uno::Reference < css::beans::XPropertySet > & rSection);
175 const css::uno::Reference < css::beans::XPropertySet > & rSection);
179 const css::uno::Reference < css::beans::XPropertySet > & rIndex);
193 const css::uno::Reference < css::text::XTextSection > & rSection,
194 css::uno::Reference < css::text::XDocumentIndex > & rIndex);
207 const css::uno::Reference < css::beans::XPropertySet > & rSection);
217 const css::uno::Reference <
218 css::beans::XPropertySet > & rSection);
225 const css::uno::Reference < css::beans::XPropertySet > & rSection);
233 const css::uno::Reference < css::beans::XPropertySet > & rSection);
239 const css::uno::Reference< css::beans::XPropertySet> & rPropSet,
240 const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue> > & rValues);
245 const css::uno::Sequence<
246 css::beans::PropertyValue> & rValues);
250 css::uno::Reference< css::container::XIndexReplace>
const & xStyles);
255 const css::uno::Reference<css::beans::XPropertySet> & rPropSet,
256 const OUString& sPropertyName,
259 bool bInvert =
false);
@ TEXT_SECTION_TYPE_ALPHABETICAL
@ TEXT_SECTION_TYPE_BIBLIOGRAPHY
@ TEXT_SECTION_TYPE_OBJECT
@ TEXT_SECTION_TYPE_ILLUSTRATION
@ TEXT_SECTION_TYPE_TABLE
@ TEXT_SECTION_TYPE_UNKNOWN
This class handles the export of sections and indices (which are, internally, just sections).
XMLTextParagraphExport & GetParaExport()
void ExportLevelParagraphStyles(css::uno::Reference< css::container::XIndexReplace > const &xStyles)
export level paragraph styles
void ExportSectionStart(const css::uno::Reference< css::text::XTextSection > &rSection, bool bAutoStyles)
export section or index start and source elements.
void ExportUserIndexStart(const css::uno::Reference< css::beans::XPropertySet > &rSection)
export a user index (and source element)
bool bHeadingDummiesExported
static enum SectionTypeEnum MapSectionType(std::u16string_view rSectionName)
map service name to section type
static bool IsInSection(const css::uno::Reference< css::text::XTextSection > &rEnclosingSection, const css::uno::Reference< css::text::XTextContent > &rContent, bool bDefault)
Determine whether rContent is contained in rEnclosingSection.
void ExportSectionEnd(const css::uno::Reference< css::text::XTextSection > &rSection, bool bAutoStyles)
export section or index end elements
void ExportBibliographyStart(const css::uno::Reference< css::beans::XPropertySet > &rIndex)
export the bibliography (and source element)
void ExportBaseIndexStart(::xmloff::token::XMLTokenEnum eElement, const css::uno::Reference< css::beans::XPropertySet > &rSection)
Export the index element start (for all index types).
void ExportObjectIndexStart(const css::uno::Reference< css::beans::XPropertySet > &rSection)
export an object index (and source element)
XMLSectionExport(SvXMLExport &rExp, XMLTextParagraphExport &rParaExp)
void ExportTableOfContentStart(const css::uno::Reference< css::beans::XPropertySet > &rSection)
export a table of content (and source element)
void ExportTableIndexStart(const css::uno::Reference< css::beans::XPropertySet > &rSection)
export a table index (and source element)
void ExportBoolean(const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const OUString &sPropertyName, enum ::xmloff::token::XMLTokenEnum eAttributeName, bool bDefault, bool bInvert=false)
helper to export boolean properties
void ExportBaseIndexBody(SectionTypeEnum eType, const css::uno::Reference< css::beans::XPropertySet > &rSection)
Export the index body (common for all index types).
void ExportIndexTemplateElement(SectionTypeEnum eType, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
export a single template element (e.g. span or tab-stop)
void ExportMasterDocHeadingDummies()
export a heading for every level.
void ExportRegularSectionStart(const css::uno::Reference< css::text::XTextSection > &rSection)
export a proper section (and source elements)
void ExportAlphabeticalIndexStart(const css::uno::Reference< css::beans::XPropertySet > &rSection)
export an alphabetical/keyword index (and source element)
XMLTextParagraphExport & rParaExport
void ExportTableAndIllustrationIndexSourceAttributes(const css::uno::Reference< css::beans::XPropertySet > &rSection)
Helper method to export common attributes for table and illustration indices.
static bool GetIndex(const css::uno::Reference< css::text::XTextSection > &rSection, css::uno::Reference< css::text::XDocumentIndex > &rIndex)
If this section is an index, the index is written in the rIndex parameter.
void ExportIndexHeaderStart(const css::uno::Reference< css::text::XTextSection > &rSection)
export an index header start element.
static void ExportBibliographyConfiguration(SvXMLExport &rExport)
Export the configuration element for bibliography indices.
SvXMLExport & GetExport()
void ExportBaseIndexSource(SectionTypeEnum eType, const css::uno::Reference< css::beans::XPropertySet > &rSection)
Export the index source element (common for all index types).
void ExportIndexStart(const css::uno::Reference< css::text::XDocumentIndex > &rSection)
export an index start element.
bool IsMuteSection(const css::uno::Reference< css::text::XTextContent > &rSection, bool bDefault) const
XTextContent-version of IsMuteSection(Reference<XTextSection>&) returns true for all non-section elem...
bool ExportIndexTemplate(SectionTypeEnum eType, sal_Int32 nLevel, const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > &rValues)
export one template for the specific index type
bool IsMuteSection(const css::uno::Reference< css::text::XTextSection > &rSection) const
Should the content of this section be exported? (E.g.
void ExportIllustrationIndexStart(const css::uno::Reference< css::beans::XPropertySet > &rSection)
export an illustration index (and source element)
class SAL_NO_VTABLE XPropertySet
XMLTokenEnum
The enumeration of all XML tokens.