diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-11-24 22:41:20 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-11-26 16:04:19 +0100 |
commit | 752d263c36b3de9d9a0247df46216c610a5c48ed (patch) | |
tree | f757c612f3009e3a47c2cd9056c913641b936d2c /sc/inc/conditio.hxx | |
parent | 459caa059d75260ba1e83ce4ef47cd901b2dbfbf (diff) |
Add debug output operator<< for ScFormatEntry::Type
Change-Id: I4e23f17a59e995d76258420f07818079c7a9b94b
Reviewed-on: https://gerrit.libreoffice.org/45288
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sc/inc/conditio.hxx')
-rw-r--r-- | sc/inc/conditio.hxx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx index 7ca023a801f5..b619e1545e97 100644 --- a/sc/inc/conditio.hxx +++ b/sc/inc/conditio.hxx @@ -252,6 +252,33 @@ protected: }; +template<typename charT, typename traits> +inline std::basic_ostream<charT, traits> & operator <<(std::basic_ostream<charT, traits> & stream, const ScFormatEntry::Type& rType) +{ + switch (rType) + { + case ScFormatEntry::Type::Condition: + stream << "Condition"; + break; + case ScFormatEntry::Type::Colorscale: + stream << "Colorscale"; + break; + case ScFormatEntry::Type::Databar: + stream << "Databar"; + break; + case ScFormatEntry::Type::Iconset: + stream << "Iconset"; + break; + case ScFormatEntry::Type::Date: + stream << "Data"; + break; + default: + stream << "?(" << (int)rType << ")"; + break; + } + return stream; +} + class approx_less { public: |