summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2016-12-14 13:56:42 +0100
committerJan Holesovsky <kendy@collabora.com>2016-12-14 14:07:08 +0100
commit9f219be16055480ca46d1bdf95ca3a38355cbee6 (patch)
tree4fc1aacb12735b796af55297dd7b921ad3fcba37 /sw
parentd543d66a4ee34d3b0088f45951b56c150f7206ec (diff)
Disable the auto-completion for LibreOfficeKit for good.
The editeng-like approach is terribly annoying when typing, particularly in bullet lists. Change-Id: I66175579f801fa028273d9680d7383d8eb37bf28
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 531bec7d7a7b..d62b3f7efb48 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -33,6 +33,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>
@@ -3294,6 +3296,10 @@ void SwXTextDocument::initializeForTiledRendering(const css::uno::Sequence<css::
// causing 'Save' being disabled; so let's always save to the original
// format
SvtSaveOptions().SetWarnAlienFormat(false);
+
+ // disable word auto-completion suggestions, the tooltips are not visible,
+ // and the editeng-like auto-completion is annoying
+ SvxAutoCorrCfg::Get().GetAutoCorrect()->GetSwFlags().bAutoCompleteWords = false;
}
void SwXTextDocument::postKeyEvent(int nType, int nCharCode, int nKeyCode)