20#ifndef INCLUDED_XMLOFF_XMLSTYLE_HXX
21#define INCLUDED_XMLOFF_XMLSTYLE_HXX
36namespace container {
class XNameContainer; }
37namespace style {
class XAutoStyleFamily; }
61 virtual void SetAttribute( sal_Int32 nElement,
const OUString& rValue );
64 void SetAutoName(
const css::uno::Any& rName ) { maAutoName = rName; }
70 bool bDefaultStyle =
false );
76 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
override;
80 const css::uno::Any&
GetAutoName()
const {
return maAutoName; }
82 const OUString&
GetFollow()
const {
return maFollow; }
83 const OUString&
GetLinked()
const {
return maLinked; }
90 bool IsNew()
const {
return mbNew; }
96 virtual void SetDefaults();
100 virtual void CreateAndInsert(
bool bOverwrite );
104 virtual void CreateAndInsertLate(
bool bOverwrite );
108 virtual void Finish(
bool bOverwrite );
120 virtual bool IsTransient()
const;
125 std::unique_ptr<SvXMLStylesContext_Impl>
mpImpl;
147 sal_uInt32 GetStyleCount()
const;
153 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
157 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
161 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
168 bool bAutomatic =
false );
174 sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
181 const OUString& rName,
182 bool bCreateIndex =
false )
const;
187 virtual css::uno::Reference< css::container::XNameContainer >
191 css::uno::Reference< css::style::XAutoStyleFamily >
193 void CopyAutoStylesToDoc();
194 void CopyStylesToDoc(
bool bOverwrite,
bool bFinish =
true );
195 void FinishStyles(
bool bOverwrite );
200 bool IsAutomaticStyle()
const;
This class deliberately does not support XWeak, to improve performance when loading large documents.
virtual void SAL_CALL startFastElement(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual css::uno::Reference< XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
void SetFamily(XmlStyleFamily nSet)
const OUString & GetName() const
const OUString & GetFollow() const
const OUString & GetLinked() const
const css::uno::Any & GetAutoName() const
XmlStyleFamily GetFamily() const
const OUString & GetParentName() const
void SetAutoName(const css::uno::Any &rName)
bool IsDefaultStyle() const
const OUString & GetDisplayName() const
std::unique_ptr< SvXMLStylesContext_Impl > mpImpl
css::uno::Reference< css::container::XNameContainer > mxTextStyles
rtl::Reference< SvXMLImportPropertyMapper > mxPageImpPropMapper
rtl::Reference< SvXMLImportPropertyMapper > mxParaImpPropMapper
rtl::Reference< SvXMLImportPropertyMapper > mxChartImpPropMapper
css::uno::Reference< css::style::XAutoStyleFamily > mxParaAutoStyles
rtl::Reference< SvXMLImportPropertyMapper > mxShapeImpPropMapper
SvXMLStylesContext(SvXMLStylesContext const &)=delete
css::uno::Reference< css::container::XNameContainer > mxParaStyles
css::uno::Reference< css::style::XAutoStyleFamily > mxTextAutoStyles
rtl::Reference< SvXMLImportPropertyMapper > mxTextImpPropMapper