fdo#46808: Missing adaptions to XFolderPicker2
c988da288ec473a28f61ebb53aa3ff82bab11ef4 "fdo#46808, Adapt ui::dialogs::FolderPicker UNO service to new style" had left some FolderPicker implementations at XFolderPicker, so creating them caused DeploymentExceptions. Change-Id: I3463161f9bb87a69a2777c331eb5b93d487790b0
This commit is contained in:
parent
41f08d4269
commit
cc360f0a48
@ -41,7 +41,6 @@
|
|||||||
#include "dsselect.hxx"
|
#include "dsselect.hxx"
|
||||||
#include <svl/filenotation.hxx>
|
#include <svl/filenotation.hxx>
|
||||||
#include "dbustrings.hrc"
|
#include "dbustrings.hrc"
|
||||||
#include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
|
|
||||||
#include <com/sun/star/sdbc/XRow.hpp>
|
#include <com/sun/star/sdbc/XRow.hpp>
|
||||||
#include <com/sun/star/awt/XWindow.hpp>
|
#include <com/sun/star/awt/XWindow.hpp>
|
||||||
#include <com/sun/star/task/XInteractionHandler.hpp>
|
#include <com/sun/star/task/XInteractionHandler.hpp>
|
||||||
|
@ -41,7 +41,6 @@
|
|||||||
#include "dsselect.hxx"
|
#include "dsselect.hxx"
|
||||||
#include <svl/filenotation.hxx>
|
#include <svl/filenotation.hxx>
|
||||||
#include "dbustrings.hrc"
|
#include "dbustrings.hrc"
|
||||||
#include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
|
|
||||||
#include <com/sun/star/sdbc/XRow.hpp>
|
#include <com/sun/star/sdbc/XRow.hpp>
|
||||||
#include <com/sun/star/awt/XWindow.hpp>
|
#include <com/sun/star/awt/XWindow.hpp>
|
||||||
#include <com/sun/star/task/XInteractionHandler.hpp>
|
#include <com/sun/star/task/XInteractionHandler.hpp>
|
||||||
|
@ -39,7 +39,6 @@
|
|||||||
#include "dbadmin.hxx"
|
#include "dbadmin.hxx"
|
||||||
#include <comphelper/types.hxx>
|
#include <comphelper/types.hxx>
|
||||||
|
|
||||||
#include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
|
|
||||||
#include <com/sun/star/task/XInteractionHandler.hpp>
|
#include <com/sun/star/task/XInteractionHandler.hpp>
|
||||||
#include <com/sun/star/sdbc/XDriverAccess.hpp>
|
#include <com/sun/star/sdbc/XDriverAccess.hpp>
|
||||||
#include "dbustrings.hrc"
|
#include "dbustrings.hrc"
|
||||||
|
@ -40,7 +40,6 @@
|
|||||||
#include "dbadmin.hxx"
|
#include "dbadmin.hxx"
|
||||||
#include <comphelper/string.hxx>
|
#include <comphelper/string.hxx>
|
||||||
#include <comphelper/types.hxx>
|
#include <comphelper/types.hxx>
|
||||||
#include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
|
|
||||||
#include <com/sun/star/task/XInteractionHandler.hpp>
|
#include <com/sun/star/task/XInteractionHandler.hpp>
|
||||||
#include <svl/filenotation.hxx>
|
#include <svl/filenotation.hxx>
|
||||||
#include <unotools/localfilehelper.hxx>
|
#include <unotools/localfilehelper.hxx>
|
||||||
|
@ -33,7 +33,6 @@ using namespace ::com::sun::star::lang;
|
|||||||
using namespace ::com::sun::star::registry;
|
using namespace ::com::sun::star::registry;
|
||||||
using namespace ::cppu;
|
using namespace ::cppu;
|
||||||
using ::com::sun::star::ui::dialogs::XFilePicker;
|
using ::com::sun::star::ui::dialogs::XFilePicker;
|
||||||
using ::com::sun::star::ui::dialogs::XFolderPicker;
|
|
||||||
|
|
||||||
|
|
||||||
static Reference< XInterface > SAL_CALL createFileInstance(
|
static Reference< XInterface > SAL_CALL createFileInstance(
|
||||||
|
@ -20,12 +20,12 @@
|
|||||||
#ifndef _SALAQUAFOLDERPICKER_HXX_
|
#ifndef _SALAQUAFOLDERPICKER_HXX_
|
||||||
#define _SALAQUAFOLDERPICKER_HXX_
|
#define _SALAQUAFOLDERPICKER_HXX_
|
||||||
|
|
||||||
#include <cppuhelper/implbase4.hxx>
|
#include <cppuhelper/implbase3.hxx>
|
||||||
#include <com/sun/star/util/XCancellable.hpp>
|
#include <com/sun/star/util/XCancellable.hpp>
|
||||||
#include <com/sun/star/lang/XEventListener.hpp>
|
#include <com/sun/star/lang/XEventListener.hpp>
|
||||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||||
|
|
||||||
#include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
|
#include <com/sun/star/ui/dialogs/XFolderPicker2.hpp>
|
||||||
|
|
||||||
#include "SalAquaPicker.hxx"
|
#include "SalAquaPicker.hxx"
|
||||||
|
|
||||||
@ -41,11 +41,10 @@
|
|||||||
|
|
||||||
class SalAquaFolderPicker :
|
class SalAquaFolderPicker :
|
||||||
public SalAquaPicker,
|
public SalAquaPicker,
|
||||||
public cppu::WeakImplHelper4<
|
public cppu::WeakImplHelper3<
|
||||||
::com::sun::star::ui::dialogs::XFolderPicker,
|
::com::sun::star::ui::dialogs::XFolderPicker2,
|
||||||
::com::sun::star::lang::XServiceInfo,
|
::com::sun::star::lang::XServiceInfo,
|
||||||
::com::sun::star::lang::XEventListener,
|
::com::sun::star::lang::XEventListener >
|
||||||
::com::sun::star::util::XCancellable >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ sal_Int16 SAL_CALL SalAquaFolderPicker::execute() throw( uno::RuntimeException )
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw uno::RuntimeException(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("The dialog returned with an unknown result!")), static_cast< XFolderPicker* >( this ));
|
throw uno::RuntimeException(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("The dialog returned with an unknown result!")), static_cast< cppu::OWeakObject * >( this ));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -173,7 +173,7 @@ rtl::OUString SAL_CALL SalAquaFolderPicker::getDirectory() throw( uno::RuntimeEx
|
|||||||
OSL_TRACE("# of items: %d", nFiles);
|
OSL_TRACE("# of items: %d", nFiles);
|
||||||
|
|
||||||
if (nFiles < 1) {
|
if (nFiles < 1) {
|
||||||
throw uno::RuntimeException(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("no directory selected")), static_cast< XFolderPicker* >( this ));
|
throw uno::RuntimeException(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("no directory selected")), static_cast< cppu::OWeakObject * >( this ));
|
||||||
}
|
}
|
||||||
|
|
||||||
rtl::OUString aDirectory;
|
rtl::OUString aDirectory;
|
||||||
|
@ -36,7 +36,7 @@ using namespace ::com::sun::star::uno;
|
|||||||
using namespace ::com::sun::star::beans;
|
using namespace ::com::sun::star::beans;
|
||||||
|
|
||||||
SvtFolderPicker::SvtFolderPicker( const Reference < XMultiServiceFactory >& _rxFactory )
|
SvtFolderPicker::SvtFolderPicker( const Reference < XMultiServiceFactory >& _rxFactory )
|
||||||
:OCommonPicker( _rxFactory )
|
:SvtFolderPicker_Base( _rxFactory )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,10 +44,6 @@ SvtFolderPicker::~SvtFolderPicker()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
IMPLEMENT_FORWARD_XINTERFACE2( SvtFolderPicker, OCommonPicker, SvtFolderPicker_Base )
|
|
||||||
|
|
||||||
IMPLEMENT_FORWARD_XTYPEPROVIDER2( SvtFolderPicker, OCommonPicker, SvtFolderPicker_Base )
|
|
||||||
|
|
||||||
void SAL_CALL SvtFolderPicker::setTitle( const ::rtl::OUString& _rTitle ) throw (RuntimeException)
|
void SAL_CALL SvtFolderPicker::setTitle( const ::rtl::OUString& _rTitle ) throw (RuntimeException)
|
||||||
{
|
{
|
||||||
OCommonPicker::setTitle( _rTitle );
|
OCommonPicker::setTitle( _rTitle );
|
||||||
@ -151,6 +147,11 @@ void SAL_CALL SvtFolderPicker::setDescription( const ::rtl::OUString& aDescripti
|
|||||||
m_aDescription = aDescription;
|
m_aDescription = aDescription;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SvtFolderPicker::cancel() throw (RuntimeException)
|
||||||
|
{
|
||||||
|
OCommonPicker::cancel();
|
||||||
|
}
|
||||||
|
|
||||||
/* XServiceInfo */
|
/* XServiceInfo */
|
||||||
::rtl::OUString SAL_CALL SvtFolderPicker::getImplementationName() throw( RuntimeException )
|
::rtl::OUString SAL_CALL SvtFolderPicker::getImplementationName() throw( RuntimeException )
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#define INCLUDED_SVT_FOLDERPICKER_HXX
|
#define INCLUDED_SVT_FOLDERPICKER_HXX
|
||||||
|
|
||||||
#include <cppuhelper/implbase3.hxx>
|
#include <cppuhelper/implbase3.hxx>
|
||||||
#include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
|
#include <com/sun/star/ui/dialogs/XFolderPicker2.hpp>
|
||||||
#include <com/sun/star/ui/dialogs/XAsynchronousExecutableDialog.hpp>
|
#include <com/sun/star/ui/dialogs/XAsynchronousExecutableDialog.hpp>
|
||||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||||
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
|
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
|
||||||
@ -30,15 +30,14 @@
|
|||||||
|
|
||||||
class Dialog;
|
class Dialog;
|
||||||
|
|
||||||
// class SvtFolderPicker ---------------------------------------------------
|
typedef
|
||||||
|
cppu::ImplInheritanceHelper3<
|
||||||
typedef ::cppu::ImplHelper3 < ::com::sun::star::ui::dialogs::XFolderPicker
|
svt::OCommonPicker, com::sun::star::ui::dialogs::XFolderPicker2,
|
||||||
, ::com::sun::star::ui::dialogs::XAsynchronousExecutableDialog
|
com::sun::star::ui::dialogs::XAsynchronousExecutableDialog,
|
||||||
, ::com::sun::star::lang::XServiceInfo
|
com::sun::star::lang::XServiceInfo >
|
||||||
> SvtFolderPicker_Base;
|
SvtFolderPicker_Base;
|
||||||
|
|
||||||
class SvtFolderPicker: public SvtFolderPicker_Base
|
class SvtFolderPicker: public SvtFolderPicker_Base
|
||||||
,public ::svt::OCommonPicker
|
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
::rtl::OUString m_aDescription;
|
::rtl::OUString m_aDescription;
|
||||||
@ -54,17 +53,7 @@ public:
|
|||||||
virtual ~SvtFolderPicker();
|
virtual ~SvtFolderPicker();
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
// disambiguate XInterface
|
// XFolderPicker2 functions
|
||||||
//------------------------------------------------------------------------------------
|
|
||||||
DECLARE_XINTERFACE( )
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------
|
|
||||||
// disambiguate XTypeProvider
|
|
||||||
//------------------------------------------------------------------------------------
|
|
||||||
DECLARE_XTYPEPROVIDER( )
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------
|
|
||||||
// XFolderPicker functions
|
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
|
|
||||||
virtual void SAL_CALL setDisplayDirectory( const ::rtl::OUString& aDirectory ) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
|
virtual void SAL_CALL setDisplayDirectory( const ::rtl::OUString& aDirectory ) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
|
||||||
@ -72,6 +61,9 @@ public:
|
|||||||
virtual ::rtl::OUString SAL_CALL getDirectory() throw( ::com::sun::star::uno::RuntimeException );
|
virtual ::rtl::OUString SAL_CALL getDirectory() throw( ::com::sun::star::uno::RuntimeException );
|
||||||
virtual void SAL_CALL setDescription( const ::rtl::OUString& aDescription ) throw ( ::com::sun::star::uno::RuntimeException );
|
virtual void SAL_CALL setDescription( const ::rtl::OUString& aDescription ) throw ( ::com::sun::star::uno::RuntimeException );
|
||||||
|
|
||||||
|
virtual void SAL_CALL cancel()
|
||||||
|
throw (com::sun::star::uno::RuntimeException);
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
// XExecutableDialog functions
|
// XExecutableDialog functions
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
|
@ -46,7 +46,6 @@ using namespace ::com::sun::star::registry ;
|
|||||||
using namespace ::cppu ;
|
using namespace ::cppu ;
|
||||||
using ::com::sun::star::ui::dialogs::XFilePicker;
|
using ::com::sun::star::ui::dialogs::XFilePicker;
|
||||||
using ::com::sun::star::ui::dialogs::XFilePicker2;
|
using ::com::sun::star::ui::dialogs::XFilePicker2;
|
||||||
using ::com::sun::star::ui::dialogs::XFolderPicker;
|
|
||||||
|
|
||||||
//------------------------------------------------
|
//------------------------------------------------
|
||||||
//
|
//
|
||||||
@ -82,7 +81,7 @@ static Reference< XInterface > SAL_CALL createInstance(
|
|||||||
static Reference< XInterface > SAL_CALL
|
static Reference< XInterface > SAL_CALL
|
||||||
createInstance_fop( const Reference< XMultiServiceFactory >& rServiceManager )
|
createInstance_fop( const Reference< XMultiServiceFactory >& rServiceManager )
|
||||||
{
|
{
|
||||||
return Reference< XInterface >( static_cast< XFolderPicker* >( new CFolderPicker( rServiceManager ) ) );
|
return Reference< XInterface >( static_cast< cppu::OWeakObject * >( new CFolderPicker( rServiceManager ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||||
|
|
||||||
#include <com/sun/star/ui/dialogs/XFolderPicker2.hpp>
|
#include <com/sun/star/ui/dialogs/XFolderPicker2.hpp>
|
||||||
#include <com/sun/star/util/XCancellable.hpp>
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ void SAL_CALL CWinFolderPickerImpl::setDisplayDirectory( const OUString& aDirect
|
|||||||
if ( ::osl::FileBase::E_None != rc )
|
if ( ::osl::FileBase::E_None != rc )
|
||||||
throw IllegalArgumentException(
|
throw IllegalArgumentException(
|
||||||
OUString(RTL_CONSTASCII_USTRINGPARAM( "directory is not a valid file url" )),
|
OUString(RTL_CONSTASCII_USTRINGPARAM( "directory is not a valid file url" )),
|
||||||
static_cast< XFolderPicker* >( m_pFolderPicker ),
|
static_cast< cppu::OWeakObject * >( m_pFolderPicker ),
|
||||||
1 );
|
1 );
|
||||||
|
|
||||||
// we ensure that there is a trailing '/' at the end of
|
// we ensure that there is a trailing '/' at the end of
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include <sal/types.h>
|
#include <sal/types.h>
|
||||||
#include <osl/diagnose.h>
|
#include <osl/diagnose.h>
|
||||||
|
|
||||||
#include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
|
#include <com/sun/star/ui/dialogs/XFolderPicker2.hpp>
|
||||||
|
|
||||||
#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
|
#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
|
||||||
#include <cppuhelper/implbase1.hxx>
|
#include <cppuhelper/implbase1.hxx>
|
||||||
@ -95,9 +95,9 @@ int SAL_CALL main(int /*nArgc*/, char* /*Argv[]*/, char* /*Env[]*/ )
|
|||||||
// try to get an Interface to a XFilePicker Service
|
// try to get an Interface to a XFilePicker Service
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
Reference< XFolderPicker > xFolderPicker;
|
Reference< XFolderPicker2 > xFolderPicker;
|
||||||
|
|
||||||
xFolderPicker = Reference< XFolderPicker >(
|
xFolderPicker = Reference< XFolderPicker2 >(
|
||||||
g_xFactory->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM ( FOLDER_PICKER_SERVICE_NAME ) ) ), UNO_QUERY );
|
g_xFactory->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM ( FOLDER_PICKER_SERVICE_NAME ) ) ), UNO_QUERY );
|
||||||
|
|
||||||
if ( xFolderPicker.is() == sal_False )
|
if ( xFolderPicker.is() == sal_False )
|
||||||
|
@ -41,7 +41,6 @@
|
|||||||
#include "com/sun/star/ui/dialogs/XFilePicker.hpp"
|
#include "com/sun/star/ui/dialogs/XFilePicker.hpp"
|
||||||
#include "com/sun/star/ui/dialogs/XFilePickerControlAccess.hpp"
|
#include "com/sun/star/ui/dialogs/XFilePickerControlAccess.hpp"
|
||||||
#include "com/sun/star/ui/dialogs/XFilterManager.hpp"
|
#include "com/sun/star/ui/dialogs/XFilterManager.hpp"
|
||||||
#include "com/sun/star/ui/dialogs/XFolderPicker.hpp"
|
|
||||||
#include "com/sun/star/ui/dialogs/TemplateDescription.hpp"
|
#include "com/sun/star/ui/dialogs/TemplateDescription.hpp"
|
||||||
#include "com/sun/star/ui/dialogs/ExecutableDialogResults.hpp"
|
#include "com/sun/star/ui/dialogs/ExecutableDialogResults.hpp"
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ import com.sun.star.ui.dialogs.XExecutableDialog;
|
|||||||
import com.sun.star.ui.dialogs.XFilePicker;
|
import com.sun.star.ui.dialogs.XFilePicker;
|
||||||
import com.sun.star.ui.dialogs.XFilePickerControlAccess;
|
import com.sun.star.ui.dialogs.XFilePickerControlAccess;
|
||||||
import com.sun.star.ui.dialogs.XFilterManager;
|
import com.sun.star.ui.dialogs.XFilterManager;
|
||||||
import com.sun.star.ui.dialogs.XFolderPicker;
|
import com.sun.star.ui.dialogs.XFolderPicker2;
|
||||||
import com.sun.star.uno.UnoRuntime;
|
import com.sun.star.uno.UnoRuntime;
|
||||||
import com.sun.star.uno.XComponentContext;
|
import com.sun.star.uno.XComponentContext;
|
||||||
|
|
||||||
@ -157,7 +157,7 @@ public class SystemDialog {
|
|||||||
try {
|
try {
|
||||||
// instantiate the folder picker and retrieve the necessary interfaces...
|
// instantiate the folder picker and retrieve the necessary interfaces...
|
||||||
Object oFolderPicker = m_xMCF.createInstanceWithContext("com.sun.star.ui.dialogs.FolderPicker", m_xContext);
|
Object oFolderPicker = m_xMCF.createInstanceWithContext("com.sun.star.ui.dialogs.FolderPicker", m_xContext);
|
||||||
XFolderPicker xFolderPicker = (XFolderPicker) UnoRuntime.queryInterface(XFolderPicker.class, oFolderPicker);
|
XFolderPicker2 xFolderPicker = UnoRuntime.queryInterface(XFolderPicker2.class, oFolderPicker);
|
||||||
XExecutableDialog xExecutable = (XExecutableDialog) UnoRuntime.queryInterface(XExecutableDialog.class, oFolderPicker);
|
XExecutableDialog xExecutable = (XExecutableDialog) UnoRuntime.queryInterface(XExecutableDialog.class, oFolderPicker);
|
||||||
xComponent = (XComponent) UnoRuntime.queryInterface(XComponent.class, oFolderPicker);
|
xComponent = (XComponent) UnoRuntime.queryInterface(XComponent.class, oFolderPicker);
|
||||||
xFolderPicker.setDisplayDirectory(_sDisplayDirectory);
|
xFolderPicker.setDisplayDirectory(_sDisplayDirectory);
|
||||||
|
@ -50,7 +50,7 @@ import com.sun.star.lib.uno.helper.Factory;
|
|||||||
import com.sun.star.lib.uno.helper.WeakBase;
|
import com.sun.star.lib.uno.helper.WeakBase;
|
||||||
import com.sun.star.registry.XRegistryKey;
|
import com.sun.star.registry.XRegistryKey;
|
||||||
import com.sun.star.ui.dialogs.XExecutableDialog;
|
import com.sun.star.ui.dialogs.XExecutableDialog;
|
||||||
import com.sun.star.ui.dialogs.XFolderPicker;
|
import com.sun.star.ui.dialogs.XFolderPicker2;
|
||||||
import com.sun.star.uno.UnoRuntime;
|
import com.sun.star.uno.UnoRuntime;
|
||||||
import com.sun.star.uno.XComponentContext;
|
import com.sun.star.uno.XComponentContext;
|
||||||
import com.sun.star.util.CloseVetoException;
|
import com.sun.star.util.CloseVetoException;
|
||||||
@ -154,7 +154,7 @@ public class Inspector{
|
|||||||
try {
|
try {
|
||||||
String sInstallationFolder = "";
|
String sInstallationFolder = "";
|
||||||
Object oFolderPicker = m_xComponentContext.getServiceManager().createInstanceWithContext("com.sun.star.ui.dialogs.FolderPicker", m_xComponentContext);
|
Object oFolderPicker = m_xComponentContext.getServiceManager().createInstanceWithContext("com.sun.star.ui.dialogs.FolderPicker", m_xComponentContext);
|
||||||
XFolderPicker xFolderPicker = UnoRuntime.queryInterface(XFolderPicker.class, oFolderPicker);
|
XFolderPicker2 xFolderPicker = UnoRuntime.queryInterface(XFolderPicker2.class, oFolderPicker);
|
||||||
XExecutableDialog xExecutable = UnoRuntime.queryInterface(XExecutableDialog.class, oFolderPicker);
|
XExecutableDialog xExecutable = UnoRuntime.queryInterface(XExecutableDialog.class, oFolderPicker);
|
||||||
XComponent xComponent = UnoRuntime.queryInterface(XComponent.class, oFolderPicker);
|
XComponent xComponent = UnoRuntime.queryInterface(XComponent.class, oFolderPicker);
|
||||||
String sPath = getSDKPath();
|
String sPath = getSDKPath();
|
||||||
|
@ -9,4 +9,4 @@
|
|||||||
"FolderPicker";"com::sun::star::ui::dialogs::XFolderPicker";"setDescription()"
|
"FolderPicker";"com::sun::star::ui::dialogs::XFolderPicker";"setDescription()"
|
||||||
"FolderPicker";"com::sun::star::ui::dialogs::XExecutableDialog";"setTitle()"
|
"FolderPicker";"com::sun::star::ui::dialogs::XExecutableDialog";"setTitle()"
|
||||||
"FolderPicker";"com::sun::star::ui::dialogs::XExecutableDialog";"execute()"
|
"FolderPicker";"com::sun::star::ui::dialogs::XExecutableDialog";"execute()"
|
||||||
"FolderPicker";"com::sun::star::util::XCancellable#optional";"cancel()"
|
"FolderPicker";"com::sun::star::util::XCancellable";"cancel()"
|
||||||
|
|
@ -34,7 +34,6 @@
|
|||||||
#include <com/sun/star/ui/dialogs/XFilePreview.hpp>
|
#include <com/sun/star/ui/dialogs/XFilePreview.hpp>
|
||||||
#include <com/sun/star/ui/dialogs/XFilterManager.hpp>
|
#include <com/sun/star/ui/dialogs/XFilterManager.hpp>
|
||||||
#include <com/sun/star/ui/dialogs/XFilterGroupManager.hpp>
|
#include <com/sun/star/ui/dialogs/XFilterGroupManager.hpp>
|
||||||
#include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
|
|
||||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||||
#include <com/sun/star/beans/XPropertySet.hpp>
|
#include <com/sun/star/beans/XPropertySet.hpp>
|
||||||
#include <com/sun/star/beans/PropertyValue.hpp>
|
#include <com/sun/star/beans/PropertyValue.hpp>
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
#include <com/sun/star/ui/dialogs/XFilePreview.hpp>
|
#include <com/sun/star/ui/dialogs/XFilePreview.hpp>
|
||||||
#include <com/sun/star/ui/dialogs/XFilterManager.hpp>
|
#include <com/sun/star/ui/dialogs/XFilterManager.hpp>
|
||||||
#include <com/sun/star/ui/dialogs/XFilterGroupManager.hpp>
|
#include <com/sun/star/ui/dialogs/XFilterGroupManager.hpp>
|
||||||
#include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
|
|
||||||
#include <com/sun/star/ui/dialogs/XFilePicker2.hpp>
|
#include <com/sun/star/ui/dialogs/XFilePicker2.hpp>
|
||||||
#include <com/sun/star/ui/dialogs/XAsynchronousExecutableDialog.hpp>
|
#include <com/sun/star/ui/dialogs/XAsynchronousExecutableDialog.hpp>
|
||||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include "com/sun/star/uno/Reference.hxx"
|
#include "com/sun/star/uno/Reference.hxx"
|
||||||
#include "com/sun/star/uno/XComponentContext.hpp"
|
#include "com/sun/star/uno/XComponentContext.hpp"
|
||||||
#include "com/sun/star/ui/dialogs/XFilePicker2.hpp"
|
#include "com/sun/star/ui/dialogs/XFilePicker2.hpp"
|
||||||
#include "com/sun/star/ui/dialogs/XFolderPicker.hpp"
|
#include "com/sun/star/ui/dialogs/XFolderPicker2.hpp"
|
||||||
|
|
||||||
#include "tools/solar.h"
|
#include "tools/solar.h"
|
||||||
#include "vcl/displayconnectiondispatch.hxx"
|
#include "vcl/displayconnectiondispatch.hxx"
|
||||||
@ -168,10 +168,10 @@ public:
|
|||||||
createFilePicker( const com::sun::star::uno::Reference<
|
createFilePicker( const com::sun::star::uno::Reference<
|
||||||
com::sun::star::uno::XComponentContext >& )
|
com::sun::star::uno::XComponentContext >& )
|
||||||
{ return com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFilePicker2 >(); }
|
{ return com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFilePicker2 >(); }
|
||||||
virtual com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFolderPicker >
|
virtual com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFolderPicker2 >
|
||||||
createFolderPicker( const com::sun::star::uno::Reference<
|
createFolderPicker( const com::sun::star::uno::Reference<
|
||||||
com::sun::star::uno::XComponentContext >& )
|
com::sun::star::uno::XComponentContext >& )
|
||||||
{ return com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFolderPicker >(); }
|
{ return com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFolderPicker2 >(); }
|
||||||
|
|
||||||
// callbacks for printer updates
|
// callbacks for printer updates
|
||||||
virtual void updatePrinterUpdate() {}
|
virtual void updatePrinterUpdate() {}
|
||||||
|
@ -126,7 +126,7 @@ public:
|
|||||||
virtual com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFilePicker2 >
|
virtual com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFilePicker2 >
|
||||||
createFilePicker( const com::sun::star::uno::Reference<
|
createFilePicker( const com::sun::star::uno::Reference<
|
||||||
com::sun::star::uno::XComponentContext >& );
|
com::sun::star::uno::XComponentContext >& );
|
||||||
virtual com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFolderPicker >
|
virtual com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFolderPicker2 >
|
||||||
createFolderPicker( const com::sun::star::uno::Reference<
|
createFolderPicker( const com::sun::star::uno::Reference<
|
||||||
com::sun::star::uno::XComponentContext >& );
|
com::sun::star::uno::XComponentContext >& );
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ namespace uno {
|
|||||||
namespace ui {
|
namespace ui {
|
||||||
namespace dialogs {
|
namespace dialogs {
|
||||||
class XFilePicker2;
|
class XFilePicker2;
|
||||||
class XFolderPicker;
|
class XFolderPicker2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
namespace awt {
|
namespace awt {
|
||||||
@ -404,7 +404,7 @@ public:
|
|||||||
/** Create a platform specific folder picker, if one is available,
|
/** Create a platform specific folder picker, if one is available,
|
||||||
otherwise return an empty reference
|
otherwise return an empty reference
|
||||||
*/
|
*/
|
||||||
static com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFolderPicker >
|
static com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFolderPicker2 >
|
||||||
createFolderPicker( const com::sun::star::uno::Reference<
|
createFolderPicker( const com::sun::star::uno::Reference<
|
||||||
com::sun::star::uno::XComponentContext >& rServiceManager );
|
com::sun::star::uno::XComponentContext >& rServiceManager );
|
||||||
|
|
||||||
|
@ -1808,7 +1808,7 @@ Application::createFilePicker( const Reference< uno::XComponentContext >& xSM )
|
|||||||
return pSVData->mpDefInst->createFilePicker( xSM );
|
return pSVData->mpDefInst->createFilePicker( xSM );
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< ui::dialogs::XFolderPicker >
|
Reference< ui::dialogs::XFolderPicker2 >
|
||||||
Application::createFolderPicker( const Reference< uno::XComponentContext >& xSM )
|
Application::createFolderPicker( const Reference< uno::XComponentContext >& xSM )
|
||||||
{
|
{
|
||||||
ImplSVData* pSVData = ImplGetSVData();
|
ImplSVData* pSVData = ImplGetSVData();
|
||||||
|
@ -176,10 +176,10 @@ void SAL_CALL SalGtkFolderPicker::cancel() throw( uno::RuntimeException )
|
|||||||
// TODO m_pImpl->cancel();
|
// TODO m_pImpl->cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Reference< ui::dialogs::XFolderPicker >
|
uno::Reference< ui::dialogs::XFolderPicker2 >
|
||||||
GtkInstance::createFolderPicker( const uno::Reference< uno::XComponentContext > &xMSF )
|
GtkInstance::createFolderPicker( const uno::Reference< uno::XComponentContext > &xMSF )
|
||||||
{
|
{
|
||||||
return uno::Reference< ui::dialogs::XFolderPicker >(
|
return uno::Reference< ui::dialogs::XFolderPicker2 >(
|
||||||
new SalGtkFolderPicker( xMSF ) );
|
new SalGtkFolderPicker( xMSF ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,15 +23,14 @@
|
|||||||
#include <list>
|
#include <list>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <rtl/ustring.hxx>
|
#include <rtl/ustring.hxx>
|
||||||
#include <cppuhelper/implbase3.hxx>
|
#include <cppuhelper/implbase1.hxx>
|
||||||
|
|
||||||
#include "gtk/fpicker/SalGtkPicker.hxx"
|
#include "gtk/fpicker/SalGtkPicker.hxx"
|
||||||
|
|
||||||
class SalGtkFolderPicker :
|
class SalGtkFolderPicker :
|
||||||
public SalGtkPicker,
|
public SalGtkPicker,
|
||||||
public cppu::WeakImplHelper2<
|
public cppu::WeakImplHelper1<
|
||||||
::com::sun::star::ui::dialogs::XFolderPicker,
|
::com::sun::star::ui::dialogs::XFolderPicker2 >
|
||||||
::com::sun::star::util::XCancellable >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -22,11 +22,6 @@
|
|||||||
|
|
||||||
#include <osl/mutex.hxx>
|
#include <osl/mutex.hxx>
|
||||||
#include <cppuhelper/compbase2.hxx>
|
#include <cppuhelper/compbase2.hxx>
|
||||||
#include <com/sun/star/ui/dialogs/XFilePicker.hpp>
|
|
||||||
#include <com/sun/star/ui/dialogs/XFilePicker2.hpp>
|
|
||||||
#include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
|
|
||||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
|
||||||
#include <com/sun/star/util/XCancellable.hpp>
|
|
||||||
|
|
||||||
#include <com/sun/star/awt/XTopWindowListener.hpp>
|
#include <com/sun/star/awt/XTopWindowListener.hpp>
|
||||||
#include <com/sun/star/awt/XExtendedToolkit.hpp>
|
#include <com/sun/star/awt/XExtendedToolkit.hpp>
|
||||||
|
@ -36,7 +36,7 @@ public class SystemDialog
|
|||||||
|
|
||||||
Object systemDialog;
|
Object systemDialog;
|
||||||
XFilePicker xFilePicker;
|
XFilePicker xFilePicker;
|
||||||
XFolderPicker xFolderPicker;
|
XFolderPicker2 xFolderPicker;
|
||||||
XFilterManager xFilterManager;
|
XFilterManager xFilterManager;
|
||||||
XInitialization xInitialize;
|
XInitialization xInitialize;
|
||||||
XExecutableDialog xExecutable;
|
XExecutableDialog xExecutable;
|
||||||
@ -59,7 +59,7 @@ public class SystemDialog
|
|||||||
this.xMSF = xMSF;
|
this.xMSF = xMSF;
|
||||||
systemDialog = xMSF.createInstance(ServiceName);
|
systemDialog = xMSF.createInstance(ServiceName);
|
||||||
xFilePicker = UnoRuntime.queryInterface(XFilePicker.class, systemDialog);
|
xFilePicker = UnoRuntime.queryInterface(XFilePicker.class, systemDialog);
|
||||||
xFolderPicker = UnoRuntime.queryInterface(XFolderPicker.class, systemDialog);
|
xFolderPicker = UnoRuntime.queryInterface(XFolderPicker2.class, systemDialog);
|
||||||
xFilterManager = UnoRuntime.queryInterface(XFilterManager.class, systemDialog);
|
xFilterManager = UnoRuntime.queryInterface(XFilterManager.class, systemDialog);
|
||||||
xInitialize = UnoRuntime.queryInterface(XInitialization.class, systemDialog);
|
xInitialize = UnoRuntime.queryInterface(XInitialization.class, systemDialog);
|
||||||
xExecutable = UnoRuntime.queryInterface(XExecutableDialog.class, systemDialog);
|
xExecutable = UnoRuntime.queryInterface(XExecutableDialog.class, systemDialog);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user