Let's hide stuff like this from header..
This commit is contained in:
parent
80ecd30e1c
commit
3670b2a2b1
2 changed files with 15 additions and 4 deletions
|
@ -207,6 +207,8 @@ void EditSpellWrapper::CheckSpellTo()
|
|||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define NOT_INVALID 0xFFFF
|
||||
|
||||
WrongList::WrongList() : nInvalidStart(0), nInvalidEnd(0xFFFF) {}
|
||||
|
||||
WrongList::WrongList(const WrongList& r) :
|
||||
|
@ -216,6 +218,17 @@ WrongList::WrongList(const WrongList& r) :
|
|||
|
||||
WrongList::~WrongList() {}
|
||||
|
||||
bool WrongList::IsInvalid() const
|
||||
{
|
||||
return nInvalidStart != NOT_INVALID;
|
||||
}
|
||||
|
||||
void WrongList::SetValid()
|
||||
{
|
||||
nInvalidStart = NOT_INVALID;
|
||||
nInvalidEnd = 0;
|
||||
}
|
||||
|
||||
void WrongList::MarkInvalid( sal_uInt16 nS, sal_uInt16 nE )
|
||||
{
|
||||
if ( ( nInvalidStart == NOT_INVALID ) || ( nInvalidStart > nS ) )
|
||||
|
|
|
@ -81,8 +81,6 @@ struct WrongRange
|
|||
WrongRange( sal_uInt16 nS, sal_uInt16 nE ) { nStart = nS; nEnd = nE; }
|
||||
};
|
||||
|
||||
#define NOT_INVALID 0xFFFF
|
||||
|
||||
class WrongList
|
||||
{
|
||||
private:
|
||||
|
@ -100,8 +98,8 @@ public:
|
|||
WrongList(const WrongList& r);
|
||||
~WrongList();
|
||||
|
||||
sal_Bool IsInvalid() const { return nInvalidStart != NOT_INVALID; }
|
||||
void SetValid() { nInvalidStart = NOT_INVALID; nInvalidEnd = 0; }
|
||||
bool IsInvalid() const;
|
||||
void SetValid();
|
||||
void MarkInvalid( sal_uInt16 nS, sal_uInt16 nE );
|
||||
|
||||
sal_uInt16 GetInvalidStart() const { return nInvalidStart; }
|
||||
|
|
Loading…
Reference in a new issue