LibreOffice Module sc (master)  1
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ScXMLImport Class Reference

#include <xmlimprt.hxx>

Inheritance diagram for ScXMLImport:
[legend]
Collaboration diagram for ScXMLImport:
[legend]

Classes

class  MutexGuard
 Use this class to manage solar mutex locking instead of calling LockSolarMutex() and UnlockSolarMutex() directly. More...
 

Public Member Functions

 ScXMLImport (const css::uno::Reference< css::uno::XComponentContext > &rContext, OUString const &implementationName, SvXMLImportFlags nImportFlag, const css::uno::Sequence< OUString > &sSupportedServiceNames={})
 
virtual ~ScXMLImport () override throw ()
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
SvXMLImportContextCreateMetaContext (sal_Int32 nElement)
 
SvXMLImportContextCreateFontDeclsContext ()
 
SvXMLImportContextCreateScriptContext ()
 
SvXMLImportContextCreateStylesContext (bool bAutoStyles)
 
SvXMLImportContextCreateBodyContext (const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList)
 
virtual void SetStatistics (const css::uno::Sequence< css::beans::NamedValue > &i_rStats) override
 
ScDocumentImportGetDoc ()
 
ScDocumentGetDocument ()
 
const ScDocumentGetDocument () const
 
ScMyTablesGetTables ()
 
std::vector< ScDocRowHeightUpdater::TabRanges > & GetRecalcRowRanges ()
 
bool IsStylesOnlyMode () const
 
const rtl::Reference< XMLPropertySetMapper > & GetCellStylesPropertySetMapper () const
 
const rtl::Reference< XMLPropertySetMapper > & GetColumnStylesPropertySetMapper () const
 
const rtl::Reference< XMLPropertySetMapper > & GetRowStylesPropertySetMapper () const
 
const rtl::Reference< XMLPropertySetMapper > & GetTableStylesPropertySetMapper () const
 
const SvXMLTokenMapGetTableElemTokenMap ()
 
const SvXMLTokenMapGetTableRowsElemTokenMap ()
 
const SvXMLTokenMapGetTableRowElemTokenMap ()
 
const SvXMLTokenMapGetTableRowAttrTokenMap ()
 
const SvXMLTokenMapGetTableRowCellElemTokenMap ()
 
const SvXMLTokenMapGetTableRowCellAttrTokenMap ()
 
const SvXMLTokenMapGetTableAnnotationAttrTokenMap ()
 
void SetPostProcessData (sc::ImportPostProcessData *p)
 
sc::ImportPostProcessDataGetPostProcessData ()
 
sc::PivotTableSourcesGetPivotTableSources ()
 
void AddNamedExpression (ScMyNamedExpression *pMyNamedExpression)
 
void AddNamedExpression (SCTAB nTab, ScMyNamedExpression *pNamedExp)
 
void AddLabelRange (std::unique_ptr< const ScMyLabelRange > pMyLabelRange)
 
void AddValidation (const ScMyImportValidation &rValidation)
 
bool GetValidation (const OUString &sName, ScMyImportValidation &aValidation)
 
ScMyImpDetectiveOpArrayGetDetectiveOpArray ()
 
ScXMLChangeTrackingImportHelperGetChangeTrackingImportHelper ()
 
void InsertStyles ()
 
void SetChangeTrackingViewSettings (const css::uno::Sequence< css::beans::PropertyValue > &rChangeProps)
 
virtual void SetViewSettings (const css::uno::Sequence< css::beans::PropertyValue > &aViewProps) override
 
virtual void SetConfigurationSettings (const css::uno::Sequence< css::beans::PropertyValue > &aConfigProps) override
 
ScMyStylesImportHelperGetStylesImportHelper ()
 
sal_Int32 SetCurrencySymbol (const sal_Int32 nKey, const OUString &rCurrency)
 
bool IsCurrencySymbol (const sal_Int32 nNumberFormat, const OUString &sCurrencySymbol, const OUString &sBankSymbol)
 
void SetType (const css::uno::Reference< css::beans::XPropertySet > &rProperties, sal_Int32 &rNumberFormat, const sal_Int16 nCellType, const OUString &rCurrency)
 
void ProgressBarIncrement ()
 
void SetNewCondFormatData ()
 
bool HasNewCondFormatData () const
 
void SetStyleToRanges (const ScRangeList &rRanges, const OUString *pStyleName, const sal_Int16 nCellType, const OUString *pCurrency)
 
bool SetNullDateOnUnitConverter ()
 
XMLNumberFormatAttributesExportHelperGetNumberFormatAttributesExportHelper ()
 
ScMyStyleNumberFormatsGetStyleNumberFormats ()
 
void SetStylesToRangesFinished ()
 
virtual void SAL_CALL setTargetDocument (const css::uno::Reference< css::lang::XComponent > &xDoc) override
 
virtual void SAL_CALL startDocument () override
 
virtual void SAL_CALL endDocument () override
 
