add operator for LyXGlueLength

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3133 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2001-12-02 16:39:57 +00:00
parent 541aa2bcf7
commit 8d16724ee4
3 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2001-12-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
* vspace.[Ch] (operator!=): add operator.
2001-12-01 John Levon <moz@compsoc.man.ac.uk>
* BufferView_pimpl.C: refuse to open an inset when

View File

@ -14,16 +14,17 @@
#pragma implementation "vspace.h"
#endif
#include <stdio.h>
#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 <cstdio>
namespace {
@ -545,6 +546,11 @@ bool operator==(LyXGlueLength const & l1, LyXGlueLength const & l2)
}
bool operator!=(LyXGlueLength const & l1, LyXGlueLength const & l2)
{
return !(l1 == l2);
}
//

View File

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