LibreOffice Module sc (master) 1
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | List of all members
ScFormulaCfg Class Referencefinal

#include <formulaopt.hxx>

Inheritance diagram for ScFormulaCfg:
[legend]
Collaboration diagram for ScFormulaCfg:
[legend]

Public Member Functions

 ScFormulaCfg ()
 
void SetOptions (const ScFormulaOptions &rNew)
 
virtual void Notify (const css::uno::Sequence< OUString > &aPropertyNames) override
 
- Public Member Functions inherited from ScFormulaOptions
 ScFormulaOptions ()
 
void SetDefaults ()
 
void SetFormulaSyntax (::formula::FormulaGrammar::Grammar eGram)
 
::formula::FormulaGrammar::Grammar GetFormulaSyntax () const
 
ScCalcConfigGetCalcConfig ()
 
const ScCalcConfigGetCalcConfig () const
 
void SetCalcConfig (const ScCalcConfig &rConfig)
 
void SetUseEnglishFuncName (bool bVal)
 
bool GetUseEnglishFuncName () const
 
void SetWriteCalcConfig (bool bVal)
 
bool GetWriteCalcConfig () const
 
void SetFormulaSepArg (const OUString &rSep)
 
const OUString & GetFormulaSepArg () const
 
void SetFormulaSepArrayRow (const OUString &rSep)
 
const OUString & GetFormulaSepArrayRow () const
 
void SetFormulaSepArrayCol (const OUString &rSep)
 
const OUString & GetFormulaSepArrayCol () const
 
void SetOOXMLRecalcOptions (ScRecalcOptions eOpt)
 
ScRecalcOptions GetOOXMLRecalcOptions () const
 
void SetODFRecalcOptions (ScRecalcOptions eOpt)
 
ScRecalcOptions GetODFRecalcOptions () const
 
void ResetFormulaSeparators ()
 
bool operator== (const ScFormulaOptions &rOpt) const
 
bool operator!= (const ScFormulaOptions &rOpt) const
 
- Public Member Functions inherited from utl::ConfigItem
virtual ~ConfigItem () override
 
 ConfigItem (ConfigItem const &)=default
 
 ConfigItem (ConfigItem &&)=default
 
ConfigItemoperator= (ConfigItem const &)=delete
 
ConfigItemoperator= (ConfigItem &&)=delete
 
virtual void Notify (const css::uno::Sequence< OUString > &aPropertyNames)=0
 
const OUString & GetSubTreeName () const
 
bool IsModified () const
 
void Commit ()
 
ConfigItemMode GetMode () const
 
- Public Member Functions inherited from utl::ConfigurationBroadcaster
void AddListener (utl::ConfigurationListener *pListener)
 
void RemoveListener (utl::ConfigurationListener const *pListener)
 
void NotifyListeners (ConfigurationHints nHint)
 
 ConfigurationBroadcaster ()
 
 ConfigurationBroadcaster (ConfigurationBroadcaster const &)
 
virtual ~ConfigurationBroadcaster ()
 
ConfigurationBroadcasteroperator= (ConfigurationBroadcaster const &other)
 
virtual void BlockBroadcasts (bool bBlock)
 

Private Types

typedef std::map< OUString, sal_uInt16 > PropsToIds
 

Private Member Functions

void UpdateFromProperties (const css::uno::Sequence< OUString > &rNames)
 
virtual void ImplCommit () override
 

Static Private Member Functions

static css::uno::Sequence< OUString > GetPropertyNames ()
 
static ScFormulaCfg::PropsToIds GetPropNamesToId ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ScFormulaOptions
static void GetDefaultFormulaSeparators (OUString &rSepArg, OUString &rSepArrayCol, OUString &rSepArrayRow)
 
- Static Public Member Functions inherited from utl::ConfigItem
static css::uno::Sequence< OUString > GetNodeNames (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, ConfigNameFormat eFormat)
 
static css::uno::Sequence< css::uno::Any > GetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales)
 
static bool PutProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales)
 
static bool ClearNodeSet (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode)
 
static bool ReplaceSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues, bool bAllLocales)
 
static bool SetSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
- Protected Member Functions inherited from utl::ConfigItem
 ConfigItem (OUString aSubTree, ConfigItemMode nMode=ConfigItemMode::NONE)
 
void SetModified ()
 
void ClearModified ()
 
css::uno::Sequence< css::uno::Any > GetProperties (const css::uno::Sequence< OUString > &rNames)
 
css::uno::Sequence< sal_BoolGetReadOnlyStates (const css::uno::Sequence< OUString > &rNames)
 
bool PutProperties (const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues)
 
bool EnableNotification (const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false)
 
void DisableNotification ()
 
css::uno::Sequence< OUString > GetNodeNames (const OUString &rNode)
 
