diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-06-19 12:31:41 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-06-27 08:38:07 +0200 |
commit | f1d9aca4bf596c0a3be44483b1d60867f12683ec (patch) | |
tree | eb2423bac53f22097902e682d2b2a3f5f85f4d2c /sw/inc/swmodule.hxx | |
parent | db28098265cb1f137813c2f6c42663382c213aa5 (diff) |
Initialise the spelling and grammar thing when Writer starts
We want to avoid the phenomenon where right after typing the first
character into a Writer documnent in a LibreOffice instance, spell and
grammar checking stuff is initialised which can take a quite long
time, especially the LightProof one.
Even after my recent change that made the Lightproof initialisation
clearly faster (by avoiding the import of the large
lightproof_impl_pt_BR.py module before actually doing Brazilian
Portuguese proofreading), there still was a 0.3 second delay on my
relatively fast machine.
This change moves that delay into Writer start instead, before any
document window is ready to accept input. At least then the user is
not entering text and wondering why it doesn't show up right away.
Change-Id: Ie578c310dc9cb9bfc964e2986eec177fb1d4e666
Reviewed-on: https://gerrit.libreoffice.org/56473
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sw/inc/swmodule.hxx')
-rw-r--r-- | sw/inc/swmodule.hxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx index 4cca346229eb..cdb88dbf3569 100644 --- a/sw/inc/swmodule.hxx +++ b/sw/inc/swmodule.hxx @@ -237,10 +237,6 @@ public: static void CheckSpellChanges( bool bOnlineSpelling, bool bIsSpellWrongAgain, bool bIsSpellAllAgain, bool bSmartTags ); - inline const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& - GetLngSvcEvtListener(); - void CreateLngSvcEvtListener(); - css::uno::Reference< css::scanner::XScannerManager2 > const & GetScannerManager(); @@ -251,12 +247,6 @@ public: void CallAutomationApplicationEventSinks(const OUString& Method, css::uno::Sequence< css::uno::Any >& Arguments); }; -inline const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& - SwModule::GetLngSvcEvtListener() -{ - return m_xLinguServiceEventListener; -} - // Access to SwModule, the View and the shell. #define SW_MOD() ( static_cast<SwModule*>(SfxApplication::GetModule(SfxToolsModule::Writer))) |