CPPUNIT_ASSERT_MESSAGE("a new document does not record changes", !recordChangesValue);
CPPUNIT_ASSERT_MESSAGE("a new document does not protect record changes", !protectionValue);
CPPUNIT_ASSERT(xDocSettingsPropSet->getPropertyValue(u"RecordChanges"_ustr)
>>= recordChangesValue);
CPPUNIT_ASSERT_MESSAGE("the document should record changes", recordChangesValue);
}
void ScRecordChangesTest::testCheckRecordChangesProtection()
{ // test with protected changes
loadFromFile(u"RecordChangesProtected.ods");
CPPUNIT_ASSERT_MESSAGE("the document should be recording changes", recordChangesValue);
CPPUNIT_ASSERT_MESSAGE("the protection should be active", protectionValue);
// this document should still record changes as protection is set
CPPUNIT_ASSERT_MESSAGE("the document should still be recording changes", recordChangesValue);
CPPUNIT_ASSERT_MESSAGE("the protection should still be active", protectionValue);
}
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.