LibreOffice Module sc (master) 1
|
#include <xmlimprt.hxx>
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 () noexcept override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
SvXMLImportContext * | CreateMetaContext (sal_Int32 nElement) |
SvXMLImportContext * | CreateFontDeclsContext () |
SvXMLImportContext * | CreateScriptContext () |
SvXMLImportContext * | CreateStylesContext (bool bAutoStyles) |
SvXMLImportContext * | CreateBodyContext (const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList) |
virtual void | SetStatistics (const css::uno::Sequence< css::beans::NamedValue > &i_rStats) override |
ScDocumentImport & | GetDoc () |
ScDocument * | GetDocument () |
const ScDocument * | GetDocument () const |
ScMyTables & | GetTables () |
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 |
void | SetPostProcessData (sc::ImportPostProcessData *p) |
sc::ImportPostProcessData * | GetPostProcessData () |
sc::PivotTableSources & | GetPivotTableSources () |
void | AddNamedExpression (ScMyNamedExpression aMyNamedExpression) |
void | AddNamedExpression (SCTAB nTab, ScMyNamedExpression aNamedExp) |
void | AddLabelRange (ScMyLabelRange aMyLabelRange) |
void | AddValidation (const ScMyImportValidation &rValidation) |
bool | GetValidation (const OUString &sName, ScMyImportValidation &aValidation) |
ScMyImpDetectiveOpArray * | GetDetectiveOpArray () |
ScXMLChangeTrackingImportHelper * | GetChangeTrackingImportHelper () |
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 |
ScMyStylesImportHelper * | GetStylesImportHelper () |
sal_Int32 | SetCurrencySymbol (const sal_Int32 nKey, std::u16string_view rCurrency) |
bool | IsCurrencySymbol (const sal_Int32 nNumberFormat, std::u16string_view sCurrencySymbol, std::u16string_view sBankSymbol) |
void | SetType (const css::uno::Reference< css::beans::XPropertySet > &rProperties, sal_Int32 &rNumberFormat, const sal_Int16 nCellType, std::u16string_view 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 () |
XMLNumberFormatAttributesExportHelper * | GetNumberFormatAttributesExportHelper () |
ScMyStyleNumberFormats * | GetStyleNumberFormats () |
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 |
ScEditEngineDefaulter * | GetEditEngine () |
const ScXMLEditAttributeMap & | GetEditAttributeMap () const |
virtual void | NotifyContainsEmbeddedFont () override |
Static Public Member Functions | |
static sal_Int16 | GetCellType (const char *rStrValue, const sal_Int32 nStrLength) |
static sal_Int32 | GetRangeType (std::u16string_view sRangeType) |
Protected Member Functions | |
virtual SvXMLImportContext * | CreateFastContext (sal_Int32 nElement, const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &xAttrList) override |
virtual XMLShapeImportHelper * | CreateShapeImport () override |
Private Types | |
typedef ::std::map< SCTAB, ScMyNamedExpressions > | SheetNamedExpMap |
Private Member Functions | |
ScXMLImport (const ScXMLImport &)=delete | |
const ScXMLImport & | operator= (const ScXMLImport &)=delete |
void | SetStyleToRanges () |
void | ExamineDefaultStyle () |
Definition at line 114 of file xmlimprt.hxx.
|
private |
Definition at line 119 of file xmlimprt.hxx.
|
privatedelete |
ScXMLImport::ScXMLImport | ( | const css::uno::Reference< css::uno::XComponentContext > & | rContext, |
OUString const & | implementationName, | ||
SvXMLImportFlags | nImportFlag, | ||
const css::uno::Sequence< OUString > & | sSupportedServiceNames = {} |
||
) |
Definition at line 352 of file xmlimprt.cxx.
References aXMLScCellStylesProperties, aXMLScColumnStylesProperties, aXMLScRowStylesImportProperties, aXMLScTableStylesImportProperties, GetXMLToken(), implementationName, pStylesImportHelper, xCellStylesPropertySetMapper, xColumnStylesPropertySetMapper, XML_N_PRESENTATION, XML_NAMESPACE_PRESENTATION, XML_NP_PRESENTATION, xRowStylesPropertySetMapper, xScPropHdlFactory, and xTableStylesPropertySetMapper.
|
overridevirtualnoexcept |
Definition at line 385 of file xmlimprt.cxx.
References cleanup(), m_aMyNamedExpressions, maMyLabelRanges, maValidations, moSolarMutexGuard, pChangeTrackingImportHelper, pDetectiveOpArray, pNumberFormatAttributesExportHelper, pStyleNumberFormats, and pStylesImportHelper.
|
inline |
Definition at line 233 of file xmlimprt.hxx.
References maMyLabelRanges.
Referenced by ScXMLLabelRangeContext::endFastElement().
|
inline |
Definition at line 226 of file xmlimprt.hxx.
References m_aMyNamedExpressions.
void ScXMLImport::AddNamedExpression | ( | SCTAB | nTab, |
ScMyNamedExpression | aNamedExp | ||
) |
Definition at line 571 of file xmlimprt.cxx.
References m_SheetNamedExpressions.
|
inline |
Definition at line 238 of file xmlimprt.hxx.
References maValidations.
SvXMLImportContext * ScXMLImport::CreateBodyContext | ( | const rtl::Reference< sax_fastparser::FastAttributeList > & | rAttrList | ) |
Definition at line 444 of file xmlimprt.cxx.
|
overrideprotectedvirtual |
Definition at line 320 of file xmlimprt.cxx.
References CreateMetaContext(), OFFICE, XML_DOCUMENT, XML_DOCUMENT_CONTENT, XML_DOCUMENT_META, XML_DOCUMENT_SETTINGS, XML_DOCUMENT_STYLES, and XML_ELEMENT.
SvXMLImportContext * ScXMLImport::CreateFontDeclsContext | ( | ) |
Definition at line 422 of file xmlimprt.cxx.
SvXMLImportContext * ScXMLImport::CreateMetaContext | ( | sal_Int32 | nElement | ) |
Definition at line 449 of file xmlimprt.cxx.
References IsStylesOnlyMode().
Referenced by CreateFastContext().
SvXMLImportContext * ScXMLImport::CreateScriptContext | ( | ) |
Definition at line 466 of file xmlimprt.cxx.
References IsStylesOnlyMode().
|
overrideprotectedvirtual |
Definition at line 552 of file xmlimprt.cxx.
SvXMLImportContext * ScXMLImport::CreateStylesContext | ( | bool | bAutoStyles | ) |
Definition at line 431 of file xmlimprt.cxx.
|
overridevirtual |
Definition at line 1502 of file xmlimprt.cxx.
References pDoc.
|
overridevirtual |
Definition at line 1358 of file xmlimprt.cxx.
References aSeq, aTables, ScDocument::BroadcastUno(), bSelfImportingXMLSet, ScDocument::CompileXML(), ScMyTables::FixupOLEs(), ScSizeDeviceProvider::GetDevice(), ScDocument::GetDocumentShell(), ScDocument::GetDrawLayer(), ScDocument::GetExternalRefManager(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), ScDrawLayer::GetObjDataTab(), SdrModel::GetPage(), ScSizeDeviceProvider::GetPPTX(), ScSizeDeviceProvider::GetPPTY(), ScDocument::GetTable(), ScDocument::GetTableCount(), ScDocument::HasExternalRefManager(), ScDocument::HasRangeOverflow(), i, ScDrawLayer::InitializeCellAnchoredObj(), ScDocument::IsAdjustHeightLocked(), ScDocument::IsNegativePage(), ScSheetSaveData::IsSheetBlocked(), ScDocument::LockAdjustHeight(), maRecalcRowRanges, mpDocImport, mpPivotSources, nCount, pData, pDoc, ScDrawLayer::RecalcPos(), SC_ACTIVETABLE, ScDocument::SetDrawPageSize(), SetLabelRanges(), SetNamedRanges(), SetSheetNamedRanges(), ScDocument::SetStreamValid(), SetStringRefSyntaxIfMissing(), ScDocument::SetVisibleTab(), sName, ScDocument::UnlockAdjustHeight(), ScDocRowHeightUpdater::update(), and ScExternalRefManager::updateAbsAfterLoad().
|
private |
Definition at line 605 of file xmlimprt.cxx.
References ScDocument::GetDefPattern(), sc::NumFmtUtil::isLatinScript(), mpDocImport, and pDoc.
Referenced by InsertStyles(), and startDocument().
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.
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. |
rAttrValue | The value of the processed formula attribute. |
bRestrictToExternalNmsp | If 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 1580 of file xmlimprt.cxx.
References SvXMLNamespaceMap::AttrValue, GetDocument(), ScDocument::GetFormulaParserPool(), 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 |
should use different interface
Definition at line 1550 of file xmlimprt.cxx.
Referenced by ScXMLBodyContext::characters(), ScXMLBodyContext::createFastChildContext(), ScXMLBodyContext::endFastElement(), and ScXMLTableContext::ScXMLTableContext().
|
inline |
Definition at line 216 of file xmlimprt.hxx.
References xCellStylesPropertySetMapper.
Referenced by XMLTableStylesContext::GetImportPropertyMapper().
|
static |
Definition at line 511 of file xmlimprt.cxx.
References PERCENT().
Referenced by ScXMLExternalRefCellContext::ScXMLExternalRefCellContext(), ScXMLTableRowCellContext::ScXMLTableRowCellContext(), and SetType().
ScXMLChangeTrackingImportHelper * ScXMLImport::GetChangeTrackingImportHelper | ( | ) |
Definition at line 589 of file xmlimprt.cxx.
References pChangeTrackingImportHelper.
Referenced by ScXMLBodyContext::createFastChildContext().
|
inline |
Definition at line 217 of file xmlimprt.hxx.
References xColumnStylesPropertySetMapper.
ScMyImpDetectiveOpArray * ScXMLImport::GetDetectiveOpArray | ( | ) |
Definition at line 1674 of file xmlimprt.cxx.
References pDetectiveOpArray.
Referenced by ScXMLBodyContext::endFastElement(), and ScXMLDetectiveOperationContext::endFastElement().
ScDocumentImport & ScXMLImport::GetDoc | ( | ) |
Definition at line 506 of file xmlimprt.cxx.
References mpDocImport.
Referenced by ScMyTables::AddMatrixRange(), ScXMLExternalRefCellContext::endFastElement(), ScXMLTableRowContext::endFastElement(), ScXMLTableRowCellContext::PutFormulaCell(), ScXMLTableRowCellContext::PutTextCell(), and ScXMLTableRowCellContext::PutValueCell().
|
inline |
Definition at line 205 of file xmlimprt.hxx.
References pDoc.
Referenced by ScMyTables::AddColStyle(), ScXMLTableRowCellContext::AddFormulaCell(), ScXMLTableRowCellContext::AddNonFormulaCell(), ScXMLTableRowCellContext::AddTextAndValueCell(), XMLTableStyleContext::ApplyCondFormat(), ScXMLDatabaseRangeContext::ConvertToDBData(), ScXMLDDELinkContext::CreateDDELink(), ScXMLTableRowCellContext::createFastChildContext(), ScMyTables::DeleteTable(), ScXMLTableRowCellContext::DoMerge(), ScXMLCalculationSettingsContext::endFastElement(), ScXMLBodyContext::endFastElement(), ScXMLTableColContext::endFastElement(), ScXMLTableColsContext::endFastElement(), ScXMLConditionalFormatsContext::endFastElement(), ScXMLConditionalFormatContext::endFastElement(), ScXMLConsolidationContext::endFastElement(), ScXMLDDELinkContext::endFastElement(), ScXMLDatabaseRangeContext::endFastElement(), ScXMLExternalRefTabSourceContext::endFastElement(), ScXMLConditionContext::endFastElement(), ScXMLDPConditionContext::endFastElement(), ScXMLTableRowContext::endFastElement(), ScXMLTableContext::endFastElement(), ExtractFormulaNamespaceGrammar(), sc::SparklineGroupsImportContext::fillSparklineAttributes(), ScMyOLEFixer::FixupOLEs(), ScMyTables::GetCurrentColCount(), sc::SparklineGroupsImportContext::insertSparklines(), 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(), ScXMLTableColContext::ScXMLTableColContext(), ScXMLTableContext::ScXMLTableContext(), ScXMLTableRowCellContext::ScXMLTableRowCellContext(), 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().
|
inline |
Definition at line 206 of file xmlimprt.hxx.
References pDoc.
const ScXMLEditAttributeMap & ScXMLImport::GetEditAttributeMap | ( | ) | const |
Definition at line 1661 of file xmlimprt.cxx.
References mpEditAttrMap.
Referenced by ScXMLTableRowCellContext::PushFormat().
ScEditEngineDefaulter * ScXMLImport::GetEditEngine | ( | ) |
Definition at line 1647 of file xmlimprt.cxx.
References ScDocument::GetEditPool(), ScDocument::GetEnginePool(), mpEditEngine, and pDoc.
FormulaError ScXMLImport::GetFormulaErrorConstant | ( | const OUString & | rStr | ) | const |
Definition at line 1639 of file xmlimprt.cxx.
References mpComp.
Referenced by ScXMLTableRowCellContext::IsPossibleErrorString(), and ScXMLTableRowCellContext::PutFormulaCell().
XMLNumberFormatAttributesExportHelper * ScXMLImport::GetNumberFormatAttributesExportHelper | ( | ) |
Definition at line 1097 of file xmlimprt.cxx.
References pNumberFormatAttributesExportHelper.
Referenced by SetType().
sc::PivotTableSources & ScXMLImport::GetPivotTableSources | ( | ) |
Definition at line 312 of file xmlimprt.cxx.
References mpPivotSources.
Referenced by ScXMLDataPilotTableContext::endFastElement().
|
inline |
Definition at line 222 of file xmlimprt.hxx.
References mpPostProcessData.
Referenced by ScXMLDataStreamContext::endFastElement().
|
static |
Definition at line 1187 of file xmlimprt.cxx.
References COLUMN_HEADER, i, ROW_HEADER, SC_FILTER, SC_PRINT_RANGE, and SC_REPEAT_ROW.
|
inline |
Definition at line 210 of file xmlimprt.hxx.
References maRecalcRowRanges.
Referenced by ScXMLTableRowContext::endFastElement().
|
inline |
Definition at line 218 of file xmlimprt.hxx.
References xRowStylesPropertySetMapper.
Referenced by XMLTableStylesContext::GetImportPropertyMapper().
ScMyStyleNumberFormats * ScXMLImport::GetStyleNumberFormats | ( | ) |
Definition at line 1104 of file xmlimprt.cxx.
References pStyleNumberFormats.
Referenced by SetStyleToRanges().
|
inline |
Definition at line 250 of file xmlimprt.hxx.
References pStylesImportHelper.
Referenced by ScMyTables::AddColStyle(), ScMyTables::AddColumn(), ScXMLTableRowCellContext::AddFormulaCell(), ScXMLTableRowCellContext::AddNonFormulaCell(), ScMyTables::DeleteTable(), ScXMLTableContext::endFastElement(), ScXMLTableRowCellContext::ScXMLTableRowCellContext(), and ScMyTables::SetRowStyle().
|
inline |
Definition at line 208 of file xmlimprt.hxx.
References aTables.
Referenced by ScXMLTableRowCellContext::AddFormulaCell(), ScXMLTableRowCellContext::AddTextAndValueCell(), XMLTableStyleContext::ApplyCondFormat(), ScXMLTableRowCellContext::createFastChildContext(), ScXMLTableContext::createFastChildContext(), ScXMLTableShapesContext::createFastChildContext(), ScXMLTableRowCellContext::endFastElement(), ScXMLTableColContext::endFastElement(), ScXMLTableColsContext::endFastElement(), ScXMLConditionalFormatsContext::endFastElement(), ScXMLConditionalFormatContext::endFastElement(), ScXMLTableRowContext::endFastElement(), ScXMLTableRowsContext::endFastElement(), ScXMLTableContext::endFastElement(), ScCellTextStyleContext::FillPropertySet(), ScXMLTableRowCellContext::PushFormat(), ScXMLTableRowCellContext::PushParagraphFieldSheetName(), ScXMLTableRowCellContext::PutTextCell(), ScXMLTableRowCellContext::PutValueCell(), ScXMLDetectiveOperationContext::ScXMLDetectiveOperationContext(), ScXMLTableColsContext::ScXMLTableColsContext(), ScXMLTableContext::ScXMLTableContext(), ScXMLTableProtectionContext::ScXMLTableProtectionContext(), ScXMLTableRowCellContext::ScXMLTableRowCellContext(), ScXMLTableRowContext::ScXMLTableRowContext(), ScXMLTableRowsContext::ScXMLTableRowsContext(), ScXMLTableRowCellContext::SetAnnotation(), and ScXMLTableRowCellContext::SetDetectiveObj().
|
inline |
Definition at line 219 of file xmlimprt.hxx.
References xTableStylesPropertySetMapper.
bool ScXMLImport::GetValidation | ( | const OUString & | sName, |
ScMyImportValidation & | aValidation | ||
) |
Definition at line 557 of file xmlimprt.cxx.
References maValidations, and sName.
Referenced by ScXMLTableRowCellContext::SetContentValidation().
|
inline |
Definition at line 261 of file xmlimprt.hxx.
References mbHasNewCondFormatData.
|
overridevirtual |
Definition at line 403 of file xmlimprt.cxx.
References aArguments, mbImportStyles, mbLockSolarMutex, SC_UNO_ODS_IMPORT_STYLES, and SC_UNO_ODS_LOCK_SOLAR_MUTEX.
void ScXMLImport::InsertStyles | ( | ) |
Definition at line 596 of file xmlimprt.cxx.
References ExamineDefaultStyle().
Referenced by XMLTableStylesContext::endFastElement().
bool ScXMLImport::IsCurrencySymbol | ( | const sal_Int32 | nNumberFormat, |
std::u16string_view | sCurrencySymbol, | ||
std::u16string_view | sBankSymbol | ||
) |
Definition at line 847 of file xmlimprt.cxx.
References SvNumberFormatter::GetLegacyOnlyCurrencyEntry(), and SC_CURRENCYSYMBOL.
Referenced by SetType().
|
inline |
Definition at line 212 of file xmlimprt.hxx.
References bLoadDoc.
Referenced by CreateMetaContext(), and CreateScriptContext().
void ScXMLImport::LockSolarMutex | ( | ) |
Definition at line 1519 of file xmlimprt.cxx.
References DBG_TESTSOLARMUTEX, mbLockSolarMutex, moSolarMutexGuard, and nSolarMutexLocked.
Referenced by ScXMLTableRowCellContext::LockSolarMutex(), ScXMLImport::MutexGuard::MutexGuard(), ScXMLConsolidationContext::ScXMLConsolidationContext(), ScXMLDatabaseRangesContext::ScXMLDatabaseRangesContext(), ScXMLDataPilotTablesContext::ScXMLDataPilotTablesContext(), ScXMLDDELinksContext::ScXMLDDELinksContext(), ScXMLLabelRangesContext::ScXMLLabelRangesContext(), ScXMLMappingsContext::ScXMLMappingsContext(), ScXMLNamedExpressionsContext::ScXMLNamedExpressionsContext(), ScXMLTableScenarioContext::ScXMLTableScenarioContext(), and ScXMLTrackedChangesContext::ScXMLTrackedChangesContext().
|
overridevirtual |
Definition at line 1668 of file xmlimprt.cxx.
References pDoc, and ScDocument::SetEmbedFonts().
|
privatedelete |
void ScXMLImport::ProgressBarIncrement | ( | ) |
Definition at line 1570 of file xmlimprt.cxx.
References nProgressCount.
Referenced by ScXMLTableRowCellContext::AddFormulaCell(), ScXMLTableRowCellContext::createFastChildContext(), ScXMLTableContext::endFastElement(), ScXMLTableRowCellContext::PutTextCell(), and ScXMLTableRowCellContext::PutValueCell().
void ScXMLImport::SetChangeTrackingViewSettings | ( | const css::uno::Sequence< css::beans::PropertyValue > & | rChangeProps | ) |
Definition at line 618 of file xmlimprt.cxx.
References ScRangeStringConverter::GetRangeListFromString(), pDoc, ScDocument::SetChangeViewSettings(), ScChangeViewSettings::SetHasAuthor(), ScChangeViewSettings::SetHasComment(), ScChangeViewSettings::SetHasDate(), ScChangeViewSettings::SetHasRange(), ScChangeViewSettings::SetShowAccepted(), ScChangeViewSettings::SetShowChanges(), ScChangeViewSettings::SetShowRejected(), ScChangeViewSettings::SetTheAuthorToShow(), ScChangeViewSettings::SetTheComment(), ScChangeViewSettings::SetTheDateMode(), ScChangeViewSettings::SetTheFirstDateTime(), ScChangeViewSettings::SetTheLastDateTime(), ScChangeViewSettings::SetTheRangeList(), and sName.
Referenced by SetViewSettings().
|
overridevirtual |
Definition at line 739 of file xmlimprt.cxx.
References SvXMLUnitConverter::convertPropertySet(), comphelper::Base64::decode(), ScDocument::GetChangeTrack(), i, Name, nCount, pDoc, ScDocument::SetChangeTrack(), ScChangeTrack::SetProtection(), and Value.
sal_Int32 ScXMLImport::SetCurrencySymbol | ( | const sal_Int32 | nKey, |
std::u16string_view | rCurrency | ||
) |
Definition at line 798 of file xmlimprt.cxx.
References aSeq, GetDocument(), LocaleDataWrapper::getNumDecimalSep(), LocaleDataWrapper::getNumThousandSep(), comphelper::getProcessComponentContext(), SC_LOCALE, SetError(), XMLERROR_API, and XMLERROR_FLAG_ERROR.
Referenced by SetType().
void ScXMLImport::SetLabelRanges | ( | ) |
Definition at line 1213 of file xmlimprt.cxx.
References ScRangeStringConverter::GetRangeFromString(), maMyLabelRanges, pDoc, SC_UNO_COLLABELRNG, and SC_UNO_ROWLABELRNG.
Referenced by endDocument().
void ScXMLImport::SetNamedRanges | ( | ) |
Definition at line 1311 of file xmlimprt.cxx.
References ScDocument::GetRangeName(), m_aMyNamedExpressions, and pDoc.
Referenced by endDocument().
|
inline |
Definition at line 260 of file xmlimprt.hxx.
References mbHasNewCondFormatData.
Referenced by ScXMLConditionalFormatsContext::ScXMLConditionalFormatsContext().
bool ScXMLImport::SetNullDateOnUnitConverter | ( | ) |
Definition at line 1089 of file xmlimprt.cxx.
References bNullDateSetted.
Referenced by ScXMLExternalRefCellContext::ScXMLExternalRefCellContext(), and ScXMLTableRowCellContext::ScXMLTableRowCellContext().
void ScXMLImport::SetPostProcessData | ( | sc::ImportPostProcessData * | p | ) |
Definition at line 307 of file xmlimprt.cxx.
References mpPostProcessData, and p.
Referenced by ScXMLImportWrapper::ImportFromComponent().
void ScXMLImport::SetRangeOverflowType | ( | ErrCode | nType | ) |
Definition at line 1560 of file xmlimprt.cxx.
References nType, pDoc, and ScDocument::SetRangeOverflowType().
Referenced by ScXMLTableRowCellContext::AddFormulaCell(), ScXMLTableRowCellContext::AddTextAndValueCell(), and ScXMLBodyContext::createFastChildContext().
void ScXMLImport::SetSheetNamedRanges | ( | ) |
Definition at line 1325 of file xmlimprt.cxx.
References ScDocument::GetRangeName(), m_SheetNamedExpressions, and pDoc.
Referenced by endDocument().
|
overridevirtual |
Definition at line 478 of file xmlimprt.cxx.
void ScXMLImport::SetStringRefSyntaxIfMissing | ( | ) |
Definition at line 1342 of file xmlimprt.cxx.
References formula::FormulaGrammar::CONV_A1_XL_A1, ScDocument::GetCalcConfig(), ScCalcConfig::mbHasStringRefSyntax, ScCalcConfig::meStringRefAddressSyntax, pDoc, and ScDocument::SetCalcConfig().
Referenced by endDocument().
void ScXMLImport::SetStylesToRangesFinished | ( | ) |
Definition at line 1111 of file xmlimprt.cxx.
References SetStyleToRanges(), and sPrevStyleName.
Referenced by ScMyTables::DeleteTable().
|
private |
Definition at line 977 of file xmlimprt.cxx.
References ScSheetSaveData::AddCellStyle(), ScMyStyleNumberFormats::AddStyleNumberFormat(), XMLTableStyleContext::ApplyCondFormat(), XMLTableStyleContext::FillPropertySet(), SvXMLStylesContext::FindStyleChildContext(), XMLTableStyleContext::GetLastSheet(), XMLTableStyleContext::GetNumberFormat(), GetStyleNumberFormats(), ScFormatSaveData::maIDToName, mbImportStyles, nPrevCellType, SC_UNONAME_CELLSTYL, XMLTableStyleContext::SetLastSheet(), SetType(), sPrevCurrency, sPrevStyleName, and xSheetCellRanges.
Referenced by ScMyStyleRanges::SetStylesToRanges(), SetStylesToRangesFinished(), and SetStyleToRanges().
void ScXMLImport::SetStyleToRanges | ( | const ScRangeList & | rRanges, |
const OUString * | pStyleName, | ||
const sal_Int16 | nCellType, | ||
const OUString * | pCurrency | ||
) |
Definition at line 1044 of file xmlimprt.cxx.
References mbImportStyles, nPrevCellType, SetStyleToRanges(), sPrevCurrency, sPrevStyleName, and xSheetCellRanges.
|
overridevirtual |
Definition at line 1118 of file xmlimprt.cxx.
References ScDocument::GetDocumentShell(), ScXMLConverter::GetScDocument(), formula::FormulaGrammar::GRAM_ODFF, mpComp, mpDocImport, pDoc, and xModel.
void ScXMLImport::SetType | ( | const css::uno::Reference< css::beans::XPropertySet > & | rProperties, |
sal_Int32 & | rNumberFormat, | ||
const sal_Int16 | nCellType, | ||
std::u16string_view | rCurrency | ||
) |
Definition at line 899 of file xmlimprt.cxx.
References GetCellType(), GetNumberFormatAttributesExportHelper(), IsCurrencySymbol(), mbImportStyles, SC_LOCALE, SC_UNONAME_NUMFMT, SetCurrencySymbol(), xNumberFormats, and xNumberFormatTypes.
Referenced by SetStyleToRanges().
|
overridevirtual |
Definition at line 698 of file xmlimprt.cxx.
References ScModelObj::GetEmbeddedObject(), SetChangeTrackingViewSettings(), SfxObjectShell::SetVisArea(), tools::Rectangle::setWidth(), and sName.
|
overridevirtual |
Definition at line 1141 of file xmlimprt.cxx.
References bLoadDoc, bSelfImportingXMLSet, ExamineDefaultStyle(), ScDocument::IsImportingXML(), pDoc, ScSheetSaveData::StoreInitialNamespaces(), u, and UnlockSolarMutex().
void ScXMLImport::UnlockSolarMutex | ( | ) |
Definition at line 1537 of file xmlimprt.cxx.
References moSolarMutexGuard, and nSolarMutexLocked.
Referenced by ScXMLTableRowCellContext::endFastElement(), startDocument(), ScXMLConsolidationContext::~ScXMLConsolidationContext(), ScXMLDatabaseRangesContext::~ScXMLDatabaseRangesContext(), ScXMLDataPilotTablesContext::~ScXMLDataPilotTablesContext(), ScXMLDDELinksContext::~ScXMLDDELinksContext(), ScXMLLabelRangesContext::~ScXMLLabelRangesContext(), ScXMLMappingsContext::~ScXMLMappingsContext(), ScXMLNamedExpressionsContext::~ScXMLNamedExpressionsContext(), ScXMLTableScenarioContext::~ScXMLTableScenarioContext(), and ScXMLTrackedChangesContext::~ScXMLTrackedChangesContext().
|
private |
Lift cycle managed elsewhere, no need to delete.
Definition at line 139 of file xmlimprt.hxx.
Referenced by endDocument(), and GetTables().
|
private |
Definition at line 163 of file xmlimprt.hxx.
Referenced by IsStylesOnlyMode(), and startDocument().
|
private |
Definition at line 164 of file xmlimprt.hxx.
Referenced by SetNullDateOnUnitConverter().
|
private |
Definition at line 165 of file xmlimprt.hxx.
Referenced by endDocument(), and startDocument().
|
private |
Definition at line 143 of file xmlimprt.hxx.
Referenced by AddNamedExpression(), SetNamedRanges(), and ~ScXMLImport().
|
private |
Definition at line 144 of file xmlimprt.hxx.
Referenced by AddNamedExpression(), and SetSheetNamedRanges().
|
private |
Definition at line 146 of file xmlimprt.hxx.
Referenced by AddLabelRange(), SetLabelRanges(), and ~ScXMLImport().
|
private |
Definition at line 141 of file xmlimprt.hxx.
Referenced by endDocument(), and GetRecalcRowRanges().
|
private |
Definition at line 147 of file xmlimprt.hxx.
Referenced by AddValidation(), GetValidation(), and ~ScXMLImport().
|
private |
Definition at line 168 of file xmlimprt.hxx.
Referenced by HasNewCondFormatData(), and SetNewCondFormatData().
|
private |
Definition at line 167 of file xmlimprt.hxx.
Referenced by initialize(), SetStyleToRanges(), and SetType().
|
private |
Definition at line 166 of file xmlimprt.hxx.
Referenced by initialize(), and LockSolarMutex().
|
private |
Definition at line 149 of file xmlimprt.hxx.
Referenced by LockSolarMutex(), UnlockSolarMutex(), and ~ScXMLImport().
|
private |
Definition at line 123 of file xmlimprt.hxx.
Referenced by GetFormulaErrorConstant(), and setTargetDocument().
|
private |
Definition at line 122 of file xmlimprt.hxx.
Referenced by endDocument(), ExamineDefaultStyle(), GetDoc(), and setTargetDocument().
|
mutableprivate |
Definition at line 127 of file xmlimprt.hxx.
Referenced by GetEditAttributeMap().
|
private |
Definition at line 124 of file xmlimprt.hxx.
Referenced by GetEditEngine().
|
private |
Definition at line 125 of file xmlimprt.hxx.
Referenced by endDocument(), and GetPivotTableSources().
|
private |
Definition at line 137 of file xmlimprt.hxx.
Referenced by GetPostProcessData(), and SetPostProcessData().
|
private |
Definition at line 162 of file xmlimprt.hxx.
Referenced by SetStyleToRanges().
|
private |
Definition at line 161 of file xmlimprt.hxx.
Referenced by ProgressBarIncrement().
|
private |
Definition at line 160 of file xmlimprt.hxx.
Referenced by LockSolarMutex(), and UnlockSolarMutex().
|
private |
Definition at line 128 of file xmlimprt.hxx.
Referenced by GetChangeTrackingImportHelper(), and ~ScXMLImport().
|
private |
Definition at line 148 of file xmlimprt.hxx.
Referenced by GetDetectiveOpArray(), and ~ScXMLImport().
|
private |
Definition at line 121 of file xmlimprt.hxx.
Referenced by DisposingModel(), endDocument(), ExamineDefaultStyle(), GetDocument(), GetEditEngine(), NotifyContainsEmbeddedFont(), SetChangeTrackingViewSettings(), SetConfigurationSettings(), SetLabelRanges(), SetNamedRanges(), SetRangeOverflowType(), SetSheetNamedRanges(), SetStringRefSyntaxIfMissing(), setTargetDocument(), and startDocument().
|
private |
Definition at line 151 of file xmlimprt.hxx.
Referenced by GetNumberFormatAttributesExportHelper(), and ~ScXMLImport().
|
private |
Definition at line 152 of file xmlimprt.hxx.
Referenced by GetStyleNumberFormats(), and ~ScXMLImport().
|
private |
Definition at line 129 of file xmlimprt.hxx.
Referenced by GetStylesImportHelper(), ScXMLImport(), and ~ScXMLImport().
|
private |
Definition at line 159 of file xmlimprt.hxx.
Referenced by SetStyleToRanges().
|
private |
Definition at line 158 of file xmlimprt.hxx.
Referenced by SetStylesToRangesFinished(), and SetStyleToRanges().
|
private |
Definition at line 132 of file xmlimprt.hxx.
Referenced by GetCellStylesPropertySetMapper(), and ScXMLImport().
|
private |
Definition at line 133 of file xmlimprt.hxx.
Referenced by GetColumnStylesPropertySetMapper(), and ScXMLImport().
|
private |
Definition at line 153 of file xmlimprt.hxx.
Referenced by SetType().
|
private |
Definition at line 154 of file xmlimprt.hxx.
Referenced by SetType().
|
private |
Definition at line 134 of file xmlimprt.hxx.
Referenced by GetRowStylesPropertySetMapper(), and ScXMLImport().
|
private |
Definition at line 131 of file xmlimprt.hxx.
Referenced by ScXMLImport().
|
private |
Definition at line 156 of file xmlimprt.hxx.
Referenced by SetStyleToRanges().
|
private |
Definition at line 135 of file xmlimprt.hxx.
Referenced by GetTableStylesPropertySetMapper(), and ScXMLImport().