LibreOffice Module sw (master)  1
Public Member Functions | Private Attributes | List of all members
SwGrammarMarkUp Class Reference

#include <SwGrammarMarkUp.hxx>

Inheritance diagram for SwGrammarMarkUp:
[legend]
Collaboration diagram for SwGrammarMarkUp:
[legend]

Public Member Functions

 SwGrammarMarkUp ()
 
virtual ~SwGrammarMarkUp () override
 
virtual SwWrongListClone () override
 
virtual void CopyFrom (const SwWrongList &rCopy) override
 
void MoveGrammar (sal_Int32 nPos, sal_Int32 nDiff)
 
SwGrammarMarkUpSplitGrammarList (sal_Int32 nSplitPos)
 
void JoinGrammarList (SwGrammarMarkUp *pNext, sal_Int32 nInsertPos)
 
void ClearGrammarList (sal_Int32 nSentenceEnd=COMPLETE_STRING)
 
void setSentence (sal_Int32 nStart)
 
sal_Int32 getSentenceStart (sal_Int32 nPos)
 
sal_Int32 getSentenceEnd (sal_Int32 nPos)
 
- Public Member Functions inherited from SwWrongList
 SwWrongList (WrongListType eType)
 
virtual ~SwWrongList ()
 
WrongListType GetWrongListType () const
 
sal_Int32 GetBeginInv () const
 
sal_Int32 GetEndInv () const
 
void SetInvalid (sal_Int32 nBegin, sal_Int32 nEnd)
 
void Validate ()
 
void Invalidate (sal_Int32 nBegin, sal_Int32 nEnd)
 
bool InvalidateWrong ()
 
FreshState Fresh (sal_Int32 &rStart, sal_Int32 &rEnd, sal_Int32 nPos, sal_Int32 nLen, sal_uInt16 nIndex, sal_Int32 nCursorPos)
 Remove given range of entries. More...
 
sal_uInt16 GetWrongPos (sal_Int32 nValue) const
 Find the first position that is greater or equal to the given value. More...
 
bool Check (sal_Int32 &rChk, sal_Int32 &rLn) const
 Calculate first incorrectly selected area. More...
 
bool InWrongWord (sal_Int32 &rChk, sal_Int32 &rLn) const
 If a word is incorrectly selected, this method returns begin and length of it. More...
 
sal_Int32 NextWrong (sal_Int32 nChk) const
 Find next incorrectly selected position. More...
 
void Move (sal_Int32 nPos, sal_Int32 nDiff)
 Change all values after the given position. More...
 
void ClearList ()
 
SwWrongListSplitList (sal_Int32 nSplitPos)
 
void JoinList (SwWrongList *pNext, sal_Int32 nInsertPos)
 
sal_Int32 Len (sal_uInt16 nIdx) const
 
sal_Int32 Pos (sal_uInt16 nIdx) const
 
sal_uInt16 Count () const
 
void Insert (const OUString &rType, css::uno::Reference< css::container::XStringKeyMap > const &xPropertyBag, sal_Int32 nNewPos, sal_Int32 nNewLen, sal_uInt16 nWhere)
 
void Insert (const OUString &rType, css::uno::Reference< css::container::XStringKeyMap > const &xPropertyBag, sal_Int32 nNewPos, sal_Int32 nNewLen)
 
SwWrongListSubList (sal_uInt16 nIdx) const
 
void InsertSubList (sal_Int32 nNewPos, sal_Int32 nNewLen, sal_uInt16 nWhere, SwWrongList *pSubList)
 
const SwWrongAreaGetElement (sal_uInt16 nIdx) const
 
void RemoveEntry (sal_Int32 nBegin, sal_Int32 nEnd)
 
bool LookForEntry (sal_Int32 nBegin, sal_Int32 nEnd)
 

Private Attributes

std::vector< sal_Int32 > maSentence
 

Additional Inherited Members

- Public Types inherited from SwWrongList
enum  FreshState {
  FreshState::FRESH,
  FreshState::CURSOR,
  FreshState::NOTHING
}
 

Detailed Description

Definition at line 36 of file SwGrammarMarkUp.hxx.

Constructor & Destructor Documentation

SwGrammarMarkUp::SwGrammarMarkUp ( )
inline

Definition at line 41 of file SwGrammarMarkUp.hxx.

Referenced by Clone(), and SplitGrammarList().

SwGrammarMarkUp::~SwGrammarMarkUp ( )
overridevirtual

Definition at line 22 of file SwGrammarMarkUp.cxx.

Member Function Documentation

void SwGrammarMarkUp::ClearGrammarList ( sal_Int32  nSentenceEnd = COMPLETE_STRING)
SwWrongList * SwGrammarMarkUp::Clone ( )
overridevirtual

Reimplemented from SwWrongList.

Definition at line 26 of file SwGrammarMarkUp.cxx.

References SwWrongList::CopyFrom(), and SwGrammarMarkUp().

void SwGrammarMarkUp::CopyFrom ( const SwWrongList rCopy)
overridevirtual

Reimplemented from SwWrongList.

Definition at line 33 of file SwGrammarMarkUp.cxx.

References SwWrongList::CopyFrom(), and maSentence.

sal_Int32 SwGrammarMarkUp::getSentenceEnd ( sal_Int32  nPos)

Definition at line 134 of file SwGrammarMarkUp.cxx.

References COMPLETE_STRING, and maSentence.

Referenced by SwEditShell::GetGrammarCorrection().

sal_Int32 SwGrammarMarkUp::getSentenceStart ( sal_Int32  nPos)

Definition at line 121 of file SwGrammarMarkUp.cxx.

References maSentence.

Referenced by SwEditShell::GetGrammarCorrection().

void SwGrammarMarkUp::JoinGrammarList ( SwGrammarMarkUp pNext,
sal_Int32  nInsertPos 
)

Definition at line 76 of file SwGrammarMarkUp.cxx.

References SwWrongList::JoinList(), and maSentence.

Referenced by SwTextNode::JoinNext(), and SwTextNode::JoinPrev().

void SwGrammarMarkUp::MoveGrammar ( sal_Int32  nPos,
sal_Int32  nDiff 
)

Definition at line 39 of file SwGrammarMarkUp.cxx.

References maSentence, and SwWrongList::Move().

Referenced by SwTextNode::JoinNext(), SwTextNode::JoinPrev(), and lcl_SetWrong().

void SwGrammarMarkUp::setSentence ( sal_Int32  nStart)

Definition at line 113 of file SwGrammarMarkUp.cxx.

References maSentence.

Referenced by lcl_commitGrammarMarkUp().

SwGrammarMarkUp * SwGrammarMarkUp::SplitGrammarList ( sal_Int32  nSplitPos)

Member Data Documentation

std::vector< sal_Int32 > SwGrammarMarkUp::maSentence
private

The documentation for this class was generated from the following files: