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 class  StringConversion {
  ILLEGAL ,
  ZERO ,
  UNAMBIGUOUS ,
  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

◆ OpCodeSet

Definition at line 67 of file calcconfig.hxx.

Member Enumeration Documentation

◆ StringConversion

enum class ScCalcConfig::StringConversion
strong
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::ScCalcConfig ( )

Definition at line 91 of file calcconfig.cxx.

References setOpenCLConfigToDefault().

Referenced by reset().

Member Function Documentation

◆ getForceCalculationType()

ForceCalculationType ScCalcConfig::getForceCalculationType ( )
static

◆ isOpenCLEnabled()

bool ScCalcConfig::isOpenCLEnabled ( )
static

◆ isThreadingEnabled()

bool ScCalcConfig::isThreadingEnabled ( )
static

◆ MergeDocumentSpecific()

void ScCalcConfig::MergeDocumentSpecific ( const ScCalcConfig r)

◆ operator!=()

bool ScCalcConfig::operator!= ( const ScCalcConfig r) const

Definition at line 182 of file calcconfig.cxx.

References operator==().

◆ operator==()

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

◆ reset()

void ScCalcConfig::reset ( )

Definition at line 148 of file calcconfig.cxx.

References ScCalcConfig().

Referenced by ScTpFormulaOptions::FillItemSet(), and ScFormulaOptions::SetDefaults().

◆ setOpenCLConfigToDefault()

void ScCalcConfig::setOpenCLConfigToDefault ( )

◆ SetStringRefSyntax()

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

Member Data Documentation

◆ maOpenCLDevice

OUString ScCalcConfig::maOpenCLDevice

◆ mbEmptyStringAsZero

bool ScCalcConfig::mbEmptyStringAsZero

◆ mbHasStringRefSyntax

bool ScCalcConfig::mbHasStringRefSyntax

◆ mbOpenCLAutoSelect

bool ScCalcConfig::mbOpenCLAutoSelect

◆ mbOpenCLSubsetOnly

bool ScCalcConfig::mbOpenCLSubsetOnly

◆ meStringConversion

StringConversion ScCalcConfig::meStringConversion

◆ meStringRefAddressSyntax

formula::FormulaGrammar::AddressConvention ScCalcConfig::meStringRefAddressSyntax

◆ mnOpenCLMinimumFormulaGroupSize

sal_Int32 ScCalcConfig::mnOpenCLMinimumFormulaGroupSize

◆ mpOpenCLSubsetOpCodes

OpCodeSet ScCalcConfig::mpOpenCLSubsetOpCodes

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