using ::com::sun::star::awt::XControl; using ::com::sun::star::uno::Reference; using ::com::sun::star::awt::XControlContainer; using ::com::sun::star::awt::XControlModel;
if ( bPrintOrPreview ) return *new UnoControlPrintOrPreviewContact( *pPageViewContact, *this );
// all others are nowadays served by the same implementation return *new ViewObjectContactOfUnoControl( _rObjectContact, *this );
}
void ViewContactOfUnoControl::createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor& rVisitor) const
{ // create range. Use model data directly, not getBoundRect()/getSnapRect; these will use // the primitive data themselves in the long run. Use SdrUnoObj's (which is a SdrRectObj) // call to GetGeoRect() to access SdrTextObj::aRect directly and without executing anything const basegfx::B2DRange aRange = vcl::unotools::b2DRectangleFromRectangle(GetSdrUnoObj().GetGeoRect());
// create control primitive WITHOUT possibly existing XControl; this would be done in // the VOC in createPrimitive2DSequence() const drawinglayer::primitive2d::Primitive2DReference xRetval( new drawinglayer::primitive2d::ControlPrimitive2D(
aTransform,
xControlModel,
nullptr,
GetSdrObject().GetTitle(),
GetSdrObject().GetDescription(),
pAnchorKey));
rVisitor.visit(xRetval);
} else
{ // always append an invisible outline for the cases where no visible content exists const drawinglayer::primitive2d::Primitive2DReference xRetval(
drawinglayer::primitive2d::createHiddenGeometryPrimitives2D(
aTransform));
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.