20 #ifndef INCLUDED_XMLOFF_XMLSTYLE_HXX
21 #define INCLUDED_XMLOFF_XMLSTYLE_HXX
23 #include <rtl/ref.hxx>
36 namespace container {
class XNameContainer; }
37 namespace style {
class XAutoStyleFamily; }
56 bool mbDefaultStyle : 1;
60 virtual void SetAttribute( sal_Int32 nElement,
const OUString&
rValue );
63 void SetAutoName(
const OUString& rName ) { maAutoName = rName; }
69 bool bDefaultStyle =
false );
75 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
override;
77 const OUString&
GetName()
const {
return maName; }
78 const OUString&
GetDisplayName()
const {
return maDisplayName.getLength() ? maDisplayName : maName; }
81 const OUString&
GetFollow()
const {
return maFollow; }
88 bool IsNew()
const {
return mbNew; }
94 virtual void SetDefaults();
98 virtual void CreateAndInsert(
bool bOverwrite );
102 virtual void CreateAndInsertLate(
bool bOverwrite );
106 virtual void Finish(
bool bOverwrite );
118 virtual bool IsTransient()
const;
123 std::unique_ptr<SvXMLStylesContext_Impl>
mpImpl;
145 sal_uInt32 GetStyleCount()
const;
151 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
155 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
159 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
166 bool bAutomatic =
false );
172 sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
179 const OUString& rName,
180 bool bCreateIndex =
false )
const;
185 virtual css::uno::Reference< css::container::XNameContainer >
189 css::uno::Reference< css::style::XAutoStyleFamily >
191 void CopyAutoStylesToDoc();
192 void CopyStylesToDoc(
bool bOverwrite,
bool bFinish =
true );
193 void FinishStyles(
bool bOverwrite );
198 bool IsAutomaticStyle()
const;
201 #endif // INCLUDED_XMLOFF_XMLSTYLE_HXX
css::uno::Reference< css::style::XAutoStyleFamily > mxTextAutoStyles
XmlStyleFamily GetFamily() const
rtl::Reference< SvXMLImportPropertyMapper > mxParaImpPropMapper
virtual void SAL_CALL startFastElement(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
css::uno::Reference< css::container::XNameContainer > mxParaStyles
bool IsDefaultStyle() const
exports com.sun.star. container
css::uno::Any const & rValue
const OUString & GetAutoName() const
const OUString & GetDisplayName() const
void SetFamily(XmlStyleFamily nSet)
rtl::Reference< SvXMLImportPropertyMapper > mxChartImpPropMapper
std::unique_ptr< SvXMLStylesContext_Impl > mpImpl
exports com.sun.star. style
This class deliberately does not support XWeak, to improve performance when loading large documents...
const OUString & GetParentName() const
rtl::Reference< SvXMLImportPropertyMapper > mxTextImpPropMapper
const OUString & GetName() const
virtual css::uno::Reference< XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
void SetAutoName(const OUString &rName)
const OUString & GetFollow() const
css::uno::Reference< css::style::XAutoStyleFamily > mxParaAutoStyles
css::uno::Reference< css::container::XNameContainer > mxTextStyles
rtl::Reference< SvXMLImportPropertyMapper > mxPageImpPropMapper
rtl::Reference< SvXMLImportPropertyMapper > mxShapeImpPropMapper