[Libreoffice-commits] core.git: filter/source include/sfx2 sfx2/source

Caolán McNamara caolanm at redhat.com
Tue Jun 19 07:58:05 UTC 2018


 filter/source/pdf/impdialog.cxx   |    4 ++--
 filter/source/pdf/pdfdialog.cxx   |    2 --
 filter/source/pdf/pdfinteract.cxx |    5 ++---
 include/sfx2/passwd.hxx           |    2 +-
 sfx2/source/dialog/passwd.cxx     |    2 +-
 5 files changed, 6 insertions(+), 9 deletions(-)

New commits:
commit b3bbf89aa4c441a6734997185c7d2f0602bb1614
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jun 18 21:29:52 2018 +0100

    tidy up setting parents
    
    Change-Id: Ic0d30d066c76f2b30a5c4e6c864d80c8242c2444
    Reviewed-on: https://gerrit.libreoffice.org/56067
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index d1e587a19a2a..afc84e0c3fc2 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -792,7 +792,7 @@ IMPL_LINK_NOARG(ImpPDFTabGeneralPage, ToggleExportPDFAHdl, weld::ToggleButton&,
     // if a password was set, inform the user that this will not be used in PDF/A case
     if( mxCbPDFA1b->get_active() && pSecPage && pSecPage->hasPassword() )
     {
-        std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrameWeld(),
+        std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(m_xContainer.get(),
                                                   VclMessageType::Warning, VclButtonsType::Ok,
                                                   PDFFilterResId(STR_WARN_PASSWORD_PDFA)));
         xBox->run();
@@ -1156,7 +1156,7 @@ void ImpPDFTabSecurityPage::SetFilterConfigItem( const  ImpPDFTabDialog* pParent
 
 IMPL_LINK_NOARG(ImpPDFTabSecurityPage, ClickmaPbSetPwdHdl, weld::Button&, void)
 {
-    SfxPasswordDialog aPwdDialog(GetFrameWeld(), &msUserPwdTitle);
+    SfxPasswordDialog aPwdDialog(m_xContainer.get(), &msUserPwdTitle);
     aPwdDialog.SetMinLen(0);
     aPwdDialog.ShowMinLengthText(false);
     aPwdDialog.ShowExtras( SfxShowExtras::CONFIRM | SfxShowExtras::PASSWORD2 | SfxShowExtras::CONFIRM2 );
diff --git a/filter/source/pdf/pdfdialog.cxx b/filter/source/pdf/pdfdialog.cxx
index 00743c8afecf..b3a99a486f9e 100644
--- a/filter/source/pdf/pdfdialog.cxx
+++ b/filter/source/pdf/pdfdialog.cxx
@@ -103,13 +103,11 @@ Reference< XPropertySetInfo > SAL_CALL PDFDialog::getPropertySetInfo()
     return xInfo;
 }
 
-
 ::cppu::IPropertyArrayHelper& PDFDialog::getInfoHelper()
 {
     return *getArrayHelper();
 }
 
-
 ::cppu::IPropertyArrayHelper* PDFDialog::createArrayHelper() const
 {
     Sequence< Property > aProps;
diff --git a/filter/source/pdf/pdfinteract.cxx b/filter/source/pdf/pdfinteract.cxx
index a08221562141..802c7a65d83a 100644
--- a/filter/source/pdf/pdfinteract.cxx
+++ b/filter/source/pdf/pdfinteract.cxx
@@ -60,9 +60,8 @@ sal_Bool SAL_CALL PDFInteractionHandler::handleInteractionRequest( const Referen
         for( sal_Int32 i = 0; i < nCodes; i++ )
             aCodes.insert( static_cast<vcl::PDFWriter::ErrorCode>(aExc.ErrorCodes.getConstArray()[i]) );
 
-        VclPtr<vcl::Window> xParent(VCLUnoHelper::GetWindow(m_xParent));
-        ImplErrorDialog aDlg(xParent ? xParent->GetFrameWeld() : nullptr, aCodes);
-        (void)aDlg.run();
+        ImplErrorDialog aDlg(Application::GetFrameWeld(m_xParent), aCodes);
+        aDlg.run();
         bHandled = true;
     }
     return bHandled;
diff --git a/include/sfx2/passwd.hxx b/include/sfx2/passwd.hxx
index 4c8b7f15868c..a09364cf6918 100644
--- a/include/sfx2/passwd.hxx
+++ b/include/sfx2/passwd.hxx
@@ -80,7 +80,7 @@ private:
     void            SetPasswdText();
 
 public:
-    SfxPasswordDialog(weld::Window* pParent, const OUString* pGroupText = nullptr);
+    SfxPasswordDialog(weld::Widget* pParent, const OUString* pGroupText = nullptr);
 
     OUString GetUser() const
     {
diff --git a/sfx2/source/dialog/passwd.cxx b/sfx2/source/dialog/passwd.cxx
index 71df5e7d8d72..497deca9ccb7 100644
--- a/sfx2/source/dialog/passwd.cxx
+++ b/sfx2/source/dialog/passwd.cxx
@@ -81,7 +81,7 @@ IMPL_LINK_NOARG(SfxPasswordDialog, OKHdl, weld::Button&, void)
 
 // CTOR / DTOR -----------------------------------------------------------
 
-SfxPasswordDialog::SfxPasswordDialog(weld::Window* pParent, const OUString* pGroupText)
+SfxPasswordDialog::SfxPasswordDialog(weld::Widget* pParent, const OUString* pGroupText)
     : GenericDialogController(pParent, "sfx/ui/password.ui", "PasswordDialog")
     , m_xPassword1Box(m_xBuilder->weld_frame("password1frame"))
     , m_xUserFT(m_xBuilder->weld_label("userft"))


More information about the Libreoffice-commits mailing list