diff options
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/insdlg.cxx | 3 | ||||
-rw-r--r-- | cui/source/options/doclinkdialog.cxx | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index bc319cb00e39..325ca92bffd2 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -1032,7 +1032,8 @@ IMPL_STATIC_LINK( SfxInsertFloatingFrameDialog, OpenHdl, PushButton*, EMPTYARG ) Application::SetDefDialogParent( pThis ); // create the file dialog - sfx2::FileDialogHelper aFileDlg( SFXWB_PASSWORD, String() ); + sfx2::FileDialogHelper aFileDlg( + ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, 0, String() ); // set the title aFileDlg.SetTitle( OUString( String( CUI_RES( MD_INSERT_OBJECT_IFRAME ) ) ) ); diff --git a/cui/source/options/doclinkdialog.cxx b/cui/source/options/doclinkdialog.cxx index edebdab3f5ea..b34736623e74 100644 --- a/cui/source/options/doclinkdialog.cxx +++ b/cui/source/options/doclinkdialog.cxx @@ -28,6 +28,9 @@ #include "doclinkdialog.hxx" #include "doclinkdialog.hrc" + +#include <com/sun/star/ui/dialogs/TemplateDescription.hpp> + #include <cuires.hrc> #include <tools/debug.hxx> #include <svl/filenotation.hxx> @@ -42,6 +45,7 @@ namespace svx { //...................................................................... + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::ucb; using namespace ::svt; @@ -166,7 +170,8 @@ namespace svx //------------------------------------------------------------------ IMPL_LINK( ODocumentLinkDialog, OnBrowseFile, void*, EMPTYARG ) { - ::sfx2::FileDialogHelper aFileDlg(0); + ::sfx2::FileDialogHelper aFileDlg( + ui::dialogs::TemplateDescription::FILEOPEN_READONLY_VERSION, 0); static const String s_sDatabaseType = String::CreateFromAscii("StarOffice XML (Base)"); const SfxFilter* pFilter = SfxFilter::GetFilterByName( s_sDatabaseType); if ( pFilter ) |