diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-30 23:40:52 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-09-01 14:48:48 -0400 |
commit | 547f4fec93a023ff244e3bf509baf4b8001effa0 (patch) | |
tree | bb77beb1224c111fe9eef04cd4300a187906323e /include | |
parent | 4bc3a58a648f6c0ce95b4eb41f2cbf46175629ed (diff) |
First step toward showing mis-spelled words without modifying cells.
There are still tons of problems to fix.
Change-Id: Icae6e3d2c9b8b2266724d8d068abbab8acae96da
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/editeng.hxx | 6 | ||||
-rw-r--r-- | include/editeng/misspellrange.hxx | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index 6fd91a453e1d..754531738a71 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -55,6 +55,9 @@ typedef std::vector<SpellPortion> SpellPortions; namespace svl { class IUndoManager; } namespace basegfx { class B2DPolyPolygon; } +namespace editeng { + struct MisspellRanges; +} class ImpEditEngine; class EditView; @@ -398,6 +401,9 @@ public: void SetHyphenator( ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenator >& xHyph ); + void GetAllMisspellRanges( std::vector<editeng::MisspellRanges>& rRanges ) const; + void SetAllMisspellRanges( const std::vector<editeng::MisspellRanges>& rRanges ); + void SetForbiddenCharsTable( rtl::Reference<SvxForbiddenCharactersTable> xForbiddenChars ); void SetDefaultLanguage( LanguageType eLang ); diff --git a/include/editeng/misspellrange.hxx b/include/editeng/misspellrange.hxx index 103b58a9e153..4b34e228eb3f 100644 --- a/include/editeng/misspellrange.hxx +++ b/include/editeng/misspellrange.hxx @@ -12,6 +12,8 @@ #include "editeng/editengdllapi.h" +#include <vector> + namespace editeng { struct EDITENG_DLLPUBLIC MisspellRange @@ -23,6 +25,14 @@ struct EDITENG_DLLPUBLIC MisspellRange MisspellRange(size_t nStart, size_t nEnd); }; +struct EDITENG_DLLPUBLIC MisspellRanges +{ + size_t mnParagraph; + std::vector<MisspellRange> maRanges; + + MisspellRanges(size_t nParagraph, const std::vector<MisspellRange>& rRanges); +}; + } #endif |