virtual void DisposingModel () override
 
void LockSolarMutex ()
 
void UnlockSolarMutex ()
 
sal_Int32 GetByteOffset () const
 
void SetRangeOverflowType (ErrCode nType)
 
void SetNamedRanges ()
 
void SetSheetNamedRanges ()
 
void SetLabelRanges ()
 
void SetStringRefSyntaxIfMissing ()
 
void ExtractFormulaNamespaceGrammar (OUString &rFormula, OUString &rFormulaNmsp,::formula::FormulaGrammar::Grammar &reGrammar, const OUString &rAttrValue, bool bRestrictToExternalNmsp=false) const
 Extracts the formula string, the formula grammar namespace URL, and a grammar enum value from the passed formula attribute value. More...
 
FormulaError GetFormulaErrorConstant (const OUString &rStr) const
 
ScEditEngineDefaulterGetEditEngine ()
 
const ScXMLEditAttributeMapGetEditAttributeMap () const
 
virtual void NotifyEmbeddedFontRead () 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 ()
 
virtual ~SvXMLImport () 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 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
 
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 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)
 
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)
 
::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)
 
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)
 
SAL_DLLPRIVATE::xmloff::RDFaImportHelper & GetRDFaImportHelper ()
 
virtual void initXForms ()
 
bool getBuildIds (sal_Int32 &rUPD, sal_Int32 &rBuild) const
 
bool isGeneratorVersionOlderThan (sal_uInt16 const nOOoVersion, sal_uInt16 const nLOVersion)
 
sal_uInt16 getGeneratorVersion () const
 
bool embeddedFontAlreadyProcessed (const OUString &url)
 
void NotifyMacroEventRead ()
 
bool needFixPositionAfterZ () const
 

Static Public Member Functions

static sal_Int16 GetCellType (const char *rStrValue, const sal_Int32 nStrLength)
 
static sal_Int32 GetRangeType (const OUString &sRangeType)
 
- Static Public Member Functions inherited from SvXMLImport
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
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)
 

Protected Member Functions

virtual SvXMLImportContextCreateFastContext (sal_Int32 nElement, const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &xAttrList) override
 
virtual XMLShapeImportHelperCreateShapeImport () override
 
- Protected Member Functions inherited from SvXMLImport
virtual XMLTextImportHelperCreateTextImport ()
 
void ClearTextImport ()
 
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_ ()
 

Private Types

typedef ::std::map< SCTAB, std::unique_ptr< ScMyNamedExpressions > > SheetNamedExpMap
 

Private Member Functions

 ScXMLImport (const ScXMLImport &)=delete
 
const ScXMLImportoperator= (const ScXMLImport &)=delete
 
void SetStyleToRanges ()
 
void ExamineDefaultStyle ()
 

Private Attributes

ScDocumentpDoc
 
std::unique_ptr< ScDocumentImportmpDocImport
 
std::unique_ptr< ScCompilermpComp
 
std::unique_ptr< ScEditEngineDefaultermpEditEngine
 
std::unique_ptr< sc::PivotTableSourcesmpPivotSources
 
std::unique_ptr< ScXMLEditAttributeMapmpEditAttrMap
 
std::unique_ptr< ScXMLChangeTrackingImportHelperpChangeTrackingImportHelper
 
std::unique_ptr< ScMyStylesImportHelperpStylesImportHelper
 
rtl::Reference< XMLPropertyHandlerFactoryxScPropHdlFactory
 
rtl::Reference< XMLPropertySetMapperxCellStylesPropertySetMapper
 
rtl::Reference< XMLPropertySetMapperxColumnStylesPropertySetMapper
 
rtl::Reference< XMLPropertySetMapperxRowStylesPropertySetMapper
 
rtl::Reference< XMLPropertySetMapperxTableStylesPropertySetMapper
 
std::unique_ptr< SvXMLTokenMappTableElemTokenMap
 
std::unique_ptr< SvXMLTokenMappTableRowsElemTokenMap
 
std::unique_ptr< SvXMLTokenMappTableRowElemTokenMap
 
std::unique_ptr< SvXMLTokenMappTableRowAttrTokenMap
 
std::unique_ptr< SvXMLTokenMappTableRowCellElemTokenMap
 
std::unique_ptr< SvXMLTokenMappTableRowCellAttrTokenMap
 
std::unique_ptr< SvXMLTokenMappTableAnnotationAttrTokenMap
 
sc::ImportPostProcessDatampPostProcessData
 
ScMyTables aTables
 Lift cycle managed elsewhere, no need to delete. More...
 
std::vector< ScDocRowHeightUpdater::TabRangesmaRecalcRowRanges
 
std::unique_ptr< ScMyNamedExpressionsm_pMyNamedExpressions
 
SheetNamedExpMap m_SheetNamedExpressions
 
std::unique_ptr< ScMyLabelRangespMyLabelRanges
 
