diff options
author | Tino Rachui <tra@openoffice.org> | 2001-07-02 07:09:14 +0000 |
---|---|---|
committer | Tino Rachui <tra@openoffice.org> | 2001-07-02 07:09:14 +0000 |
commit | 44be59e7ae1fe989464d16d1167231bc6ee8272b (patch) | |
tree | 4bb5432882aa5afa17c00b28bb2dd6a96a8f9fb9 /fpicker | |
parent | 5462dbf3a308104b15394f89016b870d4684a53c (diff) |
IllegalArgumentException specification from XFilePickerControlAccess methods removed
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/filepicker/FilePicker.cxx | 21 | ||||
-rw-r--r-- | fpicker/source/win32/filepicker/FilePicker.hxx | 14 |
2 files changed, 21 insertions, 14 deletions
diff --git a/fpicker/source/win32/filepicker/FilePicker.cxx b/fpicker/source/win32/filepicker/FilePicker.cxx index f47310969913..6c5109451470 100644 --- a/fpicker/source/win32/filepicker/FilePicker.cxx +++ b/fpicker/source/win32/filepicker/FilePicker.cxx @@ -2,9 +2,9 @@ * * $RCSfile: FilePicker.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: tra $ $Date: 2001-06-28 11:13:15 $ + * last change: $Author: tra $ $Date: 2001-07-02 08:09:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -422,7 +422,7 @@ sal_Int16 SAL_CALL CFilePicker::execute( ) throw(RuntimeException) //------------------------------------------------------------------------------------ void SAL_CALL CFilePicker::setValue( sal_Int16 aControlId, sal_Int16 aControlAction, const Any& aValue ) - throw(IllegalArgumentException, RuntimeException) + throw(RuntimeException) { OSL_ASSERT( 0 != m_pImpl.get( ) ); m_pImpl->setValue( aControlId, aControlAction, aValue ); @@ -433,7 +433,7 @@ void SAL_CALL CFilePicker::setValue( sal_Int16 aControlId, sal_Int16 aControlAct //----------------------------------------------------------------------------------------- Any SAL_CALL CFilePicker::getValue( sal_Int16 aControlId, sal_Int16 aControlAction ) - throw(IllegalArgumentException, RuntimeException) + throw(RuntimeException) { OSL_ASSERT( 0 != m_pImpl.get( ) ); return m_pImpl->getValue( aControlId, aControlAction ); @@ -444,7 +444,7 @@ Any SAL_CALL CFilePicker::getValue( sal_Int16 aControlId, sal_Int16 aControlAct //----------------------------------------------------------------------------------------- void SAL_CALL CFilePicker::enableControl( sal_Int16 aControlId, sal_Bool bEnable ) - throw(IllegalArgumentException, RuntimeException) + throw(RuntimeException) { OSL_ASSERT( 0 != m_pImpl.get( ) ); m_pImpl->enableControl( aControlId, bEnable ); @@ -455,7 +455,7 @@ void SAL_CALL CFilePicker::enableControl( sal_Int16 aControlId, sal_Bool bEnable //----------------------------------------------------------------------------------------- void SAL_CALL CFilePicker::setLabel( sal_Int16 aControlId, const ::rtl::OUString& aLabel ) - throw (IllegalArgumentException, RuntimeException) + throw (RuntimeException) { MutexGuard aGuard( m_aMutex ); m_pImpl->setLabel( aControlId, aLabel ); @@ -466,7 +466,7 @@ void SAL_CALL CFilePicker::setLabel( sal_Int16 aControlId, const ::rtl::OUString //----------------------------------------------------------------------------------------- OUString SAL_CALL CFilePicker::getLabel( sal_Int16 aControlId ) - throw ( IllegalArgumentException, RuntimeException) + throw (RuntimeException) { MutexGuard aGuard( m_aMutex ); return m_pImpl->getLabel( aControlId ); @@ -623,6 +623,13 @@ void SAL_CALL CFilePicker::initialize( const Sequence< Any >& aArguments ) winResTemplateId = TMPL95_FILEOPEN_READONLY_VERSION_BOX_ID; break; + case FILEOPEN_LINK_PREVIEW: + if ( bIsWin2000 ) + winResTemplateId = TMPL2000_FILEOPEN_LINK_PREVIEW_BOX_SIMPLE_ID; + else + winResTemplateId = TMPL95_FILEOPEN_LINK_PREVIEW_BOX_SIMPLE_ID; + break; + default: throw IllegalArgumentException( OUString::createFromAscii( "Unknown template" ), diff --git a/fpicker/source/win32/filepicker/FilePicker.hxx b/fpicker/source/win32/filepicker/FilePicker.hxx index d83783952802..6bd9ce6e05e2 100644 --- a/fpicker/source/win32/filepicker/FilePicker.hxx +++ b/fpicker/source/win32/filepicker/FilePicker.hxx @@ -2,9 +2,9 @@ * * $RCSfile: FilePicker.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: tra $ $Date: 2001-06-28 11:13:03 $ + * last change: $Author: tra $ $Date: 2001-07-02 08:09:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -199,19 +199,19 @@ public: //------------------------------------------------------------------------------------ virtual void SAL_CALL setValue( sal_Int16 aControlId, sal_Int16 aControlAction, const ::com::sun::star::uno::Any& aValue ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Any SAL_CALL getValue( sal_Int16 aControlId, sal_Int16 aControlAction ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL enableControl( sal_Int16 aControlId, sal_Bool bEnable ) - throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ); + throw(::com::sun::star::uno::RuntimeException ); virtual void SAL_CALL setLabel( sal_Int16 aControlId, const ::rtl::OUString& aLabel ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException); virtual ::rtl::OUString SAL_CALL getLabel( sal_Int16 aControlId ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException); //------------------------------------------------ // XFilePreview |