20 #include <config_features.h>
44 #include <drawdoc.hxx>
62 #include <strings.hrc>
71 #define ShellClass_SwFrameShell
73 #include <swslots.hxx>
78 using ::editeng::SvxBorderLine;
87 for(
size_t i = 0;
i < nCount; ++
i )
100 GetStaticInterface()->RegisterPopupMenu(
"frame");
102 GetStaticInterface()->RegisterObjectBar(
SFX_OBJECTBAR_OBJECT, SfxVisibilityFlags::Invisible, ToolbarId::Frame_Toolbox);
108 sal_uInt16 nSlot = rReq.
GetSlot();
121 sal_uInt16 nSlot = rReq.
GetSlot();
138 sal_uInt16 nSlot = rReq.
GetSlot();
150 case SID_FRAME_TO_TOP:
154 case SID_FRAME_TO_BOTTOM:
172 SfxCallMode::SYNCHRON|SfxCallMode::RECORD,
179 sal_uInt16 nCols = 1;
180 if(pArgs->
GetItemState(SID_ATTR_COLUMNS,
false, &pItem) == SfxItemState::SET)
181 nCols = static_cast<const SfxUInt16Item *>(pItem)->GetValue();
191 aCol.Init(nCols, nGutterWidth, aCol.GetWishWidth());
210 case SID_HYPERLINK_SETLINK:
212 if(pArgs && SfxItemState::SET == pArgs->
GetItemState(SID_HYPERLINK_SETLINK,
false, &pItem))
215 const OUString& rURL = rHLinkItem.
GetURL();
222 OUString sOldName(rHLinkItem.
GetName().toAsciiUpperCase());
223 OUString sFlyName(rSh.
GetFlyName().toAsciiUpperCase());
224 if (sOldName != sFlyName)
226 OUString
sName(sOldName);
230 sName = sOldName +
"_" + OUString::number(i++);
234 aURL.SetURL( rURL,
false );
235 aURL.SetTargetFrameName(rTarget);
262 case SID_OPEN_XML_FILTERSETTINGS:
272 default: bMore =
true;
281 bool bUpdateMgr =
true;
282 bool bCopyToFormat =
false;
285 case SID_OBJECT_ALIGN_MIDDLE:
289 case SID_OBJECT_ALIGN_DOWN :
293 case SID_OBJECT_ALIGN_UP :
321 case SID_OBJECT_ALIGN_CENTER :
325 case SID_OBJECT_ALIGN_RIGHT:
329 case SID_OBJECT_ALIGN_LEFT:
336 aMgr.
SetAbsPos(static_cast<const SfxPointItem &>(pArgs->
Get
345 bCopyToFormat =
true;
349 case SID_ATTR_ULSPACE:
350 case SID_ATTR_LRSPACE:
355 bCopyToFormat =
true;
360 case SID_ATTR_TRANSFORM:
362 bool bApplyNewPos =
false;
363 bool bApplyNewSize =
false;
367 SfxItemState::SET == pArgs->
GetItemState(SID_ATTR_TRANSFORM_POS_X,
false, &pItem))
369 aNewPos.setX( static_cast<const SfxInt32Item*>(pItem)->
GetValue() );
373 SfxItemState::SET == pArgs->
GetItemState(SID_ATTR_TRANSFORM_POS_Y,
false, &pItem))
375 aNewPos.setY( static_cast<const SfxInt32Item*>(pItem)->
GetValue() );
381 SfxItemState::SET == pArgs->
GetItemState(SID_ATTR_TRANSFORM_WIDTH,
false, &pItem))
383 aNewSize.
setWidth( static_cast< const SfxUInt32Item* >(pItem)->
GetValue() );
384 bApplyNewSize =
true;
388 SfxItemState::SET == pArgs->
GetItemState(SID_ATTR_TRANSFORM_HEIGHT,
false, &pItem))
391 bApplyNewSize =
true;
394 if (pArgs && (pArgs->
HasItem(SID_ATTR_TRANSFORM_ANGLE) || pArgs->
HasItem(SID_ATTR_TRANSFORM_DELTA_ANGLE)))
401 if (pArgs && SfxItemState::SET == pArgs->
GetItemState(SID_ATTR_TRANSFORM_DELTA_ANGLE,
false, &pItem))
411 if (pArgs && SfxItemState::SET == pArgs->
GetItemState(SID_ATTR_TRANSFORM_ANGLE,
false, &pItem))
428 if (!bApplyNewPos && !bApplyNewSize)
453 SID_DOCFRAME, SID_DOCFRAME,
454 SID_ATTR_BRUSH, SID_ATTR_BRUSH,
455 SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
456 SID_ATTR_LRSPACE, SID_ATTR_ULSPACE,
457 SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
461 SID_COLOR_TABLE, SID_PATTERN_LIST,
462 SID_HTML_MODE, SID_HTML_MODE,
481 if( nSel & SelectionType::Ole )
490 aSet.Put(aFrameSize);
510 const uno::Reference < embed::XEmbeddedObject > xObj( rSh.
GetOleRef() );
515 sDefPage =
OUStringToOString(static_cast<const SfxStringItem *>(pItem)->GetValue(), RTL_TEXTENCODING_UTF8);
522 nSel & SelectionType::Graphic ? OUString(
"PictureDialog") :
523 nSel & SelectionType::Ole ? OUString(
"ObjectDialog"):
524 OUString(
"FrameDialog"),
533 pDlg->SetCurPageId(
"wrap");
536 if ( pDlg->Execute() )
538 const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
542 if(nSel & SelectionType::Ole &&
564 rSh.
SetFlyName(static_cast<const SfxStringItem*>(pItem)->GetValue());
570 aShellSet.Put(*pOutSet);
573 rSh.
SetFlyName(static_cast<const SfxStringItem*>(pItem)->GetValue());
579 if(SfxItemState::SET ==
593 if (pFlyFormat->
GetName() != sPrevName)
601 if (!sPrevName.isEmpty())
606 SAL_WARN_IF(!pPrevFormat,
"sw.ui",
"No frame found!");
609 rSh.
Chain(*pPrevFormat, *pCurrFlyFormat);
614 if(SfxItemState::SET ==
627 if (pFlyFormat->
GetName() != sNextName)
629 rSh.
Unchain(*const_cast<SwFlyFrameFormat*>(static_cast<const SwFlyFrameFormat*>( pCurrFlyFormat)));
635 if (!sNextName.isEmpty())
640 SAL_WARN_IF(!pNextFormat,
"sw.ui",
"No frame found!");
643 rSh.
Chain(*const_cast<SwFrameFormat*>(
644 pCurrFlyFormat), *pNextFormat);
660 aHori.SetPosToggle(bMirror);
664 bCopyToFormat =
true;
680 if ( pDlg->Execute() ==
RET_OK )
682 pDlg->GetName(
aName);
702 aTitle, aDescription ));
704 if ( pDlg->Execute() ==
RET_OK )
706 pDlg->GetDescription(aDescription);
707 pDlg->GetTitle(aTitle);
716 assert(!
"wrong dispatcher");
751 bProtect |= bParentCntProt;
770 case SID_ATTR_ULSPACE:
771 case SID_ATTR_LRSPACE:
782 case SID_OBJECT_ALIGN:
788 case SID_OBJECT_ALIGN_LEFT :
789 case SID_OBJECT_ALIGN_CENTER :
790 case SID_OBJECT_ALIGN_RIGHT :
803 sal_Int16 nHoriOrient = -1;
806 case SID_OBJECT_ALIGN_LEFT:
807 nHoriOrient = text::HoriOrientation::LEFT;
809 case SID_OBJECT_ALIGN_CENTER:
810 nHoriOrient = text::HoriOrientation::CENTER;
812 case SID_OBJECT_ALIGN_RIGHT:
813 nHoriOrient = text::HoriOrientation::RIGHT;
819 if (nHoriOrient != -1)
820 rSet.
Put(
SfxBoolItem(nWhich, nHoriOrient == aHOrient.GetHoriOrient()));
829 if ( !(eFrameType & FrameTypeFlags::FLY_INCNT) || bProtect
834 case SID_OBJECT_ALIGN_UP :
835 case SID_OBJECT_ALIGN_MIDDLE :
836 case SID_OBJECT_ALIGN_DOWN :
848 if (eFrameType & FrameTypeFlags::FLY_INCNT)
852 case SID_OBJECT_ALIGN_UP :
854 sNewLabel =
SwResId(STR_FRMUI_TOP_BASE);
856 case SID_OBJECT_ALIGN_MIDDLE :
858 sNewLabel =
SwResId(STR_FRMUI_CENTER_BASE);
860 case SID_OBJECT_ALIGN_DOWN :
863 sNewLabel =
SwResId(STR_FRMUI_BOTTOM_BASE);
872 nWhich != SID_OBJECT_ALIGN_UP )
874 if (aMgr.
GetAnchor() == RndStdIds::FLY_AT_FLY)
891 case SID_OBJECT_ALIGN_UP :
898 case SID_OBJECT_ALIGN_MIDDLE:
905 case SID_OBJECT_ALIGN_DOWN:
914 if ( !sNewLabel.isEmpty() )
918 case SID_HYPERLINK_GETLINK:
926 if(SfxItemState::SET == aURLSet.GetItemState(
RES_URL,
true, &pItem))
937 rSet.
Put(aHLinkItem);
978 case SID_FRAME_TO_TOP:
979 case SID_FRAME_TO_BOTTOM:
982 if ( bParentCntProt )
986 case SID_ATTR_TRANSFORM:
992 case SID_ATTR_TRANSFORM_PROTECT_SIZE:
1002 rSet.
Put(
SfxBoolItem( SID_ATTR_TRANSFORM_PROTECT_SIZE,
false ) );
1007 case SID_ATTR_TRANSFORM_WIDTH:
1013 case SID_ATTR_TRANSFORM_HEIGHT:
1051 if (eAnchorId != RndStdIds::FLY_AS_CHAR && eAnchorId != RndStdIds::FLY_AT_CHAR)
1088 bool bDefault =
false;
1102 if (pPoolBoxItem == &rBoxItem)
1105 std::unique_ptr<SvxBoxItem> aBoxItem(rBoxItem.
Clone());
1107 SvxBorderLine aBorderLine;
1114 case SID_ATTR_BORDER:
1118 std::unique_ptr<SvxBoxItem> aNewBox(static_cast<SvxBoxItem*>(pItem->
Clone()));
1119 const SvxBorderLine* pBorderLine;
1121 pBorderLine = aBoxItem->GetTop();
1122 if (pBorderLine !=
nullptr)
1124 pBorderLine = aBoxItem->GetBottom();
1125 if (pBorderLine !=
nullptr)
1127 pBorderLine = aBoxItem->GetLeft();
1128 if (pBorderLine !=
nullptr)
1130 pBorderLine = aBoxItem->GetRight();
1131 if (pBorderLine !=
nullptr)
1134 if(aBorderLine.GetOutWidth() == 0)
1136 aBorderLine.SetBorderLineStyle(
1137 SvxBorderLineStyle::SOLID);
1142 #if HAVE_FEATURE_SCRIPTING
1150 aBoxItem = std::move(aNewBox);
1152 if( aBoxItem->GetTop() != nullptr )
1153 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::TOP);
1154 if( aBoxItem->GetBottom() != nullptr )
1155 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::BOTTOM);
1156 if( aBoxItem->GetLeft() != nullptr )
1157 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::LEFT);
1158 if( aBoxItem->GetRight() != nullptr )
1159 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::RIGHT);
1164 case SID_FRAME_LINESTYLE:
1166 if (pArgs->
GetItemState(SID_FRAME_LINESTYLE,
false, &pItem) == SfxItemState::SET)
1173 aBorderLine = *(pLineItem->
GetLine());
1175 if (!aBoxItem->GetTop() && !aBoxItem->GetBottom() &&
1176 !aBoxItem->GetLeft() && !aBoxItem->GetRight())
1178 aBoxItem->
SetLine(&aBorderLine, SvxBoxItemLine::TOP);
1179 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::BOTTOM);
1180 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::LEFT);
1181 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::RIGHT);
1185 if( aBoxItem->GetTop() )
1187 aBorderLine.SetColor( aBoxItem->GetTop()->GetColor() );
1188 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::TOP);
1190 if( aBoxItem->GetBottom() )
1192 aBorderLine.SetColor( aBoxItem->GetBottom()->GetColor());
1193 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::BOTTOM);
1195 if( aBoxItem->GetLeft() )
1197 aBorderLine.SetColor( aBoxItem->GetLeft()->GetColor());
1198 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::LEFT);
1200 if( aBoxItem->GetRight() )
1202 aBorderLine.SetColor(aBoxItem->GetRight()->GetColor());
1203 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::RIGHT);
1209 aBoxItem->SetLine(
nullptr, SvxBoxItemLine::TOP);
1210 aBoxItem->SetLine(
nullptr, SvxBoxItemLine::BOTTOM);
1211 aBoxItem->SetLine(
nullptr, SvxBoxItemLine::LEFT);
1212 aBoxItem->SetLine(
nullptr, SvxBoxItemLine::RIGHT);
1218 case SID_FRAME_LINECOLOR:
1220 if (pArgs->
GetItemState(SID_FRAME_LINECOLOR,
false, &pItem) == SfxItemState::SET)
1224 if (!aBoxItem->GetTop() && !aBoxItem->GetBottom() &&
1225 !aBoxItem->GetLeft() && !aBoxItem->GetRight())
1227 aBorderLine.SetColor( rNewColor );
1228 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::TOP);
1229 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::BOTTOM);
1230 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::LEFT);
1231 aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::RIGHT);
1235 if ( aBoxItem->GetTop() )
1236 const_cast<SvxBorderLine*>(aBoxItem->GetTop())->SetColor( rNewColor );
1237 if ( aBoxItem->GetBottom() )
1238 const_cast<SvxBorderLine*>(aBoxItem->GetBottom())->SetColor( rNewColor );
1239 if ( aBoxItem->GetLeft() )
1240 const_cast<SvxBorderLine*>(aBoxItem->GetLeft())->SetColor( rNewColor );
1241 if ( aBoxItem->GetRight() )
1242 const_cast<SvxBorderLine*>(aBoxItem->GetRight())->SetColor( rNewColor );
1249 if (bDefault && (aBoxItem->GetTop() || aBoxItem->GetBottom() ||
1250 aBoxItem->GetLeft() || aBoxItem->GetRight()))
1254 aFrameSet.Put( *aBoxItem );
1268 if(pBorderLine->GetWidth() > rBorderLine.GetWidth())
1269 rBorderLine.SetWidth(pBorderLine->GetWidth());
1271 rBorderLine.SetBorderLineStyle(pBorderLine->GetBorderLineStyle());
1272 rBorderLine.SetColor(pBorderLine->GetColor());
1296 const SvxBorderLine* pLine = aFrameSet.Get(
RES_BOX).GetTop();
1310 else if (
GetShell().CursorInsideInputField() )
1362 case SID_ATTR_FILL_STYLE:
1363 case SID_ATTR_FILL_COLOR:
1364 case SID_ATTR_FILL_GRADIENT:
1365 case SID_ATTR_FILL_HATCH:
1366 case SID_ATTR_FILL_BITMAP:
1367 case SID_ATTR_FILL_TRANSPARENCE:
1368 case SID_ATTR_FILL_FLOATTRANSPARENCE:
1370 pDis->
Execute(SID_ATTRIBUTES_AREA);
1381 case SID_ATTRIBUTES_AREA:
1400 pDlg->StartExecuteAsync([pDlg,
this](sal_Int32 nResult){
1406 static sal_uInt16 aInval[] =
1408 SID_ATTR_FILL_STYLE,
1409 SID_ATTR_FILL_COLOR,
1410 SID_ATTR_FILL_TRANSPARENCE,
1411 SID_ATTR_FILL_FLOATTRANSPARENCE,
1418 rBnd.
Update(SID_ATTR_FILL_STYLE);
1419 rBnd.
Update(SID_ATTR_FILL_COLOR);
1420 rBnd.
Update(SID_ATTR_FILL_TRANSPARENCE);
1421 rBnd.
Update(SID_ATTR_FILL_FLOATTRANSPARENCE);
1423 pDlg->disposeOnce();
1441 case SID_ATTRIBUTES_AREA:
void SetURL(const OUString &rURL)
SfxViewFrame * GetViewFrame() const
constexpr TypedWhichId< SvxProtectItem > RES_PROTECT(100)
void SetFlyName(const OUString &rName)
Set name at selected FlyFrame.
constexpr TypedWhichId< SwFormatSurround > RES_SURROUND(101)
const SfxPoolItem * ExecuteList(sal_uInt16 nSlot, SfxCallMode nCall, std::initializer_list< SfxPoolItem const * > args, std::initializer_list< SfxPoolItem const * > internalargs=std::initializer_list< SfxPoolItem const * >())
static const SwFrameFormat * lcl_GetFrameFormatByName(SwWrtShell const &rSh, std::u16string_view rName)
const SwFormatFrameSize & GetFrameSize() const
virtual const SwFlyFrameFormat * GetFormat() const override
void DisableStateTextFrame(SfxItemSet &rSet)
Rect of current FlyFrame.
#define SFX_IMPL_INTERFACE(Class, SuperClass)
constexpr TypedWhichId< SvxPrintItem > RES_PRINT(98)
void SetHeight(tools::Long n)
#define FN_FRAME_TO_ANCHOR
SfxViewFrame * GetFrame() const
void setWidth(tools::Long nWidth)
void ExecFrameStyle(SfxRequest const &rReq)
#define FN_PARAM_CHAIN_PREVIOUS
constexpr TypedWhichId< SwFormatCol > RES_COL(109)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const =0
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
const OUString & GetTargetFrame() const
static void HandleOpenXmlFilterSettings(SfxRequest &)
const SwRect & GetAnyCurRect(CurRectType eType, const Point *pPt=nullptr, const css::uno::Reference< css::embed::XEmbeddedObject > &=css::uno::Reference< css::embed::XEmbeddedObject >()) const
SfxDispatcher * GetDispatcher()
static SvxAbstractDialogFactory * Create()
OUString GetLabelForCommand(const css::uno::Sequence< css::beans::PropertyValue > &rProperties)
#define FN_SET_FRM_ALT_NAME
constexpr sal_uInt16 RES_FRMATR_END(133)
void Done(bool bRemove=false)
constexpr TypedWhichId< SvxOpaqueItem > RES_OPAQUE(99)
const Size & GetUnrotatedSize() const
void SetLine(const editeng::SvxBorderLine *pNew)
Of course Writer needs its own rectangles.
const SfxItemSet * GetArgs() const
void Invalidate(sal_uInt16 nId)
SwFlyFrame * GetSelectedFlyFrame() const
#define FN_FORMAT_GRAFIC_DLG
RndStdIds GetAnchor() const
#define FN_FRAME_ALIGN_VERT_TOP
void InsertPostIt(SwFieldMgr &rFieldMgr, const SfxRequest &rReq)
Inserts a new annotation/comment at the current cursor position / selection.
SwWrtShell & GetWrtShell() const
const SwFrameFormat * GetFlyNum(size_t nIdx, FlyCntType eType, bool bIgnoreTextBoxes=false) const
IDocumentDrawModelAccess const & getIDocumentDrawModelAccess() const
void SetKeepRatio(bool b)
Used by the UI to modify the document model.
constexpr TypedWhichId< SwFormatVertOrient > RES_VERT_ORIENT(102)
void UpdateWordCount(SfxShell *, sal_uInt16)
void SetTargetFrame(const OUString &rTarget)
const SwView & GetView() const
void GetDrawAttrStateTextFrame(SfxItemSet &rSet)
const SwFrameFormat * IsFlyInFly()
Is selected frame within another frame?
PropertiesInfo aProperties
constexpr TypedWhichId< SwFormatHoriOrient > RES_HORI_ORIENT(103)
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
static void CreateSelection(SwWrtShell &rSh, const SwFrameShell *pCreator=nullptr)
Degree10 toDegree10(Degree100 x)
void StateInsert(SfxItemSet &rSet)
void Width(tools::Long nNew)
const SfxItemSet & GetAttrSet() const
void SetVertOrientation(sal_Int16 eOrient)
const SfxItemSet & GetDefaultAttr() const
const SfxPoolItem * GetDfltAttr(sal_uInt16 nWhich)
Get the default attribute from corresponding default attribute table.
constexpr tools::Long getHeight() const
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
const SwFlyFrameFormat * FindFlyByName(const OUString &rName) const
SwFrameShell(SwView &rView)
static sal_uInt16 IsMath(const SvGlobalName &rName)
css::uno::Reference< css::embed::XEmbeddedObject > GetOleRef() const
get reference to OLE object (if there is one) for selected FlyFrame
virtual VclPtr< SfxAbstractTabDialog > CreateFrameTabDialog(const OUString &rDialogType, SfxViewFrame *pFrame, weld::Window *pParent, const SfxItemSet &rCoreSet, bool bNewFrame=true, const OString &sDefPage=OString())=0
SfxItemPool & GetPool() const
#define FN_FRAME_ALIGN_VERT_CENTER
void ExecDrawAttrArgsTextFrame(SfxRequest const &rReq)
bool GetFlyFrameAttr(SfxItemSet &rSet) const
void SelectionToBottom(bool bBottom=true)
size_t GetFlyCount(FlyCntType eType, bool bIgnoreTextBoxes=false) const
Iterate over flys - for Basic-collections.
OUString GetObjTitle() const
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
SwDoc * GetDoc()
returns Doc. But be careful!
void SetObjDescription(const OUString &rDescription)
#define FN_UNO_DESCRIPTION
constexpr TypedWhichId< SwRotationGrf > RES_GRFATR_ROTATION(135)
const SfxItemPool & GetAttrPool() const
virtual ~SwFrameShell() override
#define FN_NUMBERING_OUTLINE_DLG
const OUString & GetURL() const
SwApplyTemplate * GetApplyTemplate() const
Rect of current PrtArea of page.
const SfxItemSet * GetParent() const
OUString GetModuleIdentifier(const Reference< frame::XFrame > &rxFrame)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
#define FN_KEEP_ASPECT_RATIO
void SetAbsPos(const Point &rLPoint)
size_t GetMarkedObjectCount() const
#define FN_FRAME_ALIGN_HORZ_LEFT
constexpr TypedWhichId< SwFormatURL > RES_URL(111)
#define FN_FRAME_ALIGN_VERT_CHAR_CENTER
SfxBindings & GetBindings()
bool SetFlyFrameAttr(SfxItemSet &rSet)
FrameTypeFlags
values can be combined via logical or
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
void SetAttrSet(const SfxItemSet &rSet)
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
constexpr sal_uInt16 XATTR_FILL_FIRST(XATTRSET_LINE+1)
#define FN_FRAME_ALIGN_VERT_CHAR_TOP
void ExecFormatFootnote()
FlyProtectFlags
values can be combined via logical or
#define FN_FRAME_ALIGN_HORZ_CENTER
#define FN_SET_FRM_POSITION
void ExecMove(SfxRequest &rReq)
static SwAbstractDialogFactory * Create()
static void lcl_FrameGetMaxLineWidth(const SvxBorderLine *pBorderLine, SvxBorderLine &rBorderLine)
virtual SvxBoxItem * Clone(SfxItemPool *pPool=nullptr) const override
#define FN_WORDCOUNT_DIALOG
OUString SwResId(const char *pId)
#define FN_MATH_BASELINE_ALIGNMENT
void SetName(const OUString &rName)
void GetState(SfxItemSet &)
void SetDefaultAttr(const SfxItemSet &rAttr, bool bReplaceAll)
void SelectionToTop(bool bTop=true)
Move selection upwards or downwards (Z-Order).
#define FN_FRAME_ALIGN_VERT_BOTTOM
void SetName(const OUString &rName)
void PutAreaListItems(SfxItemSet &rSet) const
Put needed items for XPropertyList entries from the DrawModel.
#define FN_FRAME_ALIGN_VERT_ROW_TOP
Frame cannot be moved in Var-direction.
FlyProtectFlags IsSelObjProtected(FlyProtectFlags eType) const
Which Protection is set at selected object?
SwDocShell * GetDocShell()
#define FN_GET_PRINT_AREA
#define SFX_OBJECTBAR_OBJECT
void SetWidth(tools::Long n)
#define FN_FRAME_ALIGN_VERT_ROW_BOTTOM
Degree10 GetValue() const
void Execute(SfxRequest &)
SwFrameFormat * GetSelectedFrameFormat() const
If frame then frame style, else 0.
void SetReturnValue(const SfxPoolItem &)
#define FN_PARAM_CHAIN_NEXT
void Update(sal_uInt16 nId)
Sequence< beans::PropertyValue > GetCommandProperties(const OUString &rsCommandName, const OUString &rsModuleName)
#define FN_FORMAT_FRAME_DLG
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
sal_uInt16 GetSlot() const
static const OUString & GetContextName(const Context eContext)
const editeng::SvxBorderLine * GetLine() const
void DisableItem(sal_uInt16 nWhich)
general base class for all free-flowing frames
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
#define SAL_WARN_IF(condition, area, stream)
void ExecNumberingOutline(SfxItemPool &)
const SwViewOption * GetViewOptions() const
void SetHorzOrientation(sal_Int16 eOrient)
static void ClearSelection(SwWrtShell &rSh, const SwFrameShell *pCreator=nullptr)
virtual VclPtr< AbstractSvxAreaTabDialog > CreateSvxAreaTabDialog(weld::Window *pParent, const SfxItemSet *pAttr, SdrModel *pModel, bool bShadow)=0
SdrView * GetDrawViewWithValidMarkList()
IDocumentSettingAccess const & getIDocumentSettingAccess() const
bool HasItem(sal_uInt16 nWhich, const SfxPoolItem **ppItem=nullptr) const
void SetSize(const Size &rLSize)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(91)
void AutoUpdateFrame(SwFrameFormat *pFormat, const SfxItemSet &rStyleSet)
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
bool GetCurAttr(SfxItemSet &, const bool bMergeIndentValuesOfNumRule=false) const
constexpr TypedWhichId< SvxBoxItem > RES_BOX(106)
void ExecDrawDlgTextFrame(SfxRequest const &rReq)
void SetInsertMode(SvxLinkInsertMode eNew)
#define FN_FORMAT_FOOTNOTE_DLG
void setHeight(tools::Long nHeight)
void GetLineStyleState(SfxItemSet &rSet)
void ExecField(const SfxRequest &rReq)
const OUString & GetName() const
SvxLinkInsertMode GetInsertMode() const
const SwFrameFormat * GetFlyFrameFormat() const
Get FlyFrameFormat; for UI macro linkage at Flys.
void Unchain(SwFrameFormat &rFormat)
const SfxItemPool & GetItemPool() const
constexpr sal_uInt16 XATTR_FILL_LAST(XATTR_FILLBACKGROUND)
constexpr tools::Long getWidth() const
void SetObjTitle(const OUString &rTitle)
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
void GotoFlyAnchor()
jump from the frame to the anchor
const Size & GetSize() const
#define FN_FRAME_ALIGN_VERT_CHAR_BOTTOM
#define FN_FRAME_ALIGN_VERT_ROW_CENTER
Frame is variable in Var-direction.
OUString GetObjDescription() const
SwChainRet Chain(SwFrameFormat &rSource, const Point &rPt)
SelectionType GetSelectionType() const
sal_uInt16 GetSmallestDistance() const
void StartAllAction()
For all views of this document.
#define FN_TITLE_DESCRIPTION_SHAPE
void Height(tools::Long nNew)
SdrModel * GetModel() const
#define FN_FRAME_ALIGN_HORZ_RIGHT
void SetContextName(const OUString &rsContextName)
constexpr sal_uInt16 RES_FRMATR_BEGIN(RES_PARATR_LIST_END)
OUString GetFlyName() const
FrameTypeFlags GetFrameType(const Point *pPt, bool bStopAtFly) const
For return values see above FrameType.
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(92)
bool IsFrameSelected() const
void SetChainMode(bool bOn)
void SetRotation(Degree10 nOld, Degree10 nNew, const Size &rUnrotatedSize)
const SwFormatHoriOrient & GetHoriOrient() const
constexpr TypedWhichId< SwFormatAnchor > RES_ANCHOR(104)
#define FN_FRAME_MIRROR_ON_EVEN_PAGES