diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-08 10:34:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-09 10:07:13 +0200 |
commit | 200626e41f004b6b8588f89fa3707c71ae2b375c (patch) | |
tree | f81bf21c9442ea75d80d1ceb7f1cc3ad11ca71fa /sfx2/source/doc/objserv.cxx | |
parent | ce9f23c6196b17985d14e441aa93175b31650f34 (diff) |
remove need for an intermediate vcl::Window
Change-Id: I59f24888e47ec17e46bf651d8530fc9468f16f62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113795
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/doc/objserv.cxx')
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index c368755816d2..46d69bd1dd4b 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -334,7 +334,7 @@ void SfxObjectShell::CheckOut( ) } catch ( const uno::RuntimeException& e ) { - std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrame()->GetWindow().GetFrameWeld(), + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrame()->GetFrameWeld(), VclMessageType::Warning, VclButtonsType::Ok, e.Message)); xBox->run(); } @@ -353,7 +353,7 @@ void SfxObjectShell::CancelCheckOut( ) } catch ( const uno::RuntimeException& e ) { - std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrame()->GetWindow().GetFrameWeld(), + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrame()->GetFrameWeld(), VclMessageType::Warning, VclButtonsType::Ok, e.Message)); xBox->run(); } @@ -365,7 +365,7 @@ void SfxObjectShell::CheckIn( ) { uno::Reference< document::XCmisDocument > xCmisDoc( GetModel(), uno::UNO_QUERY_THROW ); // Pop up dialog to ask for comment and major - SfxCheckinDialog checkinDlg(GetFrame()->GetWindow().GetFrameWeld()); + SfxCheckinDialog checkinDlg(GetFrame()->GetFrameWeld()); if (checkinDlg.run() == RET_OK) { xCmisDoc->checkIn(checkinDlg.IsMajor(), checkinDlg.GetComment()); @@ -376,7 +376,7 @@ void SfxObjectShell::CheckIn( ) } catch ( const uno::RuntimeException& e ) { - std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrame()->GetWindow().GetFrameWeld(), + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrame()->GetFrameWeld(), VclMessageType::Warning, VclButtonsType::Ok, e.Message)); xBox->run(); } @@ -391,7 +391,7 @@ uno::Sequence< document::CmisVersion > SfxObjectShell::GetCmisVersions( ) const } catch ( const uno::RuntimeException& e ) { - std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrame()->GetWindow().GetFrameWeld(), + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrame()->GetFrameWeld(), VclMessageType::Warning, VclButtonsType::Ok, e.Message)); xBox->run(); } @@ -475,7 +475,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) if (!pFrame) pFrame = SfxViewFrame::GetFirst(this); if (pFrame) - pDialogParent = pFrame->GetWindow().GetFrameWeld(); + pDialogParent = pFrame->GetFrameWeld(); } sal_uInt16 nId = rReq.GetSlot(); |