LibreOffice Module sc (master)  1
Classes | Public Member Functions | Private Types | Private Attributes | List of all members
ScOrcusFactory Class Reference

#include <orcusinterface.hxx>

Inheritance diagram for ScOrcusFactory:
Collaboration diagram for ScOrcusFactory:


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 void finalize () override
ScDocumentImportgetDoc ()
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 ScOrcusGlobalSettingsgetGlobalSettings () const

Private Types

typedef std::unordered_map< OUString, size_t > StringHashType
typedef std::vector< CellStoreTokenCellStoreTokensType

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

Detailed Description

Definition at line 561 of file orcusinterface.hxx.

Member Typedef Documentation

Definition at line 597 of file orcusinterface.hxx.

typedef std::unordered_map<OUString, size_t> ScOrcusFactory::StringHashType

Definition at line 596 of file orcusinterface.hxx.

Constructor & Destructor Documentation

ScOrcusFactory::ScOrcusFactory ( ScDocument rDoc,
bool  bSkipDefaultStyles = false 

Definition at line 304 of file interface.cxx.

Member Function Documentation

size_t ScOrcusFactory::addString ( const OUString &  rStr)

Definition at line 549 of file interface.cxx.

References appendString(), and maStringHash.

Referenced by ScOrcusSharedStrings::add(), and ScOrcusSharedStrings::commit_segments().

orcus::spreadsheet::iface::import_sheet * ScOrcusFactory::append_sheet ( orcus::spreadsheet::sheet_t  sheet_index,
std::string_view  sheet_name 
size_t ScOrcusFactory::appendString ( const OUString &  rStr)

Definition at line 540 of file interface.cxx.

References maStringHash, maStrings, and nPos.

Referenced by addString(), and ScOrcusSharedStrings::append().

void ScOrcusFactory::finalize ( )
orcus::spreadsheet::iface::import_global_settings * ScOrcusFactory::get_global_settings ( )

Definition at line 386 of file interface.cxx.

References maGlobalSettings.

orcus::spreadsheet::iface::import_named_expression * ScOrcusFactory::get_named_expression ( )

Definition at line 396 of file interface.cxx.

References maNamedExpressions.

orcus::spreadsheet::iface::import_shared_strings * ScOrcusFactory::get_shared_strings ( )

Definition at line 391 of file interface.cxx.

References maSharedStrings.

orcus::spreadsheet::iface::import_sheet * ScOrcusFactory::get_sheet ( std::string_view  sheet_name)
orcus::spreadsheet::iface::import_sheet * ScOrcusFactory::get_sheet ( orcus::spreadsheet::sheet_t  sheet_index)

Definition at line 370 of file interface.cxx.

References maDoc, and maSheets.

orcus::spreadsheet::iface::import_styles * ScOrcusFactory::get_styles ( )

Definition at line 401 of file interface.cxx.

References maStyles.

ScDocumentImport & ScOrcusFactory::getDoc ( )
const ScOrcusGlobalSettings & ScOrcusFactory::getGlobalSettings ( ) const
const OUString * ScOrcusFactory::getString ( size_t  nIndex) const

Definition at line 559 of file interface.cxx.

References maStrings.

void ScOrcusFactory::incrementProgress ( )

Definition at line 662 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 564 of file interface.cxx.

References ScOrcusFactory::CellStoreToken::Auto, and maCellStoreTokens.

Referenced by ScOrcusSheet::set_auto().

void ScOrcusFactory::pushCellStoreToken ( const ScAddress rPos,
uint32_t  nStrIndex 
void ScOrcusFactory::pushCellStoreToken ( const ScAddress rPos,
double  fValue 

Definition at line 575 of file interface.cxx.

References maCellStoreTokens.

void ScOrcusFactory::pushCellStoreToken ( const ScAddress rPos,
const OUString &  rFormula,
formula::FormulaGrammar::Grammar  eGrammar 

Definition at line 580 of file interface.cxx.

References maCellStoreTokens.

void ScOrcusFactory::pushFillDownCellsToken ( const ScAddress rPos,
uint32_t  nFillSize 
void ScOrcusFactory::pushFormulaResult ( const ScAddress rPos,
double  fValue 
void ScOrcusFactory::pushFormulaResult ( const ScAddress rPos,
const OUString &  rValue 
void ScOrcusFactory::pushMatrixFormulaToken ( const ScAddress rPos,
const OUString &  rFormula,
formula::FormulaGrammar::Grammar  eGrammar,
uint32_t  nRowRange,
uint32_t  nColRange 
void ScOrcusFactory::pushSharedFormulaToken ( const ScAddress rPos,
uint32_t  nIndex 
void ScOrcusFactory::setStatusIndicator ( const css::uno::Reference< css::task::XStatusIndicator > &  rIndicator)

Member Data Documentation

CellStoreTokensType ScOrcusFactory::maCellStoreTokens
ScDocumentImport ScOrcusFactory::maDoc

Definition at line 599 of file orcusinterface.hxx.

Referenced by append_sheet(), finalize(), get_sheet(), and getDoc().

ScOrcusGlobalSettings ScOrcusFactory::maGlobalSettings
ScOrcusNamedExpression ScOrcusFactory::maNamedExpressions

Definition at line 607 of file orcusinterface.hxx.

Referenced by get_named_expression().

ScOrcusSharedStrings ScOrcusFactory::maSharedStrings

Definition at line 606 of file orcusinterface.hxx.

Referenced by get_shared_strings().

std::vector<std::unique_ptr<ScOrcusSheet> > ScOrcusFactory::maSheets

Definition at line 608 of file orcusinterface.hxx.

Referenced by append_sheet(), finalize(), and get_sheet().

StringHashType ScOrcusFactory::maStringHash

Definition at line 602 of file orcusinterface.hxx.

Referenced by addString(), and appendString().

std::vector<OUString> ScOrcusFactory::maStrings

Definition at line 601 of file orcusinterface.hxx.

Referenced by appendString(), finalize(), and getString().

ScOrcusStyles ScOrcusFactory::maStyles

Definition at line 609 of file orcusinterface.hxx.

Referenced by get_styles().

int ScOrcusFactory::mnProgress

Definition at line 611 of file orcusinterface.hxx.

Referenced by incrementProgress().

css::uno::Reference<css::task::XStatusIndicator> ScOrcusFactory::mxStatusIndicator

Definition at line 613 of file orcusinterface.hxx.

Referenced by finalize(), incrementProgress(), and setStatusIndicator().

The documentation for this class was generated from the following files: