summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-01-31 11:00:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-01-31 17:22:19 +0100
commit1195df679859b2ebfafb60bd456dcba90ff6bfae (patch)
treec9ee2420415892ecce34fdede6c7ed8a6cc7a5ac /sw/inc
parentd1ac38a3d269ce862c17da00885c8b0b0bee5e6c (diff)
make date-form-field dialog async
Change-Id: Ia43217c3218344bacde823aa52dc0776de822d60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162807 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/swabstdlg.hxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx
index 2af7aea2ef29..019684b11317 100644
--- a/sw/inc/swabstdlg.hxx
+++ b/sw/inc/swabstdlg.hxx
@@ -460,6 +460,14 @@ public:
virtual void UpdateFields() = 0;
};
+class AbstractDateFormFieldDialog : public VclAbstractDialog
+{
+protected:
+ virtual ~AbstractDateFormFieldDialog() override = default;
+public:
+ virtual void Apply() = 0;
+};
+
class SwAbstractDialogFactory
{
public:
@@ -500,7 +508,7 @@ public:
SwField* pField, bool bPrevButton, bool bNextButton) = 0;
virtual VclPtr<AbstractDropDownFormFieldDialog> CreateDropDownFormFieldDialog(weld::Widget* pParent, sw::mark::IFieldmark* pDropDownField) = 0;
- virtual VclPtr<VclAbstractDialog> CreateDateFormFieldDialog(weld::Widget* pParent, sw::mark::IDateFieldmark* pDateField, SwDoc& rDoc) = 0;
+ virtual VclPtr<AbstractDateFormFieldDialog> CreateDateFormFieldDialog(weld::Widget* pParent, sw::mark::IDateFieldmark* pDateField, SwDoc& rDoc) = 0;
virtual VclPtr<SfxAbstractTabDialog> CreateSwEnvDlg(weld::Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, bool bInsert) = 0;