diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-17 15:28:31 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-23 10:10:23 +0100 |
commit | bbfc6ad3c0185c8742965822ee99a630eafdf6e3 (patch) | |
tree | f090dfe4737c47532ed57d75e8af1579fbe33680 /tools | |
parent | 1f20a47d0e1c378a0f6ee85b1af7afbb7809cec5 (diff) |
Add Rectangle::toString()
There were already 5 versions of this in sw, 4 for SwRect, one for
Rectangle.
Change-Id: Icf8c78f9973d940a4d180b6f52dda9ea1be86c14
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/gen.cxx | 7 |
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: */ |