X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbox.C;h=b4d8bdd5bc5b497f444c8a04f145c24cd85539ec;hb=8ebf862adbe377d032f888a82d88d4393aebc929;hp=98254e5356fced60c7a1d810ecf69b270020bbed;hpb=566e084f63fb82a2f27e442e21539896f46e7dc6;p=lyx.git diff --git a/src/box.C b/src/box.C index 98254e5356..b4d8bdd5bc 100644 --- a/src/box.C +++ b/src/box.C @@ -1,9 +1,11 @@ /** * \file box.C - * Copyright 2001 the LyX Team - * Read the file COPYING + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * \author John Levon + * \author John Levon + * + * Full author contact details are available in file CREDITS. */ // Code moved out of line and out of box.h by Angus (7 Jan 2002) @@ -12,17 +14,22 @@ #include "box.h" -#include "support/LOstream.h" +#include "support/std_ostream.h" using std::ostream; -Box::Box(int x1_, int x2_, int y1_, int y2_) : - x1(x1_), x2(x2_), y1(y1_), y2(y2_) +Box::Box() + : x1(0), x2(0), y1(0), y2(0) +{} + + +Box::Box(int x1_, int x2_, int y1_, int y2_) + : x1(x1_), x2(x2_), y1(y1_), y2(y2_) {} -bool Box::contained(int x, int y) +bool Box::contains(int x, int y) { return (x1 < x && x2 > x && y1 < y && y2 > y); }