diff options
Diffstat (limited to 'sc/source/ui/vba/vbapagebreak.cxx')
-rw-r--r-- | sc/source/ui/vba/vbapagebreak.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/vba/vbapagebreak.cxx b/sc/source/ui/vba/vbapagebreak.cxx index 2f29060bb1a2..53a63c01e29a 100644 --- a/sc/source/ui/vba/vbapagebreak.cxx +++ b/sc/source/ui/vba/vbapagebreak.cxx @@ -27,7 +27,7 @@ template< typename... Ifc > ScVbaPageBreak< Ifc... >::ScVbaPageBreak( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, uno::Reference< beans::XPropertySet >& xProps, - sheet::TablePageBreakData aTablePageBreakData) throw (uno::RuntimeException): + sheet::TablePageBreakData aTablePageBreakData): ScVbaPageBreak_BASE( xParent, xContext ), mxRowColPropertySet( xProps ), maTablePageBreakData( aTablePageBreakData ) @@ -35,7 +35,7 @@ ScVbaPageBreak< Ifc... >::ScVbaPageBreak( const uno::Reference< XHelperInterface } template< typename... Ifc > -sal_Int32 ScVbaPageBreak< Ifc... >::getType() throw (uno::RuntimeException) +sal_Int32 ScVbaPageBreak< Ifc... >::getType() { uno::Any aValue = mxRowColPropertySet->getPropertyValue("IsStartOfNewPage"); bool hasPageBreak = false; @@ -51,7 +51,7 @@ sal_Int32 ScVbaPageBreak< Ifc... >::getType() throw (uno::RuntimeException) } template< typename... Ifc > -void ScVbaPageBreak< Ifc... >::setType(sal_Int32 type) throw (uno::RuntimeException) +void ScVbaPageBreak< Ifc... >::setType(sal_Int32 type) { if( (type != excel::XlPageBreak::xlPageBreakNone) && (type != excel::XlPageBreak::xlPageBreakManual) && @@ -74,13 +74,13 @@ void ScVbaPageBreak< Ifc... >::setType(sal_Int32 type) throw (uno::RuntimeExcept } template< typename... Ifc > -void ScVbaPageBreak< Ifc... >::Delete() throw ( script::BasicErrorException, uno::RuntimeException) +void ScVbaPageBreak< Ifc... >::Delete() { mxRowColPropertySet->setPropertyValue("IsStartOfNewPage", uno::makeAny(false)); } template< typename... Ifc > -uno::Reference< excel::XRange> ScVbaPageBreak< Ifc... >::Location() throw ( script::BasicErrorException, uno::RuntimeException) +uno::Reference< excel::XRange> ScVbaPageBreak< Ifc... >::Location() { uno::Reference< table::XCellRange > xRange( mxRowColPropertySet, uno::UNO_QUERY_THROW ); return new ScVbaRange( ScVbaPageBreak_BASE::getParent(), ScVbaPageBreak_BASE::mxContext, xRange); @@ -113,7 +113,7 @@ template class ScVbaPageBreak< excel::XVPageBreak >; ScVbaVPageBreak::ScVbaVPageBreak( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, css::uno::Reference< css::beans::XPropertySet >& xProps, - css::sheet::TablePageBreakData aTablePageBreakData ) throw ( css::uno::RuntimeException ) + css::sheet::TablePageBreakData aTablePageBreakData ) : ScVbaVPageBreak_BASE( xParent, xContext, xProps, aTablePageBreakData ) { } |