diff options
Diffstat (limited to 'sfx2/source/doc/docinsert.cxx')
-rw-r--r-- | sfx2/source/doc/docinsert.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/docinsert.cxx b/sfx2/source/doc/docinsert.cxx index 33ff0c1a1099..ad262468313e 100644 --- a/sfx2/source/doc/docinsert.cxx +++ b/sfx2/source/doc/docinsert.cxx @@ -73,8 +73,8 @@ FileDialogFlags lcl_map_mode_to_flags(const sfx2::DocumentInserter::Mode mode) namespace sfx2 { -DocumentInserter::DocumentInserter(vcl::Window* pParent, const OUString& rFactory, const Mode mode) - : m_xParent ( pParent ) +DocumentInserter::DocumentInserter(weld::Window* pParent, const OUString& rFactory, const Mode mode) + : m_pParent ( pParent ) , m_sDocFactory ( rFactory ) , m_nDlgFlags ( lcl_map_mode_to_flags(mode) ) , m_nError ( ERRCODE_NONE ) @@ -95,7 +95,7 @@ void DocumentInserter::StartExecuteModal( const Link<sfx2::FileDialogHelper*,voi { m_pFileDlg.reset( new FileDialogHelper( ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, - m_nDlgFlags, m_sDocFactory, SfxFilterFlags::NONE, SfxFilterFlags::NONE, m_xParent ) ); + m_nDlgFlags, m_sDocFactory, SfxFilterFlags::NONE, SfxFilterFlags::NONE, m_pParent ) ); } m_pFileDlg->StartExecuteModal( LINK( this, DocumentInserter, DialogClosedHdl ) ); } @@ -215,7 +215,7 @@ IMPL_LINK_NOARG(DocumentInserter, DialogClosedHdl, sfx2::FileDialogHelper*, void if ( ( aValue >>= bPassWord ) && bPassWord ) { // ask for the password - SfxPasswordDialog aPasswordDlg(m_xParent ? m_xParent->GetFrameWeld() : nullptr); + SfxPasswordDialog aPasswordDlg(m_pParent); aPasswordDlg.ShowExtras( SfxShowExtras::CONFIRM ); short nRet = aPasswordDlg.execute(); if ( RET_OK == nRet ) |