ObjectContact::~ObjectContact() COVERITY_NOEXCEPT_FALSE
{ // get rid of all registered contacts // #i84257# To avoid that each 'delete pCandidate' again uses // the local RemoveViewObjectContact with a search and removal in the // vector, simply copy and clear local vector.
std::vector< ViewObjectContact* > aLocalVOCList;
aLocalVOCList.swap(maViewObjectContactVector);
for (constauto & pCandidate : aLocalVOCList) // ViewObjectContacts only make sense with View and Object contacts. // When the contact to the SdrObject is deleted like in this case, // all ViewObjectContacts can be deleted, too. delete pCandidate;
// assert when there were new entries added during deletion
DBG_ASSERT(maViewObjectContactVector.empty(), "Corrupted ViewObjectContactList (!)");
}
// LazyInvalidate request. Default implementation directly handles // this by calling back triggerLazyInvalidate() at the VOC void ObjectContact::setLazyInvalidate(ViewObjectContact& rVOC)
{
rVOC.triggerLazyInvalidate();
}
// call this to support evtl. preparations for repaint. Default does nothing void ObjectContact::PrepareProcessDisplay()
{
}
// A new ViewObjectContact was created and shall be remembered. void ObjectContact::AddViewObjectContact(ViewObjectContact& rVOContact)
{
maViewObjectContactVector.push_back(&rVOContact);
}
// A ViewObjectContact was deleted and shall be forgotten. void ObjectContact::RemoveViewObjectContact(ViewObjectContact& rVOContact)
{
std::vector< ViewObjectContact* >::iterator aFindResult = std::find(maViewObjectContactVector.begin(), maViewObjectContactVector.end(), &rVOContact);
// Process the whole displaying void ObjectContact::ProcessDisplay(DisplayInfo& /*rDisplayInfo*/)
{ // default does nothing
}
// test if visualizing of entered groups is switched on at all bool ObjectContact::DoVisualizeEnteredGroup() const
{ // Do not do that as default returnfalse;
}
// get active group's (the entered group) ViewContact const ViewContact* ObjectContact::getActiveViewContact() const
{ // default has no active VC return nullptr;
}
// Invalidate given rectangle at the window/output which is represented by // this ObjectContact. void ObjectContact::InvalidatePartOfView(const basegfx::B2DRange& /*rRange*/) const
{ // nothing to do here in the default version
}
// Get info about the need to visualize GluePoints bool ObjectContact::AreGluePointsVisible() const
{ returnfalse;
}
// check if text animation is allowed. Default is sal_true. bool ObjectContact::IsTextAnimationAllowed() const
{ returntrue;
}
// check if graphic animation is allowed. Default is sal_true. bool ObjectContact::IsGraphicAnimationAllowed() const
{ returntrue;
}
¤ 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.0.17Bemerkung:
(vorverarbeitet am 2026-09-28)
¤
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.