29#include <com/sun/star/beans/XPropertySet.hpp>
45 const OUString& rValue )
73void lcl_NumberFormatStyleToProperty(
const OUString& rStyleName,
const OUString& rPropertyName,
75 const uno::Reference< beans::XPropertySet >& rPropSet )
77 if( !rStyleName.isEmpty())
84 rPropSet->setPropertyValue( rPropertyName,
uno::Any(nNumberFormat) );
92 const uno::Reference< beans::XPropertySet > & rPropSet )
98 catch( beans::UnknownPropertyException& )
100 TOOLS_WARN_EXCEPTION(
"xmloff",
"unknown property exception -> shape style not completely imported for chart style" );
109 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
115 sal_uInt32 nFamily = 0;
130 GetImport(), nElement, xAttrList, nFamily,
SvXMLImport & GetImport()
XmlStyleFamily GetFamily() const
const SvXMLStyleContext * FindStyleChildContext(XmlStyleFamily nFamily, const OUString &rName, bool bCreateIndex=false) const
virtual rtl::Reference< SvXMLImportPropertyMapper > GetImportPropertyMapper(XmlStyleFamily nFamily) const
SvXMLStylesContext & mrStyles
OUString msPercentageDataStyleName
XMLChartStyleContext(SvXMLImport &rImport, SvXMLStylesContext &rStyles, XmlStyleFamily nFamily)
void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet) override
is called after all styles have been read to apply styles
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
necessary for property context (element-property symbol-image)
virtual ~XMLChartStyleContext() override
virtual void SetAttribute(sal_Int32 nElement, const OUString &rValue) override
is called when an attribute at the (auto)style element is found
::std::vector< XMLPropertyState > & GetProperties()
SvXMLStylesContext * GetStyles()
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet) override
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
#define TOOLS_WARN_EXCEPTION(area, stream)
@ XML_PERCENTAGE_DATA_STYLE_NAME
@ XML_PARAGRAPH_PROPERTIES
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_CHART
#define XML_TYPE_PROP_PARAGRAPH
#define XML_TYPE_PROP_TEXT