Kaydet (Commit) 213f7c02 authored tarafından Michael Stahl's avatar Michael Stahl

vcl: print MapMode

Change-Id: I3d4f15cd4929b553673f1a1d8950b6c9082a0cdc
üst ac07b515
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include <tools/mapunit.hxx> #include <tools/mapunit.hxx>
#include <o3tl/cow_wrapper.hxx> #include <o3tl/cow_wrapper.hxx>
#include <ostream>
class Point; class Point;
class Fraction; class Fraction;
class SvStream; class SvStream;
...@@ -73,6 +75,14 @@ private: ...@@ -73,6 +75,14 @@ private:
SAL_DLLPRIVATE bool IsSimple() const; 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 #endif // INCLUDED_VCL_MAPMOD_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment