diff options
author | Michael Stahl <mstahl@redhat.com> | 2011-11-30 16:08:22 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2011-12-03 00:48:12 +0100 |
commit | 4f201dc32b58b56e27fa12b6c770ff38c2da7230 (patch) | |
tree | 6faf7d49a7fa761d2ead8ed15ec2a768992fceb1 /sfx2/source/appl/lnkbase2.cxx | |
parent | sfx2::FileDialogHelper: remove obsolete flags (diff) | |
download | core-4f201dc32b58b56e27fa12b6c770ff38c2da7230.tar.gz core-4f201dc32b58b56e27fa12b6c770ff38c2da7230.zip |
SvBaseLink::GetFileDialog renamed GetInsertFileDialog
Diffstat (limited to 'sfx2/source/appl/lnkbase2.cxx')
-rw-r--r-- | sfx2/source/appl/lnkbase2.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx index 0bca5e327586..cf1a651a3160 100644 --- a/sfx2/source/appl/lnkbase2.cxx +++ b/sfx2/source/appl/lnkbase2.cxx @@ -31,6 +31,7 @@ #include <sot/exchange.hxx> #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/ui/dialogs/TemplateDescription.hpp> #include <vcl/msgbox.hxx> #include <sfx2/linkmgr.hxx> #include <vcl/svapp.hxx> @@ -40,6 +41,7 @@ #include <tools/debug.hxx> #include <svl/svdde.hxx> +using namespace ::com::sun::star; using namespace ::com::sun::star::uno; namespace sfx2 @@ -526,12 +528,14 @@ void SvBaseLink::Closed() xObj->RemoveAllDataAdvise( this ); } -FileDialogHelper* SvBaseLink::GetFileDialog( sal_uInt32 nFlags, const String& rFactory ) const +FileDialogHelper & SvBaseLink::GetInsertFileDialog(const String& rFactory) const { if ( pImpl->m_pFileDlg ) delete pImpl->m_pFileDlg; - pImpl->m_pFileDlg = new FileDialogHelper( nFlags, rFactory ); - return pImpl->m_pFileDlg; + pImpl->m_pFileDlg = new FileDialogHelper( + ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, + SFXWB_INSERT, rFactory); + return *pImpl->m_pFileDlg; } ImplDdeItem::~ImplDdeItem() |