summaryrefslogtreecommitdiff
path: root/fpicker/source/win32/filepicker/WinFileOpenImpl.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/win32/filepicker/WinFileOpenImpl.hxx')
-rw-r--r--fpicker/source/win32/filepicker/WinFileOpenImpl.hxx112
1 files changed, 56 insertions, 56 deletions
diff --git a/fpicker/source/win32/filepicker/WinFileOpenImpl.hxx b/fpicker/source/win32/filepicker/WinFileOpenImpl.hxx
index e20fbf58ff1a..379a2dd49646 100644
--- a/fpicker/source/win32/filepicker/WinFileOpenImpl.hxx
+++ b/fpicker/source/win32/filepicker/WinFileOpenImpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,32 +63,32 @@ class CNonExecuteFilePickerState;
class CWinFileOpenImpl : public CFileOpenDialog
{
public:
- CWinFileOpenImpl(
- CFilePicker* aFilePicker,
- sal_Bool bFileOpenDialog = sal_True,
+ CWinFileOpenImpl(
+ CFilePicker* aFilePicker,
+ sal_Bool bFileOpenDialog = sal_True,
sal_uInt32 dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
sal_uInt32 dwTemplateId = 0,
HINSTANCE hInstance = 0 );
virtual ~CWinFileOpenImpl( );
-
+
//-----------------------------------------------------------------------------------------
// XExecutableDialog
//-----------------------------------------------------------------------------------------
-
+
virtual sal_Int16 SAL_CALL execute( ) throw( ::com::sun::star::uno::RuntimeException );
//-----------------------------------------------------------------------------------------
// XFilePicker
//-----------------------------------------------------------------------------------------
-
- virtual void SAL_CALL setDefaultName( const ::rtl::OUString& aName )
+
+ virtual void SAL_CALL setDefaultName( const ::rtl::OUString& aName )
throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
-
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getFiles( )
+
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getFiles( )
throw(::com::sun::star::uno::RuntimeException );
-
- virtual void SAL_CALL setDisplayDirectory( const ::rtl::OUString& aDirectory )
+
+ virtual void SAL_CALL setDisplayDirectory( const ::rtl::OUString& aDirectory )
throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
virtual ::rtl::OUString SAL_CALL getDisplayDirectory( ) throw ( ::com::sun::star::uno::RuntimeException );
@@ -97,64 +97,64 @@ public:
// XFilterManager
//-----------------------------------------------------------------------------------------
- virtual void SAL_CALL appendFilter( const ::rtl::OUString& aTitle, const ::rtl::OUString& aFilter )
+ virtual void SAL_CALL appendFilter( const ::rtl::OUString& aTitle, const ::rtl::OUString& aFilter )
throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL setCurrentFilter( const ::rtl::OUString& aTitle )
+ virtual void SAL_CALL setCurrentFilter( const ::rtl::OUString& aTitle )
throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
- virtual ::rtl::OUString SAL_CALL getCurrentFilter( )
+ virtual ::rtl::OUString SAL_CALL getCurrentFilter( )
throw( ::com::sun::star::uno::RuntimeException );
//-----------------------------------------------------------------------------------------
// XFilterGroupManager
//-----------------------------------------------------------------------------------------
- virtual void SAL_CALL appendFilterGroup( const ::rtl::OUString& sGroupTitle, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair >& aFilters )
+ virtual void SAL_CALL appendFilterGroup( const ::rtl::OUString& sGroupTitle, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair >& aFilters )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
//-----------------------------------------------------------------------------------------
// XFilePickerControlAccess
//-----------------------------------------------------------------------------------------
-
- virtual void SAL_CALL setValue( sal_Int16 aControlId, sal_Int16 aControlAction, const ::com::sun::star::uno::Any& aValue )
+
+ virtual void SAL_CALL setValue( sal_Int16 aControlId, sal_Int16 aControlAction, const ::com::sun::star::uno::Any& aValue )
throw( ::com::sun::star::uno::RuntimeException );
- virtual ::com::sun::star::uno::Any SAL_CALL getValue( sal_Int16 aControlId, sal_Int16 aControlAction )
+ virtual ::com::sun::star::uno::Any SAL_CALL getValue( sal_Int16 aControlId, sal_Int16 aControlAction )
throw( ::com::sun::star::uno::RuntimeException );
-
- virtual void SAL_CALL enableControl( sal_Int16 aControlId, sal_Bool bEnable )
+
+ virtual void SAL_CALL enableControl( sal_Int16 aControlId, sal_Bool bEnable )
throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL setLabel( sal_Int16 aControlId, const ::rtl::OUString& aLabel )
+ virtual void SAL_CALL setLabel( sal_Int16 aControlId, const ::rtl::OUString& aLabel )
throw (::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getLabel( sal_Int16 aControlId )
+ virtual ::rtl::OUString SAL_CALL getLabel( sal_Int16 aControlId )
throw ( ::com::sun::star::uno::RuntimeException);
-
+
//------------------------------------------------
// XFilePreview
//------------------------------------------------
- virtual ::com::sun::star::uno::Sequence< sal_Int16 > SAL_CALL getSupportedImageFormats( )
+ virtual ::com::sun::star::uno::Sequence< sal_Int16 > SAL_CALL getSupportedImageFormats( )
throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getTargetColorDepth( )
+ virtual sal_Int32 SAL_CALL getTargetColorDepth( )
throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getAvailableWidth( )
+ virtual sal_Int32 SAL_CALL getAvailableWidth( )
throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getAvailableHeight( )
+ virtual sal_Int32 SAL_CALL getAvailableHeight( )
throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setImage( sal_Int16 aImageFormat, const ::com::sun::star::uno::Any& aImage )
+ virtual void SAL_CALL setImage( sal_Int16 aImageFormat, const ::com::sun::star::uno::Any& aImage )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL setShowState( sal_Bool bShowState )
+ virtual sal_Bool SAL_CALL setShowState( sal_Bool bShowState )
throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL getShowState( )
+ virtual sal_Bool SAL_CALL getShowState( )
throw (::com::sun::star::uno::RuntimeException);
//------------------------------------------------
@@ -174,59 +174,59 @@ protected:
virtual void SAL_CALL postModal( sal_Int16 nDialogResult );
virtual sal_uInt32 SAL_CALL onFileOk();
- virtual void SAL_CALL onSelChanged( HWND hwndListBox );
+ virtual void SAL_CALL onSelChanged( HWND hwndListBox );
// only called back if OFN_EXPLORER is set
- virtual void SAL_CALL onInitDone();
+ virtual void SAL_CALL onInitDone();
virtual void SAL_CALL onFolderChanged();
virtual void SAL_CALL onTypeChanged( sal_uInt32 nFilterIndex );
-
+
// call base class method first when overloading
virtual void SAL_CALL onInitDialog( HWND hwndDlg );
virtual sal_uInt32 SAL_CALL onCtrlCommand( HWND hwndDlg, sal_uInt16 ctrlId, sal_uInt16 notifyCode );
-
+
void onWMSize();
void onWMShow(BOOL bShow);
void onWMWindowPosChanged();
void onCustomControlHelpRequest(LPHELPINFO lphi);
-private:
+private:
inline void SAL_CALL appendFilterGroupSeparator( );
-
+
inline sal_Bool SAL_CALL IsCustomControlHelpRequested(LPHELPINFO lphi) const;
void EnlargeStdControlLabels() const;
-
+
// initialize all controls from cache
void SAL_CALL InitControlLabel( HWND hWnd );
void SAL_CALL InitCustomControlContainer(HWND hCustomControl);
-
- // save the control state
+
+ // save the control state
void SAL_CALL CacheControlState(HWND hWnd);
void SAL_CALL SetDefaultExtension();
void SAL_CALL InitialSetDefaultName();
-
+
static LRESULT CALLBACK SubClassFunc(HWND hWnd, UINT wMessage, WPARAM wParam, LPARAM lParam);
static BOOL CALLBACK EnumChildWndProc( HWND hWnd, LPARAM lParam );
-
-private:
- std::auto_ptr<CFilterContainer> m_filterContainer;
- std::auto_ptr<CPreviewAdapter> m_Preview;
- std::auto_ptr<CCustomControlFactory> m_CustomControlFactory;
- std::auto_ptr<CCustomControl> m_CustomControls;
- CFilePicker* m_FilePicker;
- WNDPROC m_pfnOldDlgProc;
- rtl::OUString m_defaultName;
- sal_Bool m_bInitialSelChanged;
- CHelpPopupWindow m_HelpPopupWindow;
- CFilePickerState* m_FilePickerState;
- CExecuteFilePickerState* m_ExecuteFilePickerState;
- CNonExecuteFilePickerState* m_NonExecuteFilePickerState;
- CResourceProvider m_ResProvider;
+
+private:
+ std::auto_ptr<CFilterContainer> m_filterContainer;
+ std::auto_ptr<CPreviewAdapter> m_Preview;
+ std::auto_ptr<CCustomControlFactory> m_CustomControlFactory;
+ std::auto_ptr<CCustomControl> m_CustomControls;
+ CFilePicker* m_FilePicker;
+ WNDPROC m_pfnOldDlgProc;
+ rtl::OUString m_defaultName;
+ sal_Bool m_bInitialSelChanged;
+ CHelpPopupWindow m_HelpPopupWindow;
+ CFilePickerState* m_FilePickerState;
+ CExecuteFilePickerState* m_ExecuteFilePickerState;
+ CNonExecuteFilePickerState* m_NonExecuteFilePickerState;
+ CResourceProvider m_ResProvider;
};