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, const char *sheet_name, size_t sheet_name_length) override |
virtual orcus::spreadsheet::iface::import_sheet * | get_sheet (const char *sheet_name, size_t sheet_name_length) 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 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 |
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 584 of file orcusinterface.hxx.
|
private |
Definition at line 619 of file orcusinterface.hxx.
|
private |
Definition at line 618 of file orcusinterface.hxx.
ScOrcusFactory::ScOrcusFactory | ( | ScDocument & | rDoc, |
bool | bSkipDefaultStyles = false |
||
) |
Definition at line 301 of file interface.cxx.
size_t ScOrcusFactory::addString | ( | const OUString & | rStr | ) |
Definition at line 546 of file interface.cxx.
References appendString(), and maStringHash.
Referenced by ScOrcusSharedStrings::add(), and ScOrcusSharedStrings::commit_segments().
|
overridevirtual |
Definition at line 309 of file interface.cxx.
References ScDocumentImport::appendSheet(), assert(), ScDocumentImport::getSheetCount(), ScOrcusGlobalSettings::getTextEncoding(), maDoc, maGlobalSettings, maSheets, and ScDocumentImport::setSheetName().
size_t ScOrcusFactory::appendString | ( | const OUString & | rStr | ) |
Definition at line 537 of file interface.cxx.
References maStringHash, maStrings, and nPos.
Referenced by addString(), and ScOrcusSharedStrings::append().
|
overridevirtual |
Definition at line 403 of file interface.cxx.
References ScRange::aEnd, ScRange::aStart, ScOrcusFactory::CellStoreToken::Auto, 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 383 of file interface.cxx.
References maGlobalSettings.
|
overridevirtual |
Definition at line 393 of file interface.cxx.
References maNamedExpressions.
|
overridevirtual |
Definition at line 388 of file interface.cxx.
References maSharedStrings.
|
overridevirtual |
Definition at line 346 of file interface.cxx.
References ScDocumentImport::getSheetIndex(), ScOrcusGlobalSettings::getTextEncoding(), maDoc, maGlobalSettings, and maSheets.
|
overridevirtual |
Definition at line 367 of file interface.cxx.
|
overridevirtual |
Definition at line 398 of file interface.cxx.
References maStyles.
ScDocumentImport & ScOrcusFactory::getDoc | ( | ) |
Definition at line 532 of file interface.cxx.
References maDoc.
Referenced by ScOrcusStyles::applyXfToItemSet(), ScOrcusStyles::commit_cell_style(), and ScOrcusStyles::ScOrcusStyles().
const ScOrcusGlobalSettings & ScOrcusFactory::getGlobalSettings | ( | ) | const |
Definition at line 683 of file interface.cxx.
References maGlobalSettings.
Referenced by ScOrcusSharedStrings::add(), ScOrcusSharedStrings::append(), ScOrcusSharedStrings::commit_segments(), ScOrcusSheet::set_auto(), ScOrcusStyles::set_cell_style_name(), ScOrcusStyles::set_cell_style_parent_name(), ScOrcusStyles::set_font_name(), ScOrcusFormula::set_formula(), ScOrcusArrayFormula::set_formula(), and ScOrcusStyles::set_number_format_code().
const OUString * ScOrcusFactory::getString | ( | size_t | nIndex | ) | const |
Definition at line 556 of file interface.cxx.
References maStrings.
Referenced by ScOrcusFormula::commit().
void ScOrcusFactory::incrementProgress | ( | ) |
Definition at line 659 of file interface.cxx.
References mnProgress, mxStatusIndicator, and ScResId().
Referenced by ScOrcusSheet::cellInserted(), and finalize().
Definition at line 561 of file interface.cxx.
References ScOrcusFactory::CellStoreToken::Auto, and maCellStoreTokens.
Referenced by ScOrcusSheet::set_auto().
Definition at line 567 of file interface.cxx.
References maCellStoreTokens.
Referenced by ScOrcusFormula::commit(), ScOrcusSheet::set_bool(), ScOrcusSheet::set_date_time(), ScOrcusSheet::set_string(), and ScOrcusSheet::set_value().
Definition at line 572 of file interface.cxx.
References maCellStoreTokens.
void ScOrcusFactory::pushCellStoreToken | ( | const ScAddress & | rPos, |
const OUString & | rFormula, | ||
formula::FormulaGrammar::Grammar | eGrammar | ||
) |
Definition at line 577 of file interface.cxx.
References maCellStoreTokens.
Definition at line 583 of file interface.cxx.
References ScOrcusFactory::CellStoreToken::FillDownCells, and maCellStoreTokens.
Referenced by ScOrcusSheet::fill_down_cells().
Definition at line 607 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().
Definition at line 633 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::pushMatrixFormulaToken | ( | const ScAddress & | rPos, |
const OUString & | rFormula, | ||
formula::FormulaGrammar::Grammar | eGrammar, | ||
uint32_t | nRowRange, | ||
uint32_t | nColRange | ||
) |
Definition at line 595 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().
Definition at line 589 of file interface.cxx.
References maCellStoreTokens, and ScOrcusFactory::CellStoreToken::SharedFormula.
Referenced by ScOrcusFormula::commit().
void ScOrcusFactory::setStatusIndicator | ( | const css::uno::Reference< css::task::XStatusIndicator > & | rIndicator | ) |
Definition at line 678 of file interface.cxx.
References mxStatusIndicator.
Referenced by ScOrcusFiltersImpl::importCSV(), ScOrcusFiltersImpl::importExcel2003XML(), ScOrcusFiltersImpl::importGnumeric(), ScOrcusFiltersImpl::importODS(), and ScOrcusFiltersImpl::importXLSX().
|
private |
Definition at line 626 of file orcusinterface.hxx.
Referenced by finalize(), pushCellStoreAutoToken(), pushCellStoreToken(), pushFillDownCellsToken(), pushFormulaResult(), pushMatrixFormulaToken(), and pushSharedFormulaToken().
|
private |
Definition at line 621 of file orcusinterface.hxx.
Referenced by append_sheet(), finalize(), get_sheet(), and getDoc().
|
private |
Definition at line 627 of file orcusinterface.hxx.
Referenced by append_sheet(), get_global_settings(), get_sheet(), and getGlobalSettings().
|
private |
Definition at line 629 of file orcusinterface.hxx.
Referenced by get_named_expression().
|
private |
Definition at line 628 of file orcusinterface.hxx.
Referenced by get_shared_strings().
|
private |
Definition at line 630 of file orcusinterface.hxx.
Referenced by append_sheet(), finalize(), and get_sheet().
|
private |
Definition at line 624 of file orcusinterface.hxx.
Referenced by addString(), and appendString().
|
private |
Definition at line 623 of file orcusinterface.hxx.
Referenced by appendString(), finalize(), and getString().
|
private |
Definition at line 631 of file orcusinterface.hxx.
Referenced by get_styles().
|
private |
Definition at line 633 of file orcusinterface.hxx.
Referenced by incrementProgress().
|
private |
Definition at line 635 of file orcusinterface.hxx.
Referenced by finalize(), incrementProgress(), and setStatusIndicator().