From: Lars Gullik Bjønnes Date: Sun, 2 Dec 2001 16:39:57 +0000 (+0000) Subject: add operator for LyXGlueLength X-Git-Tag: 1.6.10~20245 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8d16724ee49991210f974a925cdbcfda092a7612;p=features.git add operator for LyXGlueLength git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3133 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index 28bc7a2534..0915ce0676 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-12-02 Lars Gullik Bjønnes + + * vspace.[Ch] (operator!=): add operator. + 2001-12-01 John Levon * BufferView_pimpl.C: refuse to open an inset when diff --git a/src/vspace.C b/src/vspace.C index 69fb9006b7..247bb6d3e4 100644 --- a/src/vspace.C +++ b/src/vspace.C @@ -14,16 +14,17 @@ #pragma implementation "vspace.h" #endif -#include - +#include "vspace.h" #include "lyx_main.h" #include "buffer.h" -#include "vspace.h" #include "lyxrc.h" #include "lyxtext.h" #include "BufferView.h" + #include "support/lstrings.h" +#include + namespace { @@ -545,6 +546,11 @@ bool operator==(LyXGlueLength const & l1, LyXGlueLength const & l2) } +bool operator!=(LyXGlueLength const & l1, LyXGlueLength const & l2) +{ + return !(l1 == l2); +} + // diff --git a/src/vspace.h b/src/vspace.h index 9e6bf52e05..9d783909f6 100644 --- a/src/vspace.h +++ b/src/vspace.h @@ -160,6 +160,8 @@ protected: /// bool operator==(LyXGlueLength const & l1, LyXGlueLength const & l2); /// +bool operator!=(LyXGlueLength const & l1, LyXGlueLength const & l2); +/// bool isValidGlueLength(string const & data, LyXGlueLength * result);