diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2022-08-11 18:54:54 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2022-08-12 11:06:00 +0200 |
commit | 9cc6acce941ea9306f5c2aa81bb06ac28a7f7f45 (patch) | |
tree | aa520392f9bf4ad03dc2b9dd12a2a662a8fbde6d /sw/inc | |
parent | 44211d627f2e0652fb8ea0d071481f4cbf943be3 (diff) |
sw: select entry in Insert->Bookmarks dialog when called from Navigator
The context menu is called "Edit", so let's put dialog in edit mode.
Change-Id: Ib3a2b164e4d6a0b93e3a5aac26125a20d41a60dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138155
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/cmdid.h | 2 | ||||
-rw-r--r-- | sw/inc/swabstdlg.hxx | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sw/inc/cmdid.h b/sw/inc/cmdid.h index f456dc2b13ea..f183108c071e 100644 --- a/sw/inc/cmdid.h +++ b/sw/inc/cmdid.h @@ -313,6 +313,8 @@ class SwUINumRuleItem; #define FN_TABLE_PASTE_ROW_BEFORE (FN_INSERT2 + 31) /* paste table as new table rows */ #define FN_TABLE_PASTE_COL_BEFORE (FN_INSERT2 + 32) /* paste table as new table columns */ +#define FN_EDIT_BOOKMARK (FN_INSERT2 + 33 ) /* Bookmark */ + // Region: Format #define FN_AUTOFORMAT_APPLY (FN_FORMAT + 1 ) /* apply autoformat options */ #define FN_AUTOFORMAT_AUTO (FN_FORMAT + 2 ) /* apply autoformat during user input */ diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx index 1c0762f84432..5c5f2bc2cae7 100644 --- a/sw/inc/swabstdlg.hxx +++ b/sw/inc/swabstdlg.hxx @@ -399,7 +399,7 @@ public: virtual VclPtr<SfxAbstractDialog> CreateSwAddressAbstractDlg(weld::Window* pParent, const SfxItemSet& rSet) = 0; virtual VclPtr<AbstractSwAsciiFilterDlg> CreateSwAsciiFilterDlg(weld::Window* pParent, SwDocShell& rDocSh, SvStream* pStream) = 0; - virtual VclPtr<VclAbstractDialog> CreateSwInsertBookmarkDlg(weld::Window *pParent, SwWrtShell &rSh) = 0; + virtual VclPtr<VclAbstractDialog> CreateSwInsertBookmarkDlg(weld::Window *pParent, SwWrtShell &rSh, OUString const* pSelected) = 0; virtual VclPtr<VclAbstractDialog> CreateSwContentControlDlg(weld::Window *pParent, SwWrtShell &rSh) = 0; virtual VclPtr<AbstractSwContentControlListItemDlg> |