diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-05 15:38:55 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-05 15:38:55 +0000 |
commit | 32d3e61df6763d72b141289f95b25430edb0aba3 (patch) | |
tree | 4e6165b1ec2b7cbd8b6b156e4446c307442d43c4 /fpicker/source | |
parent | 40773d9b269d2977fd3d32df9b6e7a2598f4b004 (diff) |
INTEGRATION: CWS aquafilepicker02_DEV300 (1.2.40); FILE MERGED
2008/01/14 08:23:24 fheckl 1.2.40.3: Code cleanup and some implementation details
2008/01/02 18:25:59 fheckl 1.2.40.2: issue #80399 more Cocoa
2007/11/18 19:36:37 fheckl 1.2.40.1: initial support for Cocoa version
Diffstat (limited to 'fpicker/source')
-rw-r--r-- | fpicker/source/aqua/SalAquaPicker.hxx | 68 |
1 files changed, 14 insertions, 54 deletions
diff --git a/fpicker/source/aqua/SalAquaPicker.hxx b/fpicker/source/aqua/SalAquaPicker.hxx index 794f0e572f92..f2fd4349c038 100644 --- a/fpicker/source/aqua/SalAquaPicker.hxx +++ b/fpicker/source/aqua/SalAquaPicker.hxx @@ -4,9 +4,9 @@ * * $RCSfile: SalAquaPicker.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: ihi $ $Date: 2007-07-11 10:59:54 $ + * last change: $Author: kz $ $Date: 2008-03-05 16:38:55 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -44,33 +44,24 @@ #include <osl/mutex.hxx> #endif -#ifndef _COM_SUN_STAR_UI_DIALOGS_XFILEPICKER_HPP_ -#include <com/sun/star/ui/dialogs/XFilePicker.hpp> +#ifndef _RTL_USTRING_HXX +#include <rtl/ustring.hxx> #endif -#ifndef _COM_SUN_STAR_UI_XFOLDERPICKER_HPP_ -#include <com/sun/star/ui/dialogs/XFolderPicker.hpp> +#ifndef _COM_SUN_STAR_LANG_ILLEGALARGUMENTEXCEPTION_HXX_ +#include <com/sun/star/lang/IllegalArgumentException.hpp> #endif -#ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_ -#include <com/sun/star/lang/XServiceInfo.hpp> -#endif - -#ifndef _COM_SUN_STAR_UTIL_XCANCELLABLE_HPP_ -#include <com/sun/star/util/XCancellable.hpp> -#endif - -#ifndef _VOS_MUTEX_HXX_ -#include <vos/mutex.hxx> +#ifndef _COM_SUN_STAR_UNO_RUNTIMEEXCEPTION_HXX_ +#include <com/sun/star/uno/RuntimeException.hpp> #endif #ifndef _CONTROLHELPER_HXX_ #include "ControlHelper.hxx" #endif -#include <unistd.h> #include <premac.h> -#include <Carbon/Carbon.h> +#import <Cocoa/Cocoa.h> #include <postmac.h> //---------------------------------------------------------- @@ -84,33 +75,10 @@ public: SalAquaPicker(); virtual ~SalAquaPicker(); - OSStatus run(); - OSStatus runandwaitforresult(); - - virtual void implHandleNavDialogCustomize(NavCBRecPtr callBackParms); - - virtual void implHandleNavDialogStart(NavCBRecPtr callBackParms); - - virtual void implHandleNavDialogEvent(NavCBRecPtr callBackParms); - - virtual sal_Bool implFilterHandler(AEDesc *theItem, void *info, - void *callBackUD, - NavFilterModes filterMode); - - virtual void implHandlePopupMenuSelect(NavMenuItemSpec* menuItem); - virtual void implHandleNavDialogSelectEntry(NavCBRecPtr callBackParms); - virtual sal_Bool implPreviewHandler(NavCBRecPtr callBackParms); + int run(); + int runandwaitforresult(); inline rtl::OUString getDisplayDirectory() { return m_sDisplayDirectory; } - inline NavDialogRef getDialogRef() { return m_pDialog; } - - inline NavEventCallbackMessage getLatestEvent() { - return m_aLatestEvent; - } - - inline void setLatestEvent(NavEventCallbackMessage eventType) { - m_aLatestEvent = eventType; - } inline ControlHelper* getControlHelper() const { return m_pControlHelper; @@ -119,17 +87,12 @@ public: protected: rtl::OUString m_sDisplayDirectory; - NavDialogRef m_pDialog; + + NSSavePanel *m_pDialog; + ControlHelper *m_pControlHelper; osl::Mutex m_rbHelperMtx; - //::vos::OGuard guard; - - NavDialogCreationOptions m_pDialogOptions; - NavEventUPP m_pEventHandler; - NavObjectFilterUPP m_pFilterHandler; - NavPreviewUPP m_pPreviewHandler; - NavReplyRecord m_pReplyRecord; // The type of dialog enum NavigationServices_DialogType { @@ -140,9 +103,6 @@ protected: NavigationServices_DialogType m_nDialogType; - NavEventCallbackMessage m_aLatestEvent; - -protected: void implsetTitle( const ::rtl::OUString& aTitle ) throw( ::com::sun::star::uno::RuntimeException ); |