summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2016-11-07 19:51:52 +0100
committerAndras Timar <andras.timar@collabora.com>2016-11-07 19:51:52 +0100
commit646762e1ac37ce97f33106643be10ed20299c999 (patch)
tree73b8ffd714d8d2a75cf3e08b00c49d278dff8f67
parent709819833dd643bf95c2fedadabe615bff320991 (diff)
Tiled rendering: Show word autocompletion suggestions in selection
Change-Id: I913fa0a3a91c9c575f89f41076193e27149fa553
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 5e92ecb8fee1..b99f5dc57f83 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -30,6 +30,8 @@
#include <toolkit/helper/vclunohelper.hxx>
#include <toolkit/awt/vclxdevice.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
+#include <editeng/svxacorr.hxx>
+#include <editeng/acorrcfg.hxx>
#include <cmdid.h>
#include <swtypes.hxx>
#include <wdocsh.hxx>
@@ -3277,6 +3279,9 @@ void SwXTextDocument::initializeForTiledRendering(const css::uno::Sequence<css::
// causing 'Save' being disabled; so let's always save to the original
// format
SvtSaveOptions().SetWarnAlienFormat(false);
+
+ // show word auto completion suggestions in selection instead of tooltip
+ SvxAutoCorrCfg::Get().GetAutoCorrect()->GetSwFlags().bAutoCmpltShowAsTip = false;
}
void SwXTextDocument::postKeyEvent(int nType, int nCharCode, int nKeyCode)