diff options
Diffstat (limited to 'vcl/quartz/utils.cxx')
-rw-r--r-- | vcl/quartz/utils.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vcl/quartz/utils.cxx b/vcl/quartz/utils.cxx index c2db4d24b814..8319752016b6 100644 --- a/vcl/quartz/utils.cxx +++ b/vcl/quartz/utils.cxx @@ -17,6 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <iostream> +#include <iomanip> + #include <rtl/alloc.h> #include <rtl/ustrbuf.hxx> @@ -64,4 +67,14 @@ NSString* CreateNSString( const rtl::OUString& rStr ) return [[NSString alloc] initWithCharacters: rStr.getStr() length: rStr.getLength()]; } +std::ostream &operator <<(std::ostream& s, CGRect &rRect) +{ +#ifndef SAL_LOG_INFO + (void) rRect; +#else + s << (int) rRect.size.width << "x" << (int) rRect.size.height << "@(" << (int) rRect.origin.x << "," << (int) rRect.origin.y << ")"; +#endif + return s; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |