summaryrefslogtreecommitdiff
path: root/sw/inc/swabstdlg.hxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-07-20 11:35:00 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2020-07-24 09:12:47 +0200
commitc32f31309fc0d8a846418fd373608dd6f84c7972 (patch)
tree6bb5c4de5da9397e54f6114429be56e02393a8c5 /sw/inc/swabstdlg.hxx
parent8e62e20f1f4da93f84b135d0b221ecd39667b0e4 (diff)
Make InsertBreak dialog async
Change-Id: I2191ef0ea6b79bd45d682eb1ae6b0d60627f7486 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99033 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99280 Tested-by: Jenkins
Diffstat (limited to 'sw/inc/swabstdlg.hxx')
-rw-r--r--sw/inc/swabstdlg.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx
index 1533d816eb8e..0b530d170e77 100644
--- a/sw/inc/swabstdlg.hxx
+++ b/sw/inc/swabstdlg.hxx
@@ -229,15 +229,16 @@ public:
};
-class AbstractSwBreakDlg : public VclAbstractDialog
+class AbstractSwBreakDlg
{
protected:
- virtual ~AbstractSwBreakDlg() override = default;
+ virtual ~AbstractSwBreakDlg() = default;
public:
virtual OUString GetTemplateName() = 0;
virtual sal_uInt16 GetKind() = 0;
virtual ::std::optional<sal_uInt16> GetPageNumber() = 0;
+ virtual std::shared_ptr<weld::DialogController> getDialogController() = 0;
};
class AbstractSplitTableDialog : public VclAbstractDialog // add for
@@ -379,7 +380,7 @@ public:
SvStream* pStream) = 0;
virtual VclPtr<VclAbstractDialog> CreateSwInsertBookmarkDlg(weld::Window *pParent, SwWrtShell &rSh, SfxRequest& rReq) = 0;
- virtual VclPtr<AbstractSwBreakDlg> CreateSwBreakDlg(weld::Window *pParent, SwWrtShell &rSh) = 0;
+ virtual std::shared_ptr<AbstractSwBreakDlg> CreateSwBreakDlg(weld::Window *pParent, SwWrtShell &rSh) = 0;
virtual VclPtr<VclAbstractDialog> CreateSwChangeDBDlg(SwView& rVw) = 0;
virtual VclPtr<SfxAbstractTabDialog> CreateSwCharDlg(weld::Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet,
SwCharDlgMode nDialogMode, const OUString* pFormatStr = nullptr) = 0;