21#include <com/sun/star/document/XEventsSupplier.hpp>
22#include <com/sun/star/beans/XPropertySet.hpp>
23#include <com/sun/star/style/XStyle.hpp>
51 XMLTextShapePropertySetContext_Impl( SvXMLImport& rImport, sal_Int32 nElement,
52 const Reference< XFastAttributeList >& xAttrList,
54 ::std::vector< XMLPropertyState > &rProps,
60 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
61 ::std::vector< XMLPropertyState > &rProperties,
67XMLTextShapePropertySetContext_Impl::XMLTextShapePropertySetContext_Impl(
68 SvXMLImport& rImport, sal_Int32 nElement,
69 const Reference< XFastAttributeList > & xAttrList,
71 ::std::vector< XMLPropertyState > &rProps,
78css::uno::Reference< css::xml::sax::XFastContextHandler > XMLTextShapePropertySetContext_Impl::createFastChildContext(
80 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
81 ::std::vector< XMLPropertyState > &rProperties,
84 switch( mxMapper->getPropertySetMapper()
85 ->GetEntryContextId( rProp.
mnIndex ) )
99 mxMapper->getPropertySetMapper()
100 ->GetEntryContextId( rProp.
mnIndex-3 ) &&
102 ->GetEntryContextId( rProp.
mnIndex-2 ) &&
104 ->GetEntryContextId( rProp.
mnIndex-1 ),
105 "invalid property map!");
119 nElement, xAttrList, rProperties, rProp );
123 const OUString& rValue )
142 m_bAutoUpdate( false )
152 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
158 sal_uInt32 nFamily = 0;
171 return new XMLTextShapePropertySetContext_Impl(
172 GetImport(), nElement, xAttrList, nFamily,
191 Reference < XStyle > xStyle =
GetStyle();
192 if( !xStyle.is() || !(bOverwrite ||
IsNew()) )
195 Reference < XPropertySet > xPropSet( xStyle, UNO_QUERY );
196 Reference< XPropertySetInfo > xPropSetInfo =
197 xPropSet->getPropertySetInfo();
208 Reference<XEventsSupplier> xEventsSupplier(xStyle, UNO_QUERY);
constexpr OUStringLiteral gsIsAutoUpdate(u"IsAutoUpdate")
SvXMLImport & GetImport()
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
XmlStyleFamily GetFamily() const
virtual rtl::Reference< SvXMLImportPropertyMapper > GetImportPropertyMapper(XmlStyleFamily nFamily) const
Import <script:events> element.
const css::uno::Reference< css::style::XStyle > & GetStyle() const
::std::vector< XMLPropertyState > & GetProperties()
virtual void CreateAndInsert(bool bOverwrite) override
SvXMLStylesContext * GetStyles()
virtual void Finish(bool bOverwrite) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, ::std::vector< XMLPropertyState > &rProperties, const XMLPropertyState &rProp) override
This method is called from this instance implementation of CreateChildContext if the element matches ...
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
virtual void SetAttribute(sal_Int32 nElement, const OUString &rValue) override
virtual ~XMLTextShapeStyleContext() override
virtual void CreateAndInsert(bool bOverwrite) override
XMLTextShapeStyleContext(SvXMLImport &rImport, SvXMLStylesContext &rStyles, XmlStyleFamily nFamily)
rtl::Reference< XMLEventsImportContext > m_xEventContext
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
virtual void Finish(bool bOverwrite) override
virtual void SetAttribute(sal_Int32 nElement, const OUString &rValue) override
#define DBG_ASSERT(sCon, aError)
Handling of tokens in XML:
@ XML_PARAGRAPH_PROPERTIES
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
compare eToken to the string
Smart struct to transport an Any with an index to the appropriate property-name.
#define CTF_BACKGROUND_POS
#define CTF_BACKGROUND_FILTER
#define CTF_COMPLEX_COLOR
#define CTF_BACKGROUND_URL
#define CTF_BACKGROUND_TRANSPARENCY
#define XML_ELEMENT(prefix, name)
constexpr bool IsTokenInNamespace(sal_Int32 nToken, sal_uInt16 nNamespacePrefix)
constexpr sal_Int32 TOKEN_MASK
constexpr sal_uInt16 XML_NAMESPACE_LO_EXT
constexpr sal_uInt16 XML_NAMESPACE_STYLE
#define XML_TYPE_PROP_GRAPHIC
#define XML_TYPE_PROP_PARAGRAPH
#define XML_TYPE_PROP_TEXT