20#include <config_features.h>
28#include <svx/svxids.hrc>
44#include <drawview.hxx>
86 const bool bDeactivate(
124 sal_uInt16 nSId = rReq.
GetSlot();
128 case SID_ANIMATOR_INIT:
129 case SID_ANIMATOR_ADD:
130 case SID_ANIMATOR_CREATE:
133 sal_uInt16
nId = AnimationChildWindow::GetChildWindowId();
141 if( nSId == SID_ANIMATOR_ADD )
143 else if( nSId == SID_ANIMATOR_CREATE )
170 if( nMarkCount == 0 )
172 else if( nMarkCount > 1 )
180 if( nInv == SdrInventor::Default &&
nId == SdrObjKind::Group )
182 else if( nInv == SdrInventor::Default &&
nId == SdrObjKind::Graphic )
186 if(
static_cast<const SdrGrafObj*
>(pObj)->IsAnimated() )
187 nCount =
static_cast<const SdrGrafObj*
>(pObj)->GetGraphic().GetAnimation().Count();
204 sal_uInt16
nId = SvxFontWorkChildWindow::GetChildWindowId();
209 sal_uInt16
nId = SvxColorChildWindow::GetChildWindowId();
214 sal_uInt16
nId = AnimationChildWindow::GetChildWindowId();
223 sal_uInt16
nId = SvxBmpMaskChildWindow::GetChildWindowId();
228 sal_uInt16
nId = SvxIMapDlgChildWindow::GetChildWindowId();
233 sal_uInt16
nId = Svx3DChildWindow::GetChildWindowId();
236#if HAVE_FEATURE_AVMEDIA
239 sal_uInt16
nId = ::avmedia::MediaPlayer::GetChildWindowId();
256 case SID_BMPMASK_PIPETTE :
262 case SID_BMPMASK_EXEC :
266 pObj =
dynamic_cast< SdrGrafObj*
>(
mpDrawView->GetMarkedObjectList().GetMark(0)->GetMarkedSdrObj() );
273 if (xNewObj->IsLinkedGraphic())
276 std::unique_ptr<weld::MessageDialog> xQueryBox(xBuilder->weld_message_dialog(
"QueryUnlinkImageDialog"));
278 if (
RET_YES == xQueryBox->run())
279 xNewObj->ReleaseGraphicLink();
285 SvxBmpMaskChildWindow::GetChildWindowId());
288 if (bCont && pBmpMask)
290 const Graphic& rOldGraphic = xNewObj->GetGraphic();
291 const Graphic aNewGraphic(pBmpMask->
Mask(rOldGraphic));
293 if( aNewGraphic != rOldGraphic )
297 xNewObj->SetEmptyPresObj(
false);
298 xNewObj->SetGraphic(pBmpMask->
Mask(xNewObj->GetGraphic()));
304 mpDrawView->ReplaceObjectAtView(pObj, *pPV, xNewObj.get());
321 bool bEnable =
false;
327 if(
auto pGrafObj =
dynamic_cast< const SdrGrafObj *
>( pObj ) )
328 if (!pGrafObj->IsEPS() && !
mpDrawView->IsTextEdit() )
static std::unique_ptr< weld::Builder > CreateBuilder(weld::Widget *pParent, const OUString &rUIFile, bool bMobile=false, sal_uInt64 nLOKWindowId=0)
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
SdrObject * GetMarkedSdrObj() const
virtual SdrInventor GetObjInventor() const
static rtl::Reference< T > Clone(T const &rObj, SdrModel &rTargetModel)
SdrModel & getSdrModelFromSdrObject() const
virtual SdrObjKind GetObjIdentifier() const
virtual bool HasText() const override
vcl::Window * GetWindow() const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
bool Set(const SfxItemSet &, bool bDeep=true)
void DisableItem(sal_uInt16 nWhich)
sal_uInt16 GetSlot() const
const SfxItemSet * GetArgs() const
SfxItemPool & GetPool() const
SfxChildWindow * GetChildWindow(sal_uInt16)
Graphic Mask(const Graphic &rGraphic)
void CreateAnimObj(::sd::View &rView)
void AddObj(::sd::View &rView)
static void CheckLineTo(SfxRequest &rReq)
check if we have to draw a polyline
std::unique_ptr< DrawView > mpDrawView
void GetBmpMaskState(SfxItemSet &rSet)
void ExecBmpMask(SfxRequest const &rReq)
Handle SfxRequests for pipette.
void ExecFormText(SfxRequest &rReq)
handle SfxRequests for FontWork
void SetChildWindowState(SfxItemSet &rSet)
void ExecAnimationWin(SfxRequest &rReq)
void GetFormTextState(SfxItemSet &rSet)
Return state values for FontWork.
void GetAnimationWinState(SfxItemSet &rSet)
Return status values for animator.
SdDrawDocument * GetDoc() const
SD_DLLPUBLIC weld::Window * GetFrameWeld() const
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
bool HasCurrentFunction() const
OUString SdResId(TranslateId aId)
SVXCORE_DLLPUBLIC SdrTextObj * DynCastSdrTextObj(SdrObject *)
constexpr TypedWhichId< XFormTextMirrorItem > XATTR_FORMTXTMIRROR(XATTR_TEXT_FIRST+4)
constexpr TypedWhichId< XFormTextStyleItem > XATTR_FORMTXTSTYLE(XATTR_TEXT_FIRST)
constexpr TypedWhichId< XFormTextStartItem > XATTR_FORMTXTSTART(XATTR_TEXT_FIRST+3)
constexpr TypedWhichId< XFormTextShadowYValItem > XATTR_FORMTXTSHDWYVAL(XATTR_TEXT_FIRST+9)
constexpr TypedWhichId< XFormTextHideFormItem > XATTR_FORMTXTHIDEFORM(XATTR_TEXT_FIRST+10)
constexpr TypedWhichId< XFormTextDistanceItem > XATTR_FORMTXTDISTANCE(XATTR_TEXT_FIRST+2)
constexpr TypedWhichId< XFormTextShadowItem > XATTR_FORMTXTSHADOW(XATTR_TEXT_FIRST+6)
constexpr TypedWhichId< XFormTextOutlineItem > XATTR_FORMTXTOUTLINE(XATTR_TEXT_FIRST+5)
constexpr TypedWhichId< XFormTextShadowXValItem > XATTR_FORMTXTSHDWXVAL(XATTR_TEXT_FIRST+8)
constexpr TypedWhichId< XFormTextShadowColorItem > XATTR_FORMTXTSHDWCOLOR(XATTR_TEXT_FIRST+7)
constexpr TypedWhichId< XFormTextAdjustItem > XATTR_FORMTXTADJUST(XATTR_TEXT_FIRST+1)