1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 #include <i18nlangtag/lang.h>
13 #include <editeng/misspellrange.hxx>
20 class ScTabEditEngine
;
25 * Class shared between grid windows to cache
28 class SpellCheckContext
30 class SpellCheckCache
;
31 struct SpellCheckStatus
;
32 struct SpellCheckResult
;
34 std::unique_ptr
<SpellCheckCache
> mpCache
;
35 std::unique_ptr
<SpellCheckResult
> mpResult
;
37 std::unique_ptr
<ScTabEditEngine
> mpEngine
;
38 std::unique_ptr
<SpellCheckStatus
> mpStatus
;
40 LanguageType meLanguage
;
43 SpellCheckContext(ScDocument
* pDocument
, SCTAB nTab
);
47 bool isMisspelled(SCCOL nCol
, SCROW nRow
) const;
48 const std::vector
<editeng::MisspellRanges
>* getMisspellRanges(SCCOL nCol
, SCROW nRow
) const;
49 void setMisspellRanges(SCCOL nCol
, SCROW nRow
,
50 const std::vector
<editeng::MisspellRanges
>* pRanges
);
53 void resetForContentChange();
54 void setTabNo(SCTAB nTab
);
57 void ensureResults(SCCOL nCol
, SCROW nRow
);
58 void resetCache(bool bContentChangeOnly
= false);
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */