summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2010-07-19 22:05:23 +0200
committerMathias Bauer <mba@openoffice.org>2010-07-19 22:05:23 +0200
commita3cfa6f635948c67ccb34ad4040230de2ec38da1 (patch)
treee894e1ce86984fe71f67bc23c4cdc2074e4888e6
parente05c938a71a1e9698d036a8e6dae5d2a208ddd07 (diff)
CWS changehid: #i111784#: SetDialogHelpId changed
-rw-r--r--svl/inc/pickerhelper.hxx4
-rw-r--r--svl/source/filepicker/pickerhelper.cxx8
2 files changed, 6 insertions, 6 deletions
diff --git a/svl/inc/pickerhelper.hxx b/svl/inc/pickerhelper.hxx
index 307031b578d1..0c4215a1fb83 100644
--- a/svl/inc/pickerhelper.hxx
+++ b/svl/inc/pickerhelper.hxx
@@ -56,11 +56,11 @@ namespace svt
SVL_DLLPUBLIC void SetDialogHelpId(
::com::sun::star::uno::Reference < ::com::sun::star::ui::dialogs::XFilePicker > _mxFileDlg,
- sal_Int32 _nHelpId );
+ const rtl::OString& _nHelpId );
SVL_DLLPUBLIC void SetDialogHelpId(
::com::sun::star::uno::Reference < ::com::sun::star::ui::dialogs::XFolderPicker > _mxFileDlg,
- sal_Int32 _nHelpId );
+ const rtl::OString& _nHelpId );
}
diff --git a/svl/source/filepicker/pickerhelper.cxx b/svl/source/filepicker/pickerhelper.cxx
index 72096c1bc56a..2d38d395f8f7 100644
--- a/svl/source/filepicker/pickerhelper.cxx
+++ b/svl/source/filepicker/pickerhelper.cxx
@@ -45,7 +45,7 @@ using rtl::OUString;
namespace svt
{
void SetDialogHelpId(
- Reference < css::ui::dialogs::XFilePicker > _mxFileDlg, sal_Int32 _nHelpId )
+ Reference < css::ui::dialogs::XFilePicker > _mxFileDlg, const rtl::OString& _nHelpId )
{
try
{
@@ -60,7 +60,7 @@ namespace svt
if( xInfo.is() && xInfo->hasPropertyByName( sHelpURLPropertyName ) )
{ // yep
OUString sId( RTL_CONSTASCII_USTRINGPARAM( "HID:" ) );
- sId += OUString::valueOf( _nHelpId );
+ sId += rtl::OStringToOUString( _nHelpId, RTL_TEXTENCODING_UTF8 );
xDialogProps->setPropertyValue( sHelpURLPropertyName, css::uno::makeAny( sId ) );
}
}
@@ -71,7 +71,7 @@ namespace svt
}
void SetDialogHelpId(
- Reference< css::ui::dialogs::XFolderPicker > _mxFileDlg, sal_Int32 _nHelpId )
+ Reference< css::ui::dialogs::XFolderPicker > _mxFileDlg, const rtl::OString& _nHelpId )
{
try
{
@@ -86,7 +86,7 @@ namespace svt
if( xInfo.is() && xInfo->hasPropertyByName( sHelpURLPropertyName ) )
{ // yep
OUString sId( RTL_CONSTASCII_USTRINGPARAM( "HID:" ) );
- sId += OUString::valueOf( _nHelpId );
+ sId += rtl::OStringToOUString( _nHelpId, RTL_TEXTENCODING_UTF8 );
xDialogProps->setPropertyValue( sHelpURLPropertyName, css::uno::makeAny( sId ) );
}
}