summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorDaniel Sikeler <d.sikeler94@gmail.com>2014-10-30 14:53:48 +0000
committerMichael Stahl <mstahl@redhat.com>2014-11-05 11:50:42 +0000
commit4404b718bdb547cb9b7b17c73a53574724cdeeb7 (patch)
tree037ad212198f98bf7dc243cf5e86bebb58b4050f /sw/inc
parentfc4d04d51b34cf81e0f69f7210071f795c81fee1 (diff)
fdo#79761: parse BlockList.xml only once
Change-Id: I3cfc5b66ee73b0e4d07a84c8255c5a006e4fbb25 Reviewed-on: https://gerrit.libreoffice.org/12210 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/swacorr.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/inc/swacorr.hxx b/sw/inc/swacorr.hxx
index 5bb3c93474fc..33598c6dbc16 100644
--- a/sw/inc/swacorr.hxx
+++ b/sw/inc/swacorr.hxx
@@ -24,15 +24,20 @@
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/embed/XStorage.hpp>
+#include "SwXMLTextBlocks.hxx"
+
class SwAutoCorrect : public SvxAutoCorrect
{
using SvxAutoCorrect::PutText;
+ std::unique_ptr<SwXMLTextBlocks> m_pTextBlocks;
+
protected:
// Return replacement text (only for SWG-format, all others can be obtained from wordlist!).
// rShort is stream-name - encrypted!
- virtual bool GetLongText( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >&,
- const OUString& rShort, OUString& rLong ) SAL_OVERRIDE;
+ virtual bool GetLongText( const OUString& rShort, OUString& rLong ) SAL_OVERRIDE;
+
+ virtual void refreshBlockList( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& ) SAL_OVERRIDE;
// Text with attributes (only SWG-format!).
// rShort is stream-name - encrypted!