diff options
Diffstat (limited to 'basegfx/source/tools/unopolypolygon.cxx')
-rw-r--r-- | basegfx/source/tools/unopolypolygon.cxx | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/basegfx/source/tools/unopolypolygon.cxx b/basegfx/source/tools/unopolypolygon.cxx index 12e00a784422..6d87f738448c 100644 --- a/basegfx/source/tools/unopolypolygon.cxx +++ b/basegfx/source/tools/unopolypolygon.cxx @@ -51,7 +51,7 @@ namespace unotools void SAL_CALL UnoPolyPolygon::addPolyPolygon( const geometry::RealPoint2D& position, - const uno::Reference< rendering::XPolyPolygon2D >& polyPolygon ) throw (lang::IllegalArgumentException,uno::RuntimeException, std::exception) + const uno::Reference< rendering::XPolyPolygon2D >& polyPolygon ) { osl::MutexGuard const guard( m_aMutex ); modifying(); @@ -129,14 +129,14 @@ namespace unotools maPolyPoly.append( aSrcPoly ); } - sal_Int32 SAL_CALL UnoPolyPolygon::getNumberOfPolygons() throw (uno::RuntimeException, std::exception) + sal_Int32 SAL_CALL UnoPolyPolygon::getNumberOfPolygons() { osl::MutexGuard const guard( m_aMutex ); return maPolyPoly.count(); } sal_Int32 SAL_CALL UnoPolyPolygon::getNumberOfPolygonPoints( - sal_Int32 polygon ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Int32 polygon ) { osl::MutexGuard const guard( m_aMutex ); checkIndex( polygon ); @@ -144,14 +144,14 @@ namespace unotools return maPolyPoly.getB2DPolygon(polygon).count(); } - rendering::FillRule SAL_CALL UnoPolyPolygon::getFillRule() throw (uno::RuntimeException, std::exception) + rendering::FillRule SAL_CALL UnoPolyPolygon::getFillRule() { osl::MutexGuard const guard( m_aMutex ); return meFillRule; } void SAL_CALL UnoPolyPolygon::setFillRule( - rendering::FillRule fillRule ) throw (uno::RuntimeException, std::exception) + rendering::FillRule fillRule ) { osl::MutexGuard const guard( m_aMutex ); modifying(); @@ -160,7 +160,7 @@ namespace unotools } sal_Bool SAL_CALL UnoPolyPolygon::isClosed( - sal_Int32 index ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Int32 index ) { osl::MutexGuard const guard( m_aMutex ); checkIndex( index ); @@ -170,7 +170,7 @@ namespace unotools void SAL_CALL UnoPolyPolygon::setClosed( sal_Int32 index, - sal_Bool closedState ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Bool closedState ) { osl::MutexGuard const guard( m_aMutex ); modifying(); @@ -197,7 +197,7 @@ namespace unotools sal_Int32 nPolygonIndex, sal_Int32 nNumberOfPolygons, sal_Int32 nPointIndex, - sal_Int32 nNumberOfPoints ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Int32 nNumberOfPoints ) { osl::MutexGuard const guard( m_aMutex ); @@ -210,7 +210,7 @@ namespace unotools void SAL_CALL UnoPolyPolygon::setPoints( const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points, - sal_Int32 nPolygonIndex ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Int32 nPolygonIndex ) { osl::MutexGuard const guard( m_aMutex ); modifying(); @@ -232,7 +232,7 @@ namespace unotools geometry::RealPoint2D SAL_CALL UnoPolyPolygon::getPoint( sal_Int32 nPolygonIndex, - sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Int32 nPointIndex ) { osl::MutexGuard const guard( m_aMutex ); checkIndex( nPolygonIndex ); @@ -248,7 +248,7 @@ namespace unotools void SAL_CALL UnoPolyPolygon::setPoint( const geometry::RealPoint2D& point, sal_Int32 nPolygonIndex, - sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Int32 nPointIndex ) { osl::MutexGuard const guard( m_aMutex ); checkIndex( nPolygonIndex ); @@ -268,7 +268,7 @@ namespace unotools sal_Int32 nPolygonIndex, sal_Int32 nNumberOfPolygons, sal_Int32 nPointIndex, - sal_Int32 nNumberOfPoints ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception) + sal_Int32 nNumberOfPoints ) { osl::MutexGuard const guard( m_aMutex ); return unotools::bezierSequenceSequenceFromB2DPolyPolygon( @@ -280,8 +280,7 @@ namespace unotools void SAL_CALL UnoPolyPolygon::setBezierSegments( const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points, - sal_Int32 nPolygonIndex ) throw (lang::IndexOutOfBoundsException, - uno::RuntimeException, std::exception) + sal_Int32 nPolygonIndex ) { osl::MutexGuard const guard( m_aMutex ); modifying(); @@ -301,8 +300,7 @@ namespace unotools } geometry::RealBezierSegment2D SAL_CALL UnoPolyPolygon::getBezierSegment( sal_Int32 nPolygonIndex, - sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException, - uno::RuntimeException, std::exception) + sal_Int32 nPointIndex ) { osl::MutexGuard const guard( m_aMutex ); checkIndex( nPolygonIndex ); @@ -327,8 +325,7 @@ namespace unotools void SAL_CALL UnoPolyPolygon::setBezierSegment( const geometry::RealBezierSegment2D& segment, sal_Int32 nPolygonIndex, - sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException, - uno::RuntimeException, std::exception) + sal_Int32 nPointIndex ) { osl::MutexGuard const guard( m_aMutex ); checkIndex( nPolygonIndex ); @@ -436,17 +433,17 @@ namespace unotools #define IMPLEMENTATION_NAME "gfx::internal::UnoPolyPolygon" #define SERVICE_NAME "com.sun.star.rendering.PolyPolygon2D" - OUString SAL_CALL UnoPolyPolygon::getImplementationName() throw( uno::RuntimeException, std::exception ) + OUString SAL_CALL UnoPolyPolygon::getImplementationName() { return OUString( IMPLEMENTATION_NAME ); } - sal_Bool SAL_CALL UnoPolyPolygon::supportsService( const OUString& ServiceName ) throw( uno::RuntimeException, std::exception ) + sal_Bool SAL_CALL UnoPolyPolygon::supportsService( const OUString& ServiceName ) { return cppu::supportsService(this, ServiceName); } - uno::Sequence< OUString > SAL_CALL UnoPolyPolygon::getSupportedServiceNames() throw( uno::RuntimeException, std::exception ) + uno::Sequence< OUString > SAL_CALL UnoPolyPolygon::getSupportedServiceNames() { return { SERVICE_NAME }; } |