]> 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 bf163b26a9d7d85c2535e6b56e6c7a08ea6430f0..f9317fed70dfaffb9a38dbe67b6f0f8ec3cc5fe1 100644 (file)
 
 #include "support/std_sstream.h"
 
+
+using std::string;
 using std::abs;
 
 
 namespace lyx {
 namespace graphics {
 
-string const BoundingBox::asString() const
-{
-       std::ostringstream os;
-       os << xl << ' ' << yb << ' ' << xr << ' ' << yt;
-       return os.str();
-}
-
-
 Params::Params()
        : display(ColorDisplay),
          scale(100),
@@ -53,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)
 {}