+2003-09-29 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsParams.[Ch] (asString): removed. Replaced with
+ operator<<(std::ostream &, BoundingBox const &).
+
2003-09-25 Angus Leeming <leeming@lyx.org>
* GraphicsParams.[Ch] (asString): new member function.
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),
}
+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)
{}
#include "GraphicsTypes.h"
#include "support/std_string.h"
+#include <iosfwd>
namespace lyx {
/// 0 0 0 0 is empty!
bool empty() const;
- /// The bounding box as "xl yb xr yr"
- string const asString() const;
-
unsigned int xl;
unsigned int yb;
unsigned int xr;
bool operator==(BoundingBox const &, BoundingBox const &);
bool operator!=(BoundingBox const &, BoundingBox const &);
+std::ostream & operator<<(std::ostream &, BoundingBox const &);
+
+
struct Params
{
Params();