25#include <osl/diagnose.h>
46 const sal_uInt16 nSlot = rReq.
GetSlot();
79 const OUString& rTableRowText
80 =
static_cast<const SwTextNode*
>(pTableRowNode)->GetText();
88 bool bMatchingMarkFound =
false;
90 std::vector<SwFormatField*> vFields;
92 for (
auto pFormatField : vFields)
94 if (
const SwField* pIteratedField =
nullptr;
95 pFormatField !=
nullptr
96 && (pIteratedField = pFormatField->GetField()) !=
nullptr
97 && (pIteratedField->GetTyp()->Which()
103 &pCurrentTOX->GetTOXForm());
105 if (sMarkText == rTableRowText)
110 bMatchingMarkFound =
true;
117 if (bMatchingMarkFound)
158 nRet = pMultDlg->Execute();
181 SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
192 bool bGlobal =
false;
210 pDlg->StartExecuteAsync([pDlg](sal_Int32 ){
219 OSL_ENSURE(pBase,
"no TOXBase to remove");
225 OSL_ENSURE(
false,
"wrong dispatcher");
241 if( bHtmlMode ||
nullptr != ( pBase = rSh.
GetCurTOX()) )
280 bool bEnableEdit =
true;
302 nullptr != pIdxMrk));
311 if( bInReadonly || !pField ||
virtual SwFieldType * GetFieldType(SwFieldIds nResId, const OUString &rName, bool bDbFieldMatching) const =0
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
SfxItemPool & GetPool() const
virtual void Invalidate(sal_uInt16 nId=0)
void ToggleChildWindow(sal_uInt16)
SfxChildWindow * GetChildWindow(sal_uInt16)
SfxViewFrame & GetViewFrame() const
virtual VclPtr< AbstractMultiTOXTabDialog > CreateMultiTOXTabDialog(weld::Widget *pParent, const SfxItemSet &rSet, SwWrtShell &rShell, SwTOXBase *pCurTOX, bool bGlobal)=0
virtual VclPtr< VclAbstractDialog > CreateMultiTOXMarkDlg(weld::Window *pParent, SwTOXMgr &rTOXMgr)=0
virtual VclPtr< VclAbstractDialog > CreateSwAutoMarkDialog(weld::Window *pParent, SwWrtShell &rSh)=0
static SwAbstractDialogFactory * Create()
virtual VclPtr< VclAbstractDialog > CreateIndexMarkModalDlg(weld::Window *pParent, SwWrtShell &rSh, SwTOXMark *pCurTOXMark)=0
Represents an inserted bibliography entry, created using Insert -> Table of Contents and Index -> Bib...
SwWrtShell * GetShellPtr()
void GotoTOXMarkBase()
jump to index of TOXMark
SwShellCursor * GetCursor_()
SwCursor * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
bool CursorInsideInputField() const
SwField * GetCurField(const bool bIncludeInputFieldAtStart=false) const
bool HasReadonlySel(bool isReplace=false) const
IDocumentFieldsAccess const & getIDocumentFieldsAccess() const
const SwTOXBase * GetCurTOX() const
Get current listing before or at the Cursor.
bool DeleteTOX(const SwTOXBase &rTOXBase, bool bDelNodes)
void GetCurTOXMarks(SwTOXMarks &rMarks) const
Get all marks at current SPoint.
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...
Instances of SwFields and those derived from it occur 0 to n times.
void GatherFields(std::vector< SwFormatField * > &rvFormatFields, bool bCollectOnlyInDocNodes=true) const
Base class of all fields.
SwFieldType * GetTyp() const
Base class of the Writer document model elements.
SwSectionNode * FindSectionNode()
Search section node, in which it is.
const SwPosition * GetPoint() const
Of course Writer needs its own rectangles.
void Width(tools::Long nNew)
const SwSection & GetSection() const
SectionType GetType() const
const SfxItemSet * GetAttrSet() const
bool IsTOXBaseInReadonly() const
Built on top of SwWrtShell, provides functionality to insert, update or perform other actions on vari...
SwTOXMark * GetCurTOXMark()
sal_uInt16 GetTOXMarkCount() const
SwTextNode is a paragraph in the document model.
void GetIdxState(SfxItemSet &)
void ExecIdx(SfxRequest const &)
bool IsViewLocked() const
SwRootFrame * GetLayout() const
Used by the UI to modify the document model.
void GotoFormatField(const SwFormatField &rField)
void UpdateTableOf(const SwTOXBase &rTOX, const SfxItemSet *pSet=nullptr)
#define FN_REMOVE_CUR_TOX
#define FN_EDIT_AUTH_ENTRY_DLG
#define FN_INSERT_IDX_ENTRY_DLG
#define FN_INSERT_AUTH_ENTRY_DLG
#define FN_EDIT_IDX_ENTRY_DLG
#define FN_IDX_MARK_TO_IDX
#define FN_PARAM_TOX_TYPE
#define FN_INSERT_MULTI_TOX
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
@ Variable
Frame is variable in Var-direction.
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
constexpr TypedWhichId< SwFormatCol > RES_COL(115)
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(111)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(97)
void Assign(const SwNode &rNd, SwNodeOffset nDelta, sal_Int32 nContentOffset=0)
These all set both nNode and nContent.
std::vector< SwTOXMark * > SwTOXMarks
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
constexpr sal_uInt16 XATTR_FILL_FIRST(XATTRSET_LINE+1)
constexpr sal_uInt16 XATTR_FILL_LAST(XATTR_FILLUSESLIDEBACKGROUND)