summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-07-21 13:22:59 +0200
committerEike Rathke <erack@redhat.com>2016-07-21 13:24:07 +0200
commit0d8cc6e3a1e110ccdd260cbceb769f0a8083ae26 (patch)
treebe8f52da57f3ee843a9807bb7476a7506db496ee /sc
parent82913e694a4169f9ddeef399e659aec78cc9c8d6 (diff)
move setter implementation from .hxx to .cxx
Change-Id: I78d5d6955b98d6fb8fed4d3b705091d46e1047e3
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/docoptio.hxx36
-rw-r--r--sc/source/core/tool/docoptio.cxx34
2 files changed, 37 insertions, 33 deletions
diff --git a/sc/inc/docoptio.hxx b/sc/inc/docoptio.hxx
index a7f81e2147cb..ce2f384efc25 100644
--- a/sc/inc/docoptio.hxx
+++ b/sc/inc/docoptio.hxx
@@ -102,41 +102,11 @@ public:
return eFormulaSearchType;
}
- void SetFormulaRegexEnabled( bool bVal )
- {
- if (bVal)
- {
- bFormulaRegexEnabled = true;
- bFormulaWildcardsEnabled = false;
- eFormulaSearchType = utl::SearchParam::SRCH_REGEXP;
- }
- else if (!bFormulaRegexEnabled)
- ; // nothing changes for setting false to false
- else
- {
- bFormulaRegexEnabled = false;
- eFormulaSearchType = eSearchTypeUnknown;
- }
- }
+ void SetFormulaRegexEnabled( bool bVal );
bool IsFormulaRegexEnabled() const { return GetFormulaSearchType() == utl::SearchParam::SRCH_REGEXP; }
- void SetFormulaWildcardsEnabled( bool bVal )
- {
- if (bVal)
- {
- bFormulaRegexEnabled = false;
- bFormulaWildcardsEnabled = true;
- eFormulaSearchType = utl::SearchParam::SRCH_WILDCARD;
- }
- else if (!bFormulaWildcardsEnabled)
- ; // nothing changes for setting false to false
- else
- {
- bFormulaWildcardsEnabled = false;
- eFormulaSearchType = eSearchTypeUnknown;
- }
- }
- bool IsFormulaWildcardsEnabled() const { return GetFormulaSearchType() == utl::SearchParam::SRCH_WILDCARD; }
+ void SetFormulaWildcardsEnabled( bool bVal );
+ bool IsFormulaWildcardsEnabled() const { return GetFormulaSearchType() == utl::SearchParam::SRCH_WILDCARD; }
void SetWriteCalcConfig( bool bVal ) { bWriteCalcConfig = bVal; }
bool IsWriteCalcConfig() const { return bWriteCalcConfig; }
diff --git a/sc/source/core/tool/docoptio.cxx b/sc/source/core/tool/docoptio.cxx
index dede44487802..5fcf4a67018a 100644
--- a/sc/source/core/tool/docoptio.cxx
+++ b/sc/source/core/tool/docoptio.cxx
@@ -102,6 +102,40 @@ void ScDocOptions::ResetDocOptions()
bWriteCalcConfig = true;
}
+void ScDocOptions::SetFormulaRegexEnabled( bool bVal )
+{
+ if (bVal)
+ {
+ bFormulaRegexEnabled = true;
+ bFormulaWildcardsEnabled = false;
+ eFormulaSearchType = utl::SearchParam::SRCH_REGEXP;
+ }
+ else if (!bFormulaRegexEnabled)
+ ; // nothing changes for setting false to false
+ else
+ {
+ bFormulaRegexEnabled = false;
+ eFormulaSearchType = eSearchTypeUnknown;
+ }
+}
+
+void ScDocOptions::SetFormulaWildcardsEnabled( bool bVal )
+{
+ if (bVal)
+ {
+ bFormulaRegexEnabled = false;
+ bFormulaWildcardsEnabled = true;
+ eFormulaSearchType = utl::SearchParam::SRCH_WILDCARD;
+ }
+ else if (!bFormulaWildcardsEnabled)
+ ; // nothing changes for setting false to false
+ else
+ {
+ bFormulaWildcardsEnabled = false;
+ eFormulaSearchType = eSearchTypeUnknown;
+ }
+}
+
// ScTpCalcItem - Daten fuer die CalcOptions-TabPage
ScTpCalcItem::ScTpCalcItem( sal_uInt16 nWhichP, const ScDocOptions& rOpt )