diff options
-rw-r--r-- | sw/inc/swrect.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sw/inc/swrect.hxx b/sw/inc/swrect.hxx index b74a49101821..52182243b1de 100644 --- a/sw/inc/swrect.hxx +++ b/sw/inc/swrect.hxx @@ -18,8 +18,12 @@ */ #ifndef _SWRECT_HXX #define _SWRECT_HXX + +#include <ostream> + #include <sal/log.hxx> #include <tools/gen.hxx> + class SvStream; class SAL_WARN_UNUSED SwRect @@ -346,6 +350,16 @@ inline SwRect::SwRect( long X, long Y, long W, long H ) : { } +template< typename charT, typename traits > +inline std::basic_ostream<charT, traits> & operator <<( + std::basic_ostream<charT, traits> & stream, const SwRect& rectangle ) +{ + if (rectangle.IsEmpty()) + return stream << "EMPTY"; + else + return stream << rectangle.SSize() + << "@(" << rectangle.Pos() << ")"; +} #endif //_SWRECT_HXX |