summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/mapmod.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/vcl/mapmod.hxx b/include/vcl/mapmod.hxx
index b426326ac485..1b1b6c7167b2 100644
--- a/include/vcl/mapmod.hxx
+++ b/include/vcl/mapmod.hxx
@@ -24,6 +24,8 @@
#include <tools/mapunit.hxx>
#include <o3tl/cow_wrapper.hxx>
+#include <ostream>
+
class Point;
class Fraction;
class SvStream;
@@ -73,6 +75,14 @@ private:
SAL_DLLPRIVATE bool IsSimple() const;
};
+template<typename charT, typename traits>
+inline std::basic_ostream<charT, traits> & operator <<(
+ std::basic_ostream<charT, traits> & rStream, const MapMode& rMode)
+{
+ rStream << "MapMode(" << (unsigned)rMode.GetMapUnit() << ",(" << rMode.GetScaleX() << "," << rMode.GetScaleY() << ")@(" << rMode.GetOrigin() << "))";
+ return rStream;
+}
+
#endif // INCLUDED_VCL_MAPMOD_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */