28 #include <com/sun/star/sheet/ValidationAlertStyle.hpp>
29 #include <com/sun/star/sheet/ValidationType.hpp>
30 #include <com/sun/star/sheet/ConditionOperator.hpp>
54 struct ImportPostProcessData;
55 struct PivotTableSources;
175 const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList >& xAttrList )
override;
181 const css::uno::Reference< css::uno::XComponentContext >& rContext,
183 const css::uno::Sequence< OUString > & sSupportedServiceNames = {});
214 static sal_Int16
GetCellType(
const char* rStrValue,
const sal_Int32 nStrLength);
228 if (!m_pMyNamedExpressions)
230 m_pMyNamedExpressions->push_back(std::unique_ptr<ScMyNamedExpression>(pMyNamedExpression));
238 pMyLabelRanges->push_back(std::move(pMyLabelRange)); }
243 pValidations->push_back(rValidation); }
252 virtual void SetViewSettings(
const css::uno::Sequence<css::beans::PropertyValue>& aViewProps)
override;
256 sal_Int32
SetCurrencySymbol(
const sal_Int32 nKey, std::u16string_view rCurrency);
257 bool IsCurrencySymbol(
const sal_Int32 nNumberFormat,
const OUString& sCurrencySymbol, std::u16string_view sBankSymbol);
258 void SetType(
const css::uno::Reference <css::beans::XPropertySet>& rProperties,
259 sal_Int32& rNumberFormat,
260 const sal_Int16 nCellType,
261 std::u16string_view rCurrency);
274 const sal_Int16 nCellType,
const OUString* pCurrency);
282 virtual void SAL_CALL
setTargetDocument(
const css::uno::Reference< css::lang::XComponent >& xDoc )
override;
308 static sal_Int32
GetRangeType(
const OUString& sRangeType);
346 OUString& rFormulaNmsp,
348 const OUString& rAttrValue,
349 bool bRestrictToExternalNmsp =
false )
const;
void SetStringRefSyntaxIfMissing()
css::uno::Reference< css::sheet::XSheetCellRangeContainer > xSheetCellRanges
virtual SvXMLImportContext * CreateFastContext(sal_Int32 nElement, const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &xAttrList) override
SvXMLImportContext * CreateScriptContext()
css::uno::Reference< css::util::XNumberFormatTypes > xNumberFormatTypes
bool mbHasNewCondFormatData
ScMyTables aTables
Lift cycle managed elsewhere, no need to delete.
Provide mapping from ODF text formatting styles to EditEngine's, for rich-text cell content import...
std::vector< ScDocRowHeightUpdater::TabRanges > & GetRecalcRowRanges()
Store pivot table data that need to be post-processed at the end of the import.
ScDocument * GetDocument()
std::list< std::unique_ptr< const ScMyLabelRange > > ScMyLabelRanges
Stores data imported from the file that need to be processed at the end of the import process...
std::vector< ScDocRowHeightUpdater::TabRanges > maRecalcRowRanges
SvXMLImportContext * CreateFontDeclsContext()
std::vector< ScMyImportValidation > ScMyImportValidations
const ScXMLEditAttributeMap & GetEditAttributeMap() const
ScMyStylesImportHelper * GetStylesImportHelper()
Accessor class to ScDocument.
OUString sBaseCellAddress
std::unique_ptr< ScMyImportValidations > pValidations
css::sheet::ConditionOperator aOperator
SvXMLImportContext * CreateMetaContext(sal_Int32 nElement)
rtl::Reference< XMLPropertySetMapper > xRowStylesPropertySetMapper
bool SetNullDateOnUnitConverter()
const ScXMLImport & operator=(const ScXMLImport &)=delete
std::unique_ptr< ScDocumentImport > mpDocImport
sc::ImportPostProcessData * mpPostProcessData
std::unique_ptr< sc::PivotTableSources > mpPivotSources
bool bSelfImportingXMLSet
const ScDocument * GetDocument() const
FormulaError GetFormulaErrorConstant(const OUString &rStr) const
ScXMLImport(const ScXMLImport &)=delete
sal_Int32 SetCurrencySymbol(const sal_Int32 nKey, std::u16string_view rCurrency)
virtual void SAL_CALL endDocument() override
SvXMLImportContext * CreateStylesContext(bool bAutoStyles)
SheetNamedExpMap m_SheetNamedExpressions
bool GetValidation(const OUString &sName, ScMyImportValidation &aValidation)
void ExamineDefaultStyle()
const rtl::Reference< XMLPropertySetMapper > & GetTableStylesPropertySetMapper() const
virtual void SetStatistics(const css::uno::Sequence< css::beans::NamedValue > &i_rStats) override
const rtl::Reference< XMLPropertySetMapper > & GetRowStylesPropertySetMapper() const
void SetPostProcessData(sc::ImportPostProcessData *p)
virtual void SetConfigurationSettings(const css::uno::Sequence< css::beans::PropertyValue > &aConfigProps) override
std::unique_ptr< ScXMLEditAttributeMap > mpEditAttrMap
class SAL_NO_VTABLE XPropertySet
virtual void SAL_CALL startDocument() override
std::unique_ptr< ScMyStyleNumberFormats > pStyleNumberFormats
std::unique_ptr< ScCompiler > mpComp
bool IsCurrencySymbol(const sal_Int32 nNumberFormat, const OUString &sCurrencySymbol, std::u16string_view sBankSymbol)
const rtl::Reference< XMLPropertySetMapper > & GetCellStylesPropertySetMapper() const
std::unique_ptr< ScMyLabelRanges > pMyLabelRanges
css::sheet::ValidationType aValidationType
const rtl::Reference< XMLPropertySetMapper > & GetColumnStylesPropertySetMapper() const
sal_uInt32 nSolarMutexLocked
Use this class to manage solar mutex locking instead of calling LockSolarMutex() and UnlockSolarMutex...
std::unique_ptr< ScMyNamedExpressions > m_pMyNamedExpressions
static sal_Int16 GetCellType(const char *rStrValue, const sal_Int32 nStrLength)
::std::map< SCTAB, std::unique_ptr< ScMyNamedExpressions > > SheetNamedExpMap
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 pas...
::std::list< std::unique_ptr< ScMyNamedExpression > > ScMyNamedExpressions
XMLNumberFormatAttributesExportHelper * GetNumberFormatAttributesExportHelper()
void AddValidation(const ScMyImportValidation &rValidation)
std::unique_ptr< ScEditEngineDefaulter > mpEditEngine
static sal_Int32 GetRangeType(const OUString &sRangeType)
std::unique_ptr< XMLNumberFormatAttributesExportHelper > pNumberFormatAttributesExportHelper
OUString sBaseCellAddress
ScEditEngineDefaulter * GetEditEngine()
css::uno::Reference< css::util::XNumberFormats > xNumberFormats
SvXMLImportContext * CreateBodyContext(const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList)
formula::FormulaGrammar::Grammar eGrammar2
virtual void SetViewSettings(const css::uno::Sequence< css::beans::PropertyValue > &aViewProps) override
bool IsStylesOnlyMode() const
bool HasNewCondFormatData() const
std::unique_ptr< SolarMutexGuard > pSolarMutexGuard
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
ScMyStyleNumberFormats * GetStyleNumberFormats()
rtl::Reference< XMLPropertySetMapper > xColumnStylesPropertySetMapper
std::unique_ptr< ScMyStylesImportHelper > pStylesImportHelper
rtl::Reference< XMLPropertySetMapper > xTableStylesPropertySetMapper
css::sheet::ValidationAlertStyle aAlertStyle
ScXMLChangeTrackingImportHelper * GetChangeTrackingImportHelper()
std::unique_ptr< ScMyImpDetectiveOpArray > pDetectiveOpArray
void AddLabelRange(std::unique_ptr< const ScMyLabelRange > pMyLabelRange)
virtual void DisposingModel() override
void SetType(const css::uno::Reference< css::beans::XPropertySet > &rProperties, sal_Int32 &rNumberFormat, const sal_Int16 nCellType, std::u16string_view rCurrency)
formula::FormulaGrammar::Grammar eGrammar
ScMyImpDetectiveOpArray * GetDetectiveOpArray()
formula::FormulaGrammar::Grammar eGrammar1
void SetChangeTrackingViewSettings(const css::uno::Sequence< css::beans::PropertyValue > &rChangeProps)
virtual ~ScXMLImport() override
rtl::Reference< XMLPropertyHandlerFactory > xScPropHdlFactory
void AddNamedExpression(ScMyNamedExpression *pMyNamedExpression)
rtl::Reference< XMLPropertySetMapper > xCellStylesPropertySetMapper
sal_Int32 GetByteOffset() const
void ProgressBarIncrement()
sc::PivotTableSources & GetPivotTableSources()
virtual void SAL_CALL setTargetDocument(const css::uno::Reference< css::lang::XComponent > &xDoc) override
MutexGuard(ScXMLImport &rImport)
virtual XMLShapeImportHelper * CreateShapeImport() override
sc::ImportPostProcessData * GetPostProcessData()
virtual void NotifyContainsEmbeddedFont() override
ScDocumentImport & GetDoc()
void SetStylesToRangesFinished()
void SetRangeOverflowType(ErrCode nType)
void SetSheetNamedRanges()
void SetNewCondFormatData()
std::unique_ptr< ScXMLChangeTrackingImportHelper > pChangeTrackingImportHelper