add inequelaity operator for lyxlength

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3196 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2001-12-12 12:07:38 +00:00
parent b00e1315fe
commit 3b4ee1725c
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2001-12-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
* lyxlength.[Ch] (operator!=): new function
2001-12-12 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* text.C (workWidth): use Inset::parOwner to find out where the

View File

@ -111,3 +111,9 @@ bool operator==(LyXLength const & l1, LyXLength const & l2)
{
return l1.value() == l2.value() && l1.unit() == l2.unit();
}
bool operator!=(LyXLength const & l1, LyXLength const & l2)
{
return !(l1 == l2);
}

View File

@ -98,6 +98,8 @@ private:
///
bool operator==(LyXLength const & l1, LyXLength const & l2);
///
bool operator!=(LyXLength const & l1, LyXLength const & l2);
///
bool isValidLength(string const & data, LyXLength * result);
///
char const * stringFromUnit(int unit);