31#include <osl/diagnose.h>
47#define ShellClass_SwDrawBaseShell
55#include <com/sun/star/text/HoriOrientation.hpp>
56#include <com/sun/star/text/VertOrientation.hpp>
57#include <com/sun/star/text/RelOrientation.hpp>
58#include <com/sun/star/uno/Reference.hxx>
65using namespace css::beans;
66using namespace css::drawing;
67using namespace css::uno;
103 sal_uInt16 nSlotId = rReq.
GetSlot();
112 bool bTopParam =
true, bBottomParam =
true;
125 if( rMarkList.
GetMark(0) !=
nullptr )
132 SID_HTML_MODE, SID_HTML_MODE,
145 if (pDlg->Execute() ==
RET_OK)
147 const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
150 short nLayer = pWrapItem->GetValue();
165 case SID_ATTR_TRANSFORM:
172 if( rMarkList.
GetMark(0) !=
nullptr )
176 bool bCaption =
false;
180 SvxAnchorIds nAllowedAnchors = SvxAnchorIds::Paragraph | SvxAnchorIds::Character | SvxAnchorIds::Page;
184 nAllowedAnchors |= SvxAnchorIds::Fly;
194 pDlg.
reset(pCaptionDlg);
202 pDlg.
reset(pTransform);
212 aSet.
Put( aNewAttr,
false );
217 aSet.
Put(
SfxInt16Item(SID_ATTR_TRANSFORM_ANCHOR,
static_cast<sal_Int16
>(nAnchor)));
240 pDlg->SetInputSet( &aSet );
242 pDlg->StartExecuteAsync([bCaption, bChanged, pDlg, pFrameFormat, pSdrView,
243 pSh, &rMarkList,
this](
245 pSdrView->
GetModel().SetChanged(
false);
252 const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
265 SID_ATTR_TRANSFORM_POS_X,
false ) &&
267 SID_ATTR_TRANSFORM_POS_Y,
false );
274 SID_ATTR_TRANSFORM_ANCHOR,
false))
276 if(!bSingleSelection)
283 aFrameAttrSet.Put( aAnchor );
287 pOutSet->
GetItemIfSet(SID_ATTR_TRANSFORM_HORI_ORIENT,
false);
289 pOutSet->
GetItemIfSet(SID_ATTR_TRANSFORM_HORI_RELATION,
false);
291 pOutSet->
GetItemIfSet(SID_ATTR_TRANSFORM_HORI_POSITION,
false);
293 pOutSet->
GetItemIfSet(SID_ATTR_TRANSFORM_HORI_MIRROR,
false);
294 if(pHoriOrient || pHoriRelation || pHoriPosition || pHoriMirror)
304 aFrameAttrSet.Put(aHOrientFinal);
308 pOutSet->
GetItemIfSet(SID_ATTR_TRANSFORM_VERT_ORIENT,
false);
310 pOutSet->
GetItemIfSet(SID_ATTR_TRANSFORM_VERT_RELATION,
false);
312 pOutSet->
GetItemIfSet(SID_ATTR_TRANSFORM_VERT_POSITION,
false);
313 if(pVertOrient || pVertRelation || pVertPosition )
321 aFrameAttrSet.Put( aVOrientFinal );
326 aFrameAttrSet.Put(*pFollowItem);
328 if(aFrameAttrSet.Count())
389 GetView().GetEditWin().IsObjectSelect() )
393 if (
GetView().GetDrawFuncPtr())
427 case SID_ENTER_GROUP:
435 case SID_LEAVE_GROUP:
444 case SID_REGENERATE_DIAGRAM:
445 case SID_EDIT_DIAGRAM:
456 if(SID_REGENERATE_DIAGRAM == nSlotId)
475 case SID_OBJECT_ALIGN_LEFT:
476 case SID_OBJECT_ALIGN_CENTER:
477 case SID_OBJECT_ALIGN_RIGHT:
478 case SID_OBJECT_ALIGN_UP:
479 case SID_OBJECT_ALIGN_MIDDLE:
480 case SID_OBJECT_ALIGN_DOWN:
482 if ( bAlignPossible )
488 sal_Int16 nHorizOrient = -1, nVertOrient = -1;
492 case SID_OBJECT_ALIGN_LEFT:
493 nHorizOrient = text::HoriOrientation::LEFT;
495 case SID_OBJECT_ALIGN_CENTER:
496 nHorizOrient = text::HoriOrientation::CENTER;
498 case SID_OBJECT_ALIGN_RIGHT:
499 nHorizOrient = text::HoriOrientation::RIGHT;
501 case SID_OBJECT_ALIGN_UP:
502 nVertOrient = text::VertOrientation::TOP;
504 case SID_OBJECT_ALIGN_MIDDLE:
505 nVertOrient = text::VertOrientation::CENTER;
507 case SID_OBJECT_ALIGN_DOWN:
508 nVertOrient = text::VertOrientation::BOTTOM;
514 if (nHorizOrient != -1)
525 if (nVertOrient != -1)
542 case SID_OBJECT_ALIGN_LEFT:
545 case SID_OBJECT_ALIGN_CENTER:
548 case SID_OBJECT_ALIGN_RIGHT:
551 case SID_OBJECT_ALIGN_UP:
554 case SID_OBJECT_ALIGN_MIDDLE:
557 case SID_OBJECT_ALIGN_DOWN:
569 case SID_FRAME_TO_TOP:
574 bBottomParam =
false;
576 case SID_FRAME_TO_BOTTOM:
588 OSL_ENSURE(pSelected,
"DrawViewShell::FuTemp03: nMarkCount, but no object (!)");
596 if(
RET_OK == pDlg->Execute())
598 pDlg->GetName(
aName);
615 OSL_ENSURE(pSelected,
"DrawViewShell::FuTemp03: nMarkCount, but no object (!)");
616 OUString aTitle(pSelected->
GetTitle());
622 aTitle, aDescription, isDecorative));
624 if(
RET_OK == pDlg->Execute())
626 pDlg->GetTitle(aTitle);
627 pDlg->GetDescription(aDescription);
628 pDlg->IsDecorative(isDecorative);
641 case SID_OPEN_HYPERLINK:
650 case SID_EDIT_HYPERLINK:
651 case SID_HYPERLINK_DIALOG:
657 case SID_HYPERLINK_SETLINK:
669 case SID_REMOVE_HYPERLINK:
677 case SID_COPY_HYPERLINK_LOCATION:
681 uno::Reference<datatransfer::clipboard::XClipboard> xClipboard
688 OSL_ENSURE(
false,
"wrong Dispatcher");
693 if(nSlotId >= SID_OBJECT_ALIGN_LEFT && nSlotId <= SID_OBJECT_ALIGN_DOWN)
709 OSL_ENSURE(rMarkList.
GetMarkCount() == 1,
"wrong draw selection");
711 const OUString sCurrentName = pObj->
GetName();
713 rNameDialog.GetName(sNewName);
715 if (sNewName.isEmpty() || sCurrentName == sNewName)
725 if ( pObj != pTempObj && pTempObj->
GetName() == sNewName )
751 case SID_ATTR_TRANSFORM:
752 case SID_FRAME_TO_TOP:
753 case SID_FRAME_TO_BOTTOM:
769 case SID_ENTER_GROUP:
773 case SID_LEAVE_GROUP:
777 case SID_OBJECT_ALIGN_LEFT:
778 case SID_OBJECT_ALIGN_CENTER:
779 case SID_OBJECT_ALIGN_RIGHT:
780 case SID_OBJECT_ALIGN_UP:
781 case SID_OBJECT_ALIGN_MIDDLE:
782 case SID_OBJECT_ALIGN_DOWN:
783 case SID_OBJECT_ALIGN:
785 bool bDisableThis =
false;
786 bool bDisableHoriz =
false;
787 bool bHoriz = (nWhich == SID_OBJECT_ALIGN_LEFT || nWhich == SID_OBJECT_ALIGN_CENTER ||
788 nWhich == SID_OBJECT_ALIGN_RIGHT);
789 bool bVert = (nWhich == SID_OBJECT_ALIGN_UP || nWhich == SID_OBJECT_ALIGN_MIDDLE ||
790 nWhich == SID_OBJECT_ALIGN_DOWN);
797 else if ( rSh.
GetAnchorId() == RndStdIds::FLY_AS_CHAR )
803 bDisableHoriz =
true;
810 if (bHoriz && !bDisableThis && !bDisableHoriz &&
813 sal_Int16 nHoriOrient = -1;
816 case SID_OBJECT_ALIGN_LEFT:
817 nHoriOrient = text::HoriOrientation::LEFT;
819 case SID_OBJECT_ALIGN_CENTER:
820 nHoriOrient = text::HoriOrientation::CENTER;
822 case SID_OBJECT_ALIGN_RIGHT:
823 nHoriOrient = text::HoriOrientation::RIGHT;
835 if (bVert && !bDisableThis && rMarkList.
GetMarkCount() == 1)
837 sal_Int16 nVertOrient = -1;
840 case SID_OBJECT_ALIGN_UP:
841 nVertOrient = text::VertOrientation::TOP;
843 case SID_OBJECT_ALIGN_MIDDLE:
844 nVertOrient = text::VertOrientation::CENTER;
846 case SID_OBJECT_ALIGN_DOWN:
847 nVertOrient = text::VertOrientation::BOTTOM;
882 case SID_OPEN_HYPERLINK:
883 case SID_EDIT_HYPERLINK:
884 case SID_HYPERLINK_DIALOG:
885 case SID_REMOVE_HYPERLINK:
886 case SID_COPY_HYPERLINK_LOCATION:
901 case SdrObjKind::PathFill:
902 case SdrObjKind::CircleSection:
903 case SdrObjKind::Line:
904 case SdrObjKind::CustomShape:
905 case SdrObjKind::Text:
906 case SdrObjKind::Rectangle:
907 case SdrObjKind::Caption:
908 case SdrObjKind::Polygon:
909 case SdrObjKind::PolyLine:
910 case SdrObjKind::E3D_Scene:
911 case SdrObjKind::Measure:
912 case SdrObjKind::Edge:
919 if (nWhich == SID_OPEN_HYPERLINK || nWhich == SID_REMOVE_HYPERLINK
920 || nWhich == SID_EDIT_HYPERLINK || nWhich == SID_COPY_HYPERLINK_LOCATION)
928 case SID_HYPERLINK_GETLINK:
931 if (rMarkList.
GetMark(0) !=
nullptr)
936 aHLinkItem.
SetURL(sHyperLink);
942 case SID_REGENERATE_DIAGRAM:
943 case SID_EDIT_DIAGRAM:
947 if (
nullptr != rMarkList.
GetMark(0))
975 if( rMarkList.
GetMark(0) !=
nullptr )
1011 bool bShowArea =
true, bShowMeasure =
true;
1013 for (
size_t i = 0;
i < nMarkCount &&
i < 50; ++
i)
1018 if ( nObjType != SdrObjKind::Measure )
1019 bShowMeasure =
false;
1022 if ( nObjType == SdrObjKind::PolyLine ||
1023 nObjType == SdrObjKind::Line ||
1024 nObjType == SdrObjKind::PathLine ||
1025 nObjType == SdrObjKind::FreehandLine ||
1026 nObjType == SdrObjKind::Edge ||
1027 nObjType == SdrObjKind::CircleArc ||
1031 if (!bShowArea && !bShowMeasure)
1050 rValidation.nMinHeight =
MINFLY;
1051 rValidation.nMinWidth =
MINFLY;
1057 const RndStdIds eAnchorType = rValidation.nAnchorType;
1069 rValidation.nHRelOrient,
1070 rValidation.nVRelOrient,
1072 rValidation.bFollowTextFlow,
1073 rValidation.bMirror,
nullptr, &rValidation.aPercentSize);
1075 bool bIsInVertical(
false );
1085 aPos.
setX( aPos.
Y() );
1088 nTmp = aSize.
Width();
1091 aBoundRect.
Chg( aPos, aSize );
1093 nTmp = rValidation.nWidth;
1094 rValidation.nWidth = rValidation.nHeight;
1095 rValidation.nHeight = nTmp;
1097 if ((eAnchorType == RndStdIds::FLY_AT_PAGE) || (eAnchorType == RndStdIds::FLY_AT_FLY))
1100 rValidation.nMinHPos = aBoundRect.
Left();
1101 rValidation.nMinVPos = aBoundRect.
Top();
1102 SwTwips nH = rValidation.nHPos;
1103 SwTwips nV = rValidation.nVPos;
1105 if (rValidation.nHPos + rValidation.nWidth > aBoundRect.
Right())
1109 rValidation.nHPos -= ((rValidation.nHPos + rValidation.nWidth) - aBoundRect.
Right());
1110 nH = rValidation.nHPos;
1113 rValidation.nWidth = aBoundRect.
Right() - rValidation.nHPos;
1116 if (rValidation.nHPos + rValidation.nWidth > aBoundRect.
Right())
1117 rValidation.nWidth = aBoundRect.
Right() - rValidation.nHPos;
1119 if (rValidation.nVPos + rValidation.nHeight > aBoundRect.
Bottom())
1123 rValidation.nVPos -= ((rValidation.nVPos + rValidation.nHeight) - aBoundRect.
Bottom());
1124 nV = rValidation.nVPos;
1127 rValidation.nHeight = aBoundRect.
Bottom() - rValidation.nVPos;
1130 if (rValidation.nVPos + rValidation.nHeight > aBoundRect.
Bottom())
1131 rValidation.nHeight = aBoundRect.
Bottom() - rValidation.nVPos;
1134 nV = aBoundRect.
Top();
1137 nH = aBoundRect.
Left();
1139 rValidation.nMaxHPos = aBoundRect.
Right() - rValidation.nWidth;
1140 rValidation.nMaxHeight = aBoundRect.
Bottom() - nV;
1142 rValidation.nMaxVPos = aBoundRect.
Bottom() - rValidation.nHeight;
1143 rValidation.nMaxWidth = aBoundRect.
Right() - nH;
1145 else if ((eAnchorType == RndStdIds::FLY_AT_PARA) || (eAnchorType == RndStdIds::FLY_AT_CHAR))
1147 if (rValidation.nHPos + rValidation.nWidth > aBoundRect.
Right())
1151 rValidation.nHPos -= ((rValidation.nHPos + rValidation.nWidth) - aBoundRect.
Right());
1154 rValidation.nWidth = aBoundRect.
Right() - rValidation.nHPos;
1159 const bool bMaxVPosAtBottom = !rValidation.bFollowTextFlow ||
1160 rValidation.nVRelOrient == text::RelOrientation::PAGE_FRAME ||
1161 rValidation.nVRelOrient == text::RelOrientation::PAGE_PRINT_AREA ||
1162 rValidation.nVRelOrient == text::RelOrientation::PAGE_PRINT_AREA_BOTTOM;
1164 SwTwips nTmpMaxVPos = ( bMaxVPosAtBottom
1166 : aBoundRect.
Height() ) -
1167 rValidation.nHeight;
1168 if ( rValidation.nVPos > nTmpMaxVPos )
1172 rValidation.nVPos = nTmpMaxVPos;
1176 rValidation.nHeight = ( bMaxVPosAtBottom
1178 : aBoundRect.
Height() ) - rValidation.nVPos;
1183 rValidation.nMinHPos = aBoundRect.
Left();
1184 rValidation.nMaxHPos = aBoundRect.
Right() - rValidation.nWidth;
1186 rValidation.nMinVPos = aBoundRect.
Top();
1188 if ( bMaxVPosAtBottom )
1190 rValidation.nMaxVPos = aBoundRect.
Bottom() - rValidation.nHeight;
1194 rValidation.nMaxVPos = aBoundRect.
Height() - rValidation.nHeight;
1200 : rValidation.nHPos;
1203 : rValidation.nVPos;
1204 rValidation.nMaxHeight = rValidation.nMaxVPos + rValidation.nHeight - nV;
1205 rValidation.nMaxWidth = rValidation.nMaxHPos + rValidation.nWidth - nH;
1207 else if (eAnchorType == RndStdIds::FLY_AS_CHAR)
1209 rValidation.nMinHPos = 0;
1210 rValidation.nMaxHPos = 0;
1212 rValidation.nMaxHeight = aBoundRect.
Height();
1213 rValidation.nMaxWidth = aBoundRect.
Width();
1215 rValidation.nMaxVPos = aBoundRect.
Height();
1216 rValidation.nMinVPos = -aBoundRect.
Height() + rValidation.nHeight;
1217 if (rValidation.nMaxVPos < rValidation.nMinVPos)
1219 rValidation.nMinVPos = rValidation.nMaxVPos;
1220 rValidation.nMaxVPos = -aBoundRect.
Height();
1227 rValidation.nWidth = rValidation.nHeight;
1228 rValidation.nHeight = nTmp;
1231 if (rValidation.nMaxWidth < rValidation.nWidth)
1232 rValidation.nWidth = rValidation.nMaxWidth;
1233 if (rValidation.nMaxHeight < rValidation.nHeight)
1234 rValidation.nHeight = rValidation.nMaxHeight;
sal_Int32 GetValue() const
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
constexpr tools::Long Y() const
void setX(tools::Long nX)
void setY(tools::Long nY)
constexpr tools::Long X() const
void SetGeoAttrToMarked(const SfxItemSet &rAttr, bool addPageMargin=false)
void AlignMarkedObjects(SdrHorAlign eHor, SdrVertAlign eVert)
SfxItemSet GetGeoAttrFromMarked() const
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
const SdrMarkList & GetMarkedObjectList() const
bool AreObjectsMarked() const
SdrObject * GetMarkedObjectByIndex(size_t nNum) const
size_t GetMarkedObjectCount() const
bool MarkObj(const Point &rPnt, short nTol=-2, bool bToggle=false, bool bDeep=false)
SdrObject * GetMarkedSdrObj() const
virtual void SetChanged(bool bFlg=true)
const SdrPage * GetPage(sal_uInt16 nPgNum) const
virtual bool IsTextEdit() const final override
const OUString & getHyperlink() const
virtual OUString GetTitle() const
virtual void SetTitle(const OUString &rStr)
virtual const std::shared_ptr< svx::diagram::IDiagramHelper > & getDiagramHelper() const
virtual void SetDescription(const OUString &rStr)
virtual OUString GetDescription() const
virtual const OUString & GetName() const
virtual SdrObjKind GetObjIdentifier() const
virtual void SetDecorative(bool isDecorative)
virtual void SetName(const OUString &rStr, const bool bSetChanged=true)
virtual bool IsDecorative() const
void setHyperlink(const OUString &sHyperlink)
bool IsGroupEntered() const
SdrPageView * GetSdrPageView() const
SdrModel & GetModel() const
bool SetAttributes(const SfxItemSet &rSet, bool bReplaceAll=false)
void GetAttributes(SfxItemSet &rTargetSet, bool bOnlyHardAttr=false) const
void Invalidate(sal_uInt16 nId)
void InvalidateAll(bool bWithMsg)
sal_Int16 GetValue() const
SfxItemPool * GetPool() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void DisableItem(sal_uInt16 nWhich)
sal_uInt16 GetSlot() const
const SfxItemSet * GetArgs() const
weld::Window * GetFrameWeld() const
SfxItemPool & GetPool() const
SfxBindings & GetBindings()
void SetChildWindow(sal_uInt16 nId, bool bVisible, bool bSetFocus=true)
SfxViewFrame & GetViewFrame() const
constexpr tools::Long Height() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
virtual VclPtr< AbstractSvxObjectTitleDescDialog > CreateSvxObjectTitleDescDialog(weld::Window *pParent, const OUString &rTitle, const OUString &rDescription, bool isDecorative)=0
virtual VclPtr< AbstractSvxTransformTabDialog > CreateSvxTransformTabDialog(weld::Window *pParent, const SfxItemSet *pAttr, const SdrView *pView, SvxAnchorIds nAnchorTypes=SvxAnchorIds::NONE)=0
virtual VclPtr< AbstractSvxCaptionDialog > CreateCaptionDialog(weld::Window *pParent, const SdrView *pView, SvxAnchorIds nAnchorTypes=SvxAnchorIds::NONE)=0
virtual VclPtr< AbstractSvxObjectNameDialog > CreateSvxObjectNameDialog(weld::Window *pParent, const OUString &rName)=0
static SvxAbstractDialogFactory * Create()
const OUString & GetURL() const
void SetURL(const OUString &rURL)
virtual VclPtr< SfxAbstractDialog > CreateSwWrapDlg(weld::Window *pParent, SfxItemSet &rSet, SwWrtShell *pSh)=0
static SwAbstractDialogFactory * Create()
void EndAction(const bool bIdleEnd=false)
void GetState(SfxItemSet &)
void Execute(SfxRequest const &)
SwDrawBaseShell(SwView &rShell)
void DisableState(SfxItemSet &rSet)
bool Disable(SfxItemSet &rSet, sal_uInt16 nWhich=0)
void GetDrawAttrStateForIFBX(SfxItemSet &rSet)
virtual ~SwDrawBaseShell() override
virtual void Deactivate()
void StartAllAction()
For all views of this document.
SwUndoId StartUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Undo: set up Undo parenthesis, return nUndoId of this parenthesis.
SwUndoId EndUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Closes parenthesis of nUndoId, not used by UI.
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
void StdDrawMode(SdrObjKind eSdrObjectKind, bool bObjSelect)
void SetBezierMode(sal_uInt16 eBezMode)
void SelectionToHell()
Below document.
void SetObjAttr(const SfxItemSet &rSet)
FlyProtectFlags IsSelObjProtected(FlyProtectFlags eType) const
Which Protection is set at selected object?
RndStdIds GetAnchorId() const
Anchor type of selected object, RndStdIds::UNKNOWN if ambiguous or in case of frame selection.
void SelectionToHeaven()
Above document.
void GroupSelection()
Afterwards the group is selected.
bool SetDrawingAttr(SfxItemSet &rSet)
bool IsFrameVertical(const bool bEnvironment, bool &bRightToLeft, bool &bVertL2R) const
Determines whether a frame or its environment is vertically formatted and right-to-left.
void SelectionToTop(bool bTop=true)
Move selection upwards or downwards (Z-Order).
void SelectionToBottom(bool bBottom=true)
void ChgAnchor(RndStdIds eAnchorId, bool bSameOnly=false, bool bPosCorr=true)
frmatr.hxx.
bool GetObjAttr(SfxItemSet &rSet) const
Attention: Ambiguities if multiple selections.
bool IsGroupSelected(bool bAllowDiagams)
Create and destroy group, don't when frame is selected.
void SetDragMode(SdrDragMode eSdrDragMode)
Set DragMode (e.g. Rotate), but do nothing when frame is selected.
SdrLayerID GetLayerId() const
1 Heaven, 0 Hell, SDRLAYER_NOTFOUND Ambiguous.
SwRect GetObjRect() const
For adjustment of PosAttr when anchor changes.
bool IsUnGroupAllowed() const
size_t IsObjSelected() const
void CalcBoundRect(SwRect &_orRect, const RndStdIds _nAnchorId, const sal_Int16 _eHoriRelOrient=css::text::RelOrientation::FRAME, const sal_Int16 _eVertRelOrient=css::text::RelOrientation::FRAME, const SwFormatAnchor *_pToCharContentPos=nullptr, const bool _bFollowTextFlow=false, bool _bMirror=false, Point *_opRef=nullptr, Size *_opPercent=nullptr, const SwFormatFrameSize *pFormatFrameSize=nullptr) const
i#17567 - adjustments to allow negative vertical positions for fly frames anchored to paragraph or to...
void UnGroupSelection()
The individual objects are selected, but it is possible that there are groups included.
bool IsAlignPossible() const
bool IsGroupAllowed() const
const SwFrameFormat * IsFlyInFly()
Is selected frame within another frame?
Of course Writer needs its own rectangles.
void Chg(const Point &rNP, const Size &rNS)
void Height(tools::Long nNew)
void Top(const tools::Long nTop)
void Right(const tools::Long nRight)
void Bottom(const tools::Long nBottom)
void Pos(const Point &rNew)
void SSize(const Size &rNew)
void Left(const tools::Long nLeft)
void Width(tools::Long nNew)
static bool hasTextFrame(const SdrObject *pObj)
Returns true if the SdrObject has a SwTextFrame otherwise false.
static void ClearSelection(const SwWrtShell &rSh, const SwFrameShell *pCreator=nullptr)
static void CreateSelection(SwWrtShell &rSh, const SwFrameShell *pCreator=nullptr)
SdrView * GetDrawViewWithValidMarkList()
const IDocumentDrawModelAccess & getIDocumentDrawModelAccess() const
Provides access to the document draw model interface.
SwDrawBase * GetDrawFuncPtr() const
void SetDrawFuncPtr(std::unique_ptr< SwDrawBase > pFuncPtr)
SwDocShell * GetDocShell()
Used by the UI to modify the document model.
bool IsSelFrameMode() const
void NoEdit(bool bHideCursor=true)
const SwView & GetView() const
virtual VclPtr< AbstractDiagramDialog > CreateDiagramDialog(weld::Window *pParent, SdrObjGroup &rDiagram)=0
static VclAbstractDialogFactory * Create()
void reset(reference_type *pBody)
css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard()
static void CopyStringTo(const OUString &rContent, const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rxClipboard, const vcl::ILibreOfficeKitNotifier *pNotifier=nullptr)
#define FN_TITLE_DESCRIPTION_SHAPE
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
SFX_IMPL_SUPERCLASS_INTERFACE(DrawDocShell, SfxObjectShell)
IMPL_LINK(SwDrawBaseShell, CheckGroupShapeNameHdl, AbstractSvxObjectNameDialog &, rNameDialog, bool)
@ Parent
Check only parents.
constexpr sal_uInt16 RES_FRMATR_BEGIN(RES_PARATR_LIST_END)
constexpr TypedWhichId< SwFormatHoriOrient > RES_HORI_ORIENT(109)
constexpr TypedWhichId< SwFormatVertOrient > RES_VERT_ORIENT(108)
constexpr sal_uInt16 RES_FRMATR_END(141)
constexpr TypedWhichId< SwFormatWrapInfluenceOnObjPos > RES_WRAP_INFLUENCE_ON_OBJPOS(132)
constexpr TypedWhichId< SwFormatAnchor > RES_ANCHOR(110)
constexpr TypedWhichId< SwFormatSurround > RES_SURROUND(107)
constexpr TypedWhichId< SwFormatFollowTextFlow > RES_FOLLOW_TEXT_FLOW(130)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(97)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
#define LINK(Instance, Class, Member)
if(aStr !=aBuf) UpdateName_Impl(m_xFollowLb.get()
UNDERLYING_TYPE get() const
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
void LoadURL(SwViewShell &rVSh, const OUString &rURL, LoadUrlFlags nFilter, const OUString &rTargetFrameName)