coverity#737846 Uncaught exception
Change-Id: I9257ec4d9ccb7c602a9537230b61be944371d3ad
This commit is contained in:
@@ -34,11 +34,13 @@ protected:
|
|||||||
|
|
||||||
// Creating a SdrObject based on a Description. Cann be used by derived classes to
|
// Creating a SdrObject based on a Description. Cann be used by derived classes to
|
||||||
// support own ::com::sun::star::drawing::Shapes (for example Controls)
|
// support own ::com::sun::star::drawing::Shapes (for example Controls)
|
||||||
virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > & xShape )throw ();
|
virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > & xShape )
|
||||||
|
throw (std::exception);
|
||||||
|
|
||||||
// The following method is called when a SvxShape object should be created.
|
// The following method is called when a SvxShape object should be created.
|
||||||
// Derived classes can create a derivation or an object aggregating SvxShape.
|
// Derived classes can create a derivation or an object aggregating SvxShape.
|
||||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw ();
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const
|
||||||
|
throw (std::exception);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SvxFmDrawPage( SdrPage* pPage );
|
SvxFmDrawPage( SdrPage* pPage );
|
||||||
|
@@ -36,8 +36,18 @@ public:
|
|||||||
virtual sal_Bool queryAggregation( const com::sun::star::uno::Type & rType, com::sun::star::uno::Any& aAny ) = 0;
|
virtual sal_Bool queryAggregation( const com::sun::star::uno::Type & rType, com::sun::star::uno::Any& aAny ) = 0;
|
||||||
|
|
||||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException) = 0;
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException) = 0;
|
||||||
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) = 0;
|
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue )
|
||||||
virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) = 0;
|
throw (::com::sun::star::beans::UnknownPropertyException,
|
||||||
|
::com::sun::star::beans::PropertyVetoException,
|
||||||
|
::com::sun::star::lang::IllegalArgumentException,
|
||||||
|
::com::sun::star::lang::WrappedTargetException,
|
||||||
|
::com::sun::star::uno::RuntimeException,
|
||||||
|
std::exception) = 0;
|
||||||
|
virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName )
|
||||||
|
throw (::com::sun::star::beans::UnknownPropertyException,
|
||||||
|
::com::sun::star::lang::WrappedTargetException,
|
||||||
|
::com::sun::star::uno::RuntimeException,
|
||||||
|
std::exception) = 0;
|
||||||
|
|
||||||
virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) = 0;
|
virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) = 0;
|
||||||
virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) = 0;
|
virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) = 0;
|
||||||
|
@@ -91,13 +91,15 @@ class SVX_DLLPUBLIC SvxDrawPage : public ::cppu::WeakAggImplHelper5< ::com::sun:
|
|||||||
|
|
||||||
// Creating a SdrObject using it's Description.
|
// Creating a SdrObject using it's Description.
|
||||||
// Can be used by derived classes to support their owen Shapes (e.g. Controls).
|
// Can be used by derived classes to support their owen Shapes (e.g. Controls).
|
||||||
virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw();
|
virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape )
|
||||||
|
throw (std::exception);
|
||||||
|
|
||||||
static SvxShape* CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt32 nInventor, SdrObject *pObj = NULL, SvxDrawPage *pPage = NULL, OUString const & referer = OUString() ) throw();
|
static SvxShape* CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt32 nInventor, SdrObject *pObj = NULL, SvxDrawPage *pPage = NULL, OUString const & referer = OUString() ) throw();
|
||||||
|
|
||||||
// The following method is called if a SvxShape object is to be created.
|
// The following method is called if a SvxShape object is to be created.
|
||||||
// Derived classes can create a derivation or an SvxShape aggregating object.
|
// Derived classes can create a derivation or an SvxShape aggregating object.
|
||||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw();
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const
|
||||||
|
throw (std::exception);
|
||||||
|
|
||||||
UNO3_GETIMPLEMENTATION_DECL( SvxDrawPage )
|
UNO3_GETIMPLEMENTATION_DECL( SvxDrawPage )
|
||||||
|
|
||||||
@@ -109,7 +111,9 @@ class SVX_DLLPUBLIC SvxDrawPage : public ::cppu::WeakAggImplHelper5< ::com::sun:
|
|||||||
|
|
||||||
// XShapes
|
// XShapes
|
||||||
virtual void SAL_CALL add( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
|
virtual void SAL_CALL add( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
|
||||||
virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
|
virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape )
|
||||||
|
throw (::com::sun::star::uno::RuntimeException,
|
||||||
|
std::exception);
|
||||||
|
|
||||||
// XElementAccess
|
// XElementAccess
|
||||||
virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
|
virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
|
||||||
|
@@ -559,7 +559,12 @@ Reference< beans::XPropertySetInfo > SAL_CALL SdGenericDrawPage::getPropertySetI
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName, const Any& aValue )
|
void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName, const Any& aValue )
|
||||||
throw(beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
|
throw (beans::UnknownPropertyException,
|
||||||
|
beans::PropertyVetoException,
|
||||||
|
lang::IllegalArgumentException,
|
||||||
|
lang::WrappedTargetException,
|
||||||
|
uno::RuntimeException,
|
||||||
|
std::exception)
|
||||||
{
|
{
|
||||||
::SolarMutexGuard aGuard;
|
::SolarMutexGuard aGuard;
|
||||||
|
|
||||||
@@ -1336,7 +1341,8 @@ void SAL_CALL SdGenericDrawPage::firePropertiesChangeEvent( const Sequence< OUSt
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< drawing::XShape > SdGenericDrawPage::_CreateShape( SdrObject *pObj ) const throw()
|
Reference< drawing::XShape > SdGenericDrawPage::_CreateShape( SdrObject *pObj ) const
|
||||||
|
throw (std::exception)
|
||||||
{
|
{
|
||||||
DBG_ASSERT( GetPage(), "SdGenericDrawPage::_CreateShape(), can't create shape for disposed page!" );
|
DBG_ASSERT( GetPage(), "SdGenericDrawPage::_CreateShape(), can't create shape for disposed page!" );
|
||||||
DBG_ASSERT( pObj, "SdGenericDrawPage::_CreateShape(), invalid call with pObj == 0!" );
|
DBG_ASSERT( pObj, "SdGenericDrawPage::_CreateShape(), invalid call with pObj == 0!" );
|
||||||
|
@@ -108,7 +108,8 @@ public:
|
|||||||
throw (std::exception);
|
throw (std::exception);
|
||||||
|
|
||||||
// SvxFmDrawPage
|
// SvxFmDrawPage
|
||||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw ();
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const
|
||||||
|
throw (std::exception);
|
||||||
|
|
||||||
// XInterface
|
// XInterface
|
||||||
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
||||||
@@ -124,7 +125,13 @@ public:
|
|||||||
|
|
||||||
// XPropertySet
|
// XPropertySet
|
||||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
|
||||||
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
|
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue )
|
||||||
|
throw (::com::sun::star::beans::UnknownPropertyException,
|
||||||
|
::com::sun::star::beans::PropertyVetoException,
|
||||||
|
::com::sun::star::lang::IllegalArgumentException,
|
||||||
|
::com::sun::star::lang::WrappedTargetException,
|
||||||
|
::com::sun::star::uno::RuntimeException,
|
||||||
|
std::exception);
|
||||||
virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
|
virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
|
||||||
virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
|
virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
|
||||||
virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
|
virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
|
||||||
|
Reference in New Issue
Block a user