diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-10-26 12:50:52 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-10-26 23:17:44 +0200 |
commit | 213f7c02d4f3ddbe2f52950575e2559c52d98ac2 (patch) | |
tree | f27fa3bfcee605c1d5588d7c183379376b7e1bf3 | |
parent | ac07b5150dfed20ca2e401e49b6cc78eae64b1e7 (diff) |
vcl: print MapMode
Change-Id: I3d4f15cd4929b553673f1a1d8950b6c9082a0cdc
-rw-r--r-- | include/vcl/mapmod.hxx | 10 |
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: */ |