sw/source/uibase/uno/unotxdoc.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit ee0461902fe7ffa23351f5359ae9a3dc8c0bcf0a Author: Jan Holesovsky <[email protected]> Date: Wed Dec 14 13:56:42 2016 +0100 Disable the auto-completion for LibreOfficeKit for good. The editeng-like approach is terribly annoying when typing, particularly in bullet lists. Change-Id: I66175579f801fa028273d9680d7383d8eb37bf28 Reviewed-on: https://gerrit.libreoffice.org/32009 Tested-by: Jenkins <[email protected]> Reviewed-by: Andras Timar <[email protected]> diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 8ea5fdf..e649784 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> @@ -3302,6 +3304,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) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
