diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-09-01 13:57:52 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-09-01 14:48:50 -0400 |
commit | 309c766d99cc7efc11fc439d119ba1944f2d710a (patch) | |
tree | 38b0df248625639f1ef5afc3b5fb1dced8525da6 /sc/source/ui/inc | |
parent | 16c8c46d85d7aafcb9159b12e2d44bc0bf322c69 (diff) |
Separate misspelled ranges when entering a new cell value.
And store them at appropriate locations.
Change-Id: Iaf38c0cd01e9b3dc9dc98f7ccc1951d572a422e9
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r-- | sc/source/ui/inc/gridwin.hxx | 1 | ||||
-rw-r--r-- | sc/source/ui/inc/tabview.hxx | 5 | ||||
-rw-r--r-- | sc/source/ui/inc/uiitems.hxx | 9 |
3 files changed, 15 insertions, 0 deletions
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx index cbb774b85035..4288342524bd 100644 --- a/sc/source/ui/inc/gridwin.hxx +++ b/sc/source/ui/inc/gridwin.hxx @@ -394,6 +394,7 @@ public: bool ContinueOnlineSpelling(); void EnableAutoSpell( bool bEnable ); void ResetAutoSpell(); + void SetAutoSpellData( SCCOL nPosX, SCROW nPosY, const std::vector<editeng::MisspellRanges>* pRanges ); void DeleteCopySourceOverlay(); void UpdateCopySourceOverlay(); diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx index cb94eb81b8d4..4964e6d685c1 100644 --- a/sc/source/ui/inc/tabview.hxx +++ b/sc/source/ui/inc/tabview.hxx @@ -30,6 +30,10 @@ #include <boost/noncopyable.hpp> #include <boost/scoped_ptr.hpp> +namespace editeng { + struct MisspellRanges; +} + class ScEditEngineDefaulter; class ScGridWindow; class ScOutlineWindow; @@ -524,6 +528,7 @@ public: bool ContinueOnlineSpelling(); void EnableAutoSpell( bool bEnable ); void ResetAutoSpell(); + void SetAutoSpellData( SCCOL nPosX, SCROW nPosY, const std::vector<editeng::MisspellRanges>* pRanges ); }; diff --git a/sc/source/ui/inc/uiitems.hxx b/sc/source/ui/inc/uiitems.hxx index d47528968915..a74a08d4ddd5 100644 --- a/sc/source/ui/inc/uiitems.hxx +++ b/sc/source/ui/inc/uiitems.hxx @@ -27,8 +27,13 @@ #include "paramisc.hxx" #include <svl/poolitem.hxx> +#include <vector> #include <boost/scoped_ptr.hpp> +namespace editeng { + struct MisspellRanges; +} + class ScEditEngineDefaulter; class EditTextObject; class ScViewData; @@ -46,6 +51,7 @@ class ScInputStatusItem : public SfxPoolItem ScAddress aEndPos; OUString aString; EditTextObject* pEditData; + const std::vector<editeng::MisspellRanges>* mpMisspellRanges; public: TYPEINFO(); @@ -77,6 +83,9 @@ public: const OUString& GetString() const { return aString; } const EditTextObject* GetEditData() const { return pEditData; } + + void SetMisspellRanges( const std::vector<editeng::MisspellRanges>* pRanges ); + const std::vector<editeng::MisspellRanges>* GetMisspellRanges() const; }; |