13#include <rtl/ustring.hxx>
15#include <com/sun/star/beans/XPropertySet.hpp>
16#include <com/sun/star/table/XCellRange.hpp>
18#include <com/sun/star/uno/Any.hxx>
19#include <com/sun/star/uno/Reference.hxx>
21#include <cppunit/TestAssert.h>
29 uno::Reference<beans::XPropertySet> xPS(
init(), uno::UNO_QUERY_THROW);
36 uno::Reference<table::XCellRange> xCR(
m_xSheet, uno::UNO_QUERY_THROW);
37 xCR->getCellByPosition(0, 0)->setFormula(
"That's a pretty long text.");
38 const sal_Int64 nWidthBefore = ::comphelper::getINT64(xPS->getPropertyValue(
"Width"));
40 CPPUNIT_ASSERT(::comphelper::getBOOL(xPS->getPropertyValue(
aPropName)));
41 const sal_Int64 nWidthAfter = ::comphelper::getINT64(xPS->getPropertyValue(
"Width"));
42 CPPUNIT_ASSERT(nWidthBefore != nWidthAfter);
css::uno::Reference< css::sheet::XSpreadsheet > m_xSheet
void testTableColumnProperties()
virtual css::uno::Reference< css::uno::XInterface > init()=0
void testLongProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int32 &nValue)
void testBooleanProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)