// Then make sure that the section is deleted: // Without the accompanying fix in place, this test would have failed with: // - Expected: 0 // - Actual : 1 // i.e. the section was not deleted.
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(0), pDoc->GetSections().size());
}
// When checking if we can insert a footnote inside the split fly:
SwView& rView = pWrtShell->GetView();
std::unique_ptr<SfxPoolItem> pItem;
SfxItemState eState = rView.GetViewFrame().GetBindings().QueryState(FN_INSERT_FOOTNOTE, pItem);
// Then make sure that the insertion is allowed: // Without the accompanying fix in place, this test would have failed with: // - Expected: 32 (DEFAULT) // - Actual : 1 (DISABLED) // i.e. the insertion was denied.
CPPUNIT_ASSERT_EQUAL(SfxItemState::DEFAULT, eState);
}
}
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.