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

#include <orcusinterface.hxx>

Inheritance diagram for ScOrcusFormula:
[legend]
Collaboration diagram for ScOrcusFormula:
[legend]

Public Member Functions

 ScOrcusFormula (ScOrcusSheet &rSheet)
 
virtual ~ScOrcusFormula () override
 
virtual void set_position (orcus::spreadsheet::row_t row, orcus::spreadsheet::col_t col) override
 
virtual void set_formula (orcus::spreadsheet::formula_grammar_t grammar, std::string_view formula) override
 
virtual void set_shared_formula_index (size_t index) override
 
virtual void set_result_value (double value) override
 
virtual void set_result_string (std::string_view value) override
 
virtual void set_result_empty () override
 
virtual void set_result_bool (bool value) override
 
virtual void commit () override
 

Private Types

enum class  ResultType {
  NotSet ,
  String ,
  Value ,
  Empty
}
 

Private Member Functions

void reset ()
 

Private Attributes

ScOrcusSheetmrSheet
 
SCCOL mnCol
 
SCROW mnRow
 
OUString maFormula
 
formula::FormulaGrammar::Grammar meGrammar
 
size_t mnSharedFormulaIndex
 
bool mbShared
 
ResultType meResType
 
OUString maResult
 
double mfResult
 

Friends

class ScOrcusSheet
 

Detailed Description

Definition at line 235 of file orcusinterface.hxx.

Member Enumeration Documentation

◆ ResultType

enum class ScOrcusFormula::ResultType
strongprivate
Enumerator
NotSet 
String 
Value 
Empty 

Definition at line 237 of file orcusinterface.hxx.

Constructor & Destructor Documentation

◆ ScOrcusFormula()

ScOrcusFormula::ScOrcusFormula ( ScOrcusSheet rSheet)

Definition at line 961 of file interface.cxx.

References NotSet.

◆ ~ScOrcusFormula()

ScOrcusFormula::~ScOrcusFormula ( )
overridevirtual

Definition at line 971 of file interface.cxx.

Member Function Documentation

◆ commit()

void ScOrcusFormula::commit ( )
overridevirtual

◆ reset()

void ScOrcusFormula::reset ( )
private

◆ set_formula()

void ScOrcusFormula::set_formula ( orcus::spreadsheet::formula_grammar_t  grammar,
std::string_view  formula 
)
overridevirtual

◆ set_position()

void ScOrcusFormula::set_position ( orcus::spreadsheet::row_t  row,
orcus::spreadsheet::col_t  col 
)
overridevirtual

Definition at line 973 of file interface.cxx.

References col, mnCol, and mnRow.

◆ set_result_bool()

void ScOrcusFormula::set_result_bool ( bool  value)
overridevirtual

Definition at line 1008 of file interface.cxx.

References meResType, mfResult, Value, and value.

◆ set_result_empty()

void ScOrcusFormula::set_result_empty ( )
overridevirtual

Definition at line 1003 of file interface.cxx.

References Empty, and meResType.

◆ set_result_string()

void ScOrcusFormula::set_result_string ( std::string_view  value)
overridevirtual

◆ set_result_value()

void ScOrcusFormula::set_result_value ( double  value)
overridevirtual

Definition at line 991 of file interface.cxx.

References meResType, mfResult, Value, and value.

◆ set_shared_formula_index()

void ScOrcusFormula::set_shared_formula_index ( size_t  index)
overridevirtual

Definition at line 985 of file interface.cxx.

References index, mbShared, and mnSharedFormulaIndex.

Friends And Related Function Documentation

◆ ScOrcusSheet

friend class ScOrcusSheet
friend

Definition at line 239 of file orcusinterface.hxx.

Member Data Documentation

◆ maFormula

OUString ScOrcusFormula::maFormula
private

Definition at line 245 of file orcusinterface.hxx.

Referenced by commit(), reset(), and set_formula().

◆ maResult

OUString ScOrcusFormula::maResult
private

Definition at line 251 of file orcusinterface.hxx.

Referenced by commit(), reset(), and set_result_string().

◆ mbShared

bool ScOrcusFormula::mbShared
private

Definition at line 248 of file orcusinterface.hxx.

Referenced by commit(), reset(), and set_shared_formula_index().

◆ meGrammar

formula::FormulaGrammar::Grammar ScOrcusFormula::meGrammar
private

Definition at line 246 of file orcusinterface.hxx.

Referenced by commit(), reset(), and set_formula().

◆ meResType

ResultType ScOrcusFormula::meResType
private

◆ mfResult

double ScOrcusFormula::mfResult
private

Definition at line 252 of file orcusinterface.hxx.

Referenced by commit(), reset(), set_result_bool(), and set_result_value().

◆ mnCol

SCCOL ScOrcusFormula::mnCol
private

Definition at line 243 of file orcusinterface.hxx.

Referenced by commit(), reset(), and set_position().

◆ mnRow

SCROW ScOrcusFormula::mnRow
private

Definition at line 244 of file orcusinterface.hxx.

Referenced by commit(), reset(), and set_position().

◆ mnSharedFormulaIndex

size_t ScOrcusFormula::mnSharedFormulaIndex
private

Definition at line 247 of file orcusinterface.hxx.

Referenced by commit(), reset(), and set_shared_formula_index().

◆ mrSheet

ScOrcusSheet& ScOrcusFormula::mrSheet
private

Definition at line 241 of file orcusinterface.hxx.

Referenced by commit(), set_formula(), and set_result_string().


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