20#include <com/sun/star/container/XNameContainer.hpp>
21#include <com/sun/star/graphic/XGraphic.hpp>
22#include <com/sun/star/awt/XBitmap.hpp>
39 const uno::Reference< xml::sax::XFastAttributeList >& xAttrList)
53 uno::Reference< container::XNameContainer > xGradient(
GetImport().GetGradientHelper() );
69 catch( container::ElementExistException& )
80 const uno::Reference< xml::sax::XFastAttributeList >& xAttrList)
94 uno::Reference< container::XNameContainer > xHatch(
GetImport().GetHatchHelper() );
110 catch( container::ElementExistException& )
121 const uno::Reference< xml::sax::XFastAttributeList >& xAttrList)
134 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
163 if (!
maAny.has<uno::Reference<graphic::XGraphic>>())
166 uno::Reference<container::XNameContainer> xBitmapContainer(
GetImport().GetBitmapHelper());
168 uno::Reference<graphic::XGraphic> xGraphic =
maAny.get<uno::Reference<graphic::XGraphic>>();
169 uno::Reference<awt::XBitmap> xBitmap(xGraphic, uno::UNO_QUERY);
173 if (xBitmapContainer.is())
175 if (xBitmapContainer->hasByName(
maStrName))
185 catch (container::ElementExistException&)
196 const uno::Reference< xml::sax::XFastAttributeList >& xAttrList)
210 uno::Reference< container::XNameContainer > xTransGradient(
GetImport().GetTransGradientHelper() );
214 if(xTransGradient.is())
216 if( xTransGradient->hasByName(
maStrName ) )
226 catch( container::ElementExistException& )
237 const uno::Reference< xml::sax::XFastAttributeList >& xAttrList)
251 uno::Reference< container::XNameContainer > xMarker(
GetImport().GetMarkerHelper() );
267 catch( container::ElementExistException& )
278 const uno::Reference< xml::sax::XFastAttributeList >& xAttrList)
292 uno::Reference< container::XNameContainer > xDashes(
GetImport().GetDashHelper() );
308 catch( container::ElementExistException& )
SvXMLImport & GetImport()
virtual ~XMLBitmapStyleContext() override
XMLBitmapStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
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 > &AttrList) override
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
XMLDashStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
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 ~XMLDashStyleContext() override
void importXML(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Any &rValue, OUString &rStrName)
virtual ~XMLGradientStyleContext() override
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 ...
XMLGradientStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
void importXML(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Any &rValue, OUString &rStrName)
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
virtual ~XMLHatchStyleContext() override
XMLHatchStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
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 ...
void importXML(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Any &rValue, OUString &rStrName)
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 ~XMLMarkerStyleContext() override
XMLMarkerStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
void importXML(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Any &rValue, OUString &rStrName)
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
virtual ~XMLTransGradientStyleContext() override
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 ...
XMLTransGradientStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
void importXML(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Any &rValue, OUString &rStrName)
XMLOFF_DLLPUBLIC bool importXML(css::uno::Reference< css::xml::sax::XFastAttributeList > const &xAttrList, css::uno::Any &rValue, OUString &rStrName, SvXMLImport &rImport)
#define XML_ELEMENT(prefix, name)