diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-08-18 16:55:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-20 07:56:27 +0200 |
commit | 1e3bd9bd15550033ae76012014d631b104ff2008 (patch) | |
tree | 8c54dd1e46c778ec1929271f2fb4c99ef7c84af4 /include | |
parent | 28e4240f81ccc1804ecf4b776290b3553f8d1c61 (diff) |
drop unused SfxSpellCheckItem
last getter went with
commit 215207f480258b37864a88e1b831055e148adf65
Date: Thu Mar 6 16:42:24 2014 +0000
coverity#708784 Unused pointer value
don't put the item in any item sets anymore.
delete SID_ATTR_SPELL and adjust SfxItemSet ranges.
narrow ranges in OfaTreeOptionsDialog::CreateItemSet to actually
used items.
Change-Id: Ia5cc91fc62a0fccf87b2fd380e6bb2bef1f6f3e7
Reviewed-on: https://gerrit.libreoffice.org/41335
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/optitems.hxx | 34 | ||||
-rw-r--r-- | include/sfx2/sfxsids.hrc | 1 |
2 files changed, 0 insertions, 35 deletions
diff --git a/include/editeng/optitems.hxx b/include/editeng/optitems.hxx index 7d9dbef070a7..2ecf91e8e8f1 100644 --- a/include/editeng/optitems.hxx +++ b/include/editeng/optitems.hxx @@ -20,42 +20,8 @@ #define INCLUDED_EDITENG_OPTITEMS_HXX #include <svl/poolitem.hxx> -#include <com/sun/star/uno/Reference.hxx> #include <editeng/editengdllapi.h> -// forward --------------------------------------------------------------- -namespace com { namespace sun { namespace star { -namespace linguistic2{ - class XSpellChecker1; -}}}} - - -// class SfxSpellCheckItem ----------------------------------------------- - -class EDITENG_DLLPUBLIC SfxSpellCheckItem: public SfxPoolItem -{ -public: - - SfxSpellCheckItem( css::uno::Reference< - css::linguistic2::XSpellChecker1 > const &xChecker, - sal_uInt16 nWhich ); - SfxSpellCheckItem( const SfxSpellCheckItem& rItem ); - - virtual bool GetPresentation( SfxItemPresentation ePres, - MapUnit eCoreMetric, - MapUnit ePresMetric, - OUString &rText, const IntlWrapper& ) const override; - - virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; - virtual bool operator==( const SfxPoolItem& ) const override; - - const css::uno::Reference< css::linguistic2::XSpellChecker1 >& - GetXSpellChecker() const { return xSpellCheck; } - -private: - css::uno::Reference< css::linguistic2::XSpellChecker1 > xSpellCheck; -}; - // class SfxHyphenRegionItem --------------------------------------------- diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc index ea38db1e3cea..6fdd02c4caf6 100644 --- a/include/sfx2/sfxsids.hrc +++ b/include/sfx2/sfxsids.hrc @@ -476,7 +476,6 @@ // LinguTabPage #define SID_ATTR_LANGUAGE (SID_OPTIONS_START + 7) -#define SID_ATTR_SPELL (SID_OPTIONS_START + 9) #define SID_ATTR_HYPHENREGION (SID_OPTIONS_START + 12) #define SID_AUTOSPELL_CHECK (SID_OPTIONS_START + 21) |