Kaydet (Commit) dd0a38f5 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS hro34 (1.5.42); FILE MERGED

2008/03/07 10:38:14 hro 1.5.42.1: #i78851# #i72556# Implemented Vista style File Dialog
üst 1f01a1a6
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: FPentry.cxx,v $ * $RCSfile: FPentry.cxx,v $
* *
* $Revision: 1.5 $ * $Revision: 1.6 $
* *
* last change: $Author: ihi $ $Date: 2007-11-19 16:25:55 $ * last change: $Author: rt $ $Date: 2008-03-12 07:31:09 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -60,6 +60,11 @@ ...@@ -60,6 +60,11 @@
#include "FPServiceInfo.hxx" #include "FPServiceInfo.hxx"
#endif #endif
#pragma warning (disable:4917)
#include "VistaFilePicker.hxx"
#include "..\misc\WinImplHelper.hxx"
#include <stdio.h>
//----------------------------------------------- //-----------------------------------------------
// namespace directives // namespace directives
//----------------------------------------------- //-----------------------------------------------
...@@ -80,9 +85,25 @@ using ::com::sun::star::ui::dialogs::XFilePicker2; ...@@ -80,9 +85,25 @@ using ::com::sun::star::ui::dialogs::XFilePicker2;
static Reference< XInterface > SAL_CALL createInstance( static Reference< XInterface > SAL_CALL createInstance(
const Reference< XMultiServiceFactory >& rServiceManager ) const Reference< XMultiServiceFactory >& rServiceManager )
{ {
return Reference< XInterface >( Reference< XInterface > xDlg;
static_cast< XFilePicker2* >( bool bVista = IsWindowsVista();
new CFilePicker( rServiceManager ) ) );
if (bVista)
{
fprintf(stdout, "use special (vista) system file picker ...\n");
xDlg.set(
static_cast< XFilePicker2* >(
new ::fpicker::win32::vista::VistaFilePicker( rServiceManager ) ) );
}
else
{
fprintf(stdout, "use normal system file picker ...\n");
xDlg.set(
static_cast< XFilePicker2* >(
new CFilePicker( rServiceManager ) ) );
}
return xDlg;
} }
//------------------------------------------------ //------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment