LibreOffice Module sc (master)  1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ScCalcConfig Struct Reference

Configuration options for formula interpreter. More...

#include <calcconfig.hxx>

Public Types

enum  StringConversion {
  StringConversion::ILLEGAL,
  StringConversion::ZERO,
  StringConversion::UNAMBIGUOUS,
  StringConversion::LOCALE
}
 
typedef std::shared_ptr< o3tl::sorted_vector< OpCode > > OpCodeSet
 

Public Member Functions

 ScCalcConfig ()
 
void setOpenCLConfigToDefault ()
 
void reset ()
 
void MergeDocumentSpecific (const ScCalcConfig &r)
 
void SetStringRefSyntax (formula::FormulaGrammar::AddressConvention eConv)
 
bool operator== (const ScCalcConfig &r) const
 
bool operator!= (const ScCalcConfig &r) const
 

Static Public Member Functions

static bool isOpenCLEnabled ()
 
static bool isThreadingEnabled ()
 
static ForceCalculationType getForceCalculationType ()
 

Public Attributes

formula::FormulaGrammar::AddressConvention meStringRefAddressSyntax
 
StringConversion meStringConversion
 
bool mbEmptyStringAsZero:1
 
bool mbHasStringRefSyntax:1
 
bool mbOpenCLSubsetOnly:1
 
bool mbOpenCLAutoSelect:1
 
OUString maOpenCLDevice
 
sal_Int32 mnOpenCLMinimumFormulaGroupSize
 
OpCodeSet mpOpenCLSubsetOpCodes
 

Detailed Description

Configuration options for formula interpreter.

Definition at line 43 of file calcconfig.hxx.

Member Typedef Documentation

Definition at line 67 of file calcconfig.hxx.

Member Enumeration Documentation

Enumerator
ILLEGAL 

=1+"1" or =1+"x" give VALUE!

ZERO 

=1+"1" or =1+"x" give 1

UNAMBIGUOUS 

=1+"1" gives 2, but =1+"1.000" or =1+"x" give VALUE!

LOCALE 

=1+"1.000" may be 2 or 1001 ... =1+"x" gives VALUE!

Definition at line 46 of file calcconfig.hxx.

Constructor & Destructor Documentation

ScCalcConfig::ScCalcConfig ( )

Definition at line 96 of file calcconfig.cxx.

References LOCALE, and setOpenCLConfigToDefault().

Referenced by reset().

Member Function Documentation

ForceCalculationType ScCalcConfig::getForceCalculationType ( )
static
bool ScCalcConfig::isOpenCLEnabled ( )
static
bool ScCalcConfig::isThreadingEnabled ( )
static
void ScCalcConfig::MergeDocumentSpecific ( const ScCalcConfig r)
bool ScCalcConfig::operator!= ( const ScCalcConfig r) const

Definition at line 189 of file calcconfig.cxx.

References operator==().

bool ScCalcConfig::operator== ( const ScCalcConfig r) const
void ScCalcConfig::reset ( )

Definition at line 155 of file calcconfig.cxx.

References ScCalcConfig().

Referenced by ScTpFormulaOptions::FillItemSet().

void ScCalcConfig::setOpenCLConfigToDefault ( )
void ScCalcConfig::SetStringRefSyntax ( formula::FormulaGrammar::AddressConvention  eConv)

Member Data Documentation

OUString ScCalcConfig::maOpenCLDevice
bool ScCalcConfig::mbEmptyStringAsZero
bool ScCalcConfig::mbHasStringRefSyntax
bool ScCalcConfig::mbOpenCLAutoSelect
bool ScCalcConfig::mbOpenCLSubsetOnly
StringConversion ScCalcConfig::meStringConversion
formula::FormulaGrammar::AddressConvention ScCalcConfig::meStringRefAddressSyntax
sal_Int32 ScCalcConfig::mnOpenCLMinimumFormulaGroupSize
OpCodeSet ScCalcConfig::mpOpenCLSubsetOpCodes

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