diff options
Diffstat (limited to 'sc/inc/address.hxx')
-rw-r--r-- | sc/inc/address.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx index a13f3e9ddb62..3aab8862ecbd 100644 --- a/sc/inc/address.hxx +++ b/sc/inc/address.hxx @@ -24,6 +24,8 @@ #include <rtl/strbuf.hxx> #include <limits> +#include <ostream> + #include "scdllapi.h" #include "types.hxx" #include <formula/grammar.hxx> @@ -355,6 +357,18 @@ public: OUString GetColRowString() const; }; +// For use in SAL_DEBUG etc. Output format not guaranteed to be stable. +template<typename charT, typename traits> +inline std::basic_ostream<charT, traits> & operator <<(std::basic_ostream<charT, traits> & stream, const ScAddress& rAddress) +{ + stream << + rAddress.Tab() << "!" << + "R" << rAddress.Row() << + "C" << rAddress.Col(); + + return stream; +} + inline void ScAddress::PutInOrder( ScAddress& rAddress ) { if ( rAddress.Col() < Col() ) |