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())
387 GetView().GetEditWin().IsObjectSelect() )
391 if (
GetView().GetDrawFuncPtr())
423 case SID_ENTER_GROUP:
431 case SID_LEAVE_GROUP:
440 case SID_REGENERATE_DIAGRAM:
441 case SID_EDIT_DIAGRAM:
452 if(SID_REGENERATE_DIAGRAM == nSlotId)
471 case SID_OBJECT_ALIGN_LEFT:
472 case SID_OBJECT_ALIGN_CENTER:
473 case SID_OBJECT_ALIGN_RIGHT:
474 case SID_OBJECT_ALIGN_UP:
475 case SID_OBJECT_ALIGN_MIDDLE:
476 case SID_OBJECT_ALIGN_DOWN:
478 if ( bAlignPossible )
484 sal_Int16 nHorizOrient = -1, nVertOrient = -1;
488 case SID_OBJECT_ALIGN_LEFT:
489 nHorizOrient = text::HoriOrientation::LEFT;
491 case SID_OBJECT_ALIGN_CENTER:
492 nHorizOrient = text::HoriOrientation::CENTER;
494 case SID_OBJECT_ALIGN_RIGHT:
495 nHorizOrient = text::HoriOrientation::RIGHT;
497 case SID_OBJECT_ALIGN_UP:
498 nVertOrient = text::VertOrientation::TOP;
500 case SID_OBJECT_ALIGN_MIDDLE:
501 nVertOrient = text::VertOrientation::CENTER;
503 case SID_OBJECT_ALIGN_DOWN:
504 nVertOrient = text::VertOrientation::BOTTOM;
510 if (nHorizOrient != -1)
521 if (nVertOrient != -1)
538 case SID_OBJECT_ALIGN_LEFT:
541 case SID_OBJECT_ALIGN_CENTER:
544 case SID_OBJECT_ALIGN_RIGHT:
547 case SID_OBJECT_ALIGN_UP:
550 case SID_OBJECT_ALIGN_MIDDLE:
553 case SID_OBJECT_ALIGN_DOWN:
565 case SID_FRAME_TO_TOP:
570 bBottomParam =
false;
572 case SID_FRAME_TO_BOTTOM:
584 OSL_ENSURE(pSelected,
"DrawViewShell::FuTemp03: nMarkCount, but no object (!)");
592 if(
RET_OK == pDlg->Execute())
594 pDlg->GetName(
aName);
611 OSL_ENSURE(pSelected,
"DrawViewShell::FuTemp03: nMarkCount, but no object (!)");
612 OUString aTitle(pSelected->
GetTitle());
617 aTitle, aDescription));
619 if(
RET_OK == pDlg->Execute())
621 pDlg->GetTitle(aTitle);
622 pDlg->GetDescription(aDescription);
634 case SID_OPEN_HYPERLINK:
643 case SID_EDIT_HYPERLINK:
644 case SID_HYPERLINK_DIALOG:
650 case SID_HYPERLINK_SETLINK:
662 case SID_REMOVE_HYPERLINK:
670 case SID_COPY_HYPERLINK_LOCATION:
674 uno::Reference<datatransfer::clipboard::XClipboard> xClipboard
681 OSL_ENSURE(
false,
"wrong Dispatcher");
686 if(nSlotId >= SID_OBJECT_ALIGN_LEFT && nSlotId <= SID_OBJECT_ALIGN_DOWN)
702 OSL_ENSURE(rMarkList.
GetMarkCount() == 1,
"wrong draw selection");
704 const OUString sCurrentName = pObj->
GetName();
706 rNameDialog.GetName(sNewName);
708 if (sNewName.isEmpty() || sCurrentName == sNewName)
718 if ( pObj != pTempObj && pTempObj->
GetName() == sNewName )
744 case SID_ATTR_TRANSFORM:
745 case SID_FRAME_TO_TOP:
746 case SID_FRAME_TO_BOTTOM:
762 case SID_ENTER_GROUP:
766 case SID_LEAVE_GROUP:
770 case SID_OBJECT_ALIGN_LEFT:
771 case SID_OBJECT_ALIGN_CENTER:
772 case SID_OBJECT_ALIGN_RIGHT:
773 case SID_OBJECT_ALIGN_UP:
774 case SID_OBJECT_ALIGN_MIDDLE:
775 case SID_OBJECT_ALIGN_DOWN:
776 case SID_OBJECT_ALIGN:
778 bool bDisableThis =
false;
779 bool bDisableHoriz =
false;
780 bool bHoriz = (nWhich == SID_OBJECT_ALIGN_LEFT || nWhich == SID_OBJECT_ALIGN_CENTER ||
781 nWhich == SID_OBJECT_ALIGN_RIGHT);
782 bool bVert = (nWhich == SID_OBJECT_ALIGN_UP || nWhich == SID_OBJECT_ALIGN_MIDDLE ||
783 nWhich == SID_OBJECT_ALIGN_DOWN);
790 else if ( rSh.
GetAnchorId() == RndStdIds::FLY_AS_CHAR )
796 bDisableHoriz =
true;
803 if (bHoriz && !bDisableThis && !bDisableHoriz &&
806 sal_Int16 nHoriOrient = -1;
809 case SID_OBJECT_ALIGN_LEFT:
810 nHoriOrient = text::HoriOrientation::LEFT;
812 case SID_OBJECT_ALIGN_CENTER:
813 nHoriOrient = text::HoriOrientation::CENTER;
815 case SID_OBJECT_ALIGN_RIGHT:
816 nHoriOrient = text::HoriOrientation::RIGHT;
828 if (bVert && !bDisableThis && rMarkList.
GetMarkCount() == 1)
830 sal_Int16 nVertOrient = -1;
833 case SID_OBJECT_ALIGN_UP:
834 nVertOrient = text::VertOrientation::TOP;
836 case SID_OBJECT_ALIGN_MIDDLE:
837 nVertOrient = text::VertOrientation::CENTER;
839 case SID_OBJECT_ALIGN_DOWN:
840 nVertOrient = text::VertOrientation::BOTTOM;
875 case SID_OPEN_HYPERLINK:
876 case SID_EDIT_HYPERLINK:
877 case SID_HYPERLINK_DIALOG:
878 case SID_REMOVE_HYPERLINK:
879 case SID_COPY_HYPERLINK_LOCATION:
894 case SdrObjKind::PathFill:
895 case SdrObjKind::CircleSection:
896 case SdrObjKind::Line:
897 case SdrObjKind::CustomShape:
898 case SdrObjKind::Text:
899 case SdrObjKind::Rectangle:
900 case SdrObjKind::Caption:
901 case SdrObjKind::Polygon:
902 case SdrObjKind::PolyLine:
903 case SdrObjKind::E3D_Scene:
904 case SdrObjKind::Measure:
905 case SdrObjKind::Edge:
912 if (nWhich == SID_OPEN_HYPERLINK || nWhich == SID_REMOVE_HYPERLINK
913 || nWhich == SID_EDIT_HYPERLINK || nWhich == SID_COPY_HYPERLINK_LOCATION)
921 case SID_HYPERLINK_GETLINK:
924 if (rMarkList.
GetMark(0) !=
nullptr)
929 aHLinkItem.
SetURL(sHyperLink);
935 case SID_REGENERATE_DIAGRAM:
936 case SID_EDIT_DIAGRAM:
940 if (
nullptr != rMarkList.
GetMark(0))
968 if( rMarkList.
GetMark(0) !=
nullptr )
1004 bool bShowArea =
true, bShowMeasure =
true;
1006 for (
size_t i = 0;
i < nMarkCount &&
i < 50; ++
i)
1011 if ( nObjType != SdrObjKind::Measure )
1012 bShowMeasure =
false;
1015 if ( nObjType == SdrObjKind::PolyLine ||
1016 nObjType == SdrObjKind::Line ||
1017 nObjType == SdrObjKind::PathLine ||
1018 nObjType == SdrObjKind::FreehandLine ||
1019 nObjType == SdrObjKind::Edge ||
1020 nObjType == SdrObjKind::CircleArc ||
1024 if (!bShowArea && !bShowMeasure)
1043 rValidation.nMinHeight =
MINFLY;
1044 rValidation.nMinWidth =
MINFLY;
1050 const RndStdIds eAnchorType = rValidation.nAnchorType;
1062 rValidation.nHRelOrient,
1063 rValidation.nVRelOrient,
1065 rValidation.bFollowTextFlow,
1066 rValidation.bMirror,
nullptr, &rValidation.aPercentSize);
1068 bool bIsInVertical(
false );
1078 aPos.setX( aPos.Y() );
1081 nTmp = aSize.
Width();
1084 aBoundRect.
Chg( aPos, aSize );
1086 nTmp = rValidation.nWidth;
1087 rValidation.nWidth = rValidation.nHeight;
1088 rValidation.nHeight = nTmp;
1090 if ((eAnchorType == RndStdIds::FLY_AT_PAGE) || (eAnchorType == RndStdIds::FLY_AT_FLY))
1093 rValidation.nMinHPos = aBoundRect.
Left();
1094 rValidation.nMinVPos = aBoundRect.
Top();
1095 SwTwips nH = rValidation.nHPos;
1096 SwTwips nV = rValidation.nVPos;
1098 if (rValidation.nHPos + rValidation.nWidth > aBoundRect.
Right())
1102 rValidation.nHPos -= ((rValidation.nHPos + rValidation.nWidth) - aBoundRect.
Right());
1103 nH = rValidation.nHPos;
1106 rValidation.nWidth = aBoundRect.
Right() - rValidation.nHPos;
1109 if (rValidation.nHPos + rValidation.nWidth > aBoundRect.
Right())
1110 rValidation.nWidth = aBoundRect.
Right() - rValidation.nHPos;
1112 if (rValidation.nVPos + rValidation.nHeight > aBoundRect.
Bottom())
1116 rValidation.nVPos -= ((rValidation.nVPos + rValidation.nHeight) - aBoundRect.
Bottom());
1117 nV = rValidation.nVPos;
1120 rValidation.nHeight = aBoundRect.
Bottom() - rValidation.nVPos;
1123 if (rValidation.nVPos + rValidation.nHeight > aBoundRect.
Bottom())
1124 rValidation.nHeight = aBoundRect.
Bottom() - rValidation.nVPos;
1127 nV = aBoundRect.
Top();
1130 nH = aBoundRect.
Left();
1132 rValidation.nMaxHPos = aBoundRect.
Right() - rValidation.nWidth;
1133 rValidation.nMaxHeight = aBoundRect.
Bottom() - nV;
1135 rValidation.nMaxVPos = aBoundRect.
Bottom() - rValidation.nHeight;
1136 rValidation.nMaxWidth = aBoundRect.
Right() - nH;
1138 else if ((eAnchorType == RndStdIds::FLY_AT_PARA) || (eAnchorType == RndStdIds::FLY_AT_CHAR))
1140 if (rValidation.nHPos + rValidation.nWidth > aBoundRect.
Right())
1144 rValidation.nHPos -= ((rValidation.nHPos + rValidation.nWidth) - aBoundRect.
Right());
1147 rValidation.nWidth = aBoundRect.
Right() - rValidation.nHPos;
1152 const bool bMaxVPosAtBottom = !rValidation.bFollowTextFlow ||
1153 rValidation.nVRelOrient == text::RelOrientation::PAGE_FRAME ||
1154 rValidation.nVRelOrient == text::RelOrientation::PAGE_PRINT_AREA ||
1155 rValidation.nVRelOrient == text::RelOrientation::PAGE_PRINT_AREA_BOTTOM;
1157 SwTwips nTmpMaxVPos = ( bMaxVPosAtBottom
1159 : aBoundRect.
Height() ) -
1160 rValidation.nHeight;
1161 if ( rValidation.nVPos > nTmpMaxVPos )
1165 rValidation.nVPos = nTmpMaxVPos;
1169 rValidation.nHeight = ( bMaxVPosAtBottom
1171 : aBoundRect.
Height() ) - rValidation.nVPos;
1176 rValidation.nMinHPos = aBoundRect.
Left();
1177 rValidation.nMaxHPos = aBoundRect.
Right() - rValidation.nWidth;
1179 rValidation.nMinVPos = aBoundRect.
Top();
1181 if ( bMaxVPosAtBottom )
1183 rValidation.nMaxVPos = aBoundRect.
Bottom() - rValidation.nHeight;
1187 rValidation.nMaxVPos = aBoundRect.
Height() - rValidation.nHeight;
1193 : rValidation.nHPos;
1196 : rValidation.nVPos;
1197 rValidation.nMaxHeight = rValidation.nMaxVPos + rValidation.nHeight - nV;
1198 rValidation.nMaxWidth = rValidation.nMaxHPos + rValidation.nWidth - nH;
1200 else if (eAnchorType == RndStdIds::FLY_AS_CHAR)
1202 rValidation.nMinHPos = 0;
1203 rValidation.nMaxHPos = 0;
1205 rValidation.nMaxHeight = aBoundRect.
Height();
1206 rValidation.nMaxWidth = aBoundRect.
Width();
1208 rValidation.nMaxVPos = aBoundRect.
Height();
1209 rValidation.nMinVPos = -aBoundRect.
Height() + rValidation.nHeight;
1210 if (rValidation.nMaxVPos < rValidation.nMinVPos)
1212 rValidation.nMinVPos = rValidation.nMaxVPos;
1213 rValidation.nMaxVPos = -aBoundRect.
Height();
1220 rValidation.nWidth = rValidation.nHeight;
1221 rValidation.nHeight = nTmp;
1224 if (rValidation.nMaxWidth < rValidation.nWidth)
1225 rValidation.nWidth = rValidation.nMaxWidth;
1226 if (rValidation.nMaxHeight < rValidation.nHeight)
1227 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
OUString GetTitle() const
void SetTitle(const OUString &rStr)
virtual const std::shared_ptr< svx::diagram::IDiagramHelper > & getDiagramHelper() const
void SetDescription(const OUString &rStr)
OUString GetDescription() const
const OUString & GetName() const
virtual SdrObjKind GetObjIdentifier() const
void SetName(const OUString &rStr, const bool bSetChanged=true)
void setHyperlink(const OUString &sHyperlink)
bool IsGroupEntered() const
SdrModel * GetModel() const
SdrPageView * GetSdrPageView() 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.
bool IsUnGroupAllowed() const
size_t IsObjSelected() const
void UnGroupSelection()
The individual objects are selected, but it is possible that there are groups included.
bool IsAlignPossible() 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 SwPosition *_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...
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 sal_uInt16 RES_FRMATR_END(133)
constexpr TypedWhichId< SwFormatFollowTextFlow > RES_FOLLOW_TEXT_FLOW(123)
constexpr TypedWhichId< SwFormatSurround > RES_SURROUND(101)
constexpr TypedWhichId< SwFormatWrapInfluenceOnObjPos > RES_WRAP_INFLUENCE_ON_OBJPOS(125)
constexpr TypedWhichId< SwFormatHoriOrient > RES_HORI_ORIENT(103)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(92)
constexpr TypedWhichId< SwFormatAnchor > RES_ANCHOR(104)
constexpr TypedWhichId< SwFormatVertOrient > RES_VERT_ORIENT(102)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(91)
#define LINK(Instance, Class, Member)
if(aStr !=aBuf) UpdateName_Impl(m_xFollowLb.get()
Marks a position in the document model.
UNDERLYING_TYPE get() const
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
void LoadURL(SwViewShell &rVSh, const OUString &rURL, LoadUrlFlags nFilter, const OUString &rTargetFrameName)