diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/gen.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx index a3bf8d754aa4..2627d9202842 100644 --- a/tools/source/generic/gen.cxx +++ b/tools/source/generic/gen.cxx @@ -41,6 +41,16 @@ SvStream& WritePair( SvStream& rOStream, const Pair& rPair ) return rOStream; } +rtl::OString Pair::toString() const +{ + std::stringstream ss; + // Note that this is not just used for debugging output but the + // format is parsed by external code (passed in callbacks to + // LibreOfficeKit clients). So don't change. + ss << A() << ", " << B(); + return ss.str().c_str(); +} + void tools::Rectangle::SetSize( const Size& rSize ) { if ( rSize.Width() < 0 ) |