From 75f7e057039aaa49558e22d18cad651d11589da9 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 13 May 2022 13:35:23 +0200 Subject: sw content controls, dropdown: add an initial properties dialog - read the doc model: show if a content control is a placeholder or not - work with a shared pointer in the dialog, which avoids lifetime issues in case the content control we edit in one view gets deleted in an other view - write the doc model: set the placeholder mode of the content control based on the checkbox state and mark the doc as modified if any widget is touched when pressing OK - handle command state: allow this dialog only inside content controls Change-Id: Ie0b9075ccd3450dd403cc7f8bbf93fc04de3b234 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134278 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- sw/inc/swabstdlg.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sw/inc/swabstdlg.hxx') diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx index cd6d4b3593dd..52964ba91177 100644 --- a/sw/inc/swabstdlg.hxx +++ b/sw/inc/swabstdlg.hxx @@ -389,6 +389,7 @@ public: virtual VclPtr CreateSwAsciiFilterDlg(weld::Window* pParent, SwDocShell& rDocSh, SvStream* pStream) = 0; virtual VclPtr CreateSwInsertBookmarkDlg(weld::Window *pParent, SwWrtShell &rSh) = 0; + virtual VclPtr CreateSwContentControlDlg(weld::Window *pParent, SwWrtShell &rSh) = 0; virtual std::shared_ptr CreateSwBreakDlg(weld::Window *pParent, SwWrtShell &rSh) = 0; virtual VclPtr CreateSwChangeDBDlg(SwView& rVw) = 0; -- cgit v1.2.3