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 21 of file simpleformulacalc.hxx.

Constructor & Destructor Documentation

◆ ScSimpleFormulaCalculator()

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

◆ ~ScSimpleFormulaCalculator()

ScSimpleFormulaCalculator::~ScSimpleFormulaCalculator ( )

Definition at line 38 of file simpleformulacalc.cxx.

Member Function Documentation

◆ Calculate()

void ScSimpleFormulaCalculator::Calculate ( )

◆ GetCode()

ScTokenArray * ScSimpleFormulaCalculator::GetCode ( )

Definition at line 145 of file simpleformulacalc.cxx.

References mpCode.

◆ GetErrCode()

FormulaError ScSimpleFormulaCalculator::GetErrCode ( )

◆ GetFormatType()

SvNumFormatType ScSimpleFormulaCalculator::GetFormatType ( ) const
inline

Definition at line 49 of file simpleformulacalc.hxx.

References mnFormatType.

◆ GetString()

svl::SharedString ScSimpleFormulaCalculator::GetString ( )

◆ GetValue()

double ScSimpleFormulaCalculator::GetValue ( )

◆ HasColRowName()

bool ScSimpleFormulaCalculator::HasColRowName ( ) const

◆ IsMatrix()

bool ScSimpleFormulaCalculator::IsMatrix ( )

Definition at line 98 of file simpleformulacalc.cxx.

References Calculate(), and mbMatrixResult.

◆ IsValue()

bool ScSimpleFormulaCalculator::IsValue ( )

◆ SetLimitString()

void ScSimpleFormulaCalculator::SetLimitString ( bool  bLimitString)

Definition at line 150 of file simpleformulacalc.cxx.

References mbLimitString.

Member Data Documentation

◆ maAddr

ScAddress ScSimpleFormulaCalculator::maAddr
private

Definition at line 28 of file simpleformulacalc.hxx.

Referenced by Calculate(), and ScSimpleFormulaCalculator().

◆ maGram

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

Definition at line 31 of file simpleformulacalc.hxx.

Referenced by Calculate().

◆ maMatrixFormulaResult

OUString ScSimpleFormulaCalculator::maMatrixFormulaResult
private

Definition at line 33 of file simpleformulacalc.hxx.

Referenced by Calculate(), and GetString().

◆ maResult

ScFormulaResult ScSimpleFormulaCalculator::maResult
private

Definition at line 30 of file simpleformulacalc.hxx.

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

◆ mbCalculated

bool ScSimpleFormulaCalculator::mbCalculated
private

Definition at line 26 of file simpleformulacalc.hxx.

Referenced by Calculate().

◆ mbLimitString

bool ScSimpleFormulaCalculator::mbLimitString
private

Definition at line 34 of file simpleformulacalc.hxx.

Referenced by Calculate(), and SetLimitString().

◆ mbMatrixFormula

bool ScSimpleFormulaCalculator::mbMatrixFormula
private

Definition at line 35 of file simpleformulacalc.hxx.

Referenced by Calculate().

◆ mbMatrixResult

bool ScSimpleFormulaCalculator::mbMatrixResult
private

Definition at line 32 of file simpleformulacalc.hxx.

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

◆ mnFormatType

SvNumFormatType ScSimpleFormulaCalculator::mnFormatType
private

Definition at line 24 of file simpleformulacalc.hxx.

Referenced by Calculate(), and GetFormatType().

◆ mpCode

std::unique_ptr<ScTokenArray> ScSimpleFormulaCalculator::mpCode
private

◆ mrDoc

ScDocument& ScSimpleFormulaCalculator::mrDoc
private

Definition at line 29 of file simpleformulacalc.hxx.

Referenced by Calculate(), and ScSimpleFormulaCalculator().


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