]> git.lyx.org Git - lyx.git/blobdiff - src/Box.cpp
Hack to display section symbol
[lyx.git] / src / Box.cpp
index 8094b45f391ad55c1a913c1e2c723221617a9fa2..28d2caa01c7705061f99ab60d312dc66b354129e 100644 (file)
 
 #include "Box.h"
 
-#include "support/std_ostream.h"
+#include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::ostream;
-
 
 Box::Box()
        : x1(0), x2(0), y1(0), y2(0)
@@ -32,7 +31,7 @@ Box::Box(int x1_, int x2_, int y1_, int y2_)
 {}
 
 
-bool Box::contains(int x, int y)
+bool Box::contains(int x, int y) const
 {
        return (x1 < x && x2 > x && y1 < y && y2 > y);
 }
@@ -42,7 +41,7 @@ ostream & operator<<(ostream & os, Box const & b)
 {
        return os << "x1,y1: " << b.x1 << ',' << b.y1
                 << " x2,y2: " << b.x2 << ',' << b.y2
-                << std::endl;
+                << endl;
 }