10#ifndef INCLUDED_TEST_CPPUNITASSERTHELPER_HXX
11#define INCLUDED_TEST_CPPUNITASSERTHELPER_HXX
13#include <rtl/ustring.hxx>
15#include <com/sun/star/awt/Point.hpp>
16#include <com/sun/star/awt/Size.hpp>
17#include <com/sun/star/table/CellAddress.hpp>
18#include <com/sun/star/table/CellRangeAddress.hpp>
20#include <cppunit/TestAssert.h>
28inline std::string CPPUNIT_NS::assertion_traits<css::awt::Point>::toString(
const css::awt::Point& x)
31 ost <<
"Point: " <<
x.X <<
"." <<
x.Y <<
" (coordinate: X.Y)";
41inline std::string CPPUNIT_NS::assertion_traits<css::awt::Size>::toString(
const css::awt::Size& x)
44 ost <<
"Size: " <<
x.Width <<
" x " <<
x.Height <<
" (Width x Height)";
55CPPUNIT_NS::assertion_traits<css::table::CellAddress>::toString(
const css::table::CellAddress& x)
58 ost <<
"Sheet: " <<
x.Sheet <<
" Column: " <<
x.Column <<
" Row: " <<
x.Row;
68inline std::string CPPUNIT_NS::assertion_traits<css::table::CellRangeAddress>::toString(
69 const css::table::CellRangeAddress& x)
72 ost <<
"Sheet: " <<
x.Sheet <<
" StartColumn: " <<
x.StartColumn <<
" StartRow: " <<
x.StartRow
73 <<
" EndColumn: " <<
x.EndColumn <<
" EndRow: " <<
x.EndRow;