diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-16 13:30:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-16 21:31:04 +0100 |
commit | 28d73ca4b1297345cefed1a092d983bb59a6c445 (patch) | |
tree | 7520828a0762407a60255b9c3666d7c23c06ec10 /sw/source/uibase | |
parent | d0b35b2ec2639d438930c5136e960ed4140a69f3 (diff) |
can get the window from the SwView
Change-Id: Ifa3033b928db817ccdc4337f8995179bc488fcb6
Reviewed-on: https://gerrit.libreoffice.org/51425
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/dialog/SignatureLineDialog.cxx | 5 | ||||
-rw-r--r-- | sw/source/uibase/inc/SignatureLineDialog.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewdlg2.cxx | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/sw/source/uibase/dialog/SignatureLineDialog.cxx b/sw/source/uibase/dialog/SignatureLineDialog.cxx index 2b0f48a42703..8d3df885beff 100644 --- a/sw/source/uibase/dialog/SignatureLineDialog.cxx +++ b/sw/source/uibase/dialog/SignatureLineDialog.cxx @@ -37,8 +37,9 @@ using namespace css::view; using namespace css::drawing; using namespace css::graphic; -SignatureLineDialog::SignatureLineDialog(weld::Window* pParent, SwView& rView) - : GenericDialogController(pParent, "modules/swriter/ui/signatureline.ui", "SignatureLineDialog") +SignatureLineDialog::SignatureLineDialog(SwView& rView) + : GenericDialogController(rView.GetFrameWeld(), "modules/swriter/ui/signatureline.ui", + "SignatureLineDialog") , m_xEditName(m_xBuilder->weld_entry("edit_name")) , m_xEditTitle(m_xBuilder->weld_entry("edit_title")) , m_xEditEmail(m_xBuilder->weld_entry("edit_email")) diff --git a/sw/source/uibase/inc/SignatureLineDialog.hxx b/sw/source/uibase/inc/SignatureLineDialog.hxx index f3da0ba0bad2..80d7cf87289d 100644 --- a/sw/source/uibase/inc/SignatureLineDialog.hxx +++ b/sw/source/uibase/inc/SignatureLineDialog.hxx @@ -21,7 +21,7 @@ class SwView; class SW_DLLPUBLIC SignatureLineDialog : public weld::GenericDialogController { public: - SignatureLineDialog(weld::Window* pParent, SwView& rView); + SignatureLineDialog(SwView& rView); short execute(); diff --git a/sw/source/uibase/uiview/viewdlg2.cxx b/sw/source/uibase/uiview/viewdlg2.cxx index ec56e4df9c66..35a1409dd78b 100644 --- a/sw/source/uibase/uiview/viewdlg2.cxx +++ b/sw/source/uibase/uiview/viewdlg2.cxx @@ -67,7 +67,7 @@ void SwView::ExecDlgExt(SfxRequest const &rReq) SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); assert(pFact && "SwAbstractDialogFactory fail!"); - ScopedVclPtr<VclAbstractDialog> pDialog(pFact->CreateSignatureLineDialog(rMDI.GetFrameWeld(), *this)); + ScopedVclPtr<VclAbstractDialog> pDialog(pFact->CreateSignatureLineDialog(*this)); assert(pDialog && "Dialog creation failed!"); if (pDialog) pDialog->Execute(); |