[Libreoffice-commits] core.git: sc/inc sc/source

Eike Rathke erack at redhat.com
Thu Jul 21 11:24:32 UTC 2016


 sc/inc/docoptio.hxx              |   36 +++---------------------------------
 sc/source/core/tool/docoptio.cxx |   34 ++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 33 deletions(-)

New commits:
commit 0d8cc6e3a1e110ccdd260cbceb769f0a8083ae26
Author: Eike Rathke <erack at redhat.com>
Date:   Thu Jul 21 13:22:59 2016 +0200

    move setter implementation from .hxx to .cxx
    
    Change-Id: I78d5d6955b98d6fb8fed4d3b705091d46e1047e3

diff --git a/sc/inc/docoptio.hxx b/sc/inc/docoptio.hxx
index a7f81e2..ce2f384 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 dede444..5fcf4a6 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 )


More information about the Libreoffice-commits mailing list