LibreOffice Module sc (master) 1
|
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 |
Configuration options for formula interpreter.
Definition at line 43 of file calcconfig.hxx.
typedef std::shared_ptr<o3tl::sorted_vector<OpCode> > ScCalcConfig::OpCodeSet |
Definition at line 67 of file calcconfig.hxx.
|
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.
ScCalcConfig::ScCalcConfig | ( | ) |
Definition at line 91 of file calcconfig.cxx.
References setOpenCLConfigToDefault().
Referenced by reset().
|
static |
Definition at line 63 of file calcconfig.cxx.
References forceCalculationTypeInit(), and type.
Referenced by ScModelObj::enableOpenCL(), sc::FormulaGroupInterpreter::getStatic(), ScFormulaCell::Interpret(), ScFormulaCell::InterpretFormulaGroup(), isOpenCLEnabled(), and isThreadingEnabled().
|
static |
Definition at line 69 of file calcconfig.cxx.
References ForceCalculationNone, ForceCalculationOpenCL, comphelper::ConfigurationListenerProperty< typename uno_type >::get(), getForceCalculationType(), getMiscListener(), and utl::ConfigManager::IsFuzzing().
Referenced by ScModelObj::enableOpenCL(), sc::FormulaGroupInterpreter::getStatic(), ScFormulaCell::InterpretFormulaGroupOpenCL(), ScModelObj::isOpenCLEnabled(), ScTokenArray::ResetVectorState(), and ScInterpreter::ScMatInv().
|
static |
Definition at line 80 of file calcconfig.cxx.
References ForceCalculationNone, ForceCalculationThreads, comphelper::ConfigurationListenerProperty< typename uno_type >::get(), getForceCalculationType(), getFormulaCalculationListener(), and utl::ConfigManager::IsFuzzing().
Referenced by ScFormulaCell::InterpretFormulaGroupThreading(), and ScTokenArray::ResetVectorState().
void ScCalcConfig::MergeDocumentSpecific | ( | const ScCalcConfig & | r | ) |
Definition at line 153 of file calcconfig.cxx.
References mbEmptyStringAsZero, mbHasStringRefSyntax, meStringConversion, and meStringRefAddressSyntax.
Referenced by ScModule::CreateItemSet(), ScInterpreter::MergeCalcConfig(), and ScModule::ModifyOptions().
bool ScCalcConfig::operator!= | ( | const ScCalcConfig & | r | ) | const |
Definition at line 182 of file calcconfig.cxx.
References operator==().
bool ScCalcConfig::operator== | ( | const ScCalcConfig & | r | ) | const |
Definition at line 169 of file calcconfig.cxx.
References maOpenCLDevice, mbEmptyStringAsZero, mbHasStringRefSyntax, mbOpenCLAutoSelect, mbOpenCLSubsetOnly, meStringConversion, meStringRefAddressSyntax, mnOpenCLMinimumFormulaGroupSize, and mpOpenCLSubsetOpCodes.
Referenced by operator!=().
void ScCalcConfig::reset | ( | ) |
Definition at line 148 of file calcconfig.cxx.
References ScCalcConfig().
Referenced by ScTpFormulaOptions::FillItemSet(), and ScFormulaOptions::SetDefaults().
void ScCalcConfig::setOpenCLConfigToDefault | ( | ) |
Definition at line 100 of file calcconfig.cxx.
References mbOpenCLAutoSelect, mbOpenCLSubsetOnly, mnOpenCLMinimumFormulaGroupSize, mpOpenCLSubsetOpCodes, ocAdd, ocArcTan, ocAverage, ocCorrel, ocCos, ocCount, ocCovar, ocDiv, ocExp, ocLn, ocMax, ocMin, ocMul, ocNegSub, ocNormDist, ocPearson, ocPow, ocPower, ocProduct, ocRandom, ocRound, ocSin, ocSlope, ocSNormInv, ocSqrt, ocStdNormDist, ocSub, ocSum, ocSumIfs, ocSumProduct, ocTan, ocVar, and ocVLookup.
Referenced by ScModelObj::enableOpenCL(), and ScCalcConfig().
void ScCalcConfig::SetStringRefSyntax | ( | formula::FormulaGrammar::AddressConvention | eConv | ) |
Definition at line 163 of file calcconfig.cxx.
References mbHasStringRefSyntax, and meStringRefAddressSyntax.
Referenced by oox::xls::WorkbookGlobals::initialize(), oox::xls::ExtGlobalWorkbookContext::onCreateContext(), and ScDocumentConfiguration::setPropertyValue().
OUString ScCalcConfig::maOpenCLDevice |
Definition at line 64 of file calcconfig.hxx.
Referenced by sc::FormulaGroupInterpreter::getStatic(), ScFormulaCfg::ImplCommit(), operator==(), and ScFormulaCfg::UpdateFromProperties().
bool ScCalcConfig::mbEmptyStringAsZero |
Definition at line 55 of file calcconfig.hxx.
Referenced by ScGlobal::ConvertStringToValue(), ScCalcOptionsDialog::CoupleEmptyAsZeroToStringConversion(), ScFormulaCfg::ImplCommit(), MergeDocumentSpecific(), operator==(), ScCalcOptionsDialog::ScCalcOptionsDialog(), ScInterpreter::ScNumberValue(), and ScFormulaCfg::UpdateFromProperties().
bool ScCalcConfig::mbHasStringRefSyntax |
Definition at line 56 of file calcconfig.hxx.
Referenced by ScDocumentConfiguration::getPropertyValue(), MergeDocumentSpecific(), operator==(), SetStringRefSyntax(), ScXMLImport::SetStringRefSyntaxIfMissing(), and ExcDocument::WriteXml().
bool ScCalcConfig::mbOpenCLAutoSelect |
Definition at line 63 of file calcconfig.hxx.
Referenced by ScModelObj::disableAutomaticDeviceSelection(), ScModelObj::enableAutomaticDeviceSelection(), sc::FormulaGroupInterpreter::getStatic(), ScFormulaCfg::ImplCommit(), operator==(), setOpenCLConfigToDefault(), and ScFormulaCfg::UpdateFromProperties().
bool ScCalcConfig::mbOpenCLSubsetOnly |
Definition at line 62 of file calcconfig.hxx.
Referenced by ScFormulaCfg::ImplCommit(), operator==(), setOpenCLConfigToDefault(), and ScFormulaCfg::UpdateFromProperties().
StringConversion ScCalcConfig::meStringConversion |
Definition at line 54 of file calcconfig.hxx.
Referenced by ScGlobal::ConvertStringToValue(), ScCalcOptionsDialog::CoupleEmptyAsZeroToStringConversion(), MergeDocumentSpecific(), operator==(), ScCalcOptionsDialog::ScCalcOptionsDialog(), and ScFormulaCfg::UpdateFromProperties().
formula::FormulaGrammar::AddressConvention ScCalcConfig::meStringRefAddressSyntax |
Definition at line 53 of file calcconfig.hxx.
Referenced by oox::xls::WorkbookHelper::finalizeWorkbookImport(), ScDocumentConfiguration::getPropertyValue(), MergeDocumentSpecific(), operator==(), ScInterpreter::ScAddressFunc(), ScCalcOptionsDialog::ScCalcOptionsDialog(), ScInterpreter::ScCell(), ScInterpreter::ScCellExternal(), ScInterpreter::ScIndirect(), SetStringRefSyntax(), ScXMLImport::SetStringRefSyntaxIfMissing(), ScFormulaCfg::UpdateFromProperties(), and ExcDocument::WriteXml().
sal_Int32 ScCalcConfig::mnOpenCLMinimumFormulaGroupSize |
Definition at line 65 of file calcconfig.hxx.
Referenced by ScFormulaCfg::ImplCommit(), operator==(), setOpenCLConfigToDefault(), and ScFormulaCfg::UpdateFromProperties().
OpCodeSet ScCalcConfig::mpOpenCLSubsetOpCodes |
Definition at line 69 of file calcconfig.hxx.
Referenced by ScTokenArray::CheckToken(), operator==(), setOpenCLConfigToDefault(), and ScFormulaCfg::UpdateFromProperties().