xDPT->insertNewByName(u"XDataPilotTables"_ustr, table::CellAddress(0, 9, 8), xDPD);
CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to insert new DataPilotTable", u"Filter"_ustr,
xSheet->getCellByPosition(9, 8)->getFormula());
CPPUNIT_ASSERT_THROW_MESSAGE( "No exception thrown, when inserting element with existing name",
xDPT->insertNewByName(u"XDataPilotTables"_ustr, table::CellAddress(0, 7, 7), xDPD),
css::uno::RuntimeException);
xDPT->removeByName(u"XDataPilotTables"_ustr);
CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to remove DataPilotTable", u""_ustr,
xSheet->getCellByPosition(9, 8)->getFormula());
CPPUNIT_ASSERT_THROW_MESSAGE("No exception, when removing no existing element",
xDPT->removeByName(u"XDataPilotTables"_ustr),
css::uno::RuntimeException);
}
}
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.