// currently changing the value to false has no effect
aPropName = "OptimalWidth";
uno::Reference<table::XCellRange> xCR(m_xSheet, uno::UNO_QUERY_THROW);
xCR->getCellByPosition(0, 0)->setFormula(u"That's a pretty long text."_ustr); const sal_Int64 nWidthBefore = ::comphelper::getINT64(xPS->getPropertyValue(u"Width"_ustr));
xPS->setPropertyValue(aPropName, uno::Any(true));
CPPUNIT_ASSERT(::comphelper::getBOOL(xPS->getPropertyValue(aPropName))); const sal_Int64 nWidthAfter = ::comphelper::getINT64(xPS->getPropertyValue(u"Width"_ustr));
CPPUNIT_ASSERT(nWidthBefore != nWidthAfter);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.