css::uno::Sequence< OUString > GetNodeNames (const OUString &rNode, ConfigNameFormat eFormat)
 
bool ClearNodeSet (const OUString &rNode)
 
bool ClearNodeElements (const OUString &rNode, css::uno::Sequence< OUString > const &rElements)
 
bool SetSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
bool ReplaceSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
bool AddNode (const OUString &rNode, const OUString &rNewNode)
 

Detailed Description

Definition at line 99 of file formulaopt.hxx.

Member Typedef Documentation

◆ PropsToIds

typedef std::map<OUString,sal_uInt16> ScFormulaCfg::PropsToIds
private

Definition at line 101 of file formulaopt.hxx.

Constructor & Destructor Documentation

◆ ScFormulaCfg()

ScFormulaCfg::ScFormulaCfg ( )

Member Function Documentation

◆ GetPropertyNames()

Sequence< OUString > ScFormulaCfg::GetPropertyNames ( )
staticprivate

Definition at line 168 of file formulaopt.cxx.

Referenced by GetPropNamesToId(), ImplCommit(), and ScFormulaCfg().

◆ GetPropNamesToId()

ScFormulaCfg::PropsToIds ScFormulaCfg::GetPropNamesToId ( )
staticprivate

◆ ImplCommit()

void ScFormulaCfg::ImplCommit ( )
overrideprivatevirtual

◆ Notify()

void ScFormulaCfg::Notify ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Implements utl::ConfigItem.

Definition at line 648 of file formulaopt.cxx.

References UpdateFromProperties().

◆ SetOptions()

void ScFormulaCfg::SetOptions ( const ScFormulaOptions rNew)

Definition at line 642 of file formulaopt.cxx.

References utl::ConfigItem::SetModified().

◆ UpdateFromProperties()

void ScFormulaCfg::UpdateFromProperties ( const css::uno::Sequence< OUString > &  rNames)
private

Definition at line 222 of file formulaopt.cxx.

References Any, formula::FormulaGrammar::CONV_A1_XL_A1, formula::FormulaGrammar::CONV_OOO, formula::FormulaGrammar::CONV_UNSPECIFIED, formula::FormulaGrammar::CONV_XL_A1, formula::FormulaGrammar::CONV_XL_R1C1, ScFormulaOptions::GetCalcConfig(), ScFormulaOptions::GetFormulaSyntax(), utl::ConfigItem::GetProperties(), GetPropNamesToId(), formula::FormulaGrammar::GRAM_NATIVE, formula::FormulaGrammar::GRAM_NATIVE_XL_A1, formula::FormulaGrammar::GRAM_NATIVE_XL_R1C1, ScCalcConfig::ILLEGAL, ScCalcConfig::LOCALE, ScCalcConfig::maOpenCLDevice, ScCalcConfig::mbEmptyStringAsZero, ScCalcConfig::mbOpenCLAutoSelect, ScCalcConfig::mbOpenCLSubsetOnly, ScCalcConfig::meStringConversion, ScCalcConfig::meStringRefAddressSyntax, ScCalcConfig::mnOpenCLMinimumFormulaGroupSize, ScCalcConfig::mpOpenCLSubsetOpCodes, pValues, RECALC_ALWAYS, RECALC_ASK, RECALC_NEVER, SAL_WARN, SCFORMULAOPT_EMPTY_OUSTRING_AS_ZERO, SCFORMULAOPT_ENGLISH_FUNCNAME, SCFORMULAOPT_GRAMMAR, SCFORMULAOPT_ODF_RECALC, SCFORMULAOPT_OOXML_RECALC, SCFORMULAOPT_OPENCL_AUTOSELECT, SCFORMULAOPT_OPENCL_DEVICE, SCFORMULAOPT_OPENCL_MIN_SIZE, SCFORMULAOPT_OPENCL_SUBSET_ONLY, SCFORMULAOPT_OPENCL_SUBSET_OPS, SCFORMULAOPT_SEP_ARG, SCFORMULAOPT_SEP_ARRAY_COL, SCFORMULAOPT_SEP_ARRAY_ROW, SCFORMULAOPT_STRING_CONVERSION, SCFORMULAOPT_STRING_REF_SYNTAX, ScOpCodeSetToSymbolicString(), ScStringToOpCodeSet(), ScFormulaOptions::SetFormulaSepArg(), ScFormulaOptions::SetFormulaSepArrayCol(), ScFormulaOptions::SetFormulaSepArrayRow(), ScFormulaOptions::SetFormulaSyntax(), ScFormulaOptions::SetODFRecalcOptions(), ScFormulaOptions::SetOOXMLRecalcOptions(), ScFormulaOptions::SetUseEnglishFuncName(), ScCalcConfig::UNAMBIGUOUS, and ScCalcConfig::ZERO.

Referenced by Notify(), and ScFormulaCfg().


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