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

#include <simpleformulacalc.hxx>

Collaboration diagram for ScSimpleFormulaCalculator:
[legend]

Public Member Functions

 ScSimpleFormulaCalculator (ScDocument &rDoc, const ScAddress &rAddr, const OUString &rFormula, bool bMatrixFormula, formula::FormulaGrammar::Grammar eGram=formula::FormulaGrammar::GRAM_DEFAULT)
 
 ~ScSimpleFormulaCalculator ()
 
void Calculate ()
 
bool IsValue ()
 
bool IsMatrix ()
 
FormulaError GetErrCode ()
 
double GetValue ()
 
svl::SharedString GetString ()
 
SvNumFormatType GetFormatType () const
 
bool HasColRowName () const
 
ScTokenArrayGetCode ()
 
void SetLimitString (bool bLimitString)
 

Private Attributes

SvNumFormatType mnFormatType
 
bool mbCalculated
 
std::unique_ptr< ScTokenArraympCode
 
ScAddress maAddr
 
ScDocumentmrDoc
 
ScFormulaResult maResult
 
formula::FormulaGrammar::Grammar maGram
 
bool mbMatrixResult
 
OUString maMatrixFormulaResult
 
bool mbLimitString
 
bool mbMatrixFormula
 

Detailed Description

Definition at line 22 of file simpleformulacalc.hxx.

Constructor & Destructor Documentation

ScSimpleFormulaCalculator::ScSimpleFormulaCalculator ( ScDocument rDoc,
const ScAddress rAddr,
const OUString &  rFormula,
bool  bMatrixFormula,
formula::FormulaGrammar::Grammar  eGram = formula::FormulaGrammar::GRAM_DEFAULT 
)
ScSimpleFormulaCalculator::~ScSimpleFormulaCalculator ( )

Definition at line 38 of file simpleformulacalc.cxx.

Member Function Documentation

void ScSimpleFormulaCalculator::Calculate ( )
ScTokenArray * ScSimpleFormulaCalculator::GetCode ( )

Definition at line 142 of file simpleformulacalc.cxx.

References mpCode.

FormulaError ScSimpleFormulaCalculator::GetErrCode ( )
SvNumFormatType ScSimpleFormulaCalculator::GetFormatType ( ) const
inline

Definition at line 50 of file simpleformulacalc.hxx.

References mnFormatType.

svl::SharedString ScSimpleFormulaCalculator::GetString ( )
double ScSimpleFormulaCalculator::GetValue ( )
bool ScSimpleFormulaCalculator::HasColRowName ( ) const
bool ScSimpleFormulaCalculator::IsMatrix ( )

Definition at line 95 of file simpleformulacalc.cxx.

References Calculate(), and mbMatrixResult.

bool ScSimpleFormulaCalculator::IsValue ( )
void ScSimpleFormulaCalculator::SetLimitString ( bool  bLimitString)

Definition at line 147 of file simpleformulacalc.cxx.

References mbLimitString.

Member Data Documentation

ScAddress ScSimpleFormulaCalculator::maAddr
private

Definition at line 29 of file simpleformulacalc.hxx.

Referenced by Calculate(), and ScSimpleFormulaCalculator().

formula::FormulaGrammar::Grammar ScSimpleFormulaCalculator::maGram
private

Definition at line 32 of file simpleformulacalc.hxx.

Referenced by Calculate().

OUString ScSimpleFormulaCalculator::maMatrixFormulaResult
private

Definition at line 34 of file simpleformulacalc.hxx.

Referenced by Calculate(), and GetString().

ScFormulaResult ScSimpleFormulaCalculator::maResult
private

Definition at line 31 of file simpleformulacalc.hxx.

Referenced by Calculate(), GetErrCode(), GetString(), GetValue(), and IsValue().

bool ScSimpleFormulaCalculator::mbCalculated
private

Definition at line 27 of file simpleformulacalc.hxx.

Referenced by Calculate().

bool ScSimpleFormulaCalculator::mbLimitString
private

Definition at line 35 of file simpleformulacalc.hxx.

Referenced by Calculate(), and SetLimitString().

bool ScSimpleFormulaCalculator::mbMatrixFormula
private

Definition at line 36 of file simpleformulacalc.hxx.

Referenced by Calculate().

bool ScSimpleFormulaCalculator::mbMatrixResult
private

Definition at line 33 of file simpleformulacalc.hxx.

Referenced by Calculate(), GetString(), IsMatrix(), and IsValue().

SvNumFormatType ScSimpleFormulaCalculator::mnFormatType
private

Definition at line 25 of file simpleformulacalc.hxx.

Referenced by Calculate(), and GetFormatType().

std::unique_ptr<ScTokenArray> ScSimpleFormulaCalculator::mpCode
private
ScDocument& ScSimpleFormulaCalculator::mrDoc
private

Definition at line 30 of file simpleformulacalc.hxx.

Referenced by Calculate(), and ScSimpleFormulaCalculator().


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