29#include <com/sun/star/beans/PropertyValue.hpp>
44 template<
typename EnumT>
46 const css::uno::Type& _rExpectedType,
47 const OUString& _rReadCharacters,
55 const css::uno::Type& _rExpectedType,
56 const OUString& _rReadCharacters,
58 const bool _bInvertBoolean =
false
64 class OFormLayerXMLImport_Impl;
97 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
101 const css::uno::Reference< css::xml::sax::XFastAttributeList >& _rxAttrList)
override;
102 virtual void SAL_CALL
characters(
const OUString& _rChars)
override;
119 virtual bool handleAttribute(sal_Int32 nElement,
const OUString& _rValue);
140 m_aValues.push_back( css::beans::PropertyValue(
141 _rName, -1, _rValue, css::beans::PropertyState_DIRECT_VALUE ) );
163 sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
165#if OSL_DEBUG_LEVEL > 0
168 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
override;
169 virtual void SAL_CALL
characters(
const OUString& _rChars)
override;
186 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
override;
203 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
override;
205 virtual void SAL_CALL
endFastElement(sal_Int32 nElement)
override;
208 sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
221 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
override;
This class deliberately does not support XWeak, to improve performance when loading large documents.
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
OPropertyImportRef m_xPropertyImporter
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
::std::vector< OUString > m_aListValues
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 ...
OListPropertyContext(SvXMLImport &_rImport, OPropertyImportRef _xPropertyImporter)
OListValueContext(SvXMLImport &_rImport, OUString &_rListValueHolder)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
OUString & m_rListValueHolder
helper class for importing the <form:properties> element
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
OPropertyElementsContext(SvXMLImport &_rImport, OPropertyImportRef _xPropertyImporter)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
OPropertyImportRef m_xPropertyImporter
virtual void SAL_CALL characters(const OUString &_rChars) override
This method is called for all characters that are contained in the current element.
Helper class for importing property values.
PropertyValueArray m_aValues
void implPushBackPropertyValue(const css::beans::PropertyValue &_rProp)
virtual bool handleAttribute(sal_Int32 nElement, const OUString &_rValue)
handle one single attribute.
o3tl::sorted_vector< sal_Int32 > m_aEncounteredAttributes
OPropertyImport(OFormLayerXMLImport_Impl &_rImport)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
void enableTrackAttributes()
enables the tracking of the encountered attributes
bool encounteredAttribute(sal_Int32 nElement) const
determine if the element imported by the object had a given attribute.
PropertyValueArray m_aGenericValues
::std::vector< css::beans::PropertyValue > PropertyValueArray
void implPushBackGenericPropertyValue(const css::beans::PropertyValue &_rProp)
virtual void SAL_CALL characters(const OUString &_rChars) override
This method is called for all characters that are contained in the current element.
OFormLayerXMLImport_Impl & m_rContext
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &_rxAttrList) override
void implPushBackPropertyValue(const OUString &_rName, const css::uno::Any &_rValue)
helper class for importing a single <form:property> element
OPropertyImportRef m_xPropertyImporter
OSinglePropertyContext(SvXMLImport &_rImport, OPropertyImportRef _xPropertyImporter)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
static css::uno::Any convertString(const css::uno::Type &_rExpectedType, const OUString &_rReadCharacters, const SvXMLEnumMapEntry< EnumT > *_pEnumMap=nullptr)
static css::uno::Type xmlTypeToUnoType(const OUString &_rType)
rtl::Reference< OPropertyImport > OPropertyImportRef