LibreOffice Module xmloff (master) 1
|
#include <xmlstyle.hxx>
Public Member Functions | |
SvXMLStyleContext (SvXMLImport &rImport, XmlStyleFamily nFamily=XmlStyleFamily::DATA_STYLE, bool bDefaultStyle=false) | |
virtual | ~SvXMLStyleContext () override |
virtual void SAL_CALL | startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &) override |
const OUString & | GetName () const |
const OUString & | GetDisplayName () const |
const css::uno::Any & | GetAutoName () const |
const OUString & | GetParentName () const |
const OUString & | GetFollow () const |
const OUString & | GetLinked () const |
XmlStyleFamily | GetFamily () const |
bool | IsValid () const |
void | SetValid (bool b) |
bool | IsNew () const |
void | SetNew (bool b) |
bool | IsHidden () const |
virtual void | SetDefaults () |
virtual void | CreateAndInsert (bool bOverwrite) |
virtual void | CreateAndInsertLate (bool bOverwrite) |
virtual void | Finish (bool bOverwrite) |
bool | IsDefaultStyle () const |
virtual bool | IsTransient () const |
if this method returns true, its parent styles context should not add it to its container. More... | |
Public Member Functions inherited from SvXMLImportContext | |
SvXMLImportContext (SvXMLImport &rImport) | |
A contexts constructor does anything that is required if an element starts. More... | |
virtual | ~SvXMLImportContext () |
A contexts destructor does anything that is required if an element ends. More... | |
virtual void SAL_CALL | startFastElement (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | endFastElement (sal_Int32 Element) override |
endFastElement is called before a context will be destructed, but after an elements context has been parsed. More... | |
virtual void SAL_CALL | endUnknownElement (const OUString &Namespace, const OUString &Name) override |
virtual css::uno::Reference< XFastContextHandler > SAL_CALL | createFastChildContext (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL | createUnknownChildContext (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | characters (const OUString &aChars) override |
This method is called for all characters that are contained in the current element. More... | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &aType) final override |
virtual void SAL_CALL | acquire () noexcept final override |
virtual void SAL_CALL | release () noexcept final override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () final override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () final override |
Protected Member Functions | |
virtual void | SetAttribute (sal_Int32 nElement, const OUString &rValue) |
void | SetFamily (XmlStyleFamily nSet) |
void | SetAutoName (const css::uno::Any &rName) |
Protected Member Functions inherited from SvXMLImportContext | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Private Attributes | |
OUString | maName |
OUString | maDisplayName |
css::uno::Any | maAutoName |
OUString | maParentName |
OUString | maFollow |
OUString | maLinked |
bool | mbHidden |
XmlStyleFamily | mnFamily |
bool | mbValid: 1 |
bool | mbNew: 1 |
bool | mbDefaultStyle: 1 |
Definition at line 40 of file xmlstyle.hxx.
SvXMLStyleContext::SvXMLStyleContext | ( | SvXMLImport & | rImport, |
XmlStyleFamily | nFamily = XmlStyleFamily::DATA_STYLE , |
||
bool | bDefaultStyle = false |
||
) |
Definition at line 111 of file xmlstyle.cxx.
References mbValid.
|
overridevirtual |
Definition at line 123 of file xmlstyle.cxx.
|
virtual |
Reimplemented in XMLPropStyleContext, XMLTextStyleContext, SvXMLNumFormatContext, XMLTextShapeStyleContext, XMLIndexBibliographyConfigurationContext, and XMLLineNumberingImportContext.
Definition at line 139 of file xmlstyle.cxx.
Referenced by SvXMLStylesContext::CopyAutoStylesToDoc(), and SvXMLStylesContext::CopyStylesToDoc().
|
virtual |
Reimplemented in SvxXMLListStyleContext.
Definition at line 143 of file xmlstyle.cxx.
Referenced by SvXMLStylesContext::CopyStylesToDoc().
|
virtual |
Reimplemented in XMLPropStyleContext, XMLTextStyleContext, XMLShapeStyleContext, XMLTextMasterPageContext, XMLTextShapeStyleContext, and XMLFootnoteConfigurationImportContext.
Definition at line 147 of file xmlstyle.cxx.
Referenced by SvXMLStylesContext::FinishStyles().
|
inline |
Definition at line 80 of file xmlstyle.hxx.
Referenced by XMLTextStyleContext::FillPropertySet().
|
inline |
Definition at line 79 of file xmlstyle.hxx.
References maDisplayName, and maName.
Referenced by XMLPropStyleContext::CreateAndInsert(), XMLTextStyleContext::CreateAndInsert(), SvxXMLListStyleContext::CreateAndInsertLate(), and XMLShapeStyleContext::SetAttribute().
|
inline |
Definition at line 85 of file xmlstyle.hxx.
Referenced by SvXMLStylesContext::CopyAutoStylesToDoc(), SvXMLStylesContext::CopyStylesToDoc(), XMLPropStyleContext::Create(), XMLPropStyleContext::CreateAndInsert(), XMLTextStyleContext::CreateAndInsert(), XMLPropStyleContext::createFastChildContext(), XMLTextStyleContext::createFastChildContext(), XMLGraphicsDefaultStyle::createFastChildContext(), XMLShapeStyleContext::createFastChildContext(), XMLTextShapeStyleContext::createFastChildContext(), PageStyleContext::createFastChildContext(), XMLChartStyleContext::createFastChildContext(), XMLPropStyleContext::deactivateOldFillStyleDefinitions(), XMLPropStyleContext::doNewDrawingLayerFillStyleDefinitionsExist(), SdXMLStylesContext::endFastElement(), XMLPropStyleContext::FillPropertySet(), XMLTextStyleContext::FillPropertySet(), XMLShapeStyleContext::FillPropertySet(), XMLDrawingPageStyleContext::FillPropertySet(), PageStyleContext::FillPropertySet_PageStyle(), XMLPropStyleContext::Finish(), SvXMLStylesContext::FinishStyles(), SchXMLTools::getPropertyFromContext(), XMLPropStyleContext::SetAttribute(), XMLShapeStyleContext::SetAttribute(), XMLTextStyleContext::SetDefaults(), XMLGraphicsDefaultStyle::SetDefaults(), and XMLPropStyleContext::translateNameBasedDrawingLayerFillStyleDefinitionsToStyleDisplayNames().
|
inline |
Definition at line 82 of file xmlstyle.hxx.
Referenced by XMLPropStyleContext::Finish().
|
inline |
Definition at line 83 of file xmlstyle.hxx.
Referenced by XMLPropStyleContext::Finish().
|
inline |
Definition at line 78 of file xmlstyle.hxx.
References maName.
Referenced by XMLPropStyleContext::CreateAndInsert(), SvXMLNumFormatContext::CreateAndInsert(), SvxXMLListStyleContext::CreateAndInsertAuto(), SvxXMLListStyleContext::CreateAndInsertLate(), SvXMLNumFormatContext::GetKey(), SdXMLStylesContext::getPageLayouts(), and XMLShapeStyleContext::SetAttribute().
|
inline |
Definition at line 81 of file xmlstyle.hxx.
Referenced by XMLPropStyleContext::CreateAndInsert(), SdXMLStylesContext::endFastElement(), XMLPropStyleContext::Finish(), SdXMLCustomShapeContext::SdXMLCustomShapeContext(), SdXMLShapeContext::SetStyle(), and XMLTextImportHelper::SetStyleAndAttrs().
|
inline |
Definition at line 110 of file xmlstyle.hxx.
Referenced by SvXMLStylesContext::CopyStylesToDoc(), XMLPropStyleContext::CreateAndInsert(), XMLTextStyleContext::createFastChildContext(), XMLTextStyleContext::FillPropertySet(), PageStyleContext::FillPropertySet_PageStyle(), and SvXMLStylesContext::FinishStyles().
|
inline |
Definition at line 93 of file xmlstyle.hxx.
Referenced by SvxXMLListStyleContext::CreateAndInsertLate(), XMLPropStyleContext::Finish(), and XMLTextMasterPageContext::Finish().
|
inline |
Definition at line 90 of file xmlstyle.hxx.
Referenced by XMLTextStyleContext::CreateAndInsert(), XMLTextShapeStyleContext::CreateAndInsert(), XMLPropStyleContext::Finish(), XMLTextStyleContext::Finish(), and XMLTextMasterPageContext::Finish().
|
virtual |
if this method returns true, its parent styles context should not add it to its container.
Transient styles can't be accessed from its parent SvXMLStylesContext after they are imported and the methods CreateAndInsert(), CreateAndInsertLate() and Finish() will not be called. The default return value is false
Reimplemented in SdXMLHeaderFooterDeclContext, XMLGradientStyleContext, XMLHatchStyleContext, XMLBitmapStyleContext, XMLTransGradientStyleContext, XMLMarkerStyleContext, and XMLDashStyleContext.
Definition at line 151 of file xmlstyle.cxx.
Referenced by SvXMLStylesContext::createFastChildContext().
|
inline |
Definition at line 87 of file xmlstyle.hxx.
References mbValid.
Referenced by SvXMLStylesContext::FinishStyles().
|
protectedvirtual |
Reimplemented in XMLPropStyleContext, XMLTextStyleContext, SvxXMLListStyleContext, XMLShapeStyleContext, XMLTextShapeStyleContext, PageStyleContext, XMLChartStyleContext, XMLFootnoteConfigurationImportContext, XMLIndexBibliographyConfigurationContext, XMLLineNumberingImportContext, XMLFontStyleContextFontFace, XMLFontStyleContextFontFaceUri, and XMLFontStyleContextFontFaceFormat.
Definition at line 73 of file xmlstyle.cxx.
References xmloff::token::IsXMLToken(), maDisplayName, maFollow, maLinked, maName, maParentName, mbHidden, mnFamily, STYLE, xmloff::token::XML_DISPLAY_NAME, XML_ELEMENT, xmloff::token::XML_FAMILY, xmloff::token::XML_HIDDEN, xmloff::token::XML_LINKED_STYLE_NAME, xmloff::token::XML_NAME, xmloff::token::XML_NEXT_STYLE_NAME, xmloff::token::XML_PARAGRAPH, xmloff::token::XML_PARENT_STYLE_NAME, and xmloff::token::XML_TEXT.
Referenced by XMLPropStyleContext::SetAttribute(), SvxXMLListStyleContext::SetAttribute(), XMLFontStyleContextFontFace::SetAttribute(), XMLFontStyleContextFontFaceUri::SetAttribute(), XMLFontStyleContextFontFaceFormat::SetAttribute(), and startFastElement().
|
inlineprotected |
Definition at line 64 of file xmlstyle.hxx.
Referenced by XMLPropStyleContext::CreateAndInsert().
|
virtual |
Reimplemented in XMLPropStyleContext, XMLTextStyleContext, XMLGraphicsDefaultStyle, and PageStyleContext.
Definition at line 135 of file xmlstyle.cxx.
Referenced by SvXMLStylesContext::CopyStylesToDoc().
|
inlineprotected |
Definition at line 63 of file xmlstyle.hxx.
Referenced by XMLFootnoteConfigurationImportContext::XMLFootnoteConfigurationImportContext().
|
inline |
Definition at line 91 of file xmlstyle.hxx.
Referenced by XMLPropStyleContext::CreateAndInsert(), SvxXMLListStyleContext::CreateAndInsertLate(), and XMLTextMasterPageContext::XMLTextMasterPageContext().
|
inline |
Definition at line 88 of file xmlstyle.hxx.
References mbValid.
Referenced by XMLPropStyleContext::CreateAndInsert(), SvxXMLListStyleContext::CreateAndInsertAuto(), and SvxXMLListStyleContext::CreateAndInsertLate().
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 127 of file xmlstyle.cxx.
References sax_fastparser::castToFastAttributeList(), and SetAttribute().
|
private |
Definition at line 44 of file xmlstyle.hxx.
|
private |
Definition at line 43 of file xmlstyle.hxx.
Referenced by SetAttribute().
|
private |
Definition at line 46 of file xmlstyle.hxx.
Referenced by SetAttribute().
|
private |
Definition at line 47 of file xmlstyle.hxx.
Referenced by SetAttribute().
|
private |
Definition at line 42 of file xmlstyle.hxx.
Referenced by SetAttribute().
|
private |
Definition at line 45 of file xmlstyle.hxx.
Referenced by SetAttribute().
|
private |
Definition at line 57 of file xmlstyle.hxx.
|
private |
Definition at line 48 of file xmlstyle.hxx.
Referenced by SetAttribute().
|
private |
Definition at line 55 of file xmlstyle.hxx.
|
private |
Definition at line 52 of file xmlstyle.hxx.
|
private |
Definition at line 50 of file xmlstyle.hxx.
Referenced by SetAttribute().