diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2004-06-26 19:26:10 +0000 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2004-06-26 19:26:10 +0000 |
commit | 8dbda68759a0cd15feddaaa702c3988fd255d224 (patch) | |
tree | 3d6056217888074b412495b571a5842d01a242d9 /rsc | |
parent | a324ef53b08b1e6762fe014638c48e26fa5aed19 (diff) |
INTEGRATION: CWS mergebuild (1.2.68); FILE MERGED
2004/02/06 11:33:35 hjs 1.2.68.2: #i8252# avoid LanguageType for indexing; define valid ISO code in RSC_ISO_LANG
2004/01/21 14:57:47 pl 1.2.68.1: #110286# fallback resources, move to iso codes
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/res/rscarray.cxx | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/rsc/source/res/rscarray.cxx b/rsc/source/res/rscarray.cxx index f34e6f2c9833..d870342286e1 100644 --- a/rsc/source/res/rscarray.cxx +++ b/rsc/source/res/rscarray.cxx @@ -2,9 +2,9 @@ * * $RCSfile: rscarray.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2004-06-17 11:52:07 $ + * last change: $Author: hjs $ $Date: 2004-06-26 20:26:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -134,16 +134,12 @@ USHORT RscInstNode::GetId() const |* Letzte Aenderung MM 25.05.91 |* *************************************************************************/ -RscArray::RscArray( HASHID nId, USHORT nTypeId, RscTop * pSuper, - RscEnum * pTypeCl, - USHORT * pTypeValue, USHORT * pFallBackType ) - : RscTop( nId, nTypeId, pSuper ) +RscArray::RscArray( HASHID nId, USHORT nTypeId, RscTop * pSuper, RscEnum * pTypeCl ) + : RscTop( nId, nTypeId, pSuper ) { pTypeClass = pTypeCl; nOffInstData = RscTop::Size(); nSize = nOffInstData + ALIGNED_SIZE( sizeof( RscArrayInst ) ); - pWriteTypeValue = pTypeValue; - pWriteDfltTypeValue = pFallBackType; } /************************************************************************* @@ -525,9 +521,9 @@ void RscArray::WriteSrcHeader( const RSCINST & rInst, FILE * fOutput, RscInstNode * pNode = NULL; if( pClassData->pNode ) { - pNode = pClassData->pNode->Search( *pWriteTypeValue ); - if( !pNode && *pWriteTypeValue != *pWriteDfltTypeValue ) - pNode = pClassData->pNode->Search( *pWriteDfltTypeValue ); + std::vector< USHORT >::const_iterator it; + for( it = pTC->GetFallbacks().begin(); !pNode && it != pTC->GetFallbacks().end(); ++it ) + pNode = pClassData->pNode->Search( *it ); } if( pNode ) @@ -619,9 +615,20 @@ ERRTYPE RscArray::WriteRc( const RSCINST & rInst, RscWriteRc & rMem, if( pClassData->pNode ) { - pNode = pClassData->pNode->Search( *pWriteTypeValue ); - if( !pNode && *pWriteTypeValue != *pWriteDfltTypeValue ) - pNode = pClassData->pNode->Search( *pWriteDfltTypeValue ); +#if OSL_DEBUG_LEVEL > 1 + fprintf( stderr, "RscArray::WriteRc: Fallback " ); +#endif + std::vector< USHORT >::const_iterator it; + for( it = pTC->GetFallbacks().begin(); !pNode && it != pTC->GetFallbacks().end(); ++it ) + { + pNode = pClassData->pNode->Search( *it ); +#if OSL_DEBUG_LEVEL > 1 + fprintf( stderr, " 0x%hx", *it ); +#endif + } +#if OSL_DEBUG_LEVEL > 1 + fprintf( stderr, "\n" ); +#endif } if( pNode ) @@ -654,9 +661,8 @@ void RscArray::WriteRcAccess |* *************************************************************************/ RscClassArray::RscClassArray( HASHID nId, USHORT nTypeId, RscTop * pSuper, - RscEnum * pTypeCl, - USHORT * pTypeValue, USHORT * pFallBackType ) - : RscArray( nId, nTypeId, pSuper, pTypeCl, pTypeValue, pFallBackType ) + RscEnum * pTypeCl ) + : RscArray( nId, nTypeId, pSuper, pTypeCl ) { } @@ -733,9 +739,8 @@ ERRTYPE RscClassArray::WriteRcHeader( const RSCINST & rInst, RscWriteRc & aMem, |* *************************************************************************/ RscLangArray::RscLangArray( HASHID nId, USHORT nTypeId, RscTop * pSuper, - RscEnum * pTypeCl, - USHORT * pTypeValue, USHORT * pFallBackType ) - : RscArray( nId, nTypeId, pSuper, pTypeCl, pTypeValue, pFallBackType ) + RscEnum * pTypeCl ) + : RscArray( nId, nTypeId, pSuper, pTypeCl ) { } |