29#include <com/sun/star/embed/EmbedMisc.hpp>
30#include <com/sun/star/embed/EmbedStates.hpp>
31#include <com/sun/star/embed/XEmbeddedObject.hpp>
52 nState = xObjRef->getCurrentState();
55 const bool bIsOutplaceActive(
nState == embed::EmbedStates::ACTIVE);
56 const bool bIsInplaceActive((
nState == embed::EmbedStates::INPLACE_ACTIVE) || (
nState == embed::EmbedStates::UI_ACTIVE));
82 const sal_Int64 nMiscStatus(xObjRef->getStatus(rSdrOle2.
GetAspect()));
85 if(!rSdrOle2.
IsResizeProtect() && (nMiscStatus & embed::EmbedMisc::EMBED_NEVERRESIZE))
87 const_cast< SdrOle2Obj*
>(&rSdrOle2)->SetResizeProtect(
true);
91 if(pPageView && (nMiscStatus & embed::EmbedMisc::MS_EMBED_ACTIVATEWHENVISIBLE))
103 if(bIsOutplaceActive)
127 std::move(aFillHatch)));
129 rVisitor.
visit(xReference);
basegfx::BColor getBColor() const
bool IsResizeProtect() const
sal_Int64 GetAspect() const
const svt::EmbeddedObjectRef & getEmbeddedObjectRef() const
virtual void DoConnect(SdrOle2Obj *pOleObj)
For Plugins Is called by the Paint of the OLE object.
void transform(const basegfx::B2DHomMatrix &rMatrix)
virtual void visit(const Primitive2DReference &)=0
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
B2DPolygon const & createUnitPolygon()
constexpr double deg2rad(double v)