summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/gen.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx
index cc64f8fb3465..e2a61c5f56a8 100644
--- a/tools/source/generic/gen.cxx
+++ b/tools/source/generic/gen.cxx
@@ -195,4 +195,11 @@ SvStream& WriteRectangle( SvStream& rOStream, const Rectangle& rRect )
return rOStream;
}
+OString Rectangle::toString() const
+{
+ std::stringstream ss;
+ ss << getWidth() << ", " << getHeight() << ", " << getX() << ", " << getY();
+ return ss.str().c_str();
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */