44 virtual void ReplaceAll(
const OUString &rNewText )
override;
56 static constexpr size_t Valid = std::numeric_limits<size_t>::max();
65 typedef std::vector<editeng::MisspellRange>::iterator
iterator;
71 void SetRanges( std::vector<editeng::MisspellRange>&& rRanges );
81 void TextInserted(
size_t nPos,
size_t nLength,
bool bPosIsSep );
85 bool NextWrong(
size_t& rnStart,
size_t& rnEnd )
const;
86 bool HasWrong(
size_t nStart,
size_t nEnd )
const;
87 bool HasAnyWrong(
size_t nStart,
size_t nEnd )
const;
122 virtual bool Delete( sal_Int32 nStt, sal_Int32 nEnd )
override;
123 virtual bool Insert( sal_Int32 nPos,
const OUString& rTxt )
override;
124 virtual bool Replace( sal_Int32 nPos,
const OUString& rTxt )
override;
125 virtual bool ReplaceRange( sal_Int32 nPos, sal_Int32 nLen,
const OUString& rTxt )
override;
127 virtual void SetAttr( sal_Int32 nStt, sal_Int32 nEnd, sal_uInt16 nSlotId,
SfxPoolItem& )
override;
128 virtual bool SetINetAttr( sal_Int32 nStt, sal_Int32 nEnd,
const OUString& rURL )
override;
130 virtual OUString
const*
GetPrevPara(
bool bAtNormalPos)
override;
135 bool bApply =
false )
override;
EditSpellWrapper(weld::Widget *pWin, bool bIsStart, EditView *pView)
virtual bool SpellMore() override
virtual void SpellStart(SvxSpellArea eArea) override
virtual void SpellContinue() override
virtual void ReplaceAll(const OUString &rNewText) override
virtual OUString const * GetPrevPara(bool bAtNormalPos) override
virtual bool TransliterateRTLWord(sal_Int32 &rSttPos, sal_Int32 nEndPos, bool bApply=false) override
virtual bool ChgAutoCorrWord(sal_Int32 &rSttPos, sal_Int32 nEndPos, SvxAutoCorrect &rACorrect, OUString *pPara) override
virtual ~EdtAutoCorrDoc() override
virtual bool Replace(sal_Int32 nPos, const OUString &rTxt) override
void ImplStartUndoAction()
virtual bool SetINetAttr(sal_Int32 nStt, sal_Int32 nEnd, const OUString &rURL) override
EdtAutoCorrDoc(EditEngine *pE, ContentNode *pCurNode, sal_Int32 nCrsr, sal_Unicode cIns)
virtual bool ReplaceRange(sal_Int32 nPos, sal_Int32 nLen, const OUString &rTxt) override
EditEngine * mpEditEngine
virtual LanguageType GetLanguage(sal_Int32 nPos) const override
sal_Int32 GetCursor() const
virtual bool Insert(sal_Int32 nPos, const OUString &rTxt) override
virtual void SetAttr(sal_Int32 nStt, sal_Int32 nEnd, sal_uInt16 nSlotId, SfxPoolItem &) override
virtual bool Delete(sal_Int32 nStt, sal_Int32 nEnd) override
Keeps track of misspelled ranges in paragraph.
editeng::MisspellRange & back()
static constexpr size_t Valid
void ResetInvalidRange(size_t nStart, size_t nEnd)
void SetInvalidRange(size_t nStart, size_t nEnd)
void TextDeleted(size_t nPos, size_t nLength)
const std::vector< editeng::MisspellRange > & GetRanges() const
void TextInserted(size_t nPos, size_t nLength, bool bPosIsSep)
bool operator==(const WrongList &rCompare) const
bool HasWrong(size_t nStart, size_t nEnd) const
void push_back(const editeng::MisspellRange &rRange)
WrongList * Clone() const
void ClearWrongs(size_t nStart, size_t nEnd, const ContentNode *pNode)
size_t GetInvalidEnd() const
void InsertWrong(size_t nStart, size_t nEnd)
bool NextWrong(size_t &rnStart, size_t &rnEnd) const
void SetRanges(std::vector< editeng::MisspellRange > &&rRanges)
size_t GetInvalidStart() const
std::vector< editeng::MisspellRange > maRanges
std::vector< editeng::MisspellRange >::const_iterator const_iterator
std::vector< editeng::MisspellRange >::iterator iterator
bool HasAnyWrong(size_t nStart, size_t nEnd) const