summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbalisthelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbalisthelper.cxx')
-rw-r--r--sw/source/ui/vba/vbalisthelper.cxx244
1 files changed, 122 insertions, 122 deletions
diff --git a/sw/source/ui/vba/vbalisthelper.cxx b/sw/source/ui/vba/vbalisthelper.cxx
index c0974226993b..8cd6c854f62e 100644
--- a/sw/source/ui/vba/vbalisthelper.cxx
+++ b/sw/source/ui/vba/vbalisthelper.cxx
@@ -60,17 +60,17 @@ void SwVbaListHelper::Init() throw( css::uno::RuntimeException )
{
case word::WdListGalleryType::wdBulletGallery:
{
- msStyleName = rtl::OUString(WORD_BULLET_GALLERY );
+ msStyleName = OUString(WORD_BULLET_GALLERY );
break;
}
case word::WdListGalleryType::wdNumberGallery:
{
- msStyleName = rtl::OUString(WORD_NUMBER_GALLERY );
+ msStyleName = OUString(WORD_NUMBER_GALLERY );
break;
}
case word::WdListGalleryType::wdOutlineNumberGallery:
{
- msStyleName = rtl::OUString(WORD_OUTLINE_NUMBER_GALLERY );
+ msStyleName = OUString(WORD_OUTLINE_NUMBER_GALLERY );
break;
}
default:
@@ -78,29 +78,29 @@ void SwVbaListHelper::Init() throw( css::uno::RuntimeException )
throw uno::RuntimeException();
}
}
- msStyleName += rtl::OUString::valueOf( mnTemplateType );
+ msStyleName += OUString::valueOf( mnTemplateType );
// get the numbering style
uno::Reference< style::XStyleFamiliesSupplier > xStyleSupplier( mxTextDocument, uno::UNO_QUERY_THROW );
- mxStyleFamily.set( xStyleSupplier->getStyleFamilies()->getByName(rtl::OUString( "NumberingStyles" ) ), uno::UNO_QUERY_THROW );
- OSL_TRACE("SwVbaListHelper::Init: numbering style name: %s", rtl::OUStringToOString( msStyleName, RTL_TEXTENCODING_UTF8 ).getStr() );
+ mxStyleFamily.set( xStyleSupplier->getStyleFamilies()->getByName(OUString( "NumberingStyles" ) ), uno::UNO_QUERY_THROW );
+ OSL_TRACE("SwVbaListHelper::Init: numbering style name: %s", OUStringToOString( msStyleName, RTL_TEXTENCODING_UTF8 ).getStr() );
if( mxStyleFamily->hasByName( msStyleName ) )
{
mxStyleProps.set( mxStyleFamily->getByName( msStyleName ), uno::UNO_QUERY_THROW );
- mxNumberingRules.set( mxStyleProps->getPropertyValue( rtl::OUString( "NumberingRules" ) ), uno::UNO_QUERY_THROW );
+ mxNumberingRules.set( mxStyleProps->getPropertyValue( OUString( "NumberingRules" ) ), uno::UNO_QUERY_THROW );
}
else
{
// create new numbering style
uno::Reference< lang::XMultiServiceFactory > xDocMSF( mxTextDocument, uno::UNO_QUERY_THROW );
- mxStyleProps.set( xDocMSF->createInstance( rtl::OUString( "com.sun.star.style.NumberingStyle" ) ), uno::UNO_QUERY_THROW );
+ mxStyleProps.set( xDocMSF->createInstance( OUString( "com.sun.star.style.NumberingStyle" ) ), uno::UNO_QUERY_THROW );
// insert this style into style family, or the property NumberingRules doesn't exist.
mxStyleFamily->insertByName( msStyleName, uno::makeAny( mxStyleProps ) );
- mxStyleProps->getPropertyValue( rtl::OUString( "NumberingRules" ) ) >>= mxNumberingRules;
+ mxStyleProps->getPropertyValue( OUString( "NumberingRules" ) ) >>= mxNumberingRules;
CreateListTemplate();
- mxStyleProps->setPropertyValue( rtl::OUString( "NumberingRules" ) , uno::makeAny( mxNumberingRules ) );
+ mxStyleProps->setPropertyValue( OUString( "NumberingRules" ) , uno::makeAny( mxNumberingRules ) );
}
}
@@ -136,47 +136,47 @@ void SwVbaListHelper::CreateBulletListTemplate() throw( css::uno::RuntimeExcepti
sal_Int32 nLevel = 0;
uno::Sequence< beans::PropertyValue > aPropertyValues;
mxNumberingRules->getByIndex( nLevel ) >>= aPropertyValues;
- rtl::OUString sCharStyleName( "Bullet Symbols" );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_CHAR_STYLE_NAME ), uno::makeAny( sCharStyleName ) );
+ OUString sCharStyleName( "Bullet Symbols" );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_CHAR_STYLE_NAME ), uno::makeAny( sCharStyleName ) );
sal_Int16 nNumberingType = style::NumberingType::CHAR_SPECIAL;
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
- rtl::OUString aBulletChar;
+ OUString aBulletChar;
switch( mnTemplateType )
{
case 1:
{
- aBulletChar = rtl::OUString( sal_Unicode( CHAR_CLOSED_DOT ) );
+ aBulletChar = OUString( sal_Unicode( CHAR_CLOSED_DOT ) );
break;
}
case 2:
{
- aBulletChar = rtl::OUString( sal_Unicode( CHAR_EMPTY_DOT ) );
+ aBulletChar = OUString( sal_Unicode( CHAR_EMPTY_DOT ) );
break;
}
case 3:
{
- aBulletChar = rtl::OUString( sal_Unicode( CHAR_SQUARE ) );
+ aBulletChar = OUString( sal_Unicode( CHAR_SQUARE ) );
break;
}
case 4:
{
- aBulletChar = rtl::OUString( sal_Unicode( CHAR_STAR_SYMBOL ) );
+ aBulletChar = OUString( sal_Unicode( CHAR_STAR_SYMBOL ) );
break;
}
case 5:
{
- aBulletChar = rtl::OUString( sal_Unicode( CHAR_FOUR_DIAMONDS ) );
+ aBulletChar = OUString( sal_Unicode( CHAR_FOUR_DIAMONDS ) );
break;
}
case 6:
{
- aBulletChar = rtl::OUString( sal_Unicode( CHAR_ARROW ) );
+ aBulletChar = OUString( sal_Unicode( CHAR_ARROW ) );
break;
}
case 7:
{
- aBulletChar = rtl::OUString( sal_Unicode( CHAR_CHECK_MARK ) );
+ aBulletChar = OUString( sal_Unicode( CHAR_CHECK_MARK ) );
break;
}
default:
@@ -185,7 +185,7 @@ void SwVbaListHelper::CreateBulletListTemplate() throw( css::uno::RuntimeExcepti
throw css::uno::RuntimeException();
}
}
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_BULLET_CHAR ), uno::makeAny( aBulletChar ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_BULLET_CHAR ), uno::makeAny( aBulletChar ) );
mxNumberingRules->replaceByIndex( nLevel, uno::makeAny( aPropertyValues ) );
}
@@ -198,49 +198,49 @@ void SwVbaListHelper::CreateNumberListTemplate() throw( css::uno::RuntimeExcepti
mxNumberingRules->getByIndex( nLevel ) >>= aPropertyValues;
sal_Int16 nNumberingType = 0;
- rtl::OUString sSuffix;
+ OUString sSuffix;
switch( mnTemplateType )
{
case 1:
{
nNumberingType = style::NumberingType::ARABIC;
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
case 2:
{
nNumberingType = style::NumberingType::ARABIC;
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 3:
{
nNumberingType = style::NumberingType::ROMAN_UPPER;
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
case 4:
{
nNumberingType = style::NumberingType::CHARS_UPPER_LETTER;
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
case 5:
{
nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 6:
{
nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
case 7:
{
nNumberingType = style::NumberingType::ROMAN_LOWER;
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
default:
@@ -249,8 +249,8 @@ void SwVbaListHelper::CreateNumberListTemplate() throw( css::uno::RuntimeExcepti
throw css::uno::RuntimeException();
}
}
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_SUFFIX ), uno::makeAny( sSuffix ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_SUFFIX ), uno::makeAny( sSuffix ) );
mxNumberingRules->replaceByIndex( nLevel, uno::makeAny( aPropertyValues ) );
}
@@ -305,8 +305,8 @@ void SwVbaListHelper::CreateOutlineNumberListTemplate() throw( css::uno::Runtime
void SwVbaListHelper::CreateOutlineNumberForType1() throw( css::uno::RuntimeException )
{
sal_Int16 nNumberingType = 0;
- rtl::OUString sPrefix;
- rtl::OUString sSuffix;
+ OUString sPrefix;
+ OUString sSuffix;
uno::Sequence< beans::PropertyValue > aPropertyValues;
for( sal_Int32 nLevel = 0; nLevel < LIST_LEVEL_COUNT; nLevel++ )
@@ -318,57 +318,57 @@ void SwVbaListHelper::CreateOutlineNumberForType1() throw( css::uno::RuntimeExce
case 1:
{
nNumberingType = style::NumberingType::ARABIC;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 2:
{
nNumberingType = style::NumberingType::ROMAN_LOWER;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 3:
{
nNumberingType = style::NumberingType::ARABIC;
- sPrefix = rtl::OUString::valueOf( sal_Unicode('(') );
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString::valueOf( sal_Unicode('(') );
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 4:
{
nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
- sPrefix = rtl::OUString::valueOf( sal_Unicode('(') );
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString::valueOf( sal_Unicode('(') );
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 5:
{
nNumberingType = style::NumberingType::ROMAN_LOWER;
- sPrefix = rtl::OUString::valueOf( sal_Unicode('(') );
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString::valueOf( sal_Unicode('(') );
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 6:
{
nNumberingType = style::NumberingType::ARABIC;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
case 7:
{
nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
case 8:
{
nNumberingType = style::NumberingType::ROMAN_LOWER;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
default:
@@ -376,9 +376,9 @@ void SwVbaListHelper::CreateOutlineNumberForType1() throw( css::uno::RuntimeExce
throw uno::RuntimeException();
}
}
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_PREFIX ), uno::makeAny( sPrefix ) );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_SUFFIX ), uno::makeAny( sSuffix ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_PREFIX ), uno::makeAny( sPrefix ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_SUFFIX ), uno::makeAny( sSuffix ) );
mxNumberingRules->replaceByIndex( nLevel, uno::makeAny( aPropertyValues ) );
}
}
@@ -387,18 +387,18 @@ void SwVbaListHelper::CreateOutlineNumberForType2() throw( css::uno::RuntimeExce
{
sal_Int16 nNumberingType = style::NumberingType::ARABIC;
sal_Int16 nParentNumbering = 0;
- rtl::OUString sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ OUString sSuffix = OUString::valueOf( sal_Unicode('.') );
uno::Sequence< beans::PropertyValue > aPropertyValues;
for( sal_Int32 nLevel = 0; nLevel < LIST_LEVEL_COUNT; nLevel++ )
{
mxNumberingRules->getByIndex( nLevel ) >>= aPropertyValues;
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_SUFFIX ), uno::makeAny( sSuffix ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_SUFFIX ), uno::makeAny( sSuffix ) );
if( nLevel != 0 )
{
nParentNumbering = sal_Int16( nLevel - 1 );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_PARENT_NUMBERING ), uno::makeAny( nParentNumbering ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_PARENT_NUMBERING ), uno::makeAny( nParentNumbering ) );
}
mxNumberingRules->replaceByIndex( nLevel, uno::makeAny( aPropertyValues ) );
}
@@ -407,44 +407,44 @@ void SwVbaListHelper::CreateOutlineNumberForType2() throw( css::uno::RuntimeExce
void SwVbaListHelper::CreateOutlineNumberForType3() throw( css::uno::RuntimeException )
{
sal_Int16 nNumberingType = style::NumberingType::CHAR_SPECIAL;
- rtl::OUString sCharStyleName( "Bullet Symbols" );
- rtl::OUString aBulletChar;
+ OUString sCharStyleName( "Bullet Symbols" );
+ OUString aBulletChar;
uno::Sequence< beans::PropertyValue > aPropertyValues;
for( sal_Int32 nLevel = 0; nLevel < LIST_LEVEL_COUNT; nLevel++ )
{
mxNumberingRules->getByIndex( nLevel ) >>= aPropertyValues;
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_CHAR_STYLE_NAME ), uno::makeAny( sCharStyleName ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_CHAR_STYLE_NAME ), uno::makeAny( sCharStyleName ) );
switch( nLevel )
{
case 0:
{
- aBulletChar = rtl::OUString( sal_Unicode( CHAR_FOUR_DIAMONDS ) );
+ aBulletChar = OUString( sal_Unicode( CHAR_FOUR_DIAMONDS ) );
break;
}
case 1:
case 5:
{
- aBulletChar = rtl::OUString( sal_Unicode( CHAR_ARROW ) );
+ aBulletChar = OUString( sal_Unicode( CHAR_ARROW ) );
break;
}
case 2:
case 6:
{
- aBulletChar = rtl::OUString( sal_Unicode( CHAR_SQUARE ) );
+ aBulletChar = OUString( sal_Unicode( CHAR_SQUARE ) );
break;
}
case 3:
case 7:
{
- aBulletChar = rtl::OUString( sal_Unicode( CHAR_CLOSED_DOT ) );
+ aBulletChar = OUString( sal_Unicode( CHAR_CLOSED_DOT ) );
break;
}
case 4:
case 8:
{
- aBulletChar = rtl::OUString( sal_Unicode( CHAR_DIAMOND ) );
+ aBulletChar = OUString( sal_Unicode( CHAR_DIAMOND ) );
break;
}
default:
@@ -452,7 +452,7 @@ void SwVbaListHelper::CreateOutlineNumberForType3() throw( css::uno::RuntimeExce
throw uno::RuntimeException();
}
}
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_BULLET_CHAR ), uno::makeAny( aBulletChar ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_BULLET_CHAR ), uno::makeAny( aBulletChar ) );
mxNumberingRules->replaceByIndex( nLevel, uno::makeAny( aPropertyValues ) );
}
}
@@ -460,8 +460,8 @@ void SwVbaListHelper::CreateOutlineNumberForType3() throw( css::uno::RuntimeExce
void SwVbaListHelper::CreateOutlineNumberForType4() throw( css::uno::RuntimeException )
{
sal_Int16 nNumberingType = 0;
- rtl::OUString sPrefix;
- rtl::OUString sSuffix;
+ OUString sPrefix;
+ OUString sSuffix;
uno::Sequence< beans::PropertyValue > aPropertyValues;
for( sal_Int32 nLevel = 0; nLevel < LIST_LEVEL_COUNT; nLevel++ )
@@ -472,66 +472,66 @@ void SwVbaListHelper::CreateOutlineNumberForType4() throw( css::uno::RuntimeExce
case 0:
{
nNumberingType = style::NumberingType::ROMAN_UPPER;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
case 1:
{
nNumberingType = style::NumberingType::ARABIC;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
sal_Int16 nParentNumbering = 0;
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_PARENT_NUMBERING ), uno::makeAny( nParentNumbering ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_PARENT_NUMBERING ), uno::makeAny( nParentNumbering ) );
break;
}
case 2:
{
nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
- sPrefix = rtl::OUString::valueOf( sal_Unicode('(') );
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString::valueOf( sal_Unicode('(') );
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 3:
{
nNumberingType = style::NumberingType::ROMAN_LOWER;
- sPrefix = rtl::OUString::valueOf( sal_Unicode('(') );
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString::valueOf( sal_Unicode('(') );
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 4:
{
nNumberingType = style::NumberingType::ARABIC;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 5:
{
nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 6:
{
nNumberingType = style::NumberingType::ROMAN_LOWER;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 7:
{
nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
case 8:
{
nNumberingType = style::NumberingType::ROMAN_LOWER;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
default:
@@ -539,9 +539,9 @@ void SwVbaListHelper::CreateOutlineNumberForType4() throw( css::uno::RuntimeExce
throw uno::RuntimeException();
}
}
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_PREFIX ), uno::makeAny( sPrefix ) );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_SUFFIX ), uno::makeAny( sSuffix ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_PREFIX ), uno::makeAny( sPrefix ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_SUFFIX ), uno::makeAny( sSuffix ) );
mxNumberingRules->replaceByIndex( nLevel, uno::makeAny( aPropertyValues ) );
}
}
@@ -555,11 +555,11 @@ void SwVbaListHelper::CreateOutlineNumberForType5() throw( css::uno::RuntimeExce
for( sal_Int32 nLevel = 0; nLevel < LIST_LEVEL_COUNT; nLevel++ )
{
mxNumberingRules->getByIndex( nLevel ) >>= aPropertyValues;
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
if( nLevel != 0 )
{
nParentNumbering = sal_Int16( nLevel - 1 );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_PARENT_NUMBERING ), uno::makeAny( nParentNumbering ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_PARENT_NUMBERING ), uno::makeAny( nParentNumbering ) );
}
mxNumberingRules->replaceByIndex( nLevel, uno::makeAny( aPropertyValues ) );
}
@@ -568,8 +568,8 @@ void SwVbaListHelper::CreateOutlineNumberForType5() throw( css::uno::RuntimeExce
void SwVbaListHelper::CreateOutlineNumberForType6() throw( css::uno::RuntimeException )
{
sal_Int16 nNumberingType = 0;
- rtl::OUString sPrefix;
- rtl::OUString sSuffix;
+ OUString sPrefix;
+ OUString sSuffix;
uno::Sequence< beans::PropertyValue > aPropertyValues;
for( sal_Int32 nLevel = 0; nLevel < LIST_LEVEL_COUNT; nLevel++ )
@@ -580,64 +580,64 @@ void SwVbaListHelper::CreateOutlineNumberForType6() throw( css::uno::RuntimeExce
case 0:
{
nNumberingType = style::NumberingType::ROMAN_UPPER;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
case 1:
{
nNumberingType = style::NumberingType::CHARS_UPPER_LETTER;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
case 2:
{
nNumberingType = style::NumberingType::ARABIC;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 3:
{
nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
- sPrefix = rtl::OUString();
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString();
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 4:
{
nNumberingType = style::NumberingType::ARABIC;
- sPrefix = rtl::OUString::valueOf( sal_Unicode('(') );
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString::valueOf( sal_Unicode('(') );
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 5:
{
nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
- sPrefix = rtl::OUString::valueOf( sal_Unicode('(') );
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString::valueOf( sal_Unicode('(') );
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 6:
{
nNumberingType = style::NumberingType::ROMAN_LOWER;
- sPrefix = rtl::OUString::valueOf( sal_Unicode('(') );
- sSuffix = rtl::OUString::valueOf( sal_Unicode(')') );
+ sPrefix = OUString::valueOf( sal_Unicode('(') );
+ sSuffix = OUString::valueOf( sal_Unicode(')') );
break;
}
case 7:
{
nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
- sPrefix = rtl::OUString::valueOf( sal_Unicode('(') );
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sPrefix = OUString::valueOf( sal_Unicode('(') );
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
case 8:
{
nNumberingType = style::NumberingType::ROMAN_LOWER;
- sPrefix = rtl::OUString::valueOf( sal_Unicode('(') );
- sSuffix = rtl::OUString::valueOf( sal_Unicode('.') );
+ sPrefix = OUString::valueOf( sal_Unicode('(') );
+ sSuffix = OUString::valueOf( sal_Unicode('.') );
break;
}
default:
@@ -645,9 +645,9 @@ void SwVbaListHelper::CreateOutlineNumberForType6() throw( css::uno::RuntimeExce
throw uno::RuntimeException();
}
}
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_PREFIX ), uno::makeAny( sPrefix ) );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_SUFFIX ), uno::makeAny( sSuffix ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_PREFIX ), uno::makeAny( sPrefix ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_SUFFIX ), uno::makeAny( sSuffix ) );
mxNumberingRules->replaceByIndex( nLevel, uno::makeAny( aPropertyValues ) );
}
}
@@ -656,31 +656,31 @@ void SwVbaListHelper::CreateOutlineNumberForType7() throw( css::uno::RuntimeExce
{
sal_Int16 nNumberingType = style::NumberingType::ARABIC;
uno::Sequence< beans::PropertyValue > aPropertyValues;
- rtl::OUString sPrefix("Chapter ");
+ OUString sPrefix("Chapter ");
for( sal_Int32 nLevel = 0; nLevel < LIST_LEVEL_COUNT; nLevel++ )
{
mxNumberingRules->getByIndex( nLevel ) >>= aPropertyValues;
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
- setOrAppendPropertyValue( aPropertyValues, rtl::OUString(UNO_NAME_PREFIX ), uno::makeAny( sPrefix ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_NUMBERING_TYPE ), uno::makeAny( nNumberingType ) );
+ setOrAppendPropertyValue( aPropertyValues, OUString(UNO_NAME_PREFIX ), uno::makeAny( sPrefix ) );
mxNumberingRules->replaceByIndex( nLevel, uno::makeAny( aPropertyValues ) );
}
}
-uno::Any SwVbaListHelper::getPropertyValueWithNameAndLevel( sal_Int32 nLevel, const rtl::OUString& sName ) throw( css::uno::RuntimeException )
+uno::Any SwVbaListHelper::getPropertyValueWithNameAndLevel( sal_Int32 nLevel, const OUString& sName ) throw( css::uno::RuntimeException )
{
uno::Sequence< beans::PropertyValue > aPropertyValues;
mxNumberingRules->getByIndex( nLevel ) >>= aPropertyValues;
return getPropertyValue( aPropertyValues, sName );
}
-void SwVbaListHelper::setPropertyValueWithNameAndLevel( sal_Int32 nLevel, const rtl::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 ) throw( css::uno::RuntimeException )
{
uno::Sequence< beans::PropertyValue > aPropertyValues;
mxNumberingRules->getByIndex( nLevel ) >>= aPropertyValues;
setOrAppendPropertyValue( aPropertyValues, sName, aValue );
mxNumberingRules->replaceByIndex( nLevel, uno::makeAny( aPropertyValues ) );
- mxStyleProps->setPropertyValue( rtl::OUString( "NumberingRules" ) , uno::makeAny( mxNumberingRules ) );
+ mxStyleProps->setPropertyValue( OUString( "NumberingRules" ) , uno::makeAny( mxNumberingRules ) );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */