LibreOffice Module xmloff (master) 1
|
#include <ximpstyl.hxx>
Public Member Functions | |
SdXMLStylesContext (SdXMLImport &rImport, bool bIsAutoStyle) | |
virtual void SAL_CALL | endFastElement (sal_Int32 nElement) override |
endFastElement is called before a context will be destructed, but after an elements context has been parsed. More... | |
virtual rtl::Reference< SvXMLImportPropertyMapper > | GetImportPropertyMapper (XmlStyleFamily nFamily) const override |
void | SetMasterPageStyles (SdXMLMasterPageContext const &rMaster) const |
css::uno::Reference< css::container::XNameAccess > | getPageLayouts () const |
Public Member Functions inherited from SvXMLStylesContext | |
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 |
Protected Member Functions | |
virtual SvXMLStyleContext * | CreateStyleChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override |
virtual SvXMLStyleContext * | CreateStyleStyleChildContext (XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override |
virtual SvXMLStyleContext * | CreateDefaultStyleStyleChildContext (XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override |
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) |
Protected Member Functions inherited from SvXMLStylesContext | |
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 | |
const SdXMLImport & | GetSdImport () const |
SdXMLImport & | GetSdImport () |
void | ImpSetGraphicStyles () const |
void | ImpSetCellStyles () const |
void | ImpSetGraphicStyles (css::uno::Reference< css::container::XNameAccess > const &xPageStyles, XmlStyleFamily nFamily, std::u16string_view rPrefix) const |
Private Attributes | |
rtl::Reference< SvXMLImportPropertyMapper > | xPresImpPropMapper |
bool | mbIsAutoStyle |
std::unique_ptr< SvXMLNumFmtHelper > | mpNumFmtHelper |
std::unique_ptr< SvNumberFormatter > | mpNumFormatter |
Additional Inherited Members | |
Static Public Member Functions inherited from SvXMLStylesContext | |
static XmlStyleFamily | GetFamily (std::u16string_view rFamily) |
Definition at line 165 of file ximpstyl.hxx.
SdXMLStylesContext::SdXMLStylesContext | ( | SdXMLImport & | rImport, |
bool | bIsAutoStyle | ||
) |
Definition at line 850 of file ximpstyl.cxx.
References LANGUAGE_SYSTEM, mpNumFmtHelper, and mpNumFormatter.
|
protectedvirtual |
Reimplemented from SvXMLStylesContext.
Definition at line 159 of file xmlstyle.cxx.
|
overrideprotectedvirtual |
Reimplemented from SvXMLStylesContext.
Definition at line 935 of file ximpstyl.cxx.
References SvXMLStylesContext::CreateDefaultStyleStyleChildContext(), GetSdImport(), and SD_GRAPHICS_ID.
|
protectedvirtual |
Reimplemented from SvXMLStylesContext.
Definition at line 151 of file xmlstyle.cxx.
|
overrideprotectedvirtual |
Reimplemented from SvXMLStylesContext.
Definition at line 861 of file ximpstyl.cxx.
References BOOLEAN_STYLE, SvXMLStylesContext::CreateStyleChildContext(), CURRENCY_STYLE, DATE_STYLE, SvXMLImportContext::GetImport(), GetSdImport(), mpNumFmtHelper, NUMBER, NUMBER_STYLE, PERCENTAGE_STYLE, STYLE, TABLE, TEXT_STYLE, TIME_STYLE, xmloff::token::XML_BOOLEAN_STYLE, xmloff::token::XML_CURRENCY_STYLE, xmloff::token::XML_DATE_STYLE, xmloff::token::XML_DATE_TIME_DECL, XML_ELEMENT, xmloff::token::XML_FOOTER_DECL, xmloff::token::XML_HEADER_DECL, xmloff::token::XML_NUMBER_STYLE, xmloff::token::XML_PAGE_LAYOUT, xmloff::token::XML_PERCENTAGE_STYLE, xmloff::token::XML_PRESENTATION_PAGE_LAYOUT, xmloff::token::XML_STYLE, xmloff::token::XML_TABLE_TEMPLATE, xmloff::token::XML_TEXT_STYLE, xmloff::token::XML_TIME_STYLE, and XMLOFF_INFO_UNKNOWN_ELEMENT.
|
protectedvirtual |
Reimplemented from SvXMLStylesContext.
Definition at line 155 of file xmlstyle.cxx.
|
overrideprotectedvirtual |
Reimplemented from SvXMLStylesContext.
Definition at line 915 of file ximpstyl.cxx.
References SvXMLStylesContext::CreateStyleStyleChildContext(), GetSdImport(), SD_DRAWINGPAGE_ID, TABLE_CELL, TABLE_COLUMN, and TABLE_ROW.
|
overridevirtual |
endFastElement is called before a context will be destructed, but after an elements context has been parsed.
It may be used for actions that require virtual methods. The default is to do nothing.
Reimplemented from SvXMLImportContext.
Definition at line 996 of file ximpstyl.cxx.
References a, SvXMLStylesContext::FindStyleChildContext(), SvXMLStylesContext::FinishStyles(), SvXMLStyleContext::GetFamily(), SvXMLImportContext::GetImport(), getPageLayouts(), SvXMLStyleContext::GetParentName(), GetSdImport(), SvXMLStylesContext::GetStyle(), SvXMLStylesContext::GetStyleCount(), ImpSetCellStyles(), ImpSetGraphicStyles(), and mbIsAutoStyle.
|
overridevirtual |
Reimplemented from SvXMLStylesContext.
Definition at line 951 of file ximpstyl.cxx.
References SvXMLImportContext::GetImport(), SvXMLStylesContext::GetImportPropertyMapper(), SD_DRAWINGPAGE_ID, SvXMLImportContext::SvXMLImport, TABLE_CELL, TABLE_COLUMN, TABLE_ROW, and xPresImpPropMapper.
uno::Reference< container::XNameAccess > SdXMLStylesContext::getPageLayouts | ( | ) | const |
Definition at line 1301 of file ximpstyl.cxx.
References a, SvXMLStyleContext::GetName(), SvXMLStylesContext::GetStyle(), SvXMLStylesContext::GetStyleCount(), and comphelper::NameContainer_createInstance().
Referenced by endFastElement().
|
inlineprivate |
Definition at line 173 of file ximpstyl.hxx.
References SvXMLImportContext::GetImport().
|
inlineprivate |
Definition at line 172 of file ximpstyl.hxx.
References SvXMLImportContext::GetImport().
Referenced by CreateDefaultStyleStyleChildContext(), CreateStyleChildContext(), CreateStyleStyleChildContext(), endFastElement(), ImpSetCellStyles(), ImpSetGraphicStyles(), and SetMasterPageStyles().
|
private |
Definition at line 1096 of file ximpstyl.cxx.
References GetSdImport(), ImpSetGraphicStyles(), TABLE_CELL, TOOLS_WARN_EXCEPTION, and u.
Referenced by endFastElement().
|
private |
Definition at line 1082 of file ximpstyl.cxx.
References GetSdImport(), ImpSetGraphicStyles(), SD_GRAPHICS_ID, TOOLS_WARN_EXCEPTION, and u.
Referenced by endFastElement(), ImpSetCellStyles(), ImpSetGraphicStyles(), and SetMasterPageStyles().
|
private |
void SdXMLStylesContext::SetMasterPageStyles | ( | SdXMLMasterPageContext const & | rMaster | ) | const |
Definition at line 1056 of file ximpstyl.cxx.
References SdXMLMasterPageContext::GetDisplayName(), SdXMLImport::GetLocalDocStyleFamilies(), GetSdImport(), ImpSetGraphicStyles(), SD_PRESENTATION_ID, sPrefix, and TOOLS_WARN_EXCEPTION.
|
private |
Definition at line 168 of file ximpstyl.hxx.
Referenced by endFastElement().
|
private |
Definition at line 169 of file ximpstyl.hxx.
Referenced by CreateStyleChildContext(), and SdXMLStylesContext().
|
private |
Definition at line 170 of file ximpstyl.hxx.
Referenced by SdXMLStylesContext().
|
private |
Definition at line 167 of file ximpstyl.hxx.
Referenced by GetImportPropertyMapper().