LibreOffice Module editeng (master) 1
|
Keeps track of misspelled ranges in paragraph. More...
#include <edtspell.hxx>
Public Types | |
typedef std::vector< editeng::MisspellRange >::iterator | iterator |
typedef std::vector< editeng::MisspellRange >::const_iterator | const_iterator |
Public Member Functions | |
WrongList () | |
const std::vector< editeng::MisspellRange > & | GetRanges () const |
void | SetRanges (std::vector< editeng::MisspellRange > &&rRanges) |
bool | IsValid () const |
void | SetValid () |
void | SetInvalidRange (size_t nStart, size_t nEnd) |
void | ResetInvalidRange (size_t nStart, size_t nEnd) |
size_t | GetInvalidStart () const |
size_t | GetInvalidEnd () const |
void | TextInserted (size_t nPos, size_t nLength, bool bPosIsSep) |
void | TextDeleted (size_t nPos, size_t nLength) |
void | InsertWrong (size_t nStart, size_t nEnd) |
bool | NextWrong (size_t &rnStart, size_t &rnEnd) const |
bool | HasWrong (size_t nStart, size_t nEnd) const |
bool | HasAnyWrong (size_t nStart, size_t nEnd) const |
void | ClearWrongs (size_t nStart, size_t nEnd, const ContentNode *pNode) |
void | MarkWrongsInvalid () |
WrongList * | Clone () const |
bool | operator== (const WrongList &rCompare) const |
bool | empty () const |
void | push_back (const editeng::MisspellRange &rRange) |
editeng::MisspellRange & | back () |
const editeng::MisspellRange & | back () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
Private Member Functions | |
bool | DbgIsBuggy () const |
Private Attributes | |
std::vector< editeng::MisspellRange > | maRanges |
size_t | mnInvalidStart |
size_t | mnInvalidEnd |
Static Private Attributes | |
static constexpr size_t | Valid = std::numeric_limits<size_t>::max() |
Keeps track of misspelled ranges in paragraph.
Definition at line 54 of file edtspell.hxx.
typedef std::vector<editeng::MisspellRange>::const_iterator WrongList::const_iterator |
Definition at line 66 of file edtspell.hxx.
typedef std::vector<editeng::MisspellRange>::iterator WrongList::iterator |
Definition at line 65 of file edtspell.hxx.
WrongList::WrongList | ( | ) |
Definition at line 151 of file edtspell.cxx.
Referenced by Clone().
editeng::MisspellRange & WrongList::back | ( | ) |
Definition at line 454 of file edtspell.cxx.
References maRanges.
const editeng::MisspellRange & WrongList::back | ( | ) | const |
Definition at line 459 of file edtspell.cxx.
References maRanges.
WrongList::iterator WrongList::begin | ( | ) |
Definition at line 464 of file edtspell.cxx.
References maRanges.
WrongList::const_iterator WrongList::begin | ( | ) | const |
Definition at line 474 of file edtspell.cxx.
References maRanges.
void WrongList::ClearWrongs | ( | size_t | nStart, |
size_t | nEnd, | ||
const ContentNode * | pNode | ||
) |
Definition at line 362 of file edtspell.cxx.
References DbgIsBuggy(), ContentNode::GetChar(), i, ContentNode::IsFeature(), ContentNode::Len(), o3tl::make_unsigned(), maRanges, and SAL_WARN_IF.
Referenced by ImpEditEngine::DoOnlineSpelling(), and ImpEditEngine::ImpConnectParagraphs().
WrongList * WrongList::Clone | ( | ) | const |
Definition at line 426 of file edtspell.cxx.
References WrongList().
Referenced by ContentInfo::ContentInfo(), ImpEditEngine::CreateTextObject(), and ImpEditEngine::InsertTextObject().
|
private |
Definition at line 484 of file edtspell.cxx.
Referenced by ClearWrongs(), InsertWrong(), TextDeleted(), and TextInserted().
bool WrongList::empty | ( | ) | const |
Definition at line 444 of file edtspell.cxx.
References maRanges.
Referenced by EditEngine::HasOnlineSpellErrors(), ImpEditEngine::Paint(), and EditEngine::SetControlWord().
WrongList::iterator WrongList::end | ( | ) |
Definition at line 469 of file edtspell.cxx.
References maRanges.
WrongList::const_iterator WrongList::end | ( | ) | const |
Definition at line 479 of file edtspell.cxx.
References maRanges.
|
inline |
Definition at line 79 of file edtspell.hxx.
References mnInvalidEnd.
Referenced by ImpEditEngine::DoOnlineSpelling(), and operator==().
|
inline |
Definition at line 78 of file edtspell.hxx.
References mnInvalidStart.
Referenced by ImpEditEngine::DoOnlineSpelling(), and operator==().
|
inline |
Definition at line 70 of file edtspell.hxx.
References maRanges.
Referenced by ImpEditEngine::GetAllMisspellRanges().
bool WrongList::HasAnyWrong | ( | size_t | nStart, |
size_t | nEnd | ||
) | const |
Definition at line 350 of file edtspell.cxx.
References maRanges.
Referenced by ImpEditEngine::DoOnlineSpelling().
bool WrongList::HasWrong | ( | size_t | nStart, |
size_t | nEnd | ||
) | const |
Definition at line 338 of file edtspell.cxx.
References maRanges.
Referenced by ImpEditEngine::DoOnlineSpelling(), and ImpEditView::IsWrongSpelledWord().
void WrongList::InsertWrong | ( | size_t | nStart, |
size_t | nEnd | ||
) |
Definition at line 396 of file edtspell.cxx.
References DbgIsBuggy(), maRanges, nPos, and SAL_WARN_IF.
Referenced by ImpEditEngine::DoOnlineSpelling().
bool WrongList::IsValid | ( | ) | const |
Definition at line 158 of file edtspell.cxx.
References mnInvalidStart, and Valid.
Referenced by ImpEditEngine::DoOnlineSpelling(), TextDeleted(), and TextInserted().
void WrongList::MarkWrongsInvalid | ( | ) |
Definition at line 420 of file edtspell.cxx.
References maRanges, and SetInvalidRange().
Referenced by ImpEditView::SpellIgnoreWord().
bool WrongList::NextWrong | ( | size_t & | rnStart, |
size_t & | rnEnd | ||
) | const |
Definition at line 320 of file edtspell.cxx.
References maRanges.
Referenced by lcl_DrawRedLines(), and ImpEditEngine::Paint().
bool WrongList::operator== | ( | const WrongList & | rCompare | ) | const |
Definition at line 432 of file edtspell.cxx.
References a, GetInvalidEnd(), GetInvalidStart(), and maRanges.
void WrongList::push_back | ( | const editeng::MisspellRange & | rRange | ) |
Definition at line 449 of file edtspell.cxx.
References maRanges.
Referenced by ImpEditEngine::ImpConnectParagraphs().
void WrongList::ResetInvalidRange | ( | size_t | nStart, |
size_t | nEnd | ||
) |
Definition at line 178 of file edtspell.cxx.
References mnInvalidEnd, and mnInvalidStart.
Referenced by ImpEditEngine::DoOnlineSpelling(), EditView::ExecuteSpellPopup(), ImpEditEngine::SetStyleSheet(), and ImpEditEngine::UpdateParagraphsWithStyleSheet().
void WrongList::SetInvalidRange | ( | size_t | nStart, |
size_t | nEnd | ||
) |
Definition at line 169 of file edtspell.cxx.
References mnInvalidEnd, mnInvalidStart, and Valid.
Referenced by ImpEditEngine::ImpConnectParagraphs(), and MarkWrongsInvalid().
void WrongList::SetRanges | ( | std::vector< editeng::MisspellRange > && | rRanges | ) |
Definition at line 153 of file edtspell.cxx.
References maRanges.
Referenced by ImpEditEngine::SetAllMisspellRanges().
void WrongList::SetValid | ( | ) |
Definition at line 163 of file edtspell.cxx.
References mnInvalidEnd, mnInvalidStart, and Valid.
Referenced by ImpEditEngine::DoOnlineSpelling().
void WrongList::TextDeleted | ( | size_t | nPos, |
size_t | nLength | ||
) |
Definition at line 252 of file edtspell.cxx.
References DbgIsBuggy(), i, IsValid(), maRanges, mnInvalidEnd, mnInvalidStart, nLength, nPos, and SAL_WARN_IF.
void WrongList::TextInserted | ( | size_t | nPos, |
size_t | nLength, | ||
bool | bPosIsSep | ||
) |
Definition at line 184 of file edtspell.cxx.
References DbgIsBuggy(), i, IsValid(), maRanges, editeng::MisspellRange::mnEnd, mnInvalidEnd, mnInvalidStart, editeng::MisspellRange::mnStart, n, nLength, nPos, and SAL_WARN_IF.
|
private |
Definition at line 58 of file edtspell.hxx.
Referenced by back(), begin(), ClearWrongs(), DbgIsBuggy(), empty(), end(), GetRanges(), HasAnyWrong(), HasWrong(), InsertWrong(), MarkWrongsInvalid(), NextWrong(), operator==(), push_back(), SetRanges(), TextDeleted(), and TextInserted().
|
private |
Definition at line 60 of file edtspell.hxx.
Referenced by GetInvalidEnd(), ResetInvalidRange(), SetInvalidRange(), SetValid(), TextDeleted(), and TextInserted().
|
private |
Definition at line 59 of file edtspell.hxx.
Referenced by GetInvalidStart(), IsValid(), ResetInvalidRange(), SetInvalidRange(), SetValid(), TextDeleted(), and TextInserted().
|
staticconstexprprivate |
Definition at line 56 of file edtspell.hxx.
Referenced by IsValid(), SetInvalidRange(), and SetValid().