[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.1' - sw/source

Andras Timar andras.timar at collabora.com
Mon Nov 7 16:56:30 UTC 2016


 sw/source/uibase/uno/unotxdoc.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 1e37e3d3d9056e32e60ec9ace56d42ff0c97220e
Author: Andras Timar <andras.timar at collabora.com>
Date:   Mon Nov 7 17:55:38 2016 +0100

    Disable word completion for tiled rendering
    
    Change-Id: I9279972c88aa3b51526487c8f9f7ce420478330d

diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 5e92ecb..09b584a 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -151,6 +151,7 @@
 #include <comphelper/processfactory.hxx>
 #include <comphelper/servicehelper.hxx>
 #include <memory>
+#include <officecfg/Office/Writer.hxx>
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::text;
@@ -3277,6 +3278,12 @@ 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 completion
+    std::shared_ptr< comphelper::ConfigurationChanges > batch(
+        comphelper::ConfigurationChanges::create());
+    officecfg::Office::Writer::AutoFunction::Completion::Enable::set(false, batch);
+    batch->commit();
 }
 
 void SwXTextDocument::postKeyEvent(int nType, int nCharCode, int nKeyCode)


More information about the Libreoffice-commits mailing list