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