diff options
author | sb <sb@openoffice.org> | 2010-10-04 17:38:17 +0200 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-10-04 17:38:17 +0200 |
commit | ce240e8dbf9dd613e9da724ee1d8ac12ff364d1c (patch) | |
tree | 02d1edd72d8d0e66366aebfd811bacc312eaaf81 /sfx2/source/menu/thessubmenu.cxx | |
parent | 6102bc884507f5c120cd3a3c147c6d1d5909c814 (diff) | |
parent | 8791a391246e7483c12dc4d1bfc870573d94fc66 (diff) |
sb132: merged in DEV300_m89
Diffstat (limited to 'sfx2/source/menu/thessubmenu.cxx')
-rwxr-xr-x | sfx2/source/menu/thessubmenu.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sfx2/source/menu/thessubmenu.cxx b/sfx2/source/menu/thessubmenu.cxx index a47e1b18a4..b153196cd5 100755 --- a/sfx2/source/menu/thessubmenu.cxx +++ b/sfx2/source/menu/thessubmenu.cxx @@ -61,39 +61,6 @@ SFX_IMPL_MENU_CONTROL(SfxThesSubMenuControl, SfxStringItem); //////////////////////////////////////////////////////////// -String GetThesaurusReplaceText_Impl( const ::rtl::OUString &rText ) -{ - // The strings returned by the thesaurus sometimes have some - // explanation text put in between '(' and ')' or a trailing '*'. - // These parts should not be put in the ReplaceEdit Text that may get - // inserted into the document. Thus we strip them from the text. - - String aText( rText ); - - xub_StrLen nPos = aText.Search( sal_Unicode('(') ); - while (STRING_NOTFOUND != nPos) - { - xub_StrLen nEnd = aText.Search( sal_Unicode(')'), nPos ); - if (STRING_NOTFOUND != nEnd) - aText.Erase( nPos, nEnd-nPos+1 ); - else - break; - nPos = aText.Search( sal_Unicode('(') ); - } - - nPos = aText.Search( sal_Unicode('*') ); - if (STRING_NOTFOUND != nPos) - aText.Erase( nPos ); - - // remove any possible remaining ' ' that may confuse the thesaurus - // when it gets called with the text - aText.EraseLeadingAndTrailingChars( sal_Unicode(' ') ); - - return aText; -} - -//////////////////////////////////////////////////////////// - /* Ctor; setzt Select-Handler am Menu und traegt Menu |