20#include <fuconrec.hxx>
23#include <svx/svxids.hrc>
24#include <svx/strings.hrc>
64#include <osl/diagnose.h>
87 , mnFillTransparence(0)
102 if (pIsSticky && pIsSticky->
GetValue())
115 xFunc->DoExecute(rReq);
134 case SID_DRAW_ELLIPSE :
141 if (!pCenterX || !pCenterY || !pAxisX || !pAxisY)
145 pCenterY->GetValue () - pAxisY->GetValue () / 2,
146 pCenterX->
GetValue () + pAxisX->GetValue () / 2,
147 pCenterY->GetValue () + pAxisY->GetValue () / 2);
169 if (pFillTransparence && pFillTransparence->GetValue() > 0)
173 if (pFillColor && !pFillColor->GetValue().isEmpty())
181 if (pShapeName && !pShapeName->GetValue().isEmpty())
186 if (!pMouseStartX || !pMouseStartY || !pMouseEndX || !pMouseEndY)
190 pMouseStartY->GetValue (),
191 pMouseEndX->GetValue (),
192 pMouseEndY->GetValue ());
204 if (
nSlotId == SID_TOOL_CONNECTOR ||
205 nSlotId == SID_CONNECTOR_ARROW_START ||
206 nSlotId == SID_CONNECTOR_ARROW_END ||
207 nSlotId == SID_CONNECTOR_ARROWS ||
208 nSlotId == SID_CONNECTOR_CIRCLE_START ||
209 nSlotId == SID_CONNECTOR_CIRCLE_END ||
210 nSlotId == SID_CONNECTOR_CIRCLES ||
211 nSlotId == SID_CONNECTOR_LINE ||
212 nSlotId == SID_CONNECTOR_LINE_ARROW_START ||
213 nSlotId == SID_CONNECTOR_LINE_ARROW_END ||
214 nSlotId == SID_CONNECTOR_LINE_ARROWS ||
215 nSlotId == SID_CONNECTOR_LINE_CIRCLE_START ||
216 nSlotId == SID_CONNECTOR_LINE_CIRCLE_END ||
217 nSlotId == SID_CONNECTOR_LINE_CIRCLES ||
218 nSlotId == SID_CONNECTOR_CURVE ||
219 nSlotId == SID_CONNECTOR_CURVE_ARROW_START ||
220 nSlotId == SID_CONNECTOR_CURVE_ARROW_END ||
221 nSlotId == SID_CONNECTOR_CURVE_ARROWS ||
222 nSlotId == SID_CONNECTOR_CURVE_CIRCLE_START ||
223 nSlotId == SID_CONNECTOR_CURVE_CIRCLE_END ||
224 nSlotId == SID_CONNECTOR_CURVE_CIRCLES ||
225 nSlotId == SID_CONNECTOR_LINES ||
226 nSlotId == SID_CONNECTOR_LINES_ARROW_START ||
227 nSlotId == SID_CONNECTOR_LINES_ARROW_END ||
228 nSlotId == SID_CONNECTOR_LINES_ARROWS ||
229 nSlotId == SID_CONNECTOR_LINES_CIRCLE_START ||
230 nSlotId == SID_CONNECTOR_LINES_CIRCLE_END ||
231 nSlotId == SID_CONNECTOR_LINES_CIRCLES ||
232 nSlotId == SID_LINE_ARROW_START ||
233 nSlotId == SID_LINE_ARROW_END ||
235 nSlotId == SID_LINE_ARROW_CIRCLE ||
236 nSlotId == SID_LINE_CIRCLE_ARROW ||
237 nSlotId == SID_LINE_ARROW_SQUARE ||
238 nSlotId == SID_LINE_SQUARE_ARROW )
257 Size aCaptionSize(846, 846);
276 if(
nSlotId == SID_DRAW_CAPTION_VERTICAL )
277 static_cast<SdrTextObj*
>(pObj)->SetVerticalWriting(
true );
296 if(SID_DRAW_MEASURELINE ==
nSlotId)
303 if(
dynamic_cast< const SdrCaptionObj *
>( pObj ) !=
nullptr && SID_DRAW_CAPTION_VERTICAL ==
nSlotId)
325 sal_uInt32 nDefaultObjectSize(1500);
355 case SID_LINE_ARROW_START:
356 case SID_LINE_ARROW_END:
357 case SID_LINE_ARROWS:
358 case SID_LINE_ARROW_CIRCLE:
359 case SID_LINE_CIRCLE_ARROW:
360 case SID_LINE_ARROW_SQUARE:
361 case SID_LINE_SQUARE_ARROW:
366 aObjKind = SdrObjKind::Line;
369 case SID_DRAW_MEASURELINE:
371 aObjKind = SdrObjKind::Measure;
376 case SID_DRAW_RECT_NOFILL :
377 case SID_DRAW_RECT_ROUND :
378 case SID_DRAW_RECT_ROUND_NOFILL:
379 case SID_DRAW_SQUARE :
380 case SID_DRAW_SQUARE_NOFILL :
381 case SID_DRAW_SQUARE_ROUND :
382 case SID_DRAW_SQUARE_ROUND_NOFILL:
384 aObjKind = SdrObjKind::Rectangle;
388 case SID_DRAW_ELLIPSE :
389 case SID_DRAW_ELLIPSE_NOFILL:
390 case SID_DRAW_CIRCLE :
391 case SID_DRAW_CIRCLE_NOFILL :
393 aObjKind = SdrObjKind::CircleOrEllipse;
397 case SID_DRAW_CAPTION:
398 case SID_DRAW_CAPTION_VERTICAL:
400 aObjKind = SdrObjKind::Caption;
404 case SID_TOOL_CONNECTOR:
405 case SID_CONNECTOR_ARROW_START:
406 case SID_CONNECTOR_ARROW_END:
407 case SID_CONNECTOR_ARROWS:
408 case SID_CONNECTOR_CIRCLE_START:
409 case SID_CONNECTOR_CIRCLE_END:
410 case SID_CONNECTOR_CIRCLES:
411 case SID_CONNECTOR_LINE:
412 case SID_CONNECTOR_LINE_ARROW_START:
413 case SID_CONNECTOR_LINE_ARROW_END:
414 case SID_CONNECTOR_LINE_ARROWS:
415 case SID_CONNECTOR_LINE_CIRCLE_START:
416 case SID_CONNECTOR_LINE_CIRCLE_END:
417 case SID_CONNECTOR_LINE_CIRCLES:
418 case SID_CONNECTOR_CURVE:
419 case SID_CONNECTOR_CURVE_ARROW_START:
420 case SID_CONNECTOR_CURVE_ARROW_END:
421 case SID_CONNECTOR_CURVE_ARROWS:
422 case SID_CONNECTOR_CURVE_CIRCLE_START:
423 case SID_CONNECTOR_CURVE_CIRCLE_END:
424 case SID_CONNECTOR_CURVE_CIRCLES:
425 case SID_CONNECTOR_LINES:
426 case SID_CONNECTOR_LINES_ARROW_START:
427 case SID_CONNECTOR_LINES_ARROW_END:
428 case SID_CONNECTOR_LINES_ARROWS:
429 case SID_CONNECTOR_LINES_CIRCLE_START:
430 case SID_CONNECTOR_LINES_CIRCLE_END:
431 case SID_CONNECTOR_LINES_CIRCLES:
433 aObjKind = SdrObjKind::Edge;
437 case SID_INSERT_SIGNATURELINE:
439 aObjKind = SdrObjKind::Graphic;
445 aObjKind = SdrObjKind::Rectangle;
457 if(
nSlotId == SID_TOOL_CONNECTOR ||
458 nSlotId == SID_CONNECTOR_ARROW_START ||
459 nSlotId == SID_CONNECTOR_ARROW_END ||
460 nSlotId == SID_CONNECTOR_ARROWS ||
461 nSlotId == SID_CONNECTOR_CIRCLE_START ||
462 nSlotId == SID_CONNECTOR_CIRCLE_END ||
463 nSlotId == SID_CONNECTOR_CIRCLES ||
464 nSlotId == SID_CONNECTOR_LINE ||
465 nSlotId == SID_CONNECTOR_LINE_ARROW_START ||
466 nSlotId == SID_CONNECTOR_LINE_ARROW_END ||
467 nSlotId == SID_CONNECTOR_LINE_ARROWS ||
468 nSlotId == SID_CONNECTOR_LINE_CIRCLE_START ||
469 nSlotId == SID_CONNECTOR_LINE_CIRCLE_END ||
470 nSlotId == SID_CONNECTOR_LINE_CIRCLES ||
471 nSlotId == SID_CONNECTOR_CURVE ||
472 nSlotId == SID_CONNECTOR_CURVE_ARROW_START ||
473 nSlotId == SID_CONNECTOR_CURVE_ARROW_END ||
474 nSlotId == SID_CONNECTOR_CURVE_ARROWS ||
475 nSlotId == SID_CONNECTOR_CURVE_CIRCLE_START ||
476 nSlotId == SID_CONNECTOR_CURVE_CIRCLE_END ||
477 nSlotId == SID_CONNECTOR_CURVE_CIRCLES ||
478 nSlotId == SID_CONNECTOR_LINES ||
479 nSlotId == SID_CONNECTOR_LINES_ARROW_START ||
480 nSlotId == SID_CONNECTOR_LINES_ARROW_END ||
481 nSlotId == SID_CONNECTOR_LINES_ARROWS ||
482 nSlotId == SID_CONNECTOR_LINES_CIRCLE_START ||
483 nSlotId == SID_CONNECTOR_LINES_CIRCLE_END ||
484 nSlotId == SID_CONNECTOR_LINES_CIRCLES ||
485 nSlotId == SID_LINE_ARROW_START ||
486 nSlotId == SID_LINE_ARROW_END ||
488 nSlotId == SID_LINE_ARROW_CIRCLE ||
489 nSlotId == SID_LINE_CIRCLE_ARROW ||
490 nSlotId == SID_LINE_ARROW_SQUARE ||
491 nSlotId == SID_LINE_SQUARE_ARROW )
497 if (
nSlotId != SID_INSERT_SIGNATURELINE)
515 uno::Reference<security::XCertificate> xCertificate
518 if (!xCertificate.is())
537Color strToColor(std::u16string_view sColor)
541 if (sColor == u
"COL_GRAY")
543 else if (sColor == u
"COL_GRAY3")
545 else if (sColor == u
"COL_GRAY7")
557 if (
nSlotId == SID_DRAW_RECT_ROUND ||
558 nSlotId == SID_DRAW_RECT_ROUND_NOFILL ||
559 nSlotId == SID_DRAW_SQUARE_ROUND ||
560 nSlotId == SID_DRAW_SQUARE_ROUND_NOFILL)
565 else if (
nSlotId == SID_CONNECTOR_LINE ||
566 nSlotId == SID_CONNECTOR_LINE_ARROW_START ||
567 nSlotId == SID_CONNECTOR_LINE_ARROW_END ||
568 nSlotId == SID_CONNECTOR_LINE_ARROWS ||
569 nSlotId == SID_CONNECTOR_LINE_CIRCLE_START ||
570 nSlotId == SID_CONNECTOR_LINE_CIRCLE_END ||
571 nSlotId == SID_CONNECTOR_LINE_CIRCLES)
576 else if (
nSlotId == SID_CONNECTOR_LINES ||
577 nSlotId == SID_CONNECTOR_LINES_ARROW_START ||
578 nSlotId == SID_CONNECTOR_LINES_ARROW_END ||
579 nSlotId == SID_CONNECTOR_LINES_ARROWS ||
580 nSlotId == SID_CONNECTOR_LINES_CIRCLE_START ||
581 nSlotId == SID_CONNECTOR_LINES_CIRCLE_END ||
582 nSlotId == SID_CONNECTOR_LINES_CIRCLES)
587 else if (
nSlotId == SID_CONNECTOR_CURVE ||
588 nSlotId == SID_CONNECTOR_CURVE_ARROW_START ||
589 nSlotId == SID_CONNECTOR_CURVE_ARROW_END ||
590 nSlotId == SID_CONNECTOR_CURVE_ARROWS ||
591 nSlotId == SID_CONNECTOR_CURVE_CIRCLE_START ||
592 nSlotId == SID_CONNECTOR_CURVE_CIRCLE_END ||
593 nSlotId == SID_CONNECTOR_CURVE_CIRCLES)
598 else if (
nSlotId == SID_DRAW_CAPTION ||
nSlotId == SID_DRAW_CAPTION_VERTICAL )
608 if(SID_DRAW_CAPTION ==
nSlotId)
619 else if (
nSlotId == SID_DRAW_MEASURELINE)
637 else if (
nSlotId == SID_DRAW_RECT)
662 else if (
nSlotId == SID_INSERT_SIGNATURELINE)
676 nSlotId != SID_TOOL_CONNECTOR &&
677 nSlotId != SID_CONNECTOR_LINE &&
678 nSlotId != SID_CONNECTOR_LINES &&
679 nSlotId != SID_CONNECTOR_CURVE) ||
680 nSlotId == SID_LINE_ARROW_START ||
681 nSlotId == SID_LINE_ARROW_END ||
683 nSlotId == SID_LINE_ARROW_CIRCLE ||
684 nSlotId == SID_LINE_CIRCLE_ARROW ||
685 nSlotId == SID_LINE_ARROW_SQUARE ||
686 nSlotId == SID_LINE_SQUARE_ARROW) )
694 if( !aArrow.
count() )
706 if( !aCircle.
count() )
710 aCircle.
append(aNewCircle);
715 if( !aSquare.
count() )
723 aSquare.
append(aNewSquare);
744 case SID_CONNECTOR_ARROWS:
745 case SID_CONNECTOR_LINE_ARROWS:
746 case SID_CONNECTOR_LINES_ARROWS:
747 case SID_CONNECTOR_CURVE_ARROWS:
748 case SID_LINE_ARROWS:
758 case SID_CONNECTOR_ARROW_START:
759 case SID_CONNECTOR_LINE_ARROW_START:
760 case SID_CONNECTOR_LINES_ARROW_START:
761 case SID_CONNECTOR_CURVE_ARROW_START:
762 case SID_LINE_ARROW_START:
763 case SID_LINE_ARROW_CIRCLE:
764 case SID_LINE_ARROW_SQUARE:
772 case SID_CONNECTOR_ARROW_END:
773 case SID_CONNECTOR_LINE_ARROW_END:
774 case SID_CONNECTOR_LINES_ARROW_END:
775 case SID_CONNECTOR_CURVE_ARROW_END:
776 case SID_LINE_ARROW_END:
777 case SID_LINE_CIRCLE_ARROW:
778 case SID_LINE_SQUARE_ARROW:
786 case SID_CONNECTOR_CIRCLES:
787 case SID_CONNECTOR_LINE_CIRCLES:
788 case SID_CONNECTOR_LINES_CIRCLES:
789 case SID_CONNECTOR_CURVE_CIRCLES:
799 case SID_CONNECTOR_CIRCLE_START:
800 case SID_CONNECTOR_LINE_CIRCLE_START:
801 case SID_CONNECTOR_LINES_CIRCLE_START:
802 case SID_CONNECTOR_CURVE_CIRCLE_START:
810 case SID_CONNECTOR_CIRCLE_END:
811 case SID_CONNECTOR_LINE_CIRCLE_END:
812 case SID_CONNECTOR_LINES_CIRCLE_END:
813 case SID_CONNECTOR_CURVE_CIRCLE_END:
825 case SID_LINE_ARROW_CIRCLE:
833 case SID_LINE_CIRCLE_ARROW:
841 case SID_LINE_ARROW_SQUARE:
849 case SID_LINE_SQUARE_ARROW:
861 DBG_ASSERT( (nID != SID_DRAW_FONTWORK) && (nID != SID_DRAW_FONTWORK_VERTICAL ),
"FuConstRectangle::CreateDefaultObject can not create Fontwork shapes!" );
925 if(SID_DRAW_SQUARE == nID ||
926 SID_DRAW_SQUARE_NOFILL == nID ||
927 SID_DRAW_SQUARE_ROUND == nID ||
928 SID_DRAW_SQUARE_ROUND_NOFILL == nID ||
929 SID_DRAW_CIRCLE == nID ||
930 SID_DRAW_CIRCLE_NOFILL == nID)
943 case SID_LINE_ARROW_START:
944 case SID_LINE_ARROW_END:
945 case SID_LINE_ARROWS:
946 case SID_LINE_ARROW_CIRCLE:
947 case SID_LINE_CIRCLE_ARROW:
948 case SID_LINE_ARROW_SQUARE:
949 case SID_LINE_SQUARE_ARROW:
951 if(
auto pPathObj =
dynamic_cast<SdrPathObj *
>( pObj.get() ) )
953 sal_Int32 nYMiddle((aRect.
Top() + aRect.
Bottom()) / 2);
962 OSL_FAIL(
"Object is NO line object");
968 case SID_DRAW_MEASURELINE:
970 if(
auto pMeasureObj =
dynamic_cast< SdrMeasureObj *
>( pObj.get() ) )
972 sal_Int32 nYMiddle((aRect.
Top() + aRect.
Bottom()) / 2);
973 pMeasureObj->SetPoint(
Point(aStart.
X(), nYMiddle), 0);
974 pMeasureObj->SetPoint(
Point(aEnd.
X(), nYMiddle), 1);
978 OSL_FAIL(
"Object is NO measure object");
984 case SID_TOOL_CONNECTOR:
985 case SID_CONNECTOR_ARROW_START:
986 case SID_CONNECTOR_ARROW_END:
987 case SID_CONNECTOR_ARROWS:
988 case SID_CONNECTOR_CIRCLE_START:
989 case SID_CONNECTOR_CIRCLE_END:
990 case SID_CONNECTOR_CIRCLES:
991 case SID_CONNECTOR_LINE:
992 case SID_CONNECTOR_LINE_ARROW_START:
993 case SID_CONNECTOR_LINE_ARROW_END:
994 case SID_CONNECTOR_LINE_ARROWS:
995 case SID_CONNECTOR_LINE_CIRCLE_START:
996 case SID_CONNECTOR_LINE_CIRCLE_END:
997 case SID_CONNECTOR_LINE_CIRCLES:
998 case SID_CONNECTOR_CURVE:
999 case SID_CONNECTOR_CURVE_ARROW_START:
1000 case SID_CONNECTOR_CURVE_ARROW_END:
1001 case SID_CONNECTOR_CURVE_ARROWS:
1002 case SID_CONNECTOR_CURVE_CIRCLE_START:
1003 case SID_CONNECTOR_CURVE_CIRCLE_END:
1004 case SID_CONNECTOR_CURVE_CIRCLES:
1005 case SID_CONNECTOR_LINES:
1006 case SID_CONNECTOR_LINES_ARROW_START:
1007 case SID_CONNECTOR_LINES_ARROW_END:
1008 case SID_CONNECTOR_LINES_ARROWS:
1009 case SID_CONNECTOR_LINES_CIRCLE_START:
1010 case SID_CONNECTOR_LINES_CIRCLE_END:
1011 case SID_CONNECTOR_LINES_CIRCLES:
1013 if(
auto pEdgeObj =
dynamic_cast< SdrEdgeObj *
>( pObj.get() ) )
1015 pEdgeObj->SetTailPoint(
false, aStart);
1016 pEdgeObj->SetTailPoint(
true, aEnd);
1020 OSL_FAIL(
"Object is NO connector object");
1025 case SID_DRAW_CAPTION:
1026 case SID_DRAW_CAPTION_VERTICAL:
1028 if(
auto pCaptionObj =
dynamic_cast< SdrCaptionObj *
>( pObj.get() ) )
1030 bool bIsVertical(SID_DRAW_CAPTION_VERTICAL == nID);
1032 pCaptionObj->SetVerticalWriting(bIsVertical);
1039 pObj->SetMergedItemSet(aSet);
1044 pCaptionObj->SetLogicRect(aRect);
1045 pCaptionObj->SetTailPos(
1050 OSL_FAIL(
"Object is NO caption object");
1058 pObj->SetLogicRect(aRect);
1068 pObj->SetMergedItemSet(aAttr);
sal_uInt32 GetValue() const
::basegfx::B2DPolyPolygon GetLineEndPoly(TranslateId pResId, const SdrModel &rModel)
const Point & GetPosPixel() const
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long X() const
SAL_DLLPRIVATE SfxItemPool & GetPool()
bool BegCreateObj(const Point &rPnt, OutputDevice *pOut=nullptr, short nMinMov=-3)
bool EndCreateObj(SdrCreateCmd eCmd)
SdrInventor GetCurrentObjInventor() const
SdrObjKind GetCurrentObjIdentifier() const
virtual bool IsAction() const override
void SetCurrentObj(SdrObjKind nIdent, SdrInventor nInvent=SdrInventor::Default)
SdrObject * GetCreateObj() const
bool BegCreateCaptionObj(const Point &rPnt, const Size &rObjSiz, OutputDevice *pOut=nullptr, short nMinMov=-3)
sal_Int32 GetDragThresholdPixels() const
bool InsertObjectAtView(SdrObject *pObj, SdrPageView &rPV, SdrInsertFlags nOptions=SdrInsertFlags::NONE)
SdrLayerID GetLayerID(const OUString &rName) const
size_t GetMarkCount() const
const SdrMarkList & GetMarkedObjectList() const
SfxStyleSheetBasePool * GetStyleSheetPool() const
const SdrLayerAdmin & GetLayerAdmin() const
static rtl::Reference< SdrObject > MakeNewObject(SdrModel &rSdrModel, SdrInventor nInventor, SdrObjKind nObjIdentifier, const tools::Rectangle *pSnapRect=nullptr)
void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr)
void SetMergedItemSet(const SfxItemSet &rSet, bool bClearAllItems=false)
SdrModel & getSdrModelFromSdrObject() const
virtual SdrObjKind GetObjIdentifier() const
const SfxItemSet & GetMergedItemSet() const
virtual void SetLayer(SdrLayerID nLayer)
virtual void SetName(const OUString &rStr, const bool bSetChanged=true)
virtual const tools::Rectangle & GetLogicRect() const
SdrPage * GetPage() const
SdrModel & getSdrModelFromSdrPage() const
SdrModel & getSdrModelFromSdrView() const
void SetGlueVisible(bool bOn=true)
SdrPageView * GetSdrPageView() const
bool IsSnapEnabled() const
Point GetSnapPos(const Point &rPnt, const SdrPageView *pPV) const
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
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
const SfxItemSet * GetArgs() const
const T * GetArg(sal_uInt16 nSlotId) const
virtual SfxObjectShell * GetObjectShell()
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
void RemoveInfoBar(std::u16string_view sId)
void AppendReadOnlyInfobar()
SfxDispatcher * GetDispatcher()
bool HasInfoBarWithID(std::u16string_view sId)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
void append(const B2DPolygon &rPolygon, sal_uInt32 nCount=1)
void append(const basegfx::B2DPoint &rPoint, sal_uInt32 nCount)
void setClosed(bool bNew)
virtual void Activate() override
activates the function
virtual void Deactivate() override
deactivates the function
virtual void DoExecute(SfxRequest &rReq) override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq, bool bPermanent)
void SetAttributes(SfxItemSet &rAttr, SdrObject *pObj)
set attribute for the object to be created
FuConstructRectangle(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
void SetLineEnds(SfxItemSet &rAttr, SdrObject const &rObj)
set line starts and ends for the object to be created
virtual rtl::Reference< SdrObject > CreateDefaultObject(const sal_uInt16 nID, const ::tools::Rectangle &rRectangle) override
sal_uInt16 mnFillTransparence
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
virtual void Deactivate() override
deactivates the function
virtual void Activate() override
activates the function
void SetStyleSheet(SfxItemSet &rAttr, SdrObject *pObj)
set style sheet for the object to be created
bool IsIgnoreUnexpectedMouseButtonUp()
void SetPermanent(bool bSet)
VclPtr< ::sd::Window > mpWindow
static void ImpForceQuadratic(::tools::Rectangle &rRect)
virtual void DoExecute(SfxRequest &rReq)
std::shared_ptr< ToolBarManager > const & GetToolBarManager() const
Base class of the stacked shell hierarchy.
SD_DLLPUBLIC weld::Window * GetFrameWeld() const
SD_DLLPUBLIC ViewShellBase & GetViewShellBase() const
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
virtual void GetAttributes(SfxItemSet &rTargetSet, bool bOnlyHardAttr=false) const
An SdWindow contains the actual working area of ViewShell.
constexpr ::Color COL_GRAY(0x80, 0x80, 0x80)
constexpr ::Color COL_GRAY3(0xCC, 0xCC, 0xCC)
constexpr ::Color COL_GRAY7(0x66, 0x66, 0x66)
constexpr ::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
#define DBG_ASSERT(sCon, aError)
SVXCORE_DLLPUBLIC OUString SvxResId(TranslateId aId)
constexpr TypedWhichId< SvxAdjustItem > EE_PARA_JUST(EE_PARA_START+16)
constexpr int nCenterOffset
uno::Reference< security::XCertificate > getSignatureCertificate(SfxObjectShell *pShell, weld::Window *pParent)
void setShapeCertificate(const SdrView *pView, const css::uno::Reference< css::security::XCertificate > &xCertificate)
SdrMetricItem makeSdrEckenradiusItem(tools::Long nRadius)
OUString SdResId(TranslateId aId)
SdrOnOffItem makeSdrTextAutoGrowHeightItem(bool bAuto)
SdrOnOffItem makeSdrTextAutoGrowWidthItem(bool bAuto)
SdrMetricItem makeSdrTextUpperDistItem(tools::Long mnHeight)
SdrMetricItem makeSdrTextRightDistItem(tools::Long mnHeight)
SdrMetricItem makeSdrTextLowerDistItem(tools::Long mnHeight)
SdrMetricItem makeSdrTextLeftDistItem(tools::Long mnHeight)
SdrMetricItem makeSdrTextMinFrameHeightItem(tools::Long mnHeight)
SdrMetricItem makeSdrTextMinFrameWidthItem(tools::Long mnWidth)
constexpr TypedWhichId< SvxWritingModeItem > SDRATTR_TEXTDIRECTION(SDRATTR_NOTPERSIST_FIRST+34)
constexpr OUStringLiteral sUNO_LayerName_measurelines
constexpr TypedWhichId< XLineWidthItem > XATTR_LINEWIDTH(XATTR_LINE_FIRST+2)