diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-09-06 14:09:47 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-09-06 18:45:28 +0200 |
commit | 2c704832567d0948595ebe1b239314890a01da4e (patch) | |
tree | 339700c1f4a3b5fafdf51db33e62c6a1b804dcc0 | |
parent | bce47223099bb3349d96af9d6b1fe88bcdd539df (diff) |
Pretty print FontSelectPattern
Change-Id: Ia43dbfd6313935bec90ac88018011eacca0c0eaf
Reviewed-on: https://gerrit.libreoffice.org/60090
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
-rw-r--r-- | vcl/inc/fontselect.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/inc/fontselect.hxx b/vcl/inc/fontselect.hxx index 220bb32d9861..9707ba4e5fa9 100644 --- a/vcl/inc/fontselect.hxx +++ b/vcl/inc/fontselect.hxx @@ -25,6 +25,7 @@ #include "fontattributes.hxx" +#include <ostream> #include <unordered_map> namespace vcl { class Font; } @@ -68,6 +69,16 @@ public: ItalicMatrix maItalicMatrix; // Force matrix for slant }; +template< typename charT, typename traits > +inline std::basic_ostream<charT, traits> & operator <<( + std::basic_ostream<charT, traits> & stream, const FontSelectPattern & rFSP) +{ + stream << (rFSP.maTargetName.isEmpty() ? "<default>" : rFSP.maTargetName) + << " (" << rFSP.maSearchName << ") w: " << rFSP.mnWidth << " h: " + << rFSP.mnHeight << " alias: " << rFSP.mbNonAntialiased; + return stream; +} + #endif // INCLUDED_VCL_INC_FONTSELECT_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |