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

Member Enumeration Documentation

◆ ResultType

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

Definition at line 232 of file orcusinterface.hxx.

Constructor & Destructor Documentation

◆ ScOrcusFormula()

ScOrcusFormula::ScOrcusFormula ( ScOrcusSheet rSheet)

Definition at line 938 of file interface.cxx.

References NotSet.

◆ ~ScOrcusFormula()

ScOrcusFormula::~ScOrcusFormula ( )
overridevirtual

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

References mnCol, and mnRow.

◆ set_result_bool()

void ScOrcusFormula::set_result_bool ( bool  value)
overridevirtual

Definition at line 985 of file interface.cxx.

References meResType, mfResult, value, and Value.

◆ set_result_empty()

void ScOrcusFormula::set_result_empty ( )
overridevirtual

Definition at line 980 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 968 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 962 of file interface.cxx.

References index, mbShared, and mnSharedFormulaIndex.

Friends And Related Function Documentation

◆ ScOrcusSheet

friend class ScOrcusSheet
friend

Definition at line 234 of file orcusinterface.hxx.

Member Data Documentation

◆ maFormula

OUString ScOrcusFormula::maFormula
private

Definition at line 240 of file orcusinterface.hxx.

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

◆ maResult

OUString ScOrcusFormula::maResult
private

Definition at line 246 of file orcusinterface.hxx.

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

◆ mbShared

bool ScOrcusFormula::mbShared
private

Definition at line 243 of file orcusinterface.hxx.

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

◆ meGrammar

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

Definition at line 241 of file orcusinterface.hxx.

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

◆ meResType

ResultType ScOrcusFormula::meResType
private

◆ mfResult

double ScOrcusFormula::mfResult
private

Definition at line 247 of file orcusinterface.hxx.

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

◆ mnCol

SCCOL ScOrcusFormula::mnCol
private

Definition at line 238 of file orcusinterface.hxx.

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

◆ mnRow

SCROW ScOrcusFormula::mnRow
private

Definition at line 239 of file orcusinterface.hxx.

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

◆ mnSharedFormulaIndex

size_t ScOrcusFormula::mnSharedFormulaIndex
private

Definition at line 242 of file orcusinterface.hxx.

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

◆ mrSheet

ScOrcusSheet& ScOrcusFormula::mrSheet
private

Definition at line 236 of file orcusinterface.hxx.

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


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