summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-08-28 12:07:07 +0200
committerNoel Grandin <noel@peralex.com>2013-08-29 09:30:12 +0200
commit3287636944af9c3e006c2334cb9dffd468ea10f9 (patch)
tree6451870c88d1b6c165b7aacaf05ad3e68cd42717 /sfx2
parent96999333d97c0f71377601ef3db82de23b4ddc7a (diff)
convert sfx2/source/menu/thessubmenu.hxx from String to OUString
Change-Id: I6a98373c7c78ba97c5fa0ebb6192a114bf410b46
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/menu/thessubmenu.cxx16
-rw-r--r--sfx2/source/menu/thessubmenu.hxx6
2 files changed, 11 insertions, 11 deletions
diff --git a/sfx2/source/menu/thessubmenu.cxx b/sfx2/source/menu/thessubmenu.cxx
index 7c56a19b2d58..ca660af87ffa 100644
--- a/sfx2/source/menu/thessubmenu.cxx
+++ b/sfx2/source/menu/thessubmenu.cxx
@@ -40,19 +40,19 @@
using namespace ::com::sun::star;
OUString SfxThesSubMenuHelper::GetText(
- const String &rLookUpString,
- xub_StrLen nDelimPos )
+ const OUString &rLookUpString,
+ sal_Int32 nDelimPos )
{
- return OUString( rLookUpString.Copy( 0, nDelimPos ) );
+ return rLookUpString.copy( 0, nDelimPos );
}
void SfxThesSubMenuHelper::GetLocale(
lang::Locale /*out */ &rLocale,
- const String &rLookUpString,
- xub_StrLen nDelimPos )
+ const OUString &rLookUpString,
+ sal_Int32 nDelimPos )
{
- String aIsoLang( rLookUpString.Copy( nDelimPos + 1) );
+ OUString aIsoLang( rLookUpString.copy( nDelimPos + 1) );
rLocale = LanguageTag::convertToLocale( aIsoLang);
}
@@ -123,9 +123,9 @@ bool SfxThesSubMenuHelper::GetMeanings(
}
-String SfxThesSubMenuHelper::GetThesImplName( const lang::Locale &rLocale ) const
+OUString SfxThesSubMenuHelper::GetThesImplName( const lang::Locale &rLocale ) const
{
- String aRes;
+ OUString aRes;
uno::Sequence< OUString > aServiceNames = m_xLngMgr->getConfiguredServices(
OUString("com.sun.star.linguistic2.Thesaurus"), rLocale );
// there should be at most one thesaurus configured for each language
diff --git a/sfx2/source/menu/thessubmenu.hxx b/sfx2/source/menu/thessubmenu.hxx
index 2a12c6ae1728..8e7168f42b4f 100644
--- a/sfx2/source/menu/thessubmenu.hxx
+++ b/sfx2/source/menu/thessubmenu.hxx
@@ -42,10 +42,10 @@ public:
SfxThesSubMenuHelper();
~SfxThesSubMenuHelper();
- static OUString GetText( const String &rLookUpString, xub_StrLen nDelimPos );
+ static OUString GetText( const OUString &rLookUpString, sal_Int32 nDelimPos );
// returns the Locale to be used for the selected text when the thesaurus is to be called
- static void GetLocale( css::lang::Locale /*out */ &rLocale, const String &rLookUpString, xub_StrLen nDelimPos );
+ static void GetLocale( css::lang::Locale /*out */ &rLocale, const OUString &rLookUpString, sal_Int32 nDelimPos );
// returns true if the locale is upported by the theasaurus
bool IsSupportedLocale( const css::lang::Locale & rLocale ) const;
@@ -53,7 +53,7 @@ public:
// get the first nMax Synonym entries, even if different meanings need to be evaluated
bool GetMeanings( std::vector< OUString > & rSynonyms, const OUString & rWord, const css::lang::Locale & rLocale, sal_Int16 nMaxSynonms );
- String GetThesImplName( const css::lang::Locale &rLocale ) const;
+ OUString GetThesImplName( const css::lang::Locale &rLocale ) const;
};