summaryrefslogtreecommitdiff
path: root/tools/source/rc/rc.cxx
diff options
context:
space:
mode:
authorth <th@openoffice.org>2001-07-25 09:46:27 +0000
committerth <th@openoffice.org>2001-07-25 09:46:27 +0000
commit4a10851cbf76ba4fde65616e03041aae0e8d98a8 (patch)
tree715b555924ee3f8df0f6d0795bc66ac705b71287 /tools/source/rc/rc.cxx
parent60e95458bd24ee2a60f17e4c1a6432f16d932714 (diff)
#90131# - remove ENABLEUNICODE
Diffstat (limited to 'tools/source/rc/rc.cxx')
-rw-r--r--tools/source/rc/rc.cxx39
1 files changed, 2 insertions, 37 deletions
diff --git a/tools/source/rc/rc.cxx b/tools/source/rc/rc.cxx
index 31630530586e..adbf139c0bce 100644
--- a/tools/source/rc/rc.cxx
+++ b/tools/source/rc/rc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: rc.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: th $ $Date: 2000-12-05 19:20:37 $
+ * last change: $Author: th $ $Date: 2001-07-25 10:44:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -139,41 +139,6 @@ ResMgr* Resource::GetResManager()
// =======================================================================
-#ifndef ENABLEUNICODE
-
-String::String( const ResId& rResId )
-{
- rResId.SetRT( RSC_STRING );
- ResMgr* pResMgr = rResId.GetResMgr();
- if ( !pResMgr )
- pResMgr = Resource::GetResManager();
-
- if ( pResMgr->GetResource( rResId ) )
- {
- // String laden
- RSHEADER_TYPE * pResHdr = (RSHEADER_TYPE*)pResMgr->GetClass();
- USHORT nLen = pResHdr->GetLocalOff() - sizeof( RSHEADER_TYPE );
-
- USHORT nStringLen = strlen( (char*)(pResHdr+1) );
- UniString aWString( (const char*)(pResHdr+1), RTL_TEXTENCODING_UTF8,
- RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_MAPTOPRIVATE |
- RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_DEFAULT |
- RTL_TEXTTOUNICODE_FLAGS_INVALID_DEFAULT );
- ResHookProc pImplResHookProc = ResMgr::GetReadStringHook();
- if ( pImplResHookProc )
- pImplResHookProc( aWString );
- InitStringRes( aWString );
-
- USHORT nSize = sizeof( RSHEADER_TYPE ) + nStringLen + 1;
- nSize += nSize % 2;
- pResMgr->Increment( nSize );
- }
-}
-
-#endif
-
-// =======================================================================
-
UniString::UniString( const ResId& rResId )
{
rResId.SetRT( RSC_STRING );