diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-09-01 09:46:07 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-09-01 14:48:49 -0400 |
commit | 0ee265e82ea64839e559fcded4d268de721f4202 (patch) | |
tree | 1f3872f631d52f13ee21402075a52402fe4e7f36 /sc/source/ui/view/spellcheckcontext.cxx | |
parent | Be sure to skip pivot table ranges. (diff) | |
download | core-0ee265e82ea64839e559fcded4d268de721f4202.tar.gz core-0ee265e82ea64839e559fcded4d268de721f4202.zip |
Handle enabling / disabling of auto spell check.
Change-Id: I8f3fe06a41b825f233f4116ae8ba3b30cb4f1adc
Diffstat (limited to 'sc/source/ui/view/spellcheckcontext.cxx')
-rw-r--r-- | sc/source/ui/view/spellcheckcontext.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sc/source/ui/view/spellcheckcontext.cxx b/sc/source/ui/view/spellcheckcontext.cxx index c064d2b69b45..d6cec232e889 100644 --- a/sc/source/ui/view/spellcheckcontext.cxx +++ b/sc/source/ui/view/spellcheckcontext.cxx @@ -33,6 +33,12 @@ bool SpellCheckContext::CellPos::isValid() const return mnCol >= 0 && mnRow >= 0; } +void SpellCheckContext::CellPos::reset() +{ + mnCol = 0; + mnRow = 0; +} + bool SpellCheckContext::CellPos::operator< (const CellPos& r) const { if (mnCol != r.mnCol) @@ -65,6 +71,12 @@ const std::vector<editeng::MisspellRanges>* SpellCheckContext::getMisspellRanges return &it->second; } +void SpellCheckContext::reset() +{ + maPos.reset(); + maMisspellCells.clear(); +} + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |