#include <xmlstyle.hxx>


Public Member Functions | |
| TYPEINFO () | |
| SvXMLStylesContext (SvXMLImport &rImport, sal_uInt16 nPrfx, const ::rtl::OUString &rLName, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &xAttrList, sal_Bool bAutomatic=sal_False) | |
| virtual | ~SvXMLStylesContext () |
| virtual SvXMLImportContext * | CreateChildContext (sal_uInt16 nPrefix, const ::rtl::OUString &rLocalName, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &xAttrList) |
| virtual void | EndElement () |
| void | AddStyle (SvXMLStyleContext &rNew) |
| const SvXMLStyleContext * | FindStyleChildContext (sal_uInt16 nFamily, const ::rtl::OUString &rName, BOOL bCreateIndex=sal_False) const |
| virtual sal_uInt16 | GetFamily (const ::rtl::OUString &rFamily) const |
| virtual UniReference < SvXMLImportPropertyMapper > | GetImportPropertyMapper (sal_uInt16 nFamily) const |
| virtual ::com::sun::star::uno::Reference < ::com::sun::star::container::XNameContainer > | GetStylesContainer (sal_uInt16 nFamily) const |
| virtual ::rtl::OUString | GetServiceName (sal_uInt16 nFamily) const |
| virtual ::com::sun::star::uno::Reference < ::com::sun::star::style::XAutoStyleFamily > | GetAutoStyles (sal_uInt16 nFamily) const |
| void | CopyAutoStylesToDoc () |
| void | CopyStylesToDoc (sal_Bool bOverwrite, sal_Bool bFinish=sal_True) |
| void | FinishStyles (sal_Bool bOverwrite) |
| void | Clear () |
| sal_Bool | IsAutomaticStyle () const |
Protected Member Functions | |
| sal_uInt32 | GetStyleCount () const |
| SvXMLStyleContext * | GetStyle (sal_uInt32 i) |
| const SvXMLStyleContext * | GetStyle (sal_uInt32 i) const |
| virtual SvXMLStyleContext * | CreateStyleChildContext (sal_uInt16 nPrefix, const ::rtl::OUString &rLocalName, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &xAttrList) |
| virtual SvXMLStyleContext * | CreateStyleStyleChildContext (sal_uInt16 nFamily, sal_uInt16 nPrefix, const ::rtl::OUString &rLocalName, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &xAttrList) |
| virtual SvXMLStyleContext * | CreateDefaultStyleStyleChildContext (sal_uInt16 nFamily, sal_uInt16 nPrefix, const ::rtl::OUString &rLocalName, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &xAttrList) |
| virtual sal_Bool | InsertStyleFamily (sal_uInt16 nFamily) const |
Private Member Functions | |
| SAL_DLLPRIVATE const SvXMLTokenMap & | GetStyleStylesElemTokenMap () |
| SAL_DLLPRIVATE | SvXMLStylesContext (SvXMLStylesContext &) |
| SAL_DLLPRIVATE void | operator= (SvXMLStylesContext &) |
Private Attributes | |
| const ::rtl::OUString | msParaStyleServiceName |
| const ::rtl::OUString | msTextStyleServiceName |
| SvXMLStylesContext_Impl * | mpImpl |
| SvXMLTokenMap * | mpStyleStylesElemTokenMap |
| ::com::sun::star::uno::Reference < ::com::sun::star::container::XNameContainer > | mxParaStyles |
| ::com::sun::star::uno::Reference < ::com::sun::star::container::XNameContainer > | mxTextStyles |
| ::com::sun::star::uno::Reference < ::com::sun::star::style::XAutoStyleFamily > | mxParaAutoStyles |
| ::com::sun::star::uno::Reference < ::com::sun::star::style::XAutoStyleFamily > | mxTextAutoStyles |
| UniReference < SvXMLImportPropertyMapper > | mxParaImpPropMapper |
| UniReference < SvXMLImportPropertyMapper > | mxTextImpPropMapper |
| UniReference < SvXMLImportPropertyMapper > | mxShapeImpPropMapper |
| UniReference < SvXMLImportPropertyMapper > | mxChartImpPropMapper |
| UniReference < SvXMLImportPropertyMapper > | mxPageImpPropMapper |
Definition at line 164 of file xmlstyle.hxx.
| SAL_DLLPRIVATE SvXMLStylesContext::SvXMLStylesContext | ( | SvXMLStylesContext & | ) | [private] |
| SvXMLStylesContext::SvXMLStylesContext | ( | SvXMLImport & | rImport, | |
| sal_uInt16 | nPrfx, | |||
| const ::rtl::OUString & | rLName, | |||
| const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & | xAttrList, | |||
| sal_Bool | bAutomatic = sal_False | |||
| ) |
| SvXMLStylesContext::~SvXMLStylesContext | ( | ) | [virtual] |
| const SvXMLTokenMap & SvXMLStylesContext::GetStyleStylesElemTokenMap | ( | ) | [private] |
Definition at line 107 of file xmlstyle.cxx.
References aStyleStylesElemTokenMap, and mpStyleStylesElemTokenMap.
| SAL_DLLPRIVATE void SvXMLStylesContext::operator= | ( | SvXMLStylesContext & | ) | [private] |
| sal_uInt32 SvXMLStylesContext::GetStyleCount | ( | ) | const [protected] |
Definition at line 408 of file xmlstyle.cxx.
References mpImpl.
Referenced by CopyAutoStylesToDoc(), CopyStylesToDoc(), SdXMLStylesContext::EndElement(), FinishStyles(), and SdXMLStylesContext::getPageLayouts().
| SvXMLStyleContext * SvXMLStylesContext::GetStyle | ( | sal_uInt32 | i | ) | [protected] |
Definition at line 413 of file xmlstyle.cxx.
References mpImpl.
Referenced by CopyAutoStylesToDoc(), CopyStylesToDoc(), SdXMLStylesContext::EndElement(), FinishStyles(), and SdXMLStylesContext::getPageLayouts().
| const SvXMLStyleContext * SvXMLStylesContext::GetStyle | ( | sal_uInt32 | i | ) | const [protected] |
| virtual SvXMLStyleContext* SvXMLStylesContext::CreateStyleChildContext | ( | sal_uInt16 | nPrefix, | |
| const ::rtl::OUString & | rLocalName, | |||
| const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & | xAttrList | |||
| ) | [protected, virtual] |
Reimplemented in XMLFontStylesContext, and XMLTextMasterStylesContext.
Referenced by XMLFontStylesContext::CreateStyleChildContext().
| virtual SvXMLStyleContext* SvXMLStylesContext::CreateStyleStyleChildContext | ( | sal_uInt16 | nFamily, | |
| sal_uInt16 | nPrefix, | |||
| const ::rtl::OUString & | rLocalName, | |||
| const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & | xAttrList | |||
| ) | [protected, virtual] |
Reimplemented in XMLTextMasterStylesContext.
| virtual SvXMLStyleContext* SvXMLStylesContext::CreateDefaultStyleStyleChildContext | ( | sal_uInt16 | nFamily, | |
| sal_uInt16 | nPrefix, | |||
| const ::rtl::OUString & | rLocalName, | |||
| const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & | xAttrList | |||
| ) | [protected, virtual] |
Reimplemented in SdXMLStylesContext.
| sal_Bool SvXMLStylesContext::InsertStyleFamily | ( | sal_uInt16 | nFamily | ) | const [protected, virtual] |
Reimplemented in XMLTextMasterStylesContext.
Definition at line 605 of file xmlstyle.cxx.
Referenced by CopyStylesToDoc(), and FinishStyles().
| SvXMLStylesContext::TYPEINFO | ( | ) |
Reimplemented from SvXMLImportContext.
Reimplemented in SdXMLStylesContext, XMLFontStylesContext, and XMLTextMasterStylesContext.
| virtual SvXMLImportContext* SvXMLStylesContext::CreateChildContext | ( | sal_uInt16 | nPrefix, | |
| const ::rtl::OUString & | rLocalName, | |||
| const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & | xAttrList | |||
| ) | [virtual] |
Reimplemented from SvXMLImportContext.
| void SvXMLStylesContext::EndElement | ( | ) | [virtual] |
Reimplemented from SvXMLImportContext.
Reimplemented in SdXMLStylesContext.
Definition at line 891 of file xmlstyle.cxx.
| void SvXMLStylesContext::AddStyle | ( | SvXMLStyleContext & | rNew | ) |
Definition at line 895 of file xmlstyle.cxx.
References mpImpl.
Referenced by SvXMLImport::SetAutoStyles().
| const SvXMLStyleContext* SvXMLStylesContext::FindStyleChildContext | ( | sal_uInt16 | nFamily, | |
| const ::rtl::OUString & | rName, | |||
| BOOL | bCreateIndex = sal_False | |||
| ) | const |
Referenced by XMLLineNumberingImportContext::CreateAndInsert(), SvXMLNumFormatContext::CreateAndInsert(), SchXMLAxisContext::CreateAxis(), SchXMLAxisContext::CreateGrid(), SdXMLStylesContext::EndElement(), SdXMLGenericPageContext::EndElement(), xmloff::OFormLayerXMLImport_Impl::getStyleElement(), XMLTableImportContext::ImportRow(), XMLTableImportContext::InitColumns(), lcl_NumberFormatStyleToProperty(), SdXMLGenericPageContext::SetLayout(), SdXMLGenericPageContext::SetStyle(), SchXMLSeries2Context::setStylesToDataPoints(), SchXMLSeries2Context::setStylesToSeries(), SchXMLSeries2Context::setStylesToStatisticsObjects(), and XMLCellImportContext::XMLCellImportContext().
| sal_uInt16 SvXMLStylesContext::GetFamily | ( | const ::rtl::OUString & | rFamily | ) | const [virtual] |
Definition at line 610 of file xmlstyle.cxx.
References xmloff::token::IsXMLToken(), xmloff::token::XML_DATA_STYLE, xmloff::token::XML_PARAGRAPH, xmloff::token::XML_RUBY, xmloff::token::XML_SECTION, XML_STYLE_FAMILY_DATA_STYLE, XML_STYLE_FAMILY_SCH_CHART_ID, XML_STYLE_FAMILY_SCH_CHART_NAME, XML_STYLE_FAMILY_SD_DRAWINGPAGE_ID, XML_STYLE_FAMILY_SD_DRAWINGPAGE_NAME, XML_STYLE_FAMILY_SD_GRAPHICS_ID, XML_STYLE_FAMILY_SD_GRAPHICS_NAME, XML_STYLE_FAMILY_SD_POOL_ID, XML_STYLE_FAMILY_SD_POOL_NAME, XML_STYLE_FAMILY_SD_PRESENTATION_ID, XML_STYLE_FAMILY_SD_PRESENTATION_NAME, XML_STYLE_FAMILY_TABLE_CELL, XML_STYLE_FAMILY_TABLE_COLUMN, XML_STYLE_FAMILY_TABLE_ROW, XML_STYLE_FAMILY_TABLE_TABLE, XML_STYLE_FAMILY_TEXT_PARAGRAPH, XML_STYLE_FAMILY_TEXT_RUBY, XML_STYLE_FAMILY_TEXT_SECTION, XML_STYLE_FAMILY_TEXT_TEXT, xmloff::token::XML_TABLE, xmloff::token::XML_TABLE_CELL, xmloff::token::XML_TABLE_COLUMN, xmloff::token::XML_TABLE_ROW, and xmloff::token::XML_TEXT.
| UniReference< SvXMLImportPropertyMapper > SvXMLStylesContext::GetImportPropertyMapper | ( | sal_uInt16 | nFamily | ) | const [virtual] |
Reimplemented in SdXMLStylesContext.
Definition at line 668 of file xmlstyle.cxx.
References SvXMLImportContext::GetImport(), SvXMLImport::GetTextImport(), UniReference< T >::is(), mxChartImpPropMapper, mxPageImpPropMapper, mxParaImpPropMapper, mxShapeImpPropMapper, mxTextImpPropMapper, XML_STYLE_FAMILY_PAGE_MASTER, XML_STYLE_FAMILY_SCH_CHART_ID, XML_STYLE_FAMILY_SD_GRAPHICS_ID, XML_STYLE_FAMILY_SD_POOL_ID, XML_STYLE_FAMILY_SD_PRESENTATION_ID, XML_STYLE_FAMILY_TEXT_PARAGRAPH, XML_STYLE_FAMILY_TEXT_RUBY, XML_STYLE_FAMILY_TEXT_SECTION, and XML_STYLE_FAMILY_TEXT_TEXT.
Referenced by SdXMLDrawingPageStyleContext::Finish(), SdXMLStylesContext::GetImportPropertyMapper(), and SchXMLTools::getPropertyFromContext().
| Reference< XNameContainer > SvXMLStylesContext::GetStylesContainer | ( | sal_uInt16 | nFamily | ) | const |
Definition at line 781 of file xmlstyle.cxx.
References SvXMLImportContext::GetImport(), mxParaStyles, mxTextStyles, OUString, XML_STYLE_FAMILY_TEXT_PARAGRAPH, and XML_STYLE_FAMILY_TEXT_TEXT.
| OUString SvXMLStylesContext::GetServiceName | ( | sal_uInt16 | nFamily | ) | const |
Definition at line 832 of file xmlstyle.cxx.
References msParaStyleServiceName, msTextStyleServiceName, XML_STYLE_FAMILY_TEXT_PARAGRAPH, and XML_STYLE_FAMILY_TEXT_TEXT.
| Reference< XAutoStyleFamily > SvXMLStylesContext::GetAutoStyles | ( | sal_uInt16 | nFamily | ) | const |
Definition at line 749 of file xmlstyle.cxx.
References SvXMLImportContext::GetImport(), mxParaAutoStyles, mxTextAutoStyles, OUString, XML_STYLE_FAMILY_TEXT_PARAGRAPH, and XML_STYLE_FAMILY_TEXT_TEXT.
| void SvXMLStylesContext::CopyAutoStylesToDoc | ( | ) |
Definition at line 905 of file xmlstyle.cxx.
References SvXMLStyleContext::CreateAndInsert(), SvXMLStyleContext::GetFamily(), GetStyle(), GetStyleCount(), XML_STYLE_FAMILY_TABLE_CELL, XML_STYLE_FAMILY_TEXT_PARAGRAPH, and XML_STYLE_FAMILY_TEXT_TEXT.
| void SvXMLStylesContext::CopyStylesToDoc | ( | sal_Bool | bOverwrite, | |
| sal_Bool | bFinish = sal_True | |||
| ) |
Definition at line 920 of file xmlstyle.cxx.
References SvXMLStyleContext::CreateAndInsert(), SvXMLStyleContext::CreateAndInsertLate(), FinishStyles(), SvXMLStyleContext::GetFamily(), GetStyle(), GetStyleCount(), InsertStyleFamily(), SvXMLStyleContext::IsDefaultStyle(), and SvXMLStyleContext::SetDefaults().
| void SvXMLStylesContext::FinishStyles | ( | sal_Bool | bOverwrite | ) |
Definition at line 955 of file xmlstyle.cxx.
References SvXMLStyleContext::Finish(), SvXMLStyleContext::GetFamily(), GetStyle(), GetStyleCount(), InsertStyleFamily(), SvXMLStyleContext::IsDefaultStyle(), and SvXMLStyleContext::IsValid().
Referenced by CopyStylesToDoc(), and SdXMLStylesContext::EndElement().
| void SvXMLStylesContext::Clear | ( | ) |
Definition at line 900 of file xmlstyle.cxx.
References mpImpl.
Referenced by XMLShapeImportHelper::~XMLShapeImportHelper().
| sal_Bool SvXMLStylesContext::IsAutomaticStyle | ( | ) | const |
const ::rtl::OUString SvXMLStylesContext::msParaStyleServiceName [private] |
const ::rtl::OUString SvXMLStylesContext::msTextStyleServiceName [private] |
SvXMLStylesContext_Impl* SvXMLStylesContext::mpImpl [private] |
Definition at line 169 of file xmlstyle.hxx.
Referenced by AddStyle(), Clear(), GetStyle(), GetStyleCount(), IsAutomaticStyle(), and ~SvXMLStylesContext().
Definition at line 170 of file xmlstyle.hxx.
Referenced by GetStyleStylesElemTokenMap(), and ~SvXMLStylesContext().
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > SvXMLStylesContext::mxParaStyles [private] |
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > SvXMLStylesContext::mxTextStyles [private] |
::com::sun::star::uno::Reference< ::com::sun::star::style::XAutoStyleFamily > SvXMLStylesContext::mxParaAutoStyles [private] |
::com::sun::star::uno::Reference< ::com::sun::star::style::XAutoStyleFamily > SvXMLStylesContext::mxTextAutoStyles [private] |
UniReference< SvXMLImportPropertyMapper > SvXMLStylesContext::mxChartImpPropMapper [mutable, private] |
UniReference< SvXMLImportPropertyMapper > SvXMLStylesContext::mxPageImpPropMapper [mutable, private] |
1.5.6