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 )
52 Reference< XPropertySet > xPropSet( rStyle, UNO_QUERY );
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);
122 Reference < XPropertySet > xPropSet (
xFactory->createInstance (
"com.sun.star.text.Defaults" ), UNO_QUERY);
158 aLineNumberingExport.
Export();
void SetValue(sal_Int32 nValue)
sal_Int32 GetValue() const
ProgressBarHelper * GetProgressBarHelper()
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
rtl::Reference< XMLShapeExport > const & GetShapeExport()
void exportStyles(bool bUsed, bool bExportChapterNumbering)
export <text:linenumbering-configuration> and its child elements
static void ExportBibliographyConfiguration(SvXMLExport &rExport)
Export the configuration element for bibliography indices.
void exportStyleFamily(const OUString &rFamily, const OUString &rXMLFamily, const rtl::Reference< SvXMLExportPropertyMapper > &rPropMapper, bool bUsed, XmlStyleFamily nFamily, const OUString *pPrefix=nullptr)
void exportDefaultStyle(const css::uno::Reference< css::beans::XPropertySet > &xPropSet, const OUString &rXMLFamily, const rtl::Reference< SvXMLExportPropertyMapper > &rPropMapper)
SvXMLExport & GetExport()
const rtl::Reference< SvXMLExportPropertyMapper > & GetTextPropMapper() const
static constexpr OUStringLiteral gsPageDescName
rtl::Reference< SvXMLExportPropertyMapper > m_xFramePropMapper
virtual void exportStyleAttributes(const css::uno::Reference< css::style::XStyle > &rStyle) override
void exportTextFootnoteConfiguration()
export footnote and endnote configuration elements
void exportTextStyles(bool bUsed, bool bProg)
const rtl::Reference< SvXMLExportPropertyMapper > & GetParaPropMapper() const
static constexpr OUStringLiteral gsCategory
void exportNumStyles(bool bUsed)
Reference< XSingleServiceFactory > xFactory
constexpr OUStringLiteral XML_STYLE_FAMILY_SD_GRAPHICS_NAME
Handling of tokens in XML:
XMLTokenEnum
The enumeration of all XML tokens.
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken
constexpr sal_uInt16 XML_NAMESPACE_STYLE