diff options
Diffstat (limited to 'sw/source/ui/vba/vbalisthelper.cxx')
-rw-r--r-- | sw/source/ui/vba/vbalisthelper.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/sw/source/ui/vba/vbalisthelper.cxx b/sw/source/ui/vba/vbalisthelper.cxx index 7a3fd941e13c..483526bfab13 100644 --- a/sw/source/ui/vba/vbalisthelper.cxx +++ b/sw/source/ui/vba/vbalisthelper.cxx @@ -46,12 +46,12 @@ static const sal_Int16 CHAR_DIAMOND = 10022; static const sal_Int16 CHAR_ARROW = 10146; static const sal_Int16 CHAR_CHECK_MARK = 10003; -SwVbaListHelper::SwVbaListHelper( const css::uno::Reference< css::text::XTextDocument >& xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType ) throw( css::uno::RuntimeException ) : mxTextDocument( xTextDoc ), mnGalleryType( nGalleryType ), mnTemplateType( nTemplateType ) +SwVbaListHelper::SwVbaListHelper( const css::uno::Reference< css::text::XTextDocument >& xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType ) : mxTextDocument( xTextDoc ), mnGalleryType( nGalleryType ), mnTemplateType( nTemplateType ) { Init(); } -void SwVbaListHelper::Init() throw( css::uno::RuntimeException ) +void SwVbaListHelper::Init() { // set the numbering style name switch( mnGalleryType ) @@ -102,7 +102,7 @@ void SwVbaListHelper::Init() throw( css::uno::RuntimeException ) } } -void SwVbaListHelper::CreateListTemplate() throw( css::uno::RuntimeException ) +void SwVbaListHelper::CreateListTemplate() { switch( mnGalleryType ) { @@ -128,7 +128,7 @@ void SwVbaListHelper::CreateListTemplate() throw( css::uno::RuntimeException ) } } -void SwVbaListHelper::CreateBulletListTemplate() throw( css::uno::RuntimeException ) +void SwVbaListHelper::CreateBulletListTemplate() { // there is only 1 level for each bullet list in MSWord sal_Int32 nLevel = 0; @@ -188,7 +188,7 @@ void SwVbaListHelper::CreateBulletListTemplate() throw( css::uno::RuntimeExcepti mxNumberingRules->replaceByIndex( nLevel, uno::makeAny( aPropertyValues ) ); } -void SwVbaListHelper::CreateNumberListTemplate() throw( css::uno::RuntimeException ) +void SwVbaListHelper::CreateNumberListTemplate() { // there is only 1 level for each bullet list in MSWord sal_Int32 nLevel = 0; @@ -253,7 +253,7 @@ void SwVbaListHelper::CreateNumberListTemplate() throw( css::uno::RuntimeExcepti mxNumberingRules->replaceByIndex( nLevel, uno::makeAny( aPropertyValues ) ); } -void SwVbaListHelper::CreateOutlineNumberListTemplate() throw( css::uno::RuntimeException ) +void SwVbaListHelper::CreateOutlineNumberListTemplate() { switch( mnTemplateType ) { @@ -300,7 +300,7 @@ void SwVbaListHelper::CreateOutlineNumberListTemplate() throw( css::uno::Runtime } } -void SwVbaListHelper::CreateOutlineNumberForType1() throw( css::uno::RuntimeException ) +void SwVbaListHelper::CreateOutlineNumberForType1() { sal_Int16 nNumberingType = 0; OUString sPrefix; @@ -377,7 +377,7 @@ void SwVbaListHelper::CreateOutlineNumberForType1() throw( css::uno::RuntimeExce } } -void SwVbaListHelper::CreateOutlineNumberForType2() throw( css::uno::RuntimeException ) +void SwVbaListHelper::CreateOutlineNumberForType2() { sal_Int16 nNumberingType = style::NumberingType::ARABIC; sal_Int16 nParentNumbering = 0; @@ -398,7 +398,7 @@ void SwVbaListHelper::CreateOutlineNumberForType2() throw( css::uno::RuntimeExce } } -void SwVbaListHelper::CreateOutlineNumberForType3() throw( css::uno::RuntimeException ) +void SwVbaListHelper::CreateOutlineNumberForType3() { sal_Int16 nNumberingType = style::NumberingType::CHAR_SPECIAL; OUString sCharStyleName( "Bullet Symbols" ); @@ -447,7 +447,7 @@ void SwVbaListHelper::CreateOutlineNumberForType3() throw( css::uno::RuntimeExce } } -void SwVbaListHelper::CreateOutlineNumberForType4() throw( css::uno::RuntimeException ) +void SwVbaListHelper::CreateOutlineNumberForType4() { sal_Int16 nNumberingType = 0; OUString sPrefix; @@ -532,7 +532,7 @@ void SwVbaListHelper::CreateOutlineNumberForType4() throw( css::uno::RuntimeExce } } -void SwVbaListHelper::CreateOutlineNumberForType5() throw( css::uno::RuntimeException ) +void SwVbaListHelper::CreateOutlineNumberForType5() { sal_Int16 nNumberingType = style::NumberingType::ARABIC; sal_Int16 nParentNumbering = 0; @@ -551,7 +551,7 @@ void SwVbaListHelper::CreateOutlineNumberForType5() throw( css::uno::RuntimeExce } } -void SwVbaListHelper::CreateOutlineNumberForType6() throw( css::uno::RuntimeException ) +void SwVbaListHelper::CreateOutlineNumberForType6() { sal_Int16 nNumberingType = 0; OUString sPrefix; @@ -634,7 +634,7 @@ void SwVbaListHelper::CreateOutlineNumberForType6() throw( css::uno::RuntimeExce } } -void SwVbaListHelper::CreateOutlineNumberForType7() throw( css::uno::RuntimeException ) +void SwVbaListHelper::CreateOutlineNumberForType7() { sal_Int16 nNumberingType = style::NumberingType::ARABIC; uno::Sequence< beans::PropertyValue > aPropertyValues; @@ -649,14 +649,14 @@ void SwVbaListHelper::CreateOutlineNumberForType7() throw( css::uno::RuntimeExce } } -uno::Any SwVbaListHelper::getPropertyValueWithNameAndLevel( sal_Int32 nLevel, const OUString& sName ) throw( css::uno::RuntimeException ) +uno::Any SwVbaListHelper::getPropertyValueWithNameAndLevel( sal_Int32 nLevel, const OUString& sName ) { uno::Sequence< beans::PropertyValue > aPropertyValues; mxNumberingRules->getByIndex( nLevel ) >>= aPropertyValues; return getPropertyValue( aPropertyValues, sName ); } -void SwVbaListHelper::setPropertyValueWithNameAndLevel( sal_Int32 nLevel, const OUString& sName, const css::uno::Any& aValue ) throw( css::uno::RuntimeException ) +void SwVbaListHelper::setPropertyValueWithNameAndLevel( sal_Int32 nLevel, const OUString& sName, const css::uno::Any& aValue ) { uno::Sequence< beans::PropertyValue > aPropertyValues; mxNumberingRules->getByIndex( nLevel ) >>= aPropertyValues; |