]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsParams.C
Trivial fixes to some warnings thrown up by MSVS.Net 2003.
[lyx.git] / src / graphics / GraphicsParams.C
index 11893b87d5781c2945fd1686ce7d566920fb3ae7..6274ea1d6ba77814ef26152691ef95a333f952ae 100644 (file)
@@ -3,26 +3,26 @@
  * 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 <sstream>
+
+
+using std::string;
 using std::abs;
 
-namespace grfx {
+
+namespace lyx {
+namespace graphics {
 
 Params::Params()
        : display(ColorDisplay),
@@ -47,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)
 {}
@@ -99,4 +106,5 @@ bool operator!=(BoundingBox const & a, BoundingBox const & b)
        return !(a == b);
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx