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:
[legend]
Collaboration diagram for ScOrcusFactory:
[legend]

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
 
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 585 of file orcusinterface.hxx.

Member Typedef Documentation

Definition at line 620 of file orcusinterface.hxx.

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

Definition at line 619 of file orcusinterface.hxx.

Constructor & Destructor Documentation

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

Definition at line 301 of file interface.cxx.

Member Function Documentation

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().

orcus::spreadsheet::iface::import_sheet * ScOrcusFactory::append_sheet ( orcus::spreadsheet::sheet_t  sheet_index,
const char *  sheet_name,
size_t  sheet_name_length 
)
overridevirtual
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().

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

Definition at line 383 of file interface.cxx.

References maGlobalSettings.

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

Definition at line 393 of file interface.cxx.

References maNamedExpressions.

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

Definition at line 388 of file interface.cxx.

References maSharedStrings.

orcus::spreadsheet::iface::import_sheet * ScOrcusFactory::get_sheet ( const char *  sheet_name,
size_t  sheet_name_length 
)
overridevirtual
orcus::spreadsheet::iface::import_sheet * ScOrcusFactory::get_sheet ( orcus::spreadsheet::sheet_t  sheet_index)
overridevirtual

Definition at line 367 of file interface.cxx.

References maDoc, and maSheets.

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

Definition at line 398 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 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().

void ScOrcusFactory::pushCellStoreAutoToken ( const ScAddress rPos,
const OUString &  rVal 
)

Definition at line 561 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 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.

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
private
ScDocumentImport ScOrcusFactory::maDoc
private

Definition at line 622 of file orcusinterface.hxx.

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

ScOrcusGlobalSettings ScOrcusFactory::maGlobalSettings
private
ScOrcusNamedExpression ScOrcusFactory::maNamedExpressions
private

Definition at line 630 of file orcusinterface.hxx.

Referenced by get_named_expression().

ScOrcusSharedStrings ScOrcusFactory::maSharedStrings
private

Definition at line 629 of file orcusinterface.hxx.

Referenced by get_shared_strings().

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

Definition at line 631 of file orcusinterface.hxx.

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

StringHashType ScOrcusFactory::maStringHash
private

Definition at line 625 of file orcusinterface.hxx.

Referenced by addString(), and appendString().

std::vector<OUString> ScOrcusFactory::maStrings
private

Definition at line 624 of file orcusinterface.hxx.

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

ScOrcusStyles ScOrcusFactory::maStyles
private

Definition at line 632 of file orcusinterface.hxx.

Referenced by get_styles().

int ScOrcusFactory::mnProgress
private

Definition at line 634 of file orcusinterface.hxx.

Referenced by incrementProgress().

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

Definition at line 636 of file orcusinterface.hxx.

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


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