std::unique_ptr< ScMyImportValidationspValidations
 
std::unique_ptr< ScMyImpDetectiveOpArraypDetectiveOpArray
 
std::unique_ptr< SolarMutexGuardpSolarMutexGuard
 
std::unique_ptr< XMLNumberFormatAttributesExportHelperpNumberFormatAttributesExportHelper
 
std::unique_ptr< ScMyStyleNumberFormatspStyleNumberFormats
 
css::uno::Reference< css::util::XNumberFormats > xNumberFormats
 
css::uno::Reference< css::util::XNumberFormatTypes > xNumberFormatTypes
 
css::uno::Reference< css::sheet::XSheetCellRangeContainer > xSheetCellRanges
 
OUString sPrevStyleName
 
OUString sPrevCurrency
 
sal_uInt32 nSolarMutexLocked
 
sal_Int32 nProgressCount
 
sal_Int16 nPrevCellType
 
bool bLoadDoc
 
bool bNullDateSetted
 
bool bSelfImportingXMLSet
 
bool mbLockSolarMutex
 
bool mbImportStyles
 
bool mbHasNewCondFormatData
 

Additional Inherited Members

- Static Public Attributes inherited from SvXMLImport
static constexpr OUStringLiteral aDefaultNamespace
 
static constexpr OUStringLiteral aNamespaceSeparator
 
static const sal_uInt16 OOo_1x
 
static const sal_uInt16 OOo_2x
 
static const sal_uInt16 OOo_30x
 
static const sal_uInt16 OOo_31x
 
static const sal_uInt16 OOo_32x
 
static const sal_uInt16 OOo_33x
 
static const sal_uInt16 OOo_34x
 
static const sal_uInt16 AOO_40x
 
static const sal_uInt16 AOO_4x
 
static const sal_uInt16 LO_flag
 
static const sal_uInt16 LO_3x
 
static const sal_uInt16 LO_41x
 
static const sal_uInt16 LO_42x
 
static const sal_uInt16 LO_43x
 
static const sal_uInt16 LO_44x
 
static const sal_uInt16 LO_5x
 
static const sal_uInt16 LO_6x
 
static const sal_uInt16 LO_7x
 
static const sal_uInt16 ProductVersionUnknown
 
- 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 197 of file xmlimprt.hxx.

Member Typedef Documentation

typedef ::std::map<SCTAB, std::unique_ptr<ScMyNamedExpressions> > ScXMLImport::SheetNamedExpMap
private

Definition at line 202 of file xmlimprt.hxx.

Constructor & Destructor Documentation

ScXMLImport::ScXMLImport ( const ScXMLImport )
privatedelete
ScXMLImport::ScXMLImport ( const css::uno::Reference< css::uno::XComponentContext > &  rContext,
OUString const &  implementationName,
SvXMLImportFlags  nImportFlag,
const css::uno::Sequence< OUString > &  sSupportedServiceNames = {} 
)
ScXMLImport::~ScXMLImport ( )
throw (
)
overridevirtual

Member Function Documentation

void ScXMLImport::AddLabelRange ( std::unique_ptr< const ScMyLabelRange pMyLabelRange)
inline

Definition at line 334 of file xmlimprt.hxx.

Referenced by ScXMLLabelRangeContext::endFastElement().

void ScXMLImport::AddNamedExpression ( ScMyNamedExpression pMyNamedExpression)
inline

Definition at line 325 of file xmlimprt.hxx.

void ScXMLImport::AddNamedExpression ( SCTAB  nTab,
ScMyNamedExpression pNamedExp 
)

Definition at line 790 of file xmlimprt.cxx.

References m_SheetNamedExpressions, and p.

void ScXMLImport::AddValidation ( const ScMyImportValidation rValidation)
inline

Definition at line 339 of file xmlimprt.hxx.

SvXMLImportContext * ScXMLImport::CreateBodyContext ( const rtl::Reference< sax_fastparser::FastAttributeList > &  rAttrList)

Definition at line 660 of file xmlimprt.cxx.

