52 :
FuPoor(pViewSh, pWin, pView, pDoc, rReq)
59 xFunc->DoExecute(rReq);
70 " " +
SdResId( STR_UNDO_COPYOBJECTS );
85 drawing::FillStyle eStyle = pFillStyleItem->GetValue();
88 if( eStyle == drawing::FillStyle_SOLID &&
93 aSet.
Put( aXColorItem );
101 sal_uInt16 nResult = pDlg->Execute();
106 pDlg->GetAttr( aSet );
121 sal_Int32 lWidth = 0, lHeight = 0, lSizeX = 0, lSizeY = 0;
123 sal_uInt16 nNumber = 0;
124 Color aStartColor, aEndColor;
131 nNumber = pPoolItem->GetValue();
135 lSizeX = pPoolItem->GetValue();
137 lSizeY = pPoolItem->GetValue();
139 lAngle = pPoolItem->GetValue();
143 lWidth = pPoolItem->GetValue();
145 lHeight = pPoolItem->GetValue();
150 aStartColor = pPoolItem->GetColorValue();
155 aEndColor = pPoolItem->GetColorValue();
156 if( aStartColor == aEndColor )
164 std::unique_ptr<SfxProgress> pProgress;
165 bool bWaiting =
false;
170 " " +
SdResId( STR_UNDO_COPYOBJECTS );
187 nNumber =
static_cast<sal_uInt16
>(std::min( nTmp,
static_cast<::
tools::Long>(nNumber) ));
193 nNumber =
static_cast<sal_uInt16
>(std::min( nTmp,
static_cast<::
tools::Long>(nNumber) ));
196 for( sal_uInt16
i = 1;
i <= nNumber;
i++ )
199 pProgress->SetState(
i );
203 if( ( 1 ==
i ) && bColor )
219 for(
size_t j = 0; j < nCopyMarkCount; ++j )
243 if( nMarkCount == nCopyMarkCount )
245 for(
size_t j = 0; j < nMarkCount; ++j )
250 if( pSrcObj && pDstObj &&
266 Color aNewColor( nRed, nGreen, nBlue );
sal_uInt8 GetBlue() const
sal_uInt8 GetGreen() const
OUString const & GetName() const
virtual VclPtr< AbstractCopyDlg > CreateCopyDlg(weld::Window *pWindow, const SfxItemSet &rInAttrs, ::sd::View *pView)=0
static SD_DLLPUBLIC SdAbstractDialogFactory * Create()
SAL_DLLPRIVATE SfxItemPool & GetPool()
bool IsResizeAllowed(bool bProp=false) const
bool IsMoveAllowed() const
void ResizeAllMarked(const Point &rRef, const Fraction &xFact, const Fraction &yFact)
void RotateAllMarked(const Point &rRef, Degree100 nAngle)
void MoveAllMarked(const Size &rSiz, bool bCopy=false)
bool IsRotateAllowed(bool b90Deg=false) const
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
const SdrMarkList & GetMarkedObjectList() const
bool AreObjectsMarked() const
OUString const & GetDescriptionOfMarkedObjects() const
void AdjustMarkHdl(SfxViewShell *pOtherShell=nullptr)
const tools::Rectangle & GetAllMarkedRect() const
SdrObject * GetMarkedSdrObj() const
bool IsResizeProtect() const
bool IsMoveProtect() const
virtual SdrInventor GetObjInventor() const
void SetResizeProtect(bool bProt)
void SetMoveProtect(bool bProt)
virtual SdrObjKind GetObjIdentifier() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void SetWaitCursor(bool bSet) const
const SfxItemSet * GetArgs() const
void Done(bool bRemove=false)
SfxItemPool & GetPool() const
const Color & GetColorValue() const
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
FuCopy(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
virtual void DoExecute(SfxRequest &rReq) override
Base class for all functions.
Base class of the stacked shell hierarchy.
SD_DLLPUBLIC weld::Window * GetFrameWeld() const
virtual bool SetAttributes(const SfxItemSet &rSet, bool bReplaceAll=false, bool bSlide=false, bool bMaster=false)
virtual void GetAttributes(SfxItemSet &rTargetSet, bool bOnlyHardAttr=false) const
An SdWindow contains the actual working area of ViewShell.
OUString SdResId(TranslateId aId)
constexpr TypedWhichId< XFillColorItem > XATTR_FILLCOLOR(XATTR_FILL_FIRST+1)
constexpr TypedWhichId< XFillStyleItem > XATTR_FILLSTYLE(XATTR_FILL_FIRST)