Blame SOURCES/0183-sw-outline-SwViewOption-SetOnlineSpell.patch

f325b2
From 447fa6b3fb93262d548441d4778fc5d429b5aef3 Mon Sep 17 00:00:00 2001
f325b2
From: Miklos Vajna <vmiklos@collabora.co.uk>
f325b2
Date: Tue, 6 Oct 2015 11:13:54 +0200
f325b2
Subject: [PATCH 183/398] sw: outline SwViewOption::SetOnlineSpell()
f325b2
f325b2
Change-Id: Ic81b039e9a1b592ca52ab684ddb45ee44c7714df
f325b2
(cherry picked from commit 0cf63ba224cb01377e3e6da68b0e72a3ed7e30af)
f325b2
---
f325b2
 sw/inc/viewopt.hxx                  | 3 +--
f325b2
 sw/source/uibase/config/viewopt.cxx | 5 +++++
f325b2
 2 files changed, 6 insertions(+), 2 deletions(-)
f325b2
f325b2
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx
f325b2
index 64c1e269f2f6..dee2189a6795 100644
f325b2
--- a/sw/inc/viewopt.hxx
f325b2
+++ b/sw/inc/viewopt.hxx
f325b2
@@ -300,8 +300,7 @@ public:
f325b2
 
f325b2
     inline bool IsOnlineSpell() const
f325b2
         { return !bReadonly && (nCoreOptions & VIEWOPT_1_ONLINESPELL) != 0; }
f325b2
-    inline void SetOnlineSpell( bool b )
f325b2
-        { b ? (nCoreOptions |= VIEWOPT_1_ONLINESPELL ) : ( nCoreOptions &= ~VIEWOPT_1_ONLINESPELL); }
f325b2
+    void SetOnlineSpell( bool b );
f325b2
 
f325b2
     inline bool IsViewMetaChars() const
f325b2
         { return !bReadonly && (nCoreOptions & VIEWOPT_1_VIEWMETACHARS) != 0; }
f325b2
diff --git a/sw/source/uibase/config/viewopt.cxx b/sw/source/uibase/config/viewopt.cxx
f325b2
index 7597589f0657..c5080e84abd4 100644
f325b2
--- a/sw/source/uibase/config/viewopt.cxx
f325b2
+++ b/sw/source/uibase/config/viewopt.cxx
f325b2
@@ -312,6 +312,11 @@ bool SwViewOption::IsAutoCompleteWords()
f325b2
     return rFlags.bAutoCmpltCollectWords;
f325b2
 }
f325b2
 
f325b2
+void SwViewOption::SetOnlineSpell(bool b)
f325b2
+{
f325b2
+    b ? (nCoreOptions |= VIEWOPT_1_ONLINESPELL ) : ( nCoreOptions &= ~VIEWOPT_1_ONLINESPELL);
f325b2
+}
f325b2
+
f325b2
 AuthorCharAttr::AuthorCharAttr() :
f325b2
     nItemId (SID_ATTR_CHAR_UNDERLINE),
f325b2
     nAttr   (UNDERLINE_SINGLE),
f325b2
-- 
f325b2
2.12.0
f325b2