27#include <osl/diagnose.h>
58 const Reference< XPropertySet > & rPropSet )
62 if (
GetFamily() == XmlStyleFamily::TABLE_TABLE )
69 else if (
GetFamily() == XmlStyleFamily::TABLE_COLUMN )
82 OSL_FAIL(
"not possible to get style");
105 OSL_ENSURE(
nIndex != -1,
"Property not found in Map");
111 const OUString& rValue )
133 bool bTempAutoStyles )
135 , m_nNumberFormatIndex(-1)
136 , m_nMasterPageNameIndex(-1)
137 , bAutoStyles(bTempAutoStyles)
150 GetImport().GetTextImport()->SetAutoStyles(
this );
152 GetImport().GetStyles()->CopyStylesToDoc(
true);
165 case XmlStyleFamily::TABLE_TABLE:
172 case XmlStyleFamily::TABLE_COLUMN:
179 case XmlStyleFamily::TABLE_CELL:
195 const Reference< xml::sax::XFastAttributeList > & xAttrList )
204 case XmlStyleFamily::TABLE_TABLE:
205 case XmlStyleFamily::TABLE_COLUMN:
206 case XmlStyleFamily::TABLE_CELL:
221 case XmlStyleFamily::TABLE_TABLE:
224 case XmlStyleFamily::TABLE_COLUMN:
227 case XmlStyleFamily::TABLE_CELL:
constexpr OUStringLiteral sServiceName
SvXMLImport & GetImport()
friend friend class SvXMLImport
XmlStyleFamily GetFamily() const
bool IsDefaultStyle() const
const SvXMLStyleContext * FindStyleChildContext(XmlStyleFamily nFamily, const OUString &rName, bool bCreateIndex=false) const
virtual rtl::Reference< SvXMLImportPropertyMapper > GetImportPropertyMapper(XmlStyleFamily nFamily) const
virtual SvXMLStyleContext * CreateStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual OUString GetServiceName(XmlStyleFamily nFamily) const
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
const ::std::vector< XMLPropertyState > & GetProperties() const
virtual void SetAttribute(sal_Int32 nElement, const OUString &rValue) override
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet) override
virtual void SetAttribute(sal_Int32 nElement, const OUString &rValue) override
SvXMLStylesContext * pStyles
OUString m_sDataStyleName
ODBFilter & GetOwnImport()
virtual ~OTableStyleContext() override
sal_Int32 m_nNumberFormat
void AddProperty(sal_Int16 nContextID, const css::uno::Any &aValue)
virtual void SetDefaults() override
OTableStyleContext(ODBFilter &rImport, SvXMLStylesContext &rStyles, XmlStyleFamily nFamily)
sal_Int32 GetIndex(const sal_Int16 nContextID)
rtl::Reference< SvXMLImportPropertyMapper > m_xTableImpPropMapper
virtual OUString GetServiceName(XmlStyleFamily nFamily) const override
virtual rtl::Reference< SvXMLImportPropertyMapper > GetImportPropertyMapper(XmlStyleFamily nFamily) const override
virtual ~OTableStylesContext() override
sal_Int32 m_nNumberFormatIndex
virtual SvXMLStyleContext * CreateStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
sal_Int32 m_nMasterPageNameIndex
rtl::Reference< SvXMLImportPropertyMapper > m_xCellImpPropMapper
OTableStylesContext(SvXMLImport &rImport, bool bAutoStyles)
rtl::Reference< SvXMLImportPropertyMapper > m_xColumnImpPropMapper
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
ODBFilter & GetOwnImport()
constexpr OUStringLiteral XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_NAME
constexpr OUStringLiteral XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME
constexpr OUStringLiteral XML_STYLE_FAMILY_TABLE_TABLE_STYLES_NAME
#define CTF_DB_MASTERPAGENAME
#define CTF_DB_NUMBERFORMAT
constexpr sal_Int32 TOKEN_MASK