32#include <com/sun/star/container/XNameContainer.hpp>
34using ::com::sun::star::beans::PropertyValue;
35using ::com::sun::star::uno::Reference;
36using ::com::sun::star::uno::Sequence;
37using ::com::sun::star::uno::Any;
46, m_rEntryType(
std::move(aEntry))
47, m_bCharStyleNameOK(false)
48, m_rTemplateContext(rTemplate)
59 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
67 OUString sDisplayStyleName =
GetImport().GetStyleDisplayName(
70 const Reference < css::container::XNameContainer > & rStyles =
71 GetImport().GetTextImport()->GetTextStyles();
72 if( rStyles.is() && rStyles->hasByName( sDisplayStyleName ) )
91 Sequence<PropertyValue> aValues(
m_nValues);
98 css::uno::Sequence<css::beans::PropertyValue> & rValues)
105 auto pValues = rValues.getArray();
114 pValues[1].Name =
"CharacterStyleName";
115 aAny <<=
GetImport().GetStyleDisplayName(
const PropertyValue * pValues
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImport & GetImport()
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
process parameters
XMLIndexTemplateContext & m_rTemplateContext
virtual void FillPropertyValues(css::uno::Sequence< css::beans::PropertyValue > &rValues)
fill property values for this template entry
OUString m_sCharStyleName
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
call FillPropertyValues and insert into template
const OUString m_rEntryType
XMLIndexSimpleEntryContext(SvXMLImport &rImport, OUString aEntry, XMLIndexTemplateContext &rTemplate)
virtual ~XMLIndexSimpleEntryContext() override
Import index entry templates.
void addTemplateEntry(const css::beans::PropertyValues &aValues)
add template; to be called by child template entry contexts
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)