summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbawrapformat.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbawrapformat.cxx')
-rw-r--r--sw/source/ui/vba/vbawrapformat.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/sw/source/ui/vba/vbawrapformat.cxx b/sw/source/ui/vba/vbawrapformat.cxx
index 2d411778d446..c585b7455a5a 100644
--- a/sw/source/ui/vba/vbawrapformat.cxx
+++ b/sw/source/ui/vba/vbawrapformat.cxx
@@ -37,7 +37,7 @@ SwVbaWrapFormat::SwVbaWrapFormat( uno::Sequence< uno::Any > const& aArgs, uno::R
m_xPropertySet.set( m_xShape, uno::UNO_QUERY_THROW );
}
-void SwVbaWrapFormat::makeWrap() throw (uno::RuntimeException)
+void SwVbaWrapFormat::makeWrap()
{
text::WrapTextMode eTextMode = text::WrapTextMode_NONE;
if( mnSide == word::WdWrapSideType::wdWrapLeft )
@@ -86,7 +86,7 @@ void SwVbaWrapFormat::makeWrap() throw (uno::RuntimeException)
m_xPropertySet->setPropertyValue("TextWrap", uno::makeAny( eTextMode ) );
}
-::sal_Int32 SAL_CALL SwVbaWrapFormat::getType() throw (uno::RuntimeException, std::exception)
+::sal_Int32 SAL_CALL SwVbaWrapFormat::getType()
{
sal_Int32 nType = word::WdWrapType::wdWrapSquare;
text::WrapTextMode eTextMode;
@@ -128,13 +128,13 @@ void SwVbaWrapFormat::makeWrap() throw (uno::RuntimeException)
return nType;
}
-void SAL_CALL SwVbaWrapFormat::setType( ::sal_Int32 _type ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaWrapFormat::setType( ::sal_Int32 _type )
{
mnWrapFormatType = _type;
makeWrap();
}
-::sal_Int32 SAL_CALL SwVbaWrapFormat::getSide() throw (uno::RuntimeException, std::exception)
+::sal_Int32 SAL_CALL SwVbaWrapFormat::getSide()
{
sal_Int32 nSide = word::WdWrapSideType::wdWrapBoth;
text::WrapTextMode eTextMode;
@@ -159,61 +159,61 @@ void SAL_CALL SwVbaWrapFormat::setType( ::sal_Int32 _type ) throw (uno::RuntimeE
return nSide;
}
-void SAL_CALL SwVbaWrapFormat::setSide( ::sal_Int32 _side ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaWrapFormat::setSide( ::sal_Int32 _side )
{
mnSide = _side;
makeWrap();
}
-float SwVbaWrapFormat::getDistance( const OUString& sName ) throw (uno::RuntimeException)
+float SwVbaWrapFormat::getDistance( const OUString& sName )
{
sal_Int32 nDistance = 0;
m_xPropertySet->getPropertyValue( sName ) >>= nDistance;
return static_cast< float >( Millimeter::getInPoints( nDistance ) );
}
-void SwVbaWrapFormat::setDistance( const OUString& sName, float _distance ) throw (uno::RuntimeException)
+void SwVbaWrapFormat::setDistance( const OUString& sName, float _distance )
{
sal_Int32 nDistance = Millimeter::getInHundredthsOfOneMillimeter( _distance );
m_xPropertySet->setPropertyValue( sName, uno::makeAny( nDistance ) );
}
-float SAL_CALL SwVbaWrapFormat::getDistanceTop() throw (uno::RuntimeException, std::exception)
+float SAL_CALL SwVbaWrapFormat::getDistanceTop()
{
return getDistance( "TopMargin" );
}
-void SAL_CALL SwVbaWrapFormat::setDistanceTop( float _distancetop ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaWrapFormat::setDistanceTop( float _distancetop )
{
setDistance( "TopMargin", _distancetop );
}
-float SAL_CALL SwVbaWrapFormat::getDistanceBottom() throw (uno::RuntimeException, std::exception)
+float SAL_CALL SwVbaWrapFormat::getDistanceBottom()
{
return getDistance( "BottomMargin" );
}
-void SAL_CALL SwVbaWrapFormat::setDistanceBottom( float _distancebottom ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaWrapFormat::setDistanceBottom( float _distancebottom )
{
setDistance( "BottomMargin", _distancebottom );
}
-float SAL_CALL SwVbaWrapFormat::getDistanceLeft() throw (uno::RuntimeException, std::exception)
+float SAL_CALL SwVbaWrapFormat::getDistanceLeft()
{
return getDistance( "LeftMargin" );
}
-void SAL_CALL SwVbaWrapFormat::setDistanceLeft( float _distanceleft ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaWrapFormat::setDistanceLeft( float _distanceleft )
{
setDistance( "LeftMargin", _distanceleft );
}
-float SAL_CALL SwVbaWrapFormat::getDistanceRight() throw (uno::RuntimeException, std::exception)
+float SAL_CALL SwVbaWrapFormat::getDistanceRight()
{
return getDistance( "RightMargin" );
}
-void SAL_CALL SwVbaWrapFormat::setDistanceRight( float _distanceright ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaWrapFormat::setDistanceRight( float _distanceright )
{
setDistance( "RightMargin", _distanceright );
}