22 #include <com/sun/star/frame/XModel.hpp>
23 #include <com/sun/star/style/ParagraphStyleCategory.hpp>
24 #include <com/sun/star/beans/XPropertySet.hpp>
25 #include <com/sun/star/beans/XPropertySetInfo.hpp>
26 #include <com/sun/star/beans/XPropertyState.hpp>
27 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
28 #include <com/sun/star/style/XStyle.hpp>
50 const css::uno::Reference< css::style::XStyle > & rStyle )
53 Reference< XPropertySetInfo > xPropSetInfo(
54 xPropSet->getPropertySetInfo());
55 if( xPropSetInfo->hasPropertyByName(
gsCategory ) )
57 sal_Int16 nCategory = 0;
58 xPropSet->getPropertyValue(
gsCategory ) >>= nCategory;
64 case ParagraphStyleCategory::TEXT:
67 case ParagraphStyleCategory::CHAPTER:
70 case ParagraphStyleCategory::LIST:
73 case ParagraphStyleCategory::INDEX:
76 case ParagraphStyleCategory::EXTRA:
79 case ParagraphStyleCategory::HTML:
89 Reference< XPropertyState > xPropState( xPropSet, uno::UNO_QUERY );
90 if( PropertyState_DIRECT_VALUE ==
119 Reference < lang::XMultiServiceFactory >
xFactory (
GetExport().GetModel(), UNO_QUERY);
158 aLineNumberingExport.
Export();
rtl::Reference< SvXMLExportPropertyMapper > xFramePropMapper
virtual void exportStyleAttributes(const css::uno::Reference< css::style::XStyle > &rStyle) override
rtl::Reference< XMLShapeExport > const & GetShapeExport()
void exportDefaultStyle(const css::uno::Reference< css::beans::XPropertySet > &xPropSet, const OUString &rXMLFamily, const rtl::Reference< SvXMLExportPropertyMapper > &rPropMapper)
static constexpr OUStringLiteral gsPageDescName
const rtl::Reference< SvXMLExportPropertyMapper > & GetParaPropMapper() const
SvXMLExport & GetExport()
void exportStyleFamily(const OUString &rFamily, const OUString &rXMLFamily, const rtl::Reference< SvXMLExportPropertyMapper > &rPropMapper, bool bUsed, XmlStyleFamily nFamily, const OUString *pPrefix=nullptr)
ProgressBarHelper * GetProgressBarHelper()
void AddAttribute(sal_uInt16 nPrefix, const char *pName, const OUString &rValue)
XMLTokenEnum
The enumeration of all XML tokens.
#define XML_STYLE_FAMILY_SD_GRAPHICS_NAME
XMLTextListAutoStylePool maListAutoPool
void exportNumStyles(bool bUsed)
const rtl::Reference< SvXMLExportPropertyMapper > & GetTextPropMapper() const
void exportStyles(bool bUsed, XMLTextListAutoStylePool *pPool, bool bExportChapterNumbering)
export and its child elements
sal_Int32 GetValue() const
void exportTextFootnoteConfiguration()
export footnote and endnote configuration elements
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken
Handling of tokens in XML:
void exportTextStyles(bool bUsed, bool bProg)
void SetValue(sal_Int32 nValue)
static constexpr OUStringLiteral gsCategory
Reference< XSingleServiceFactory > xFactory
constexpr sal_uInt16 XML_NAMESPACE_STYLE
static void ExportBibliographyConfiguration(SvXMLExport &rExport)
Export the configuration element for bibliography indices.