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