// no need to check for changes, this method is called only if the area really changed
bSizeProtect = pObj->IsResizeProtect();
bPosProtect = pObj->IsMoveProtect();
}
// correct position
Point aPos = aObjRect.TopLeft();
Size aSize = aObjRect.GetSize();
Point aWorkAreaTL = aWorkArea.TopLeft();
Point aWorkAreaBR = aWorkArea.BottomRight();
void Client::ViewChanged()
{ if ( GetAspect() == embed::Aspects::MSOLE_ICON )
{ // the iconified object seems not to need such a scaling handling // since the replacement image and the size a completely controlled by the container // TODO/LATER: when the icon exchange is implemented the scaling handling might be required again here
pSdrOle2Obj->ActionChanged(); // draw needs it to remove lines in slide preview return;
}
//TODO/LATER: should we try to avoid the recalculation of the visareasize //if we know that it didn't change? if (!mrViewShell.GetActiveWindow()) return;
::sd::View* pView = mrViewShell.GetView(); if (!pView) return;
// Do not recalculate the visareasize if the embedded object is opening in a new window. if (!IsObjectInPlaceActive())
{
pSdrOle2Obj->BroadcastObjectChange(); return;
}
if( pSdrOle2Obj->IsChart() )
{ //charts never should be stretched see #i84323# for example
pSdrOle2Obj->SetLogicRect( ::tools::Rectangle( aLogicRect.TopLeft(), aLogicSize ) );
pSdrOle2Obj->BroadcastObjectChange(); return;
}
// TODO/LEAN: maybe we can do this without requesting the VisualArea? // working with the visual area might need running state, so the object may switch itself to this state
MapMode aMap100( MapUnit::Map100thMM );
::tools::Rectangle aVisArea;
Size aSize = pSdrOle2Obj->GetOrigObjSize( &aMap100 );
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.