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, const char *p, size_t n) override
 
virtual void set_shared_formula_index (size_t index) override
 
virtual void set_result_value (double value) override
 
virtual void set_result_string (size_t sindex) override
 
virtual void set_result_empty () override
 
virtual void set_result_bool (bool value) override
 
virtual void commit () override
 

Private Types

enum  ResultType {
  ResultType::NotSet,
  ResultType::String,
  ResultType::Value,
  ResultType::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
 
size_t mnResult
 
double mfResult
 

Friends

class ScOrcusSheet
 

Detailed Description

Definition at line 218 of file orcusinterface.hxx.

Member Enumeration Documentation

enum ScOrcusFormula::ResultType
strongprivate
Enumerator
NotSet 
String 
Value 
Empty 

Definition at line 220 of file orcusinterface.hxx.

Constructor & Destructor Documentation

ScOrcusFormula::ScOrcusFormula ( ScOrcusSheet rSheet)

Definition at line 909 of file interface.cxx.

ScOrcusFormula::~ScOrcusFormula ( )
overridevirtual

Definition at line 920 of file interface.cxx.

Member Function Documentation

void ScOrcusFormula::commit ( )
overridevirtual
void ScOrcusFormula::reset ( )
private
void ScOrcusFormula::set_formula ( orcus::spreadsheet::formula_grammar_t  grammar,
const char *  p,
size_t  n 
)
overridevirtual
void ScOrcusFormula::set_position ( orcus::spreadsheet::row_t  row,
orcus::spreadsheet::col_t  col 
)
overridevirtual

Definition at line 922 of file interface.cxx.

References mnCol, and mnRow.

void ScOrcusFormula::set_result_bool ( bool  value)
overridevirtual

Definition at line 957 of file interface.cxx.

References meResType, mfResult, and Value.

void ScOrcusFormula::set_result_empty ( )
overridevirtual

Definition at line 952 of file interface.cxx.

References Empty, and meResType.

void ScOrcusFormula::set_result_string ( size_t  sindex)
overridevirtual

Definition at line 946 of file interface.cxx.

References meResType, mnResult, and String.

void ScOrcusFormula::set_result_value ( double  value)
overridevirtual

Definition at line 940 of file interface.cxx.

References meResType, mfResult, and Value.

void ScOrcusFormula::set_shared_formula_index ( size_t  index)
overridevirtual

Definition at line 934 of file interface.cxx.

References mbShared, and mnSharedFormulaIndex.

Friends And Related Function Documentation

friend class ScOrcusSheet
friend

Definition at line 222 of file orcusinterface.hxx.

Member Data Documentation

OUString ScOrcusFormula::maFormula
private

Definition at line 228 of file orcusinterface.hxx.

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

bool ScOrcusFormula::mbShared
private

Definition at line 231 of file orcusinterface.hxx.

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

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

Definition at line 229 of file orcusinterface.hxx.

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

ResultType ScOrcusFormula::meResType
private
double ScOrcusFormula::mfResult
private

Definition at line 235 of file orcusinterface.hxx.

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

SCCOL ScOrcusFormula::mnCol
private

Definition at line 226 of file orcusinterface.hxx.

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

size_t ScOrcusFormula::mnResult
private

Definition at line 234 of file orcusinterface.hxx.

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

SCROW ScOrcusFormula::mnRow
private

Definition at line 227 of file orcusinterface.hxx.

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

size_t ScOrcusFormula::mnSharedFormulaIndex
private

Definition at line 230 of file orcusinterface.hxx.

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

ScOrcusSheet& ScOrcusFormula::mrSheet
private

Definition at line 224 of file orcusinterface.hxx.

Referenced by commit(), and set_formula().


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