]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsParams.C
add <string> and other small fixes to make
[lyx.git] / src / graphics / GraphicsParams.C
index 9b04b47186e2648594e64642a9877adc2cc344b5..f9317fed70dfaffb9a38dbe67b6f0f8ec3cc5fe1 100644 (file)
@@ -1,27 +1,28 @@
 /**
  * \file GraphicsParams.C
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming 
+ * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include <cstdlib>
-
 #include "GraphicsParams.h"
-#include "Lsstream.h"
+
 #include "lyxlength.h"
 
+#include "support/std_sstream.h"
+
+
+using std::string;
 using std::abs;
 
-namespace grfx {
+
+namespace lyx {
+namespace graphics {
 
 Params::Params()
        : display(ColorDisplay),
@@ -46,6 +47,13 @@ bool operator!=(Params const & a, Params const & b)
 }
 
 
+std::ostream & operator<<(std::ostream & os, BoundingBox const & bb)
+{
+       os << bb.xl << ' ' << bb.yb << ' ' << bb.xr << ' ' << bb.yt;
+       return os;
+}
+
+
 BoundingBox::BoundingBox()
        : xl(0), yb(0), xr(0), yt(0)
 {}
@@ -98,4 +106,5 @@ bool operator!=(BoundingBox const & a, BoundingBox const & b)
        return !(a == b);
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx