LibreOffice Module xmloff (master) 1
|
#include <xmlstyle.hxx>
Public Member Functions | |
SvXMLStylesContext (SvXMLImport &rImport, bool bAutomatic=false) | |
virtual | ~SvXMLStylesContext () override |
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL | createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override |
void | AddStyle (SvXMLStyleContext &rNew) |
const SvXMLStyleContext * | FindStyleChildContext (XmlStyleFamily nFamily, const OUString &rName, bool bCreateIndex=false) const |
virtual rtl::Reference< SvXMLImportPropertyMapper > | GetImportPropertyMapper (XmlStyleFamily nFamily) const |
virtual css::uno::Reference< css::container::XNameContainer > | GetStylesContainer (XmlStyleFamily nFamily) const |
virtual OUString | GetServiceName (XmlStyleFamily nFamily) const |
css::uno::Reference< css::style::XAutoStyleFamily > | GetAutoStyles (XmlStyleFamily nFamily) const |
void | CopyAutoStylesToDoc () |
void | CopyStylesToDoc (bool bOverwrite, bool bFinish=true) |
void | FinishStyles (bool bOverwrite) |
void | dispose () |
bool | IsAutomaticStyle () const |
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 |
Static Public Member Functions | |
static XmlStyleFamily | GetFamily (std::u16string_view rFamily) |
Protected Member Functions | |
sal_uInt32 | GetStyleCount () const |
SvXMLStyleContext * | GetStyle (sal_uInt32 i) |
const SvXMLStyleContext * | GetStyle (sal_uInt32 i) const |
virtual SvXMLStyleContext * | CreateStyleChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) |
virtual SvXMLStyleContext * | CreateStyleStyleChildContext (XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) |
virtual SvXMLStyleContext * | CreateDefaultStyleStyleChildContext (XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) |
virtual bool | InsertStyleFamily (XmlStyleFamily nFamily) const |
Protected Member Functions inherited from SvXMLImportContext | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Private Member Functions | |
SvXMLStylesContext (SvXMLStylesContext const &)=delete | |
SvXMLStylesContext & | operator= (SvXMLStylesContext const &)=delete |
Private Attributes | |
std::unique_ptr< SvXMLStylesContext_Impl > | mpImpl |
css::uno::Reference< css::container::XNameContainer > | mxParaStyles |
css::uno::Reference< css::container::XNameContainer > | mxTextStyles |
css::uno::Reference< css::style::XAutoStyleFamily > | mxParaAutoStyles |
css::uno::Reference< css::style::XAutoStyleFamily > | mxTextAutoStyles |
rtl::Reference< SvXMLImportPropertyMapper > | mxParaImpPropMapper |
rtl::Reference< SvXMLImportPropertyMapper > | mxTextImpPropMapper |
rtl::Reference< SvXMLImportPropertyMapper > | mxShapeImpPropMapper |
rtl::Reference< SvXMLImportPropertyMapper > | mxChartImpPropMapper |
rtl::Reference< SvXMLImportPropertyMapper > | mxPageImpPropMapper |
Definition at line 123 of file xmlstyle.hxx.
|
privatedelete |
SvXMLStylesContext::SvXMLStylesContext | ( | SvXMLImport & | rImport, |
bool | bAutomatic = false |
||
) |
Definition at line 673 of file xmlstyle.cxx.
|
overridevirtual |
Definition at line 679 of file xmlstyle.cxx.
void SvXMLStylesContext::AddStyle | ( | SvXMLStyleContext & | rNew | ) |
Definition at line 707 of file xmlstyle.cxx.
References mpImpl.
void SvXMLStylesContext::CopyAutoStylesToDoc | ( | ) |
Definition at line 717 of file xmlstyle.cxx.
References SvXMLStyleContext::CreateAndInsert(), SvXMLStyleContext::GetFamily(), GetStyle(), GetStyleCount(), i, nCount, TABLE_CELL, TEXT_PARAGRAPH, and TEXT_TEXT.
void SvXMLStylesContext::CopyStylesToDoc | ( | bool | bOverwrite, |
bool | bFinish = true |
||
) |
Definition at line 732 of file xmlstyle.cxx.
References SvXMLStyleContext::CreateAndInsert(), SvXMLStyleContext::CreateAndInsertLate(), FinishStyles(), SvXMLStyleContext::GetFamily(), GetStyle(), GetStyleCount(), i, InsertStyleFamily(), SvXMLStyleContext::IsDefaultStyle(), nCount, and SvXMLStyleContext::SetDefaults().
|
protectedvirtual |
Reimplemented in SdXMLStylesContext, and SdXMLStylesContext.
Definition at line 453 of file xmlstyle.cxx.
Referenced by SdXMLStylesContext::CreateDefaultStyleStyleChildContext(), and CreateStyleChildContext().
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 683 of file xmlstyle.cxx.
References CreateStyleChildContext(), SvXMLImportContext::GetImport(), SvXMLStyleContext::IsTransient(), mpImpl, XML_ELEMENT, and xmloff::token::XML_THEME.
|
protectedvirtual |
Reimplemented in XMLFontStylesContext, SdXMLStylesContext, XMLFontStylesContext, XMLTextMasterStylesContext, and SdXMLStylesContext.
Definition at line 321 of file xmlstyle.cxx.
References sax_fastparser::castToFastAttributeList(), CreateDefaultStyleStyleChildContext(), CreateStyleStyleChildContext(), DATA_STYLE, DRAW, GetFamily(), SvXMLImportContext::GetImport(), SAL_WARN, STYLE, TEXT, xmloff::token::XML_BIBLIOGRAPHY_CONFIGURATION, xmloff::token::XML_DEFAULT_PAGE_LAYOUT, xmloff::token::XML_DEFAULT_STYLE, XML_ELEMENT, xmloff::token::XML_FAMILY, xmloff::token::XML_FILL_IMAGE, xmloff::token::XML_GRADIENT, xmloff::token::XML_HATCH, xmloff::token::XML_LINENUMBERING_CONFIGURATION, xmloff::token::XML_LIST_STYLE, xmloff::token::XML_MARKER, xmloff::token::XML_NOTES_CONFIGURATION, xmloff::token::XML_OPACITY, xmloff::token::XML_OUTLINE_STYLE, xmloff::token::XML_PAGE_LAYOUT, xmloff::token::XML_STROKE_DASH, and xmloff::token::XML_STYLE.
Referenced by createFastChildContext(), XMLFontStylesContext::CreateStyleChildContext(), and SdXMLStylesContext::CreateStyleChildContext().
|
protectedvirtual |
Reimplemented in SdXMLStylesContext, and SdXMLStylesContext.
Definition at line 419 of file xmlstyle.cxx.
References SvXMLImportContext::GetImport(), SCH_CHART_ID, SD_GRAPHICS_ID, SD_POOL_ID, SD_PRESENTATION_ID, TEXT_PARAGRAPH, TEXT_RUBY, TEXT_SECTION, and TEXT_TEXT.
Referenced by CreateStyleChildContext(), and SdXMLStylesContext::CreateStyleStyleChildContext().
void SvXMLStylesContext::dispose | ( | void | ) |
Definition at line 712 of file xmlstyle.cxx.
References mpImpl.
const SvXMLStyleContext * SvXMLStylesContext::FindStyleChildContext | ( | XmlStyleFamily | nFamily, |
const OUString & | rName, | ||
bool | bCreateIndex = false |
||
) | const |
Definition at line 783 of file xmlstyle.cxx.
References mpImpl.
Referenced by SvXMLNumFormatContext::CreateAndInsert(), SchXMLAxisContext::CreateAxis(), SdXMLGenericPageContext::endFastElement(), SdXMLStylesContext::endFastElement(), SchXMLImportHelper::FillAutoStyle(), XMLFontStylesContext::FillProperties(), XMLTableImportContext::ImportRow(), XMLTableImportContext::InitColumns(), SdXMLGenericPageContext::SetPageMaster(), SchXMLSeries2Context::setStylesToDataPoints(), SchXMLSeries2Context::setStylesToSeries(), SchXMLSeries2Context::setStylesToStatisticsObjects(), SchXMLEquationContext::startFastElement(), SchXMLPlotAreaContext::startFastElement(), and SchXMLSeries2Context::startFastElement().
void SvXMLStylesContext::FinishStyles | ( | bool | bOverwrite | ) |
Definition at line 769 of file xmlstyle.cxx.
References SvXMLStyleContext::Finish(), SvXMLStyleContext::GetFamily(), GetStyle(), GetStyleCount(), i, InsertStyleFamily(), SvXMLStyleContext::IsDefaultStyle(), SvXMLStyleContext::IsValid(), and nCount.
Referenced by CopyStylesToDoc(), and SdXMLStylesContext::endFastElement().
Reference< XAutoStyleFamily > SvXMLStylesContext::GetAutoStyles | ( | XmlStyleFamily | nFamily | ) | const |
Definition at line 605 of file xmlstyle.cxx.
References Any, SvXMLImportContext::GetImport(), gsCharacterStyles(), gsParagraphStyles(), mxParaAutoStyles, mxTextAutoStyles, sName, TEXT_PARAGRAPH, and TEXT_TEXT.
Referenced by XMLPropStyleContext::CreateAndInsert().
|
static |
Definition at line 465 of file xmlstyle.cxx.
References DATA_STYLE, xmloff::token::IsXMLToken(), SCH_CHART_ID, SD_DRAWINGPAGE_ID, SD_GRAPHICS_ID, SD_POOL_ID, SD_PRESENTATION_ID, TABLE_CELL, TABLE_COLUMN, TABLE_ROW, TABLE_TABLE, TEXT_PARAGRAPH, TEXT_RUBY, TEXT_SECTION, TEXT_TEXT, xmloff::token::XML_DATA_STYLE, xmloff::token::XML_PARAGRAPH, xmloff::token::XML_RUBY, xmloff::token::XML_SECTION, XML_STYLE_FAMILY_SCH_CHART_NAME, XML_STYLE_FAMILY_SD_DRAWINGPAGE_NAME, XML_STYLE_FAMILY_SD_GRAPHICS_NAME, XML_STYLE_FAMILY_SD_POOL_NAME, XML_STYLE_FAMILY_SD_PRESENTATION_NAME, xmloff::token::XML_TABLE, xmloff::token::XML_TABLE_CELL, xmloff::token::XML_TABLE_COLUMN, xmloff::token::XML_TABLE_ROW, and xmloff::token::XML_TEXT.
Referenced by CreateStyleChildContext(), and XMLPropStyleContext::SetAttribute().
|
virtual |
Reimplemented in SdXMLStylesContext.
Definition at line 522 of file xmlstyle.cxx.
References SvXMLImportContext::GetImport(), mxChartImpPropMapper, mxPageImpPropMapper, mxParaImpPropMapper, mxShapeImpPropMapper, mxTextImpPropMapper, PAGE_MASTER, SCH_CHART_ID, SD_GRAPHICS_ID, SD_POOL_ID, SD_PRESENTATION_ID, SvXMLImportContext::SvXMLImport, TEXT_PARAGRAPH, TEXT_RUBY, TEXT_SECTION, and TEXT_TEXT.
Referenced by XMLPropStyleContext::CreateAndInsert(), XMLTextStyleContext::createFastChildContext(), XMLGraphicsDefaultStyle::createFastChildContext(), XMLShapeStyleContext::createFastChildContext(), XMLTextShapeStyleContext::createFastChildContext(), PageStyleContext::createFastChildContext(), XMLChartStyleContext::createFastChildContext(), XMLPropStyleContext::deactivateOldFillStyleDefinitions(), XMLPropStyleContext::doNewDrawingLayerFillStyleDefinitionsExist(), XMLTextStyleContext::FillPropertySet(), XMLShapeStyleContext::FillPropertySet(), XMLDrawingPageStyleContext::FillPropertySet(), PageStyleContext::FillPropertySet_PageStyle(), SdXMLStylesContext::GetImportPropertyMapper(), SchXMLTools::getPropertyFromContext(), and XMLPropStyleContext::translateNameBasedDrawingLayerFillStyleDefinitionsToStyleDisplayNames().
|
virtual |
Definition at line 656 of file xmlstyle.cxx.
References gsParaStyleServiceName(), gsTextStyleServiceName(), sServiceName, TEXT_PARAGRAPH, and TEXT_TEXT.
|
protected |
Definition at line 306 of file xmlstyle.cxx.
Referenced by CopyAutoStylesToDoc(), CopyStylesToDoc(), SdXMLStylesContext::endFastElement(), FinishStyles(), and SdXMLStylesContext::getPageLayouts().
|
protected |
Definition at line 311 of file xmlstyle.cxx.
|
protected |
Definition at line 301 of file xmlstyle.cxx.
References mpImpl.
Referenced by CopyAutoStylesToDoc(), CopyStylesToDoc(), SdXMLStylesContext::endFastElement(), FinishStyles(), and SdXMLStylesContext::getPageLayouts().
|
virtual |
Definition at line 628 of file xmlstyle.cxx.
References Any, SvXMLImportContext::GetImport(), gsCharacterStyles(), gsParagraphStyles(), mxParaStyles, mxTextStyles, sName, TEXT_PARAGRAPH, and TEXT_TEXT.
Referenced by XMLPropStyleContext::CreateAndInsert().
|
protectedvirtual |
Reimplemented in XMLTextMasterStylesContext.
Definition at line 460 of file xmlstyle.cxx.
Referenced by CopyStylesToDoc(), and FinishStyles().
bool SvXMLStylesContext::IsAutomaticStyle | ( | ) | const |
Definition at line 316 of file xmlstyle.cxx.
References mpImpl.
Referenced by XMLPropStyleContext::CreateAndInsert(), and XMLTextStyleContext::FillPropertySet().
|
privatedelete |
References dispose().
|
private |
Definition at line 125 of file xmlstyle.hxx.
Referenced by AddStyle(), createFastChildContext(), dispose(), FindStyleChildContext(), GetStyle(), GetStyleCount(), and IsAutomaticStyle().
|
mutableprivate |
Definition at line 139 of file xmlstyle.hxx.
Referenced by GetImportPropertyMapper().
|
mutableprivate |
Definition at line 140 of file xmlstyle.hxx.
Referenced by GetImportPropertyMapper().
|
private |
Definition at line 132 of file xmlstyle.hxx.
Referenced by GetAutoStyles().
|
private |
Definition at line 136 of file xmlstyle.hxx.
Referenced by GetImportPropertyMapper().
|
private |
Definition at line 128 of file xmlstyle.hxx.
Referenced by GetStylesContainer().
|
private |
Definition at line 138 of file xmlstyle.hxx.
Referenced by GetImportPropertyMapper().
|
private |
Definition at line 134 of file xmlstyle.hxx.
Referenced by GetAutoStyles().
|
private |
Definition at line 137 of file xmlstyle.hxx.
Referenced by GetImportPropertyMapper().
|
private |
Definition at line 130 of file xmlstyle.hxx.
Referenced by GetStylesContainer().