Let's hide stuff like this from header..

This commit is contained in:
Kohei Yoshida 2012-03-27 14:27:02 -04:00
parent 80ecd30e1c
commit 3670b2a2b1
2 changed files with 15 additions and 4 deletions

View file

@ -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 ) )

View file

@ -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; }