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());
621 aTitle, aDescription));
623 if(
RET_OK == pDlg->Execute())
625 pDlg->GetTitle(aTitle);
626 pDlg->GetDescription(aDescription);
638 case SID_OPEN_HYPERLINK:
647 case SID_EDIT_HYPERLINK:
648 case SID_HYPERLINK_DIALOG:
654 case SID_HYPERLINK_SETLINK:
666 case SID_REMOVE_HYPERLINK:
674 case SID_COPY_HYPERLINK_LOCATION:
678 uno::Reference<datatransfer::clipboard::XClipboard> xClipboard
685 OSL_ENSURE(
false,
"wrong Dispatcher");
690 if(nSlotId >= SID_OBJECT_ALIGN_LEFT && nSlotId <= SID_OBJECT_ALIGN_DOWN)
706 OSL_ENSURE(rMarkList.
GetMarkCount() == 1,
"wrong draw selection");
708 const OUString sCurrentName = pObj->
GetName();
710 rNameDialog.GetName(sNewName);
712 if (sNewName.isEmpty() || sCurrentName == sNewName)
722 if ( pObj != pTempObj && pTempObj->
GetName() == sNewName )
748 case SID_ATTR_TRANSFORM:
749 case SID_FRAME_TO_TOP:
750 case SID_FRAME_TO_BOTTOM:
766 case SID_ENTER_GROUP:
770 case SID_LEAVE_GROUP:
774 case SID_OBJECT_ALIGN_LEFT:
775 case SID_OBJECT_ALIGN_CENTER:
776 case SID_OBJECT_ALIGN_RIGHT:
777 case SID_OBJECT_ALIGN_UP:
778 case SID_OBJECT_ALIGN_MIDDLE:
779 case SID_OBJECT_ALIGN_DOWN:
780 case SID_OBJECT_ALIGN:
782 bool bDisableThis =
false;
783 bool bDisableHoriz =
false;
784 bool bHoriz = (nWhich == SID_OBJECT_ALIGN_LEFT || nWhich == SID_OBJECT_ALIGN_CENTER ||
785 nWhich == SID_OBJECT_ALIGN_RIGHT);
786 bool bVert = (nWhich == SID_OBJECT_ALIGN_UP || nWhich == SID_OBJECT_ALIGN_MIDDLE ||
787 nWhich == SID_OBJECT_ALIGN_DOWN);
794 else if ( rSh.
GetAnchorId() == RndStdIds::FLY_AS_CHAR )
800 bDisableHoriz =
true;
807 if (bHoriz && !bDisableThis && !bDisableHoriz &&
810 sal_Int16 nHoriOrient = -1;
813 case SID_OBJECT_ALIGN_LEFT:
814 nHoriOrient = text::HoriOrientation::LEFT;
816 case SID_OBJECT_ALIGN_CENTER:
817 nHoriOrient = text::HoriOrientation::CENTER;
819 case SID_OBJECT_ALIGN_RIGHT:
820 nHoriOrient = text::HoriOrientation::RIGHT;
832 if (bVert && !bDisableThis && rMarkList.
GetMarkCount() == 1)
834 sal_Int16 nVertOrient = -1;
837 case SID_OBJECT_ALIGN_UP:
838 nVertOrient = text::VertOrientation::TOP;
840 case SID_OBJECT_ALIGN_MIDDLE:
841 nVertOrient = text::VertOrientation::CENTER;
843 case SID_OBJECT_ALIGN_DOWN:
844 nVertOrient = text::VertOrientation::BOTTOM;
879 case SID_OPEN_HYPERLINK:
880 case SID_EDIT_HYPERLINK:
881 case SID_HYPERLINK_DIALOG:
882 case SID_REMOVE_HYPERLINK:
883 case SID_COPY_HYPERLINK_LOCATION:
898 case SdrObjKind::PathFill:
899 case SdrObjKind::CircleSection:
900 case SdrObjKind::Line:
901 case SdrObjKind::CustomShape:
902 case SdrObjKind::Text:
903 case SdrObjKind::Rectangle:
904 case SdrObjKind::Caption:
905 case SdrObjKind::Polygon:
906 case SdrObjKind::PolyLine:
907 case SdrObjKind::E3D_Scene:
908 case SdrObjKind::Measure:
909 case SdrObjKind::Edge:
916 if (nWhich == SID_OPEN_HYPERLINK || nWhich == SID_REMOVE_HYPERLINK
917 || nWhich == SID_EDIT_HYPERLINK || nWhich == SID_COPY_HYPERLINK_LOCATION)
925 case SID_HYPERLINK_GETLINK:
928 if (rMarkList.
GetMark(0) !=
nullptr)
933 aHLinkItem.
SetURL(sHyperLink);
939 case SID_REGENERATE_DIAGRAM:
940 case SID_EDIT_DIAGRAM:
944 if (
nullptr != rMarkList.
GetMark(0))
972 if( rMarkList.
GetMark(0) !=
nullptr )
1008 bool bShowArea =
true, bShowMeasure =
true;
1010 for (
size_t i = 0;
i < nMarkCount &&
i < 50; ++
i)
1015 if ( nObjType != SdrObjKind::Measure )
1016 bShowMeasure =
false;
1019 if ( nObjType == SdrObjKind::PolyLine ||
1020 nObjType == SdrObjKind::Line ||
1021 nObjType == SdrObjKind::PathLine ||
1022 nObjType == SdrObjKind::FreehandLine ||
1023 nObjType == SdrObjKind::Edge ||
1024 nObjType == SdrObjKind::CircleArc ||
1028 if (!bShowArea && !bShowMeasure)
1047 rValidation.nMinHeight =
MINFLY;
1048 rValidation.nMinWidth =
MINFLY;
1054 const RndStdIds eAnchorType = rValidation.nAnchorType;
1066 rValidation.nHRelOrient,
1067 rValidation.nVRelOrient,
1069 rValidation.bFollowTextFlow,
1070 rValidation.bMirror,
nullptr, &rValidation.aPercentSize);
1072 bool bIsInVertical(
false );
1082 aPos.setX( aPos.Y() );
1085 nTmp = aSize.
Width();
1088 aBoundRect.
Chg( aPos, aSize );
1090 nTmp = rValidation.nWidth;
1091 rValidation.nWidth = rValidation.nHeight;
1092 rValidation.nHeight = nTmp;
1094 if ((eAnchorType == RndStdIds::FLY_AT_PAGE) || (eAnchorType == RndStdIds::FLY_AT_FLY))
1097 rValidation.nMinHPos = aBoundRect.
Left();
1098 rValidation.nMinVPos = aBoundRect.
Top();
1099 SwTwips nH = rValidation.nHPos;
1100 SwTwips nV = rValidation.nVPos;
1102 if (rValidation.nHPos + rValidation.nWidth > aBoundRect.
Right())
1106 rValidation.nHPos -= ((rValidation.nHPos + rValidation.nWidth) - aBoundRect.
Right());
1107 nH = rValidation.nHPos;
1110 rValidation.nWidth = aBoundRect.
Right() - rValidation.nHPos;
1113 if (rValidation.nHPos + rValidation.nWidth > aBoundRect.
Right())
1114 rValidation.nWidth = aBoundRect.
Right() - rValidation.nHPos;
1116 if (rValidation.nVPos + rValidation.nHeight > aBoundRect.
Bottom())
1120 rValidation.nVPos -= ((rValidation.nVPos + rValidation.nHeight) - aBoundRect.
Bottom());
1121 nV = rValidation.nVPos;
1124 rValidation.nHeight = aBoundRect.
Bottom() - rValidation.nVPos;
1127 if (rValidation.nVPos + rValidation.nHeight > aBoundRect.
Bottom())
1128 rValidation.nHeight = aBoundRect.
Bottom() - rValidation.nVPos;
1131 nV = aBoundRect.
Top();
1134 nH = aBoundRect.
Left();
1136 rValidation.nMaxHPos = aBoundRect.
Right() - rValidation.nWidth;
1137 rValidation.nMaxHeight = aBoundRect.
Bottom() - nV;
1139 rValidation.nMaxVPos = aBoundRect.
Bottom() - rValidation.nHeight;
1140 rValidation.nMaxWidth = aBoundRect.
Right() - nH;
1142 else if ((eAnchorType == RndStdIds::FLY_AT_PARA) || (eAnchorType == RndStdIds::FLY_AT_CHAR))
1144 if (rValidation.nHPos + rValidation.nWidth > aBoundRect.
Right())
1148 rValidation.nHPos -= ((rValidation.nHPos + rValidation.nWidth) - aBoundRect.
Right());
1151 rValidation.nWidth = aBoundRect.
Right() - rValidation.nHPos;
1156 const bool bMaxVPosAtBottom = !rValidation.bFollowTextFlow ||
1157 rValidation.nVRelOrient == text::RelOrientation::PAGE_FRAME ||
1158 rValidation.nVRelOrient == text::RelOrientation::PAGE_PRINT_AREA ||
1159 rValidation.nVRelOrient == text::RelOrientation::PAGE_PRINT_AREA_BOTTOM;
1161 SwTwips nTmpMaxVPos = ( bMaxVPosAtBottom
1163 : aBoundRect.
Height() ) -
1164 rValidation.nHeight;
1165 if ( rValidation.nVPos > nTmpMaxVPos )
1169 rValidation.nVPos = nTmpMaxVPos;
1173 rValidation.nHeight = ( bMaxVPosAtBottom
1175 : aBoundRect.
Height() ) - rValidation.nVPos;
1180 rValidation.nMinHPos = aBoundRect.
Left();
1181 rValidation.nMaxHPos = aBoundRect.
Right() - rValidation.nWidth;
1183 rValidation.nMinVPos = aBoundRect.
Top();
1185 if ( bMaxVPosAtBottom )
1187 rValidation.nMaxVPos = aBoundRect.
Bottom() - rValidation.nHeight;
1191 rValidation.nMaxVPos = aBoundRect.
Height() - rValidation.nHeight;
1197 : rValidation.nHPos;
1200 : rValidation.nVPos;
1201 rValidation.nMaxHeight = rValidation.nMaxVPos + rValidation.nHeight - nV;
1202 rValidation.nMaxWidth = rValidation.nMaxHPos + rValidation.nWidth - nH;
1204 else if (eAnchorType == RndStdIds::FLY_AS_CHAR)
1206 rValidation.nMinHPos = 0;
1207 rValidation.nMaxHPos = 0;
1209 rValidation.nMaxHeight = aBoundRect.
Height();
1210 rValidation.nMaxWidth = aBoundRect.
Width();
1212 rValidation.nMaxVPos = aBoundRect.
Height();
1213 rValidation.nMinVPos = -aBoundRect.
Height() + rValidation.nHeight;
1214 if (rValidation.nMaxVPos < rValidation.nMinVPos)
1216 rValidation.nMinVPos = rValidation.nMaxVPos;
1217 rValidation.nMaxVPos = -aBoundRect.
Height();
1224 rValidation.nWidth = rValidation.nHeight;
1225 rValidation.nHeight = nTmp;
1228 if (rValidation.nMaxWidth < rValidation.nWidth)
1229 rValidation.nWidth = rValidation.nMaxWidth;
1230 if (rValidation.nMaxHeight < rValidation.nHeight)
1231 rValidation.nHeight = rValidation.nMaxHeight;
sal_Int32 GetValue() const
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
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 SetName(const OUString &rStr, const bool bSetChanged=true)
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< AbstractSvxTransformTabDialog > CreateSvxTransformTabDialog(weld::Window *pParent, const SfxItemSet *pAttr, const SdrView *pView, SvxAnchorIds nAnchorTypes=SvxAnchorIds::NONE)=0
virtual VclPtr< AbstractSvxObjectTitleDescDialog > CreateSvxObjectTitleDescDialog(weld::Window *pParent, const OUString &rTitle, const OUString &rDescription)=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)