28#include <com/sun/star/container/XNameContainer.hpp>
29#include <com/sun/star/beans/XPropertySet.hpp>
30#include <com/sun/star/style/XStyle.hpp>
45 const Reference< xml::sax::XFastAttributeList > & xAttrList,
46 const bool bIsHeader )
48 rTxtImport( rTxtImp ),
56 sal_Int32 nTmp = aIter.toInt32();
57 if( nTmp >= 0 && nTmp <= SHRT_MAX )
58 nStartValue =
static_cast<sal_Int16
>(nTmp);
62 OUString sListStyleOverrideName = aIter.toString();
63 if ( !sListStyleOverrideName.isEmpty() )
65 OUString sDisplayStyleName(
67 sListStyleOverrideName ) );
68 const Reference < container::XNameContainer >& rNumStyles =
70 if( rNumStyles.is() && rNumStyles->hasByName( sDisplayStyleName ) )
72 Reference < style::XStyle > xStyle;
73 Any aAny = rNumStyles->getByName( sDisplayStyleName );
76 uno::Reference< beans::XPropertySet > xPropSet( xStyle, UNO_QUERY );
77 aAny = xPropSet->getPropertyValue(
"NumberingRules");
78 aAny >>= mxNumRulesOverride;
87 if( !mxNumRulesOverride.is() )
107 rTxtImport.GetTextListHelper().SetListItem(
this );
124 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
136 GetImport().GetProgressBarHelper()->Increment();
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImport & GetImport()
const css::uno::Reference< css::container::XIndexReplace > & GetNumRules() const
void CreateAndInsertAuto() const
XMLTextListsHelper & GetTextListHelper()
const SvxXMLListStyleContext * FindAutoListStyle(const OUString &rName) const
const css::uno::Reference< css::container::XNameContainer > & GetNumberingStyles() const
XMLTextListItemContext(SvXMLImport &rImport, XMLTextImportHelper &rTxtImp, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, const bool bIsHeader)
virtual ~XMLTextListItemContext() override
XMLTextImportHelper & rTxtImport
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
void SetListItem(XMLTextListItemContext *pListItem)
set list item on top of the list context stack
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Handling of tokens in XML:
#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)