mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
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:
parent
b00e1315fe
commit
3b4ee1725c
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user