SvXMLImportContext * ScXMLImport::CreateFastContext ( sal_Int32  nElement,
const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprotectedvirtual
SvXMLImportContext * ScXMLImport::CreateFontDeclsContext ( )

Definition at line 638 of file xmlimprt.cxx.

References SvXMLImport::SetFontDecls().

SvXMLImportContext * ScXMLImport::CreateMetaContext ( sal_Int32  nElement)
SvXMLImportContext * ScXMLImport::CreateScriptContext ( )

Definition at line 682 of file xmlimprt.cxx.

References SvXMLImport::GetModel(), and IsStylesOnlyMode().

XMLShapeImportHelper * ScXMLImport::CreateShapeImport ( )
overrideprotectedvirtual

Reimplemented from SvXMLImport.

Definition at line 768 of file xmlimprt.cxx.

SvXMLImportContext * ScXMLImport::CreateStylesContext ( bool  bAutoStyles)

Definition at line 647 of file xmlimprt.cxx.

References SvXMLImport::SetAutoStyles(), and SvXMLImport::SetStyles().

void ScXMLImport::DisposingModel ( )
overridevirtual

Reimplemented from SvXMLImport.

Definition at line 1680 of file xmlimprt.cxx.

References SvXMLImport::DisposingModel(), and pDoc.

void SAL_CALL ScXMLImport::endDocument ( )
overridevirtual
void ScXMLImport::ExamineDefaultStyle ( )
private
void ScXMLImport::ExtractFormulaNamespaceGrammar ( OUString &  rFormula,
OUString &  rFormulaNmsp,
::formula::FormulaGrammar::Grammar reGrammar,
const OUString &  rAttrValue,
bool  bRestrictToExternalNmsp = false 
) const

Extracts the formula string, the formula grammar namespace URL, and a grammar enum value from the passed formula attribute value.

Parameters
rFormula(out-parameter) Returns the plain formula string with the leading equality sign if existing.
rFormulaNmsp(out-parameter) Returns the URL of the formula grammar namespace if the attribute value contains the prefix of an unknown namespace.
reGrammar(out-parameter) Returns the exact formula grammar if the formula is in a supported ODF format (e.g. FormulaGrammar::GRAM_PODF for ODF 1.0/1.1 formulas, or FormulaGrammar::GRAM_ODFF for ODF 1.2 formulas a.k.a. OpenFormula). Returns the default storage grammar, if the attribute value does not contain a namespace prefix. Returns the special value FormulaGrammar::GRAM_EXTERNAL, if an unknown namespace could be extracted from the formula which will be contained in the parameter rFormulaNmsp then.
rAttrValueThe value of the processed formula attribute.
bRestrictToExternalNmspIf set to true, only namespaces of external formula grammars will be recognized. Internal namespace prefixes (e.g. 'oooc:' or 'of:' will be considered to be part of the formula, e.g. an expression with range operator.

Definition at line 1758 of file xmlimprt.cxx.

References SvXMLNamespaceMap::AttrValue, GetDocument(), ScDocument::GetFormulaParserPool(), SvXMLNamespaceMap::GetKeyByQName(), SvXMLImport::GetNamespaceMap(), ScDocument::GetStorageGrammar(), ScFormulaParserPool::hasFormulaParser(), XML_NAMESPACE_NONE, XML_NAMESPACE_OF, XML_NAMESPACE_OOOC, XML_NAMESPACE_UNKNOWN, and XML_NAMESPACE_UNKNOWN_FLAG.

Referenced by ScXMLNamedExpressionContext::ScXMLNamedExpressionContext(), and ScXMLTableRowCellContext::ScXMLTableRowCellContext().

sal_Int32 ScXMLImport::GetByteOffset ( ) const
const rtl::Reference< XMLPropertySetMapper >& ScXMLImport::GetCellStylesPropertySetMapper ( ) const
inline
sal_Int16 ScXMLImport::GetCellType ( const char *  rStrValue,
const sal_Int32  nStrLength 
)
static
ScXMLChangeTrackingImportHelper * ScXMLImport::GetChangeTrackingImportHelper ( )

Definition at line 809 of file xmlimprt.cxx.

References pChangeTrackingImportHelper.

Referenced by ScXMLBodyContext::createFastChildContext().

const rtl::Reference< XMLPropertySetMapper >& ScXMLImport::GetColumnStylesPropertySetMapper ( ) const
inline

Definition at line 308 of file xmlimprt.hxx.

References xColumnStylesPropertySetMapper.

ScMyImpDetectiveOpArray * ScXMLImport::GetDetectiveOpArray ( )
ScDocumentImport & ScXMLImport::GetDoc ( )
ScDocument* ScXMLImport::GetDocument ( )
inline

Definition at line 296 of file xmlimprt.hxx.

References pDoc.

Referenced by ScXMLTableRowCellContext::AddFormulaCell(), ScXMLTableRowCellContext::AddNonFormulaCell(), ScXMLTableRowCellContext::AddTextAndValueCell(), XMLTableStyleContext::ApplyCondFormat(), ScXMLDatabaseRangeContext::ConvertToDBData(), ScXMLTableRowCellContext::CreateChildContext(), ScXMLDDELinkContext::CreateDDELink(), ScMyTables::DeleteTable(), ScXMLTableRowCellContext::DoMerge(), ScXMLExternalRefTabSourceContext::endFastElement(), ScXMLTableRowContext::endFastElement(), ScXMLTableColContext::endFastElement(), ScXMLConsolidationContext::endFastElement(), ScXMLBodyContext::endFastElement(), ScXMLConditionalFormatsContext::endFastElement(), ScXMLCalculationSettingsContext::endFastElement(), ScXMLTableContext::endFastElement(), ScXMLTableColsContext::endFastElement(), ScXMLConditionalFormatContext::endFastElement(), ScXMLDDELinkContext::endFastElement(), ScXMLDatabaseRangeContext::endFastElement(), ScXMLConditionContext::endFastElement(), ScXMLDPConditionContext::endFastElement(), ExtractFormulaNamespaceGrammar(), ScMyOLEFixer::FixupOLEs(), ScMyTables::GetCurrentColCount(), ScXMLTableRowCellContext::PutFormulaCell(), ScXMLTableRowCellContext::PutTextCell(), ScXMLTableRowCellContext::PutValueCell(), ScXMLBodyContext::ScXMLBodyContext(), ScXMLColumnSplitContext::ScXMLColumnSplitContext(), ScXMLConditionalFormatContext::ScXMLConditionalFormatContext(), ScXMLConditionalFormatsContext::ScXMLConditionalFormatsContext(), ScXMLConsolidationContext::ScXMLConsolidationContext(), ScXMLDataBarFormatContext::ScXMLDataBarFormatContext(), ScXMLDatabaseRangeContext::ScXMLDatabaseRangeContext(), ScXMLDataStreamContext::ScXMLDataStreamContext(), ScXMLDetectiveHighlightedContext::ScXMLDetectiveHighlightedContext(), ScXMLMappingContext::ScXMLMappingContext(), ScXMLSetItemContext::ScXMLSetItemContext(), ScXMLSortContext::ScXMLSortContext(), ScXMLSourceCellRangeContext::ScXMLSourceCellRangeContext(), ScXMLTableContext::ScXMLTableContext(), ScXMLTableRowContext::ScXMLTableRowContext(), ScXMLTableScenarioContext::ScXMLTableScenarioContext(), ScXMLTableRowCellContext::SetAnnotation(), ScXMLTableRowCellContext::SetCellRangeSource(), ScXMLTableRowCellContext::SetContentValidation(), SetCurrencySymbol(), ScXMLTableRowCellContext::SetDetectiveObj(), ScXMLTableRowCellContext::SetFormulaCell(), ScXMLColumnAggregateContext::~ScXMLColumnAggregateContext(), ScXMLColumnMergeContext::~ScXMLColumnMergeContext(), ScXMLColumnNumberContext::~ScXMLColumnNumberContext(), ScXMLColumnRemoveContext::~ScXMLColumnRemoveContext(), ScXMLColumnRemoveNullContext::~ScXMLColumnRemoveNullContext(), ScXMLColumnTextContext::~ScXMLColumnTextContext(), ScXMLDateTimeContext::~ScXMLDateTimeContext(), and ScXMLMappingContext::~ScXMLMappingContext().

const ScDocument* ScXMLImport::GetDocument ( ) const
inline

Definition at line 297 of file xmlimprt.hxx.

References pDoc.

const ScXMLEditAttributeMap & ScXMLImport::GetEditAttributeMap ( ) const

Definition at line 1839 of file xmlimprt.cxx.

References mpEditAttrMap.

Referenced by ScXMLTableRowCellContext::PushFormat().

ScEditEngineDefaulter * ScXMLImport::GetEditEngine ( )
FormulaError ScXMLImport::GetFormulaErrorConstant ( const OUString &  rStr) const
XMLNumberFormatAttributesExportHelper * ScXMLImport::GetNumberFormatAttributesExportHelper ( )

Definition at line 1320 of file xmlimprt.cxx.

References SvXMLImport::GetNumberFormatsSupplier(), and pNumberFormatAttributesExportHelper.

Referenced by SetType().

sc::PivotTableSources & ScXMLImport::GetPivotTableSources ( )

Definition at line 513 of file xmlimprt.cxx.

References mpPivotSources.

Referenced by ScXMLDataPilotTableContext::endFastElement().

sc::ImportPostProcessData* ScXMLImport::GetPostProcessData ( )
inline

Definition at line 321 of file xmlimprt.hxx.

References mpPostProcessData.

Referenced by ScXMLDataStreamContext::endFastElement().

sal_Int32 ScXMLImport::GetRangeType ( const OUString &  sRangeType)
static

Definition at line 1408 of file xmlimprt.cxx.

References COLUMN_HEADER, i, ROW_HEADER, SC_FILTER, SC_PRINT_RANGE, and SC_REPEAT_ROW.

std::vector<ScDocRowHeightUpdater::TabRanges>& ScXMLImport::GetRecalcRowRanges ( )
inline

Definition at line 301 of file xmlimprt.hxx.

References maRecalcRowRanges.

Referenced by ScXMLTableRowContext::endFastElement().

const rtl::Reference< XMLPropertySetMapper >& ScXMLImport::GetRowStylesPropertySetMapper ( ) const
inline

Definition at line 309 of file xmlimprt.hxx.

References xRowStylesPropertySetMapper.

ScMyStyleNumberFormats * ScXMLImport::GetStyleNumberFormats ( )

Definition at line 1327 of file xmlimprt.cxx.

References pStyleNumberFormats.

Referenced by SetStyleToRanges().

ScMyStylesImportHelper* ScXMLImport::GetStylesImportHelper ( )
inline
const SvXMLTokenMap & ScXMLImport::GetTableAnnotationAttrTokenMap ( )
const SvXMLTokenMap & ScXMLImport::GetTableElemTokenMap ( )
const SvXMLTokenMap & ScXMLImport::GetTableRowAttrTokenMap ( )
const SvXMLTokenMap & ScXMLImport::GetTableRowCellAttrTokenMap ( )
const SvXMLTokenMap & ScXMLImport::GetTableRowCellElemTokenMap ( )
const SvXMLTokenMap & ScXMLImport::GetTableRowElemTokenMap ( )
const SvXMLTokenMap & ScXMLImport::GetTableRowsElemTokenMap ( )
ScMyTables& ScXMLImport::GetTables ( )
inline
const rtl::Reference< XMLPropertySetMapper >& ScXMLImport::GetTableStylesPropertySetMapper ( ) const
inline

Definition at line 310 of file xmlimprt.hxx.

References xTableStylesPropertySetMapper.

bool ScXMLImport::GetValidation ( const OUString &  sName,
ScMyImportValidation aValidation 
)

Definition at line 773 of file xmlimprt.cxx.

References pValidations.

Referenced by ScXMLTableRowCellContext::SetContentValidation().

bool ScXMLImport::HasNewCondFormatData ( ) const
inline

Definition at line 365 of file xmlimprt.hxx.

References mbHasNewCondFormatData.

void ScXMLImport::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual
void ScXMLImport::InsertStyles ( )
bool ScXMLImport::IsCurrencySymbol ( const sal_Int32  nNumberFormat,
const OUString &  sCurrencySymbol,
const OUString &  sBankSymbol 
)
bool ScXMLImport::IsStylesOnlyMode ( ) const
inline

Definition at line 303 of file xmlimprt.hxx.

References bLoadDoc.

Referenced by CreateMetaContext(), and CreateScriptContext().

void ScXMLImport::LockSolarMutex ( )
void ScXMLImport::NotifyEmbeddedFontRead ( )
overridevirtual

Reimplemented from SvXMLImport.

Definition at line 1846 of file xmlimprt.cxx.

References pDoc, and ScDocument::SetEmbedFonts().

const ScXMLImport& ScXMLImport::operator= ( const ScXMLImport )
privatedelete
void ScXMLImport::ProgressBarIncrement ( )
void ScXMLImport::SetChangeTrackingViewSettings ( const css::uno::Sequence< css::beans::PropertyValue > &  rChangeProps)
void ScXMLImport::SetConfigurationSettings ( const css::uno::Sequence< css::beans::PropertyValue > &  aConfigProps)
overridevirtual
sal_Int32 ScXMLImport::SetCurrencySymbol ( const sal_Int32  nKey,
const OUString &  rCurrency 
)
void ScXMLImport::SetLabelRanges ( )
void ScXMLImport::SetNamedRanges ( )

Definition at line 1520 of file xmlimprt.cxx.

References ScDocument::GetRangeName(), m_pMyNamedExpressions, and pDoc.

Referenced by endDocument().

void ScXMLImport::SetNewCondFormatData ( )
inline
bool ScXMLImport::SetNullDateOnUnitConverter ( )
void ScXMLImport::SetPostProcessData ( sc::ImportPostProcessData p)

Definition at line 508 of file xmlimprt.cxx.

References mpPostProcessData.

Referenced by ScXMLImportWrapper::ImportFromComponent().

void ScXMLImport::SetRangeOverflowType ( ErrCode  nType)
void ScXMLImport::SetSheetNamedRanges ( )

Definition at line 1533 of file xmlimprt.cxx.

References ScDocument::GetRangeName(), m_SheetNamedExpressions, and pDoc.

Referenced by endDocument().

void ScXMLImport::SetStatistics ( const css::uno::Sequence< css::beans::NamedValue > &  i_rStats)
overridevirtual
void ScXMLImport::SetStringRefSyntaxIfMissing ( )
void ScXMLImport::SetStylesToRangesFinished ( )

Definition at line 1334 of file xmlimprt.cxx.

References SetStyleToRanges(), and sPrevStyleName.

Referenced by ScMyTables::DeleteTable().

void ScXMLImport::SetStyleToRanges ( )
private
void ScXMLImport::SetStyleToRanges ( const ScRangeList rRanges,
const OUString *  pStyleName,
const sal_Int16  nCellType,
const OUString *  pCurrency 
)
void SAL_CALL ScXMLImport::setTargetDocument ( const css::uno::Reference< css::lang::XComponent > &  xDoc)
overridevirtual
void ScXMLImport::SetType ( const css::uno::Reference< css::beans::XPropertySet > &  rProperties,
sal_Int32 &  rNumberFormat,
const sal_Int16  nCellType,
const OUString &  rCurrency 
)
void ScXMLImport::SetViewSettings ( const css::uno::Sequence< css::beans::PropertyValue > &  aViewProps)
overridevirtual
void SAL_CALL ScXMLImport::startDocument ( )
overridevirtual
void ScXMLImport::UnlockSolarMutex ( )

Member Data Documentation

ScMyTables ScXMLImport::aTables
private

Lift cycle managed elsewhere, no need to delete.

Definition at line 230 of file xmlimprt.hxx.

Referenced by endDocument(), and GetTables().

bool ScXMLImport::bLoadDoc
private

Definition at line 254 of file xmlimprt.hxx.

Referenced by IsStylesOnlyMode(), and startDocument().

bool ScXMLImport::bNullDateSetted
private

Definition at line 255 of file xmlimprt.hxx.

Referenced by SetNullDateOnUnitConverter().

bool ScXMLImport::bSelfImportingXMLSet
private

Definition at line 256 of file xmlimprt.hxx.

Referenced by endDocument(), and startDocument().

std::unique_ptr<ScMyNamedExpressions> ScXMLImport::m_pMyNamedExpressions
private

Definition at line 234 of file xmlimprt.hxx.

Referenced by SetNamedRanges(), and ~ScXMLImport().

SheetNamedExpMap ScXMLImport::m_SheetNamedExpressions
private

Definition at line 235 of file xmlimprt.hxx.

Referenced by AddNamedExpression(), and SetSheetNamedRanges().

std::vector<ScDocRowHeightUpdater::TabRanges> ScXMLImport::maRecalcRowRanges
private

Definition at line 232 of file xmlimprt.hxx.

Referenced by endDocument(), and GetRecalcRowRanges().

bool ScXMLImport::mbHasNewCondFormatData
private

Definition at line 259 of file xmlimprt.hxx.

Referenced by HasNewCondFormatData().

bool ScXMLImport::mbImportStyles
private

Definition at line 258 of file xmlimprt.hxx.

Referenced by initialize(), SetStyleToRanges(), and SetType().

bool ScXMLImport::mbLockSolarMutex
private

Definition at line 257 of file xmlimprt.hxx.

Referenced by initialize(), and LockSolarMutex().

std::unique_ptr<ScCompiler> ScXMLImport::mpComp
private

Definition at line 206 of file xmlimprt.hxx.

Referenced by GetFormulaErrorConstant(), and setTargetDocument().

std::unique_ptr<ScDocumentImport> ScXMLImport::mpDocImport
private

Definition at line 205 of file xmlimprt.hxx.

Referenced by endDocument(), ExamineDefaultStyle(), GetDoc(), and setTargetDocument().

std::unique_ptr<ScXMLEditAttributeMap> ScXMLImport::mpEditAttrMap
mutableprivate

Definition at line 210 of file xmlimprt.hxx.

Referenced by GetEditAttributeMap().

std::unique_ptr<ScEditEngineDefaulter> ScXMLImport::mpEditEngine
private

Definition at line 207 of file xmlimprt.hxx.

Referenced by GetEditEngine().

std::unique_ptr<sc::PivotTableSources> ScXMLImport::mpPivotSources
private

Definition at line 208 of file xmlimprt.hxx.

Referenced by endDocument(), and GetPivotTableSources().

sc::ImportPostProcessData* ScXMLImport::mpPostProcessData
private

Definition at line 228 of file xmlimprt.hxx.

Referenced by GetPostProcessData(), and SetPostProcessData().

sal_Int16 ScXMLImport::nPrevCellType
private

Definition at line 253 of file xmlimprt.hxx.

Referenced by SetStyleToRanges().

sal_Int32 ScXMLImport::nProgressCount
private

Definition at line 252 of file xmlimprt.hxx.

Referenced by ProgressBarIncrement().

sal_uInt32 ScXMLImport::nSolarMutexLocked
private

Definition at line 251 of file xmlimprt.hxx.

Referenced by LockSolarMutex(), and UnlockSolarMutex().

std::unique_ptr<ScXMLChangeTrackingImportHelper> ScXMLImport::pChangeTrackingImportHelper
private

Definition at line 211 of file xmlimprt.hxx.

Referenced by GetChangeTrackingImportHelper(), and ~ScXMLImport().

std::unique_ptr<ScMyImpDetectiveOpArray> ScXMLImport::pDetectiveOpArray
private

Definition at line 239 of file xmlimprt.hxx.

Referenced by GetDetectiveOpArray(), and ~ScXMLImport().

ScDocument* ScXMLImport::pDoc
private
std::unique_ptr<ScMyLabelRanges> ScXMLImport::pMyLabelRanges
private

Definition at line 237 of file xmlimprt.hxx.

Referenced by SetLabelRanges(), and ~ScXMLImport().

std::unique_ptr<XMLNumberFormatAttributesExportHelper> ScXMLImport::pNumberFormatAttributesExportHelper
private

Definition at line 242 of file xmlimprt.hxx.

Referenced by GetNumberFormatAttributesExportHelper(), and ~ScXMLImport().

std::unique_ptr<SolarMutexGuard> ScXMLImport::pSolarMutexGuard
private

Definition at line 240 of file xmlimprt.hxx.

Referenced by LockSolarMutex(), UnlockSolarMutex(), and ~ScXMLImport().

std::unique_ptr<ScMyStyleNumberFormats> ScXMLImport::pStyleNumberFormats
private

Definition at line 243 of file xmlimprt.hxx.

Referenced by GetStyleNumberFormats(), and ~ScXMLImport().

std::unique_ptr<ScMyStylesImportHelper> ScXMLImport::pStylesImportHelper
private

Definition at line 212 of file xmlimprt.hxx.

Referenced by ScXMLImport(), and ~ScXMLImport().

std::unique_ptr<SvXMLTokenMap> ScXMLImport::pTableAnnotationAttrTokenMap
private

Definition at line 226 of file xmlimprt.hxx.

Referenced by GetTableAnnotationAttrTokenMap(), and ~ScXMLImport().

std::unique_ptr<SvXMLTokenMap> ScXMLImport::pTableElemTokenMap
private

Definition at line 220 of file xmlimprt.hxx.

Referenced by GetTableElemTokenMap(), and ~ScXMLImport().

std::unique_ptr<SvXMLTokenMap> ScXMLImport::pTableRowAttrTokenMap
private

Definition at line 223 of file xmlimprt.hxx.

Referenced by GetTableRowAttrTokenMap(), and ~ScXMLImport().

std::unique_ptr<SvXMLTokenMap> ScXMLImport::pTableRowCellAttrTokenMap
private

Definition at line 225 of file xmlimprt.hxx.

Referenced by ~ScXMLImport().

std::unique_ptr<SvXMLTokenMap> ScXMLImport::pTableRowCellElemTokenMap
private

Definition at line 224 of file xmlimprt.hxx.

Referenced by GetTableRowCellElemTokenMap(), and ~ScXMLImport().

std::unique_ptr<SvXMLTokenMap> ScXMLImport::pTableRowElemTokenMap
private

Definition at line 222 of file xmlimprt.hxx.

Referenced by GetTableRowElemTokenMap(), and ~ScXMLImport().

std::unique_ptr<SvXMLTokenMap> ScXMLImport::pTableRowsElemTokenMap
private

Definition at line 221 of file xmlimprt.hxx.

Referenced by GetTableRowsElemTokenMap(), and ~ScXMLImport().

std::unique_ptr<ScMyImportValidations> ScXMLImport::pValidations
private

Definition at line 238 of file xmlimprt.hxx.

Referenced by GetValidation(), and ~ScXMLImport().

OUString ScXMLImport::sPrevCurrency
private

Definition at line 250 of file xmlimprt.hxx.

Referenced by SetStyleToRanges().

OUString ScXMLImport::sPrevStyleName
private

Definition at line 249 of file xmlimprt.hxx.

Referenced by SetStylesToRangesFinished(), and SetStyleToRanges().

rtl::Reference< XMLPropertySetMapper > ScXMLImport::xCellStylesPropertySetMapper
private

Definition at line 215 of file xmlimprt.hxx.

Referenced by GetCellStylesPropertySetMapper(), and ScXMLImport().

rtl::Reference< XMLPropertySetMapper > ScXMLImport::xColumnStylesPropertySetMapper
private

Definition at line 216 of file xmlimprt.hxx.

Referenced by GetColumnStylesPropertySetMapper(), and ScXMLImport().

css::uno::Reference<css::util::XNumberFormats> ScXMLImport::xNumberFormats
private

Definition at line 244 of file xmlimprt.hxx.

Referenced by SetType().

css::uno::Reference<css::util::XNumberFormatTypes> ScXMLImport::xNumberFormatTypes
private

Definition at line 245 of file xmlimprt.hxx.

Referenced by SetType().

rtl::Reference< XMLPropertySetMapper > ScXMLImport::xRowStylesPropertySetMapper
private

Definition at line 217 of file xmlimprt.hxx.

Referenced by GetRowStylesPropertySetMapper(), and ScXMLImport().

rtl::Reference< XMLPropertyHandlerFactory > ScXMLImport::xScPropHdlFactory
private

Definition at line 214 of file xmlimprt.hxx.

Referenced by ScXMLImport().

css::uno::Reference<css::sheet::XSheetCellRangeContainer> ScXMLImport::xSheetCellRanges
private

Definition at line 247 of file xmlimprt.hxx.

Referenced by SetStyleToRanges().

rtl::Reference< XMLPropertySetMapper > ScXMLImport::xTableStylesPropertySetMapper
private

Definition at line 218 of file xmlimprt.hxx.

Referenced by GetTableStylesPropertySetMapper(), and ScXMLImport().


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