summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/localizationmgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basctl/source/basicide/localizationmgr.cxx')
-rw-r--r--basctl/source/basicide/localizationmgr.cxx37
1 files changed, 12 insertions, 25 deletions
diff --git a/basctl/source/basicide/localizationmgr.cxx b/basctl/source/basicide/localizationmgr.cxx
index 0fb42445c113..19604dc27ea6 100644
--- a/basctl/source/basicide/localizationmgr.cxx
+++ b/basctl/source/basicide/localizationmgr.cxx
@@ -247,12 +247,10 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
xStringResourceManager->setStringForLocale( aPureIdStr, aPropStr, rLocale );
}
- OUString aPropIdStr = aEsc;
- aPropIdStr += aPureIdStr;
+ OUString aPropIdStr = aEsc + aPureIdStr;
// TODO?: Change here and in toolkit
(void)aSemi;
- aPropAny <<= aPropIdStr;
- xPropertySet->setPropertyValue( aPropName, aPropAny );
+ xPropertySet->setPropertyValue( aPropName, Any(aPropIdStr) );
}
// Replace id by string from StringResource
else if( eMode == RESET_IDS )
@@ -268,8 +266,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
catch(const MissingResourceException&)
{
}
- aPropAny <<= aNewPropStr;
- xPropertySet->setPropertyValue( aPropName, aPropAny );
+ xPropertySet->setPropertyValue( aPropName, Any(aNewPropStr) );
}
}
// Remove Id for all locales
@@ -318,12 +315,10 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
{}
}
- OUString aPropIdStr = aEsc;
- aPropIdStr += aPureIdStr;
+ OUString aPropIdStr = aEsc + aPureIdStr;
// TODO?: Change here and in toolkit
(void)aSemi;
- aPropAny <<= aPropIdStr;
- xPropertySet->setPropertyValue( aPropName, aPropAny );
+ xPropertySet->setPropertyValue( aPropName, Any(aPropIdStr) );
}
// Replace string by string from source StringResourceResolver
else if( eMode == MOVE_RESOURCES && xSourceStringResolver.is() )
@@ -354,12 +349,10 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
xStringResourceManager->setStringForLocale( aPureIdStr, aResStr, rLocale );
}
- OUString aPropIdStr = aEsc;
- aPropIdStr += aPureIdStr;
+ OUString aPropIdStr = aEsc + aPureIdStr;
// TODO?: Change here and in toolkit
(void)aSemi;
- aPropAny <<= aPropIdStr;
- xPropertySet->setPropertyValue( aPropName, aPropAny );
+ xPropertySet->setPropertyValue( aPropName, Any(aPropIdStr) );
}
// Copy string from source to target resource
else if( eMode == COPY_RESOURCES && xSourceStringResolver.is() )
@@ -441,8 +434,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
aPropIdStr += aPureIdStr;
pIdStrings[i] = aPropIdStr;
}
- aPropAny <<= aIdStrings;
- xPropertySet->setPropertyValue( aPropName, aPropAny );
+ xPropertySet->setPropertyValue( aPropName, Any(aIdStrings) );
}
// Replace id by string from StringResource
else if( eMode == RESET_IDS )
@@ -469,8 +461,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
}
pNewPropStrings[i] = aNewPropStr;
}
- aPropAny <<= aNewPropStrings;
- xPropertySet->setPropertyValue( aPropName, aPropAny );
+ xPropertySet->setPropertyValue( aPropName, Any(aNewPropStrings) );
}
// Remove Id for all locales
else if( eMode == REMOVE_IDS_FROM_RESOURCE )
@@ -545,8 +536,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
aPropIdStr += aPureIdStr;
pIdStrings[i] = aPropIdStr;
}
- aPropAny <<= aIdStrings;
- xPropertySet->setPropertyValue( aPropName, aPropAny );
+ xPropertySet->setPropertyValue( aPropName, Any(aIdStrings) );
}
// Replace string by string from source StringResourceResolver
else if( eMode == MOVE_RESOURCES && xSourceStringResolver.is() )
@@ -596,8 +586,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
aPropIdStr += aPureIdStr;
pIdStrings[i] = aPropIdStr;
}
- aPropAny <<= aIdStrings;
- xPropertySet->setPropertyValue( aPropName, aPropAny );
+ xPropertySet->setPropertyValue( aPropName, Any(aIdStrings) );
}
// Copy string from source to target resource
else if( eMode == COPY_RESOURCES && xSourceStringResolver.is() )
@@ -921,9 +910,7 @@ void LocalizationMgr::setStringResourceAtDialog( const ScriptDocument& rDocument
}
Reference< beans::XPropertySet > xDlgPSet( xDialogModel, UNO_QUERY );
- Any aStringResourceManagerAny;
- aStringResourceManagerAny <<= xStringResourceManager;
- xDlgPSet->setPropertyValue( aResourceResolverPropName, aStringResourceManagerAny );
+ xDlgPSet->setPropertyValue( aResourceResolverPropName, Any(xStringResourceManager) );
}
}