LibreOffice Module xmloff (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SchXMLImport Class Referencefinal

#include <SchXMLImport.hxx>

Inheritance diagram for SchXMLImport:
Collaboration diagram for SchXMLImport:

Public Member Functions

 SchXMLImport (const css::uno::Reference< css::uno::XComponentContext > &xContext, OUString const &implementationName, SvXMLImportFlags nImportFlags)
virtual ~SchXMLImport () override throw ()
SvXMLImportContextCreateStylesContext ()
virtual void SAL_CALL setTargetDocument (const css::uno::Reference< css::lang::XComponent > &xDoc) override
- Public Member Functions inherited from SvXMLImport
 SvXMLImport (const css::uno::Reference< css::uno::XComponentContext > &xContext, OUString const &implementationName, SvXMLImportFlags nImportFlags=SvXMLImportFlags::ALL, const css::uno::Sequence< OUString > &sSupportedServiceNames={})
void cleanup () throw ()
virtual ~SvXMLImport () override throw ()
virtual void SAL_CALL startDocument () override
virtual void SAL_CALL endDocument () override
virtual void SAL_CALL startElement (const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
virtual void SAL_CALL endElement (const OUString &aName) override
virtual void SAL_CALL characters (const OUString &aChars) override
virtual void SAL_CALL ignorableWhitespace (const OUString &aWhitespaces) override
virtual void SAL_CALL processingInstruction (const OUString &aTarget, const OUString &aData) override
virtual void SAL_CALL setDocumentLocator (const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override
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
virtual void SAL_CALL endUnknownElement (const OUString &Namespace, const OUString &Name) override
virtual css::uno::Reference< css::xml::sax::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 startCDATA () override
virtual void SAL_CALL endCDATA () override
virtual void SAL_CALL comment (const OUString &sComment) override
virtual void SAL_CALL allowLineBreak () override
virtual void SAL_CALL unknown (const OUString &sString) override
virtual void SAL_CALL parseStream (const css::xml::sax::InputSource &aInputSource) override
virtual void SAL_CALL setFastDocumentHandler (const css::uno::Reference< css::xml::sax::XFastDocumentHandler > &Handler) override
virtual void SAL_CALL setTokenHandler (const css::uno::Reference< css::xml::sax::XFastTokenHandler > &Handler) override
virtual void SAL_CALL registerNamespace (const OUString &NamespaceURL, sal_Int32 NamespaceToken) override
virtual OUString SAL_CALL getNamespaceURL (const OUString &rPrefix) override
virtual void SAL_CALL setErrorHandler (const css::uno::Reference< css::xml::sax::XErrorHandler > &Handler) override
virtual void SAL_CALL setEntityResolver (const css::uno::Reference< css::xml::sax::XEntityResolver > &Resolver) override
virtual void SAL_CALL setLocale (const css::lang::Locale &rLocale) override
virtual void SAL_CALL setNamespaceHandler (const css::uno::Reference< css::xml::sax::XFastNamespaceHandler > &Handler) override
virtual sal_Bool SAL_CALL filter (const css::uno::Sequence< css::beans::PropertyValue > &aDescriptor) override
virtual void SAL_CALL cancel () override
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
virtual OUString SAL_CALL getImplementationName () final override
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) final override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () final override
virtual void SetStatistics (const css::uno::Sequence< css::beans::NamedValue > &i_rStats)
rtl::Reference< XMLTextImportHelper > const & GetTextImport ()
bool HasTextImport () const
SvXMLNumFmtHelperGetDataStylesImport ()
rtl::Reference< XMLShapeImportHelper > const & GetShapeImport ()
rtl::Reference< SchXMLImportHelper > const & GetChartImport ()
rtl::Reference< ::xmloff::OFormLayerXMLImport > const & GetFormImport ()
const css::uno::Reference< css::beans::XPropertySet > & getImportInfo () const
XMLEventImportHelperGetEventImport ()
SvXMLNamespaceMapGetNamespaceMap ()
const SvXMLNamespaceMapGetNamespaceMap () const
const SvXMLUnitConverterGetMM100UnitConverter () const
SvXMLUnitConverterGetMM100UnitConverter ()
const css::uno::Reference< css::xml::sax::XLocator > & GetLocator () const
const css::uno::Reference< css::frame::XModel > & GetModel () const
const css::uno::Reference< css::container::XNameContainer > & GetGradientHelper ()
const css::uno::Reference< css::container::XNameContainer > & GetHatchHelper ()
const css::uno::Reference< css::container::XNameContainer > & GetBitmapHelper ()
const css::uno::Reference< css::container::XNameContainer > & GetTransGradientHelper ()
const css::uno::Reference< css::container::XNameContainer > & GetMarkerHelper ()
const css::uno::Reference< css::container::XNameContainer > & GetDashHelper ()
css::uno::Reference< css::util::XNumberFormatsSupplier > & GetNumberFormatsSupplier ()
void SetNumberFormatsSupplier (const css::uno::Reference< css::util::XNumberFormatsSupplier > &_xNumberFormatSupplier)
css::uno::Reference< css::graphic::XGraphic > loadGraphicByURL (OUString const &rURL)
css::uno::Reference< css::graphic::XGraphic > loadGraphicFromBase64 (css::uno::Reference< css::io::XOutputStream > const &rxOutputStream)
css::uno::Reference< css::io::XOutputStream > GetStreamForGraphicObjectURLFromBase64 () const
bool IsPackageURL (const OUString &rURL) const
OUString ResolveEmbeddedObjectURL (const OUString &rURL, const OUString &rClassId)
css::uno::Reference< css::io::XOutputStream > GetStreamForEmbeddedObjectURLFromBase64 () const
OUString ResolveEmbeddedObjectURLFromBase64 ()
css::uno::Reference< css::embed::XStorage > const & GetSourceStorage () const
void AddStyleDisplayName (XmlStyleFamily nFamily, const OUString &rName, const OUString &rDisplayName)
OUString GetStyleDisplayName (XmlStyleFamily nFamily, const OUString &rName) const
ProgressBarHelperGetProgressBarHelper ()
void AddNumberStyle (sal_Int32 nKey, const OUString &sName)
virtual void SetViewSettings (const css::uno::Sequence< css::beans::PropertyValue > &aViewProps)
virtual void SetConfigurationSettings (const css::uno::Sequence< css::beans::PropertyValue > &aConfigProps)
virtual void SetDocumentSpecificSettings (const OUString &_rSettingsGroupName, const css::uno::Sequence< css::beans::PropertyValue > &_rSettings)
XMLFontStylesContextGetFontDecls ()
SvXMLStylesContextGetStyles ()
SvXMLStylesContextGetAutoStyles ()
const XMLFontStylesContextGetFontDecls () const
const SvXMLStylesContextGetStyles () const
const SvXMLStylesContextGetAutoStyles () const
SvXMLImportFlags getImportFlags () const
bool IsFormsSupported () const
OUString GetAbsoluteReference (const OUString &rValue) const
sal_Unicode ConvStarBatsCharToStarSymbol (sal_Unicode c)
sal_Unicode ConvStarMathCharToStarSymbol (sal_Unicode c)
bool IsTableShapeSupported () const
OUString const & GetODFVersion () const
bool IsOOoXML () const
void SetError (sal_Int32 nId, const css::uno::Sequence< OUString > &rMsgParams, const OUString &rExceptionMessage, const css::uno::Reference< css::xml::sax::XLocator > &rLocator)
 Record an error condition that occurred during import. More...
void SetError (sal_Int32 nId, const css::uno::Sequence< OUString > &rMsgParams)
void SetError (sal_Int32 nId)
void SetError (sal_Int32 nId, const OUString &rMsg1)
void SetError (sal_Int32 nId, const OUString &rMsg1, const OUString &rMsg2)
virtual void DisposingModel ()
::comphelper::UnoInterfaceToUniqueIdentifierMappergetInterfaceToIdentifierMapper ()
css::uno::Reference< css::uno::XComponentContext > const & GetComponentContext () const
bool IsShapePositionInHoriL2R () const
bool IsTextDocInOOoFileFormat () const
OUString GetBaseURL () const
OUString GetDocumentBase () const
void SetXmlId (css::uno::Reference< css::uno::XInterface > const &i_xIfc, OUString const &i_rXmlId)
 set the XmlId attribute of given UNO object (for RDF metadata) More...
void AddRDFa (const css::uno::Reference< css::rdf::XMetadatable > &i_xObject, OUString const &i_rAbout, OUString const &i_rProperty, OUString const &i_rContent, OUString const &i_rDatatype)
 Add a RDFa statement; parameters are XML attribute values. More...
SAL_DLLPRIVATE::xmloff::RDFaImportHelper & GetRDFaImportHelper ()
 do not dllexport this; only for advanced cases (bookmark-start) More...
virtual void initXForms ()
bool getBuildIds (sal_Int32 &rUPD, sal_Int32 &rBuild) const
 returns the upd and build id (f.e. More...
bool isGeneratorVersionOlderThan (sal_uInt16 const nOOoVersion, sal_uInt16 const nLOVersion)
 depending on whether the generator version indicates LO, compare against either the given LO or given OOo version More...
sal_uInt16 getGeneratorVersion () const
 this checks the build ID and returns More...
bool embeddedFontAlreadyProcessed (const OUString &url)
 Returns true if the embedded font document URL has already been processed. More...
virtual void NotifyEmbeddedFontRead ()
void NotifyMacroEventRead ()
bool needFixPositionAfterZ () const

Private Member Functions

virtual SvXMLImportContextCreateFastContext (sal_Int32 nElement, const ::css::uno::Reference<::css::xml::sax::XFastAttributeList > &xAttrList) override

Private Attributes

rtl::Reference< SchXMLImportHelpermaImportHelper

Additional Inherited Members

- Static Public Member Functions inherited from SvXMLImport
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId () throw ()
static const OUString & getNameFromToken (sal_Int32 nToken)
static OUString getPrefixAndNameFromToken (sal_Int32 nToken)
static OUString getNamespacePrefixFromToken (sal_Int32 nToken, const SvXMLNamespaceMap *pMap)
static OUString getNamespaceURIFromToken (sal_Int32 nToken)
static OUString getNamespacePrefixFromURI (const OUString &rURI)
static sal_Int32 getTokenFromName (const OUString &sName)
- Static Public Attributes inherited from SvXMLImport
static constexpr OUStringLiteral aDefaultNamespace = u""
static constexpr OUStringLiteral aNamespaceSeparator = u":"
static const sal_uInt16 OOo_1x = 10
static const sal_uInt16 OOo_2x = 20
static const sal_uInt16 OOo_30x = 30
static const sal_uInt16 OOo_31x = 31
static const sal_uInt16 OOo_32x = 32
static const sal_uInt16 OOo_33x = 33
static const sal_uInt16 OOo_34x = 34
static const sal_uInt16 AOO_40x = 40
static const sal_uInt16 AOO_4x = 41
static const sal_uInt16 LO_flag = 0x100
static const sal_uInt16 LO_3x = 30 | LO_flag
static const sal_uInt16 LO_41x = 41 | LO_flag
static const sal_uInt16 LO_42x = 42 | LO_flag
static const sal_uInt16 LO_43x = 43 | LO_flag
static const sal_uInt16 LO_44x = 44 | LO_flag
static const sal_uInt16 LO_5x = 50 | LO_flag
static const sal_uInt16 LO_6x = 60 | LO_flag
 : when adding a new value more specific than "6x", grep for all current uses and adapt them!!! More...
static const sal_uInt16 LO_7x = 70 | LO_flag
static const sal_uInt16 ProductVersionUnknown = SAL_MAX_UINT16
- Protected Member Functions inherited from SvXMLImport
virtual SvXMLImportContextCreateFastContext (sal_Int32 Element, const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &xAttrList)
virtual XMLTextImportHelperCreateTextImport ()
void ClearTextImport ()
virtual XMLShapeImportHelperCreateShapeImport ()
bool HasShapeImport () const
void ClearShapeImport ()
::xmloff::OFormLayerXMLImportCreateFormImport ()
void SetFontDecls (XMLFontStylesContext *pFontDecls)
void SetStyles (SvXMLStylesContext *pStyles)
void SetAutoStyles (SvXMLStylesContext *pAutoStyles)
void SetMasterStyles (SvXMLStylesContext *pMasterStyles)
bool IsODFVersionConsistent (const OUString &aODFVersion)
const css::uno::Reference< css::document::XEmbeddedObjectResolver > & GetEmbeddedResolver () const
void SetEmbeddedResolver (css::uno::Reference< css::document::XEmbeddedObjectResolver > const &_xEmbeddedResolver)
const css::uno::Reference< css::document::XGraphicStorageHandler > & GetGraphicStorageHandler () const
void SetGraphicStorageHandler (css::uno::Reference< css::document::XGraphicStorageHandler > const &rxGraphicStorageHandler)
void CreateNumberFormatsSupplier_ ()
void CreateDataStylesImport_ ()
- Static Protected Member Functions inherited from SvXMLImport
static SchXMLImportHelperCreateChartImport ()
- Protected Attributes inherited from SvXMLImport
bool mbIsFormsSupported
bool mbIsTableShapeSupported
bool mbNotifyMacroEventRead

Detailed Description

Definition at line 150 of file SchXMLImport.hxx.

Constructor & Destructor Documentation

SchXMLImport::SchXMLImport ( const css::uno::Reference< css::uno::XComponentContext > &  xContext,
OUString const &  implementationName,
SvXMLImportFlags  nImportFlags 
SchXMLImport::~SchXMLImport ( )
throw (

Definition at line 491 of file SchXMLImport.cxx.

References SvXMLImport::GetModel().

Member Function Documentation

SvXMLImportContext * SchXMLImport::CreateFastContext ( sal_Int32  nElement,
const ::css::uno::Reference<::css::xml::sax::XFastAttributeList > &  xAttrList 
SvXMLImportContext * SchXMLImport::CreateStylesContext ( )
void SAL_CALL SchXMLImport::setTargetDocument ( const css::uno::Reference< css::lang::XComponent > &  xDoc)

Reimplemented from SvXMLImport.

Definition at line 545 of file SchXMLImport.cxx.

References SvXMLImport::GetModel(), SvXMLImport::setTargetDocument(), and TOOLS_INFO_EXCEPTION.

Member Data Documentation

rtl::Reference<SchXMLImportHelper> SchXMLImport::maImportHelper

Definition at line 153 of file SchXMLImport.hxx.

Referenced by CreateFastContext(), and CreateStylesContext().

The documentation for this class was generated from the following files: