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/.
10 #ifndef INCLUDED_SC_INC_SPELLCHECKCONTEXT_HXX
11 #define INCLUDED_SC_INC_SPELLCHECKCONTEXT_HXX
13 #include <editeng/misspellrange.hxx>
16 #include <unordered_map>
21 struct SpellCheckContext
27 size_t operator() (const CellPos
& rPos
) const;
34 CellPos(SCCOL nCol
, SCROW nRow
);
40 bool operator== (const CellPos
& r
) const;
43 typedef std::unordered_map
<CellPos
, std::vector
<editeng::MisspellRanges
>, CellPos::Hash
> CellMapType
;
46 CellMapType maMisspellCells
;
50 bool isMisspelled( SCCOL nCol
, SCROW nRow
) const;
51 const std::vector
<editeng::MisspellRanges
>* getMisspellRanges( SCCOL nCol
, SCROW nRow
) const;
52 void setMisspellRanges( SCCOL nCol
, SCROW nRow
, const std::vector
<editeng::MisspellRanges
>* pRanges
);
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */