LibreOffice Module sc (master) 1
|
#include <orcusinterface.hxx>
Classes | |
struct | CellStoreToken |
Public Member Functions | |
ScOrcusFactory (ScDocument &rDoc, bool bSkipDefaultStyles=false) | |
virtual orcus::spreadsheet::iface::import_sheet * | append_sheet (orcus::spreadsheet::sheet_t sheet_index, std::string_view sheet_name) override |
virtual orcus::spreadsheet::iface::import_sheet * | get_sheet (std::string_view sheet_name) override |
virtual orcus::spreadsheet::iface::import_sheet * | get_sheet (orcus::spreadsheet::sheet_t sheet_index) override |
virtual orcus::spreadsheet::iface::import_global_settings * | get_global_settings () override |
virtual orcus::spreadsheet::iface::import_shared_strings * | get_shared_strings () override |
virtual orcus::spreadsheet::iface::import_named_expression * | get_named_expression () override |
virtual orcus::spreadsheet::iface::import_styles * | get_styles () override |
virtual orcus::spreadsheet::iface::import_reference_resolver * | get_reference_resolver (orcus::spreadsheet::formula_ref_context_t cxt) override |
virtual void | finalize () override |
ScDocumentImport & | getDoc () |
size_t | appendString (const OUString &rStr) |
size_t | addString (const OUString &rStr) |
const OUString * | getString (size_t nIndex) const |
void | pushCellStoreAutoToken (const ScAddress &rPos, const OUString &rVal) |
void | pushCellStoreToken (const ScAddress &rPos, uint32_t nStrIndex) |
void | pushCellStoreToken (const ScAddress &rPos, double fValue) |
void | pushCellStoreToken (const ScAddress &rPos, const OUString &rFormula, formula::FormulaGrammar::Grammar eGrammar) |
void | pushFillDownCellsToken (const ScAddress &rPos, uint32_t nFillSize) |
void | pushSharedFormulaToken (const ScAddress &rPos, uint32_t nIndex) |
void | pushMatrixFormulaToken (const ScAddress &rPos, const OUString &rFormula, formula::FormulaGrammar::Grammar eGrammar, uint32_t nRowRange, uint32_t nColRange) |
void | pushFormulaResult (const ScAddress &rPos, double fValue) |
void | pushFormulaResult (const ScAddress &rPos, const OUString &rValue) |
void | incrementProgress () |
void | setStatusIndicator (const css::uno::Reference< css::task::XStatusIndicator > &rIndicator) |
const ScOrcusGlobalSettings & | getGlobalSettings () const |
Private Types | |
typedef std::unordered_map< OUString, size_t > | StringHashType |
typedef std::vector< CellStoreToken > | CellStoreTokensType |
Private Attributes | |
ScDocumentImport | maDoc |
std::vector< OUString > | maStrings |
StringHashType | maStringHash |
CellStoreTokensType | maCellStoreTokens |
ScOrcusGlobalSettings | maGlobalSettings |
ScOrcusRefResolver | maRefResolver |
ScOrcusSharedStrings | maSharedStrings |
ScOrcusNamedExpression | maNamedExpressions |
std::vector< std::unique_ptr< ScOrcusSheet > > | maSheets |
ScOrcusStyles | maStyles |
int | mnProgress |
css::uno::Reference< css::task::XStatusIndicator > | mxStatusIndicator |
Definition at line 664 of file orcusinterface.hxx.
|
private |
Definition at line 700 of file orcusinterface.hxx.
|
private |
Definition at line 699 of file orcusinterface.hxx.
ScOrcusFactory::ScOrcusFactory | ( | ScDocument & | rDoc, |
bool | bSkipDefaultStyles = false |
||
) |
Definition at line 310 of file interface.cxx.
size_t ScOrcusFactory::addString | ( | const OUString & | rStr | ) |
Definition at line 570 of file interface.cxx.
References appendString(), and maStringHash.
Referenced by ScOrcusSharedStrings::add(), and ScOrcusSharedStrings::commit_segments().
|
overridevirtual |
Definition at line 319 of file interface.cxx.
References ScDocumentImport::appendSheet(), ScDocumentImport::getSheetCount(), ScOrcusGlobalSettings::getTextEncoding(), maDoc, maGlobalSettings, maSheets, and ScDocumentImport::setSheetName().
size_t ScOrcusFactory::appendString | ( | const OUString & | rStr | ) |
Definition at line 561 of file interface.cxx.
References maStringHash, maStrings, and nPos.
Referenced by addString(), and ScOrcusSharedStrings::append().
|
overridevirtual |
Definition at line 427 of file interface.cxx.
References ScRange::aEnd, ScRange::aStart, ScOrcusFactory::CellStoreToken::Auto, ScCompiler::CompileString(), ScDocumentImport::fillDownCells(), ScOrcusFactory::CellStoreToken::FillDownCells, ScDocumentImport::finalize(), ScOrcusFactory::CellStoreToken::Formula, ScOrcusFactory::CellStoreToken::FormulaWithResult, sc::SharedFormulaGroups::get(), ScDocumentImport::getDoc(), ScOrcusSheet::getSharedFormulaGroups(), ScDocument::GetSharedStringPool(), ScAddress::IncCol(), incrementProgress(), ScAddress::IncRow(), svl::SharedStringPool::intern(), maCellStoreTokens, maDoc, maSheets, maStrings, ScOrcusFactory::CellStoreToken::Matrix, mxStatusIndicator, ScOrcusFactory::CellStoreToken::Numeric, ScDocumentImport::setAutoInput(), ScDocumentImport::setFormulaCell(), ScDocumentImport::setMatrixCells(), ScDocumentImport::setNumericCell(), ScDocumentImport::setStringCell(), ScOrcusFactory::CellStoreToken::SharedFormula, ScOrcusFactory::CellStoreToken::SharedFormulaWithResult, and ScOrcusFactory::CellStoreToken::String.
Referenced by ScOrcusXMLContextImpl::importXML().
|
overridevirtual |
Definition at line 393 of file interface.cxx.
References maGlobalSettings.
|
overridevirtual |
Definition at line 403 of file interface.cxx.
References maNamedExpressions.
|
overridevirtual |
Definition at line 413 of file interface.cxx.
References maRefResolver.
|
overridevirtual |
Definition at line 398 of file interface.cxx.
References maSharedStrings.
|
overridevirtual |
Definition at line 377 of file interface.cxx.
|
overridevirtual |
Definition at line 356 of file interface.cxx.
References ScDocumentImport::getSheetIndex(), ScOrcusGlobalSettings::getTextEncoding(), maDoc, maGlobalSettings, and maSheets.
|
overridevirtual |
Definition at line 408 of file interface.cxx.
References maStyles.
ScDocumentImport & ScOrcusFactory::getDoc | ( | ) |
Definition at line 556 of file interface.cxx.
References maDoc.
Referenced by ScOrcusStyles::applyXfToItemSet(), ScOrucsImportCellStyle::commit(), and ScOrcusStyles::ScOrcusStyles().
const ScOrcusGlobalSettings & ScOrcusFactory::getGlobalSettings | ( | ) | const |
Definition at line 707 of file interface.cxx.
References maGlobalSettings.
Referenced by ScOrcusSharedStrings::add(), ScOrcusSharedStrings::append(), ScOrcusSharedStrings::commit_segments(), ScOrcusSheet::set_auto(), ScOrcusImportNumberFormat::set_code(), ScOrucsImportCellStyle::set_display_name(), ScOrcusFormula::set_formula(), ScOrcusArrayFormula::set_formula(), ScOrcusImportFontStyle::set_name(), ScOrucsImportCellStyle::set_name(), ScOrcusImportFontStyle::set_name_asian(), ScOrcusImportFontStyle::set_name_complex(), ScOrucsImportCellStyle::set_parent_name(), and ScOrcusFormula::set_result_string().
const OUString * ScOrcusFactory::getString | ( | size_t | nIndex | ) | const |
Definition at line 580 of file interface.cxx.
void ScOrcusFactory::incrementProgress | ( | ) |
Definition at line 683 of file interface.cxx.
References mnProgress, mxStatusIndicator, and ScResId().
Referenced by ScOrcusSheet::cellInserted(), and finalize().
void ScOrcusFactory::pushCellStoreAutoToken | ( | const ScAddress & | rPos, |
const OUString & | rVal | ||
) |
Definition at line 585 of file interface.cxx.
References ScOrcusFactory::CellStoreToken::Auto, and maCellStoreTokens.
Referenced by ScOrcusSheet::set_auto().
void ScOrcusFactory::pushCellStoreToken | ( | const ScAddress & | rPos, |
const OUString & | rFormula, | ||
formula::FormulaGrammar::Grammar | eGrammar | ||
) |
Definition at line 601 of file interface.cxx.
References maCellStoreTokens.
void ScOrcusFactory::pushCellStoreToken | ( | const ScAddress & | rPos, |
double | fValue | ||
) |
Definition at line 596 of file interface.cxx.
References maCellStoreTokens.
void ScOrcusFactory::pushCellStoreToken | ( | const ScAddress & | rPos, |
uint32_t | nStrIndex | ||
) |
Definition at line 591 of file interface.cxx.
References maCellStoreTokens.
Referenced by ScOrcusFormula::commit(), ScOrcusSheet::set_bool(), ScOrcusSheet::set_date_time(), ScOrcusSheet::set_string(), and ScOrcusSheet::set_value().
void ScOrcusFactory::pushFillDownCellsToken | ( | const ScAddress & | rPos, |
uint32_t | nFillSize | ||
) |
Definition at line 607 of file interface.cxx.
References ScOrcusFactory::CellStoreToken::FillDownCells, and maCellStoreTokens.
Referenced by ScOrcusSheet::fill_down_cells().
void ScOrcusFactory::pushFormulaResult | ( | const ScAddress & | rPos, |
const OUString & | rValue | ||
) |
Definition at line 657 of file interface.cxx.
References ScOrcusFactory::CellStoreToken::Formula, ScOrcusFactory::CellStoreToken::FormulaWithResult, maCellStoreTokens, ScOrcusFactory::CellStoreToken::maPos, ScOrcusFactory::CellStoreToken::maStr2, ScOrcusFactory::CellStoreToken::meType, ScOrcusFactory::CellStoreToken::SharedFormula, and ScOrcusFactory::CellStoreToken::SharedFormulaWithResult.
void ScOrcusFactory::pushFormulaResult | ( | const ScAddress & | rPos, |
double | fValue | ||
) |
Definition at line 631 of file interface.cxx.
References ScOrcusFactory::CellStoreToken::Formula, ScOrcusFactory::CellStoreToken::FormulaWithResult, maCellStoreTokens, ScOrcusFactory::CellStoreToken::maPos, ScOrcusFactory::CellStoreToken::meType, ScOrcusFactory::CellStoreToken::mfValue, ScOrcusFactory::CellStoreToken::SharedFormula, and ScOrcusFactory::CellStoreToken::SharedFormulaWithResult.
Referenced by ScOrcusFormula::commit().
void ScOrcusFactory::pushMatrixFormulaToken | ( | const ScAddress & | rPos, |
const OUString & | rFormula, | ||
formula::FormulaGrammar::Grammar | eGrammar, | ||
uint32_t | nRowRange, | ||
uint32_t | nColRange | ||
) |
Definition at line 619 of file interface.cxx.
References maCellStoreTokens, ScOrcusFactory::CellStoreToken::maStr1, ScOrcusFactory::CellStoreToken::Matrix, ScOrcusFactory::CellStoreToken::meGrammar, ScOrcusFactory::CellStoreToken::mnIndex1, and ScOrcusFactory::CellStoreToken::mnIndex2.
Referenced by ScOrcusArrayFormula::commit().
void ScOrcusFactory::pushSharedFormulaToken | ( | const ScAddress & | rPos, |
uint32_t | nIndex | ||
) |
Definition at line 613 of file interface.cxx.
References maCellStoreTokens, nIndex, and ScOrcusFactory::CellStoreToken::SharedFormula.
Referenced by ScOrcusFormula::commit().
void ScOrcusFactory::setStatusIndicator | ( | const css::uno::Reference< css::task::XStatusIndicator > & | rIndicator | ) |
Definition at line 702 of file interface.cxx.
References mxStatusIndicator.
Referenced by ScOrcusFiltersImpl::importCSV(), ScOrcusFiltersImpl::importExcel2003XML(), ScOrcusFiltersImpl::importGnumeric(), ScOrcusFiltersImpl::importODS(), and ScOrcusFiltersImpl::importXLSX().
|
private |
Definition at line 707 of file orcusinterface.hxx.
Referenced by finalize(), pushCellStoreAutoToken(), pushCellStoreToken(), pushFillDownCellsToken(), pushFormulaResult(), pushMatrixFormulaToken(), and pushSharedFormulaToken().
|
private |
Definition at line 702 of file orcusinterface.hxx.
Referenced by append_sheet(), finalize(), get_sheet(), and getDoc().
|
private |
Definition at line 708 of file orcusinterface.hxx.
Referenced by append_sheet(), get_global_settings(), get_sheet(), and getGlobalSettings().
|
private |
Definition at line 711 of file orcusinterface.hxx.
Referenced by get_named_expression().
|
private |
Definition at line 709 of file orcusinterface.hxx.
Referenced by get_reference_resolver().
|
private |
Definition at line 710 of file orcusinterface.hxx.
Referenced by get_shared_strings().
|
private |
Definition at line 712 of file orcusinterface.hxx.
Referenced by append_sheet(), finalize(), and get_sheet().
|
private |
Definition at line 705 of file orcusinterface.hxx.
Referenced by addString(), and appendString().
|
private |
Definition at line 704 of file orcusinterface.hxx.
Referenced by appendString(), finalize(), and getString().
|
private |
Definition at line 713 of file orcusinterface.hxx.
Referenced by get_styles().
|
private |
Definition at line 715 of file orcusinterface.hxx.
Referenced by incrementProgress().
|
private |
Definition at line 717 of file orcusinterface.hxx.
Referenced by finalize(), incrementProgress(), and setStatusIndicator().