summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbatableofcontents.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbatableofcontents.cxx')
-rw-r--r--sw/source/ui/vba/vbatableofcontents.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/sw/source/ui/vba/vbatableofcontents.cxx b/sw/source/ui/vba/vbatableofcontents.cxx
index 34c177b10b07..778c8cfdf5d6 100644
--- a/sw/source/ui/vba/vbatableofcontents.cxx
+++ b/sw/source/ui/vba/vbatableofcontents.cxx
@@ -25,7 +25,7 @@
using namespace ::ooo::vba;
using namespace ::com::sun::star;
-SwVbaTableOfContents::SwVbaTableOfContents( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Reference< text::XTextDocument >& xDoc, const uno::Reference< text::XDocumentIndex >& xDocumentIndex ) throw ( uno::RuntimeException ) :
+SwVbaTableOfContents::SwVbaTableOfContents( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Reference< text::XTextDocument >& xDoc, const uno::Reference< text::XDocumentIndex >& xDocumentIndex ) :
SwVbaTableOfContents_BASE( rParent, rContext ), mxTextDocument( xDoc ), mxDocumentIndex( xDocumentIndex )
{
mxTocProps.set( mxDocumentIndex, uno::UNO_QUERY_THROW );
@@ -35,60 +35,60 @@ SwVbaTableOfContents::~SwVbaTableOfContents()
{
}
-::sal_Int32 SAL_CALL SwVbaTableOfContents::getLowerHeadingLevel() throw (uno::RuntimeException, std::exception)
+::sal_Int32 SAL_CALL SwVbaTableOfContents::getLowerHeadingLevel()
{
sal_Int16 nLevel = 0;
mxTocProps->getPropertyValue("Level") >>= nLevel;
return nLevel;
}
-void SAL_CALL SwVbaTableOfContents::setLowerHeadingLevel( ::sal_Int32 _lowerheadinglevel ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaTableOfContents::setLowerHeadingLevel( ::sal_Int32 _lowerheadinglevel )
{
mxTocProps->setPropertyValue("Level", uno::makeAny( sal_Int8( _lowerheadinglevel ) ) );
}
-::sal_Int32 SAL_CALL SwVbaTableOfContents::getTabLeader() throw (uno::RuntimeException, std::exception)
+::sal_Int32 SAL_CALL SwVbaTableOfContents::getTabLeader()
{
// not support in Writer
return word::WdTabLeader::wdTabLeaderDots;
}
-void SAL_CALL SwVbaTableOfContents::setTabLeader( ::sal_Int32 /*_tableader*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaTableOfContents::setTabLeader( ::sal_Int32 /*_tableader*/ )
{
// not support in Writer
}
-sal_Bool SAL_CALL SwVbaTableOfContents::getUseFields() throw (css::uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL SwVbaTableOfContents::getUseFields()
{
bool bUseFields = false;
mxTocProps->getPropertyValue("CreateFromMarks") >>= bUseFields;
return bUseFields;
}
-void SAL_CALL SwVbaTableOfContents::setUseFields( sal_Bool _useFields ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaTableOfContents::setUseFields( sal_Bool _useFields )
{
mxTocProps->setPropertyValue("CreateFromMarks", uno::makeAny( _useFields ) );
}
-sal_Bool SAL_CALL SwVbaTableOfContents::getUseOutlineLevels() throw (css::uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL SwVbaTableOfContents::getUseOutlineLevels()
{
bool bUseOutlineLevels = false;
mxTocProps->getPropertyValue("CreateFromOutline") >>= bUseOutlineLevels;
return bUseOutlineLevels;
}
-void SAL_CALL SwVbaTableOfContents::setUseOutlineLevels( sal_Bool _useOutlineLevels ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaTableOfContents::setUseOutlineLevels( sal_Bool _useOutlineLevels )
{
mxTocProps->setPropertyValue("CreateFromOutline", uno::makeAny( _useOutlineLevels ) );
}
-void SAL_CALL SwVbaTableOfContents::Delete( ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaTableOfContents::Delete( )
{
uno::Reference< text::XTextContent > xTextContent( mxDocumentIndex, uno::UNO_QUERY_THROW );
mxTextDocument->getText()->removeTextContent( xTextContent );
}
-void SAL_CALL SwVbaTableOfContents::Update( ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaTableOfContents::Update( )
{
mxDocumentIndex->update();
}