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 OUString & | GetAutoName () const |
const OUString & | GetParentName () const |
const OUString & | GetFollow () 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... | |
![]() | |
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 | 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 () final override throw () |
virtual void SAL_CALL | release () final override throw () |
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 OUString &rName) |
![]() | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Private Attributes | |
OUString | maName |
OUString | maDisplayName |
OUString | maAutoName |
OUString | maParentName |
OUString | maFollow |
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 101 of file xmlstyle.cxx.
References mbValid.
|
overridevirtual |
Definition at line 113 of file xmlstyle.cxx.
|
virtual |
Reimplemented in SvXMLNumFormatContext, XMLPropStyleContext, XMLTextStyleContext, XMLIndexBibliographyConfigurationContext, XMLLineNumberingImportContext, and XMLTextShapeStyleContext.
Definition at line 129 of file xmlstyle.cxx.
Referenced by SvXMLStylesContext::CopyAutoStylesToDoc(), and SvXMLStylesContext::CopyStylesToDoc().
|
virtual |
Reimplemented in SvxXMLListStyleContext.
Definition at line 133 of file xmlstyle.cxx.
Referenced by SvXMLStylesContext::CopyStylesToDoc().
|
virtual |
Reimplemented in XMLPropStyleContext, XMLTextStyleContext, XMLFootnoteConfigurationImportContext, XMLTextMasterPageContext, XMLShapeStyleContext, and XMLTextShapeStyleContext.
Definition at line 137 of file xmlstyle.cxx.
Referenced by SvXMLStylesContext::FinishStyles().
|
inline |
Definition at line 79 of file xmlstyle.hxx.
Referenced by XMLTextStyleContext::FillPropertySet().
|
inline |
Definition at line 78 of file xmlstyle.hxx.
Referenced by XMLTextStyleContext::CreateAndInsert(), XMLPropStyleContext::CreateAndInsert(), SvxXMLListStyleContext::CreateAndInsertLate(), and XMLShapeStyleContext::SetAttribute().
|
inline |
Definition at line 83 of file xmlstyle.hxx.
Referenced by SvXMLStylesContext::CopyAutoStylesToDoc(), SvXMLStylesContext::CopyStylesToDoc(), XMLPropStyleContext::Create(), XMLTextStyleContext::CreateAndInsert(), XMLPropStyleContext::CreateAndInsert(), XMLGraphicsDefaultStyle::createFastChildContext(), PageStyleContext::createFastChildContext(), XMLTextShapeStyleContext::createFastChildContext(), XMLChartStyleContext::createFastChildContext(), XMLShapeStyleContext::createFastChildContext(), XMLTextStyleContext::createFastChildContext(), XMLPropStyleContext::createFastChildContext(), XMLPropStyleContext::deactivateOldFillStyleDefinitions(), XMLPropStyleContext::doNewDrawingLayerFillStyleDefinitionsExist(), SdXMLStylesContext::endFastElement(), XMLDrawingPageStyleContext::FillPropertySet(), XMLShapeStyleContext::FillPropertySet(), XMLTextStyleContext::FillPropertySet(), XMLPropStyleContext::FillPropertySet(), PageStyleContext::FillPropertySet_PageStyle(), SvXMLStylesContext_Impl::FindStyleChildContext(), XMLPropStyleContext::Finish(), SvXMLStylesContext::FinishStyles(), SchXMLTools::getPropertyFromContext(), XMLShapeStyleContext::SetAttribute(), XMLGraphicsDefaultStyle::SetDefaults(), XMLTextStyleContext::SetDefaults(), and XMLPropStyleContext::translateNameBasedDrawingLayerFillStyleDefinitionsToStyleDisplayNames().
|
inline |
Definition at line 81 of file xmlstyle.hxx.
Referenced by XMLPropStyleContext::Finish().
|
inline |
Definition at line 77 of file xmlstyle.hxx.
Referenced by XMLPropStyleContext::CreateAndInsert(), SvXMLNumFormatContext::CreateAndInsert(), SvxXMLListStyleContext::CreateAndInsertAuto(), SvxXMLListStyleContext::CreateAndInsertLate(), SvXMLStylesContext_Impl::FindStyleChildContext(), SvXMLNumFormatContext::GetKey(), SdXMLStylesContext::getPageLayouts(), and XMLShapeStyleContext::SetAttribute().
|
inline |
Definition at line 80 of file xmlstyle.hxx.
Referenced by XMLPropStyleContext::CreateAndInsert(), SdXMLStylesContext::endFastElement(), XMLPropStyleContext::Finish(), SdXMLCustomShapeContext::SdXMLCustomShapeContext(), SdXMLShapeContext::SetStyle(), and XMLTextImportHelper::SetStyleAndAttrs().
|
inline |
Definition at line 108 of file xmlstyle.hxx.
Referenced by SvXMLStylesContext::CopyStylesToDoc(), XMLPropStyleContext::CreateAndInsert(), XMLTextStyleContext::createFastChildContext(), XMLTextStyleContext::FillPropertySet(), PageStyleContext::FillPropertySet_PageStyle(), and SvXMLStylesContext::FinishStyles().
|
inline |
Definition at line 91 of file xmlstyle.hxx.
Referenced by SvxXMLListStyleContext::CreateAndInsertLate(), XMLTextMasterPageContext::Finish(), and XMLPropStyleContext::Finish().
|
inline |
Definition at line 88 of file xmlstyle.hxx.
Referenced by XMLTextShapeStyleContext::CreateAndInsert(), XMLTextStyleContext::CreateAndInsert(), XMLTextMasterPageContext::Finish(), XMLTextStyleContext::Finish(), and XMLPropStyleContext::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, XMLDashStyleContext, XMLMarkerStyleContext, XMLTransGradientStyleContext, XMLBitmapStyleContext, XMLHatchStyleContext, and XMLGradientStyleContext.
Definition at line 141 of file xmlstyle.cxx.
Referenced by SvXMLStylesContext::createFastChildContext().
|
inline |
Definition at line 85 of file xmlstyle.hxx.
References mbValid.
Referenced by SvXMLStylesContext::FinishStyles().
|
protectedvirtual |
Reimplemented in XMLFontStyleContextFontFaceFormat, XMLFontStyleContextFontFaceUri, XMLPropStyleContext, XMLIndexBibliographyConfigurationContext, XMLLineNumberingImportContext, XMLFootnoteConfigurationImportContext, XMLFontStyleContextFontFace, XMLTextStyleContext, SvxXMLListStyleContext, XMLShapeStyleContext, XMLTextShapeStyleContext, PageStyleContext, and XMLChartStyleContext.
Definition at line 66 of file xmlstyle.cxx.
References xmloff::token::IsXMLToken(), maDisplayName, maFollow, maName, maParentName, mbHidden, mnFamily, XMLImageStyle::rValue, STYLE, xmloff::token::XML_DISPLAY_NAME, XML_ELEMENT, xmloff::token::XML_FAMILY, xmloff::token::XML_HIDDEN, 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 SvxXMLListStyleContext::SetAttribute(), XMLFontStyleContextFontFace::SetAttribute(), XMLPropStyleContext::SetAttribute(), XMLFontStyleContextFontFaceUri::SetAttribute(), XMLFontStyleContextFontFaceFormat::SetAttribute(), and startFastElement().
|
inlineprotected |
Definition at line 63 of file xmlstyle.hxx.
Referenced by XMLPropStyleContext::CreateAndInsert().
|
virtual |
Reimplemented in XMLPropStyleContext, XMLTextStyleContext, PageStyleContext, and XMLGraphicsDefaultStyle.
Definition at line 125 of file xmlstyle.cxx.
Referenced by SvXMLStylesContext::CopyStylesToDoc().
|
inlineprotected |
Definition at line 62 of file xmlstyle.hxx.
Referenced by XMLFootnoteConfigurationImportContext::XMLFootnoteConfigurationImportContext().
|
inline |
Definition at line 89 of file xmlstyle.hxx.
Referenced by XMLPropStyleContext::CreateAndInsert(), SvxXMLListStyleContext::CreateAndInsertLate(), and XMLTextMasterPageContext::XMLTextMasterPageContext().
|
inline |
Definition at line 86 of file xmlstyle.hxx.
References mbValid.
Referenced by XMLPropStyleContext::CreateAndInsert(), SvxXMLListStyleContext::CreateAndInsertAuto(), and SvxXMLListStyleContext::CreateAndInsertLate().
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 117 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 42 of file xmlstyle.hxx.
Referenced by SetAttribute().
|
private |
Definition at line 45 of file xmlstyle.hxx.
Referenced by SetAttribute().
|
private |
Definition at line 56 of file xmlstyle.hxx.
|
private |
Definition at line 47 of file xmlstyle.hxx.
Referenced by SetAttribute().
|
private |
Definition at line 54 of file xmlstyle.hxx.
|
private |
Definition at line 51 of file xmlstyle.hxx.
|
private |
Definition at line 49 of file xmlstyle.hxx.
Referenced by SetAttribute().