summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-05-20 18:02:29 +0000
committerKurt Zenker <kz@openoffice.org>2008-05-20 18:02:29 +0000
commit103dbbd0f1fb3bd84d08c20bf6301bd560d43916 (patch)
treef912e24bcc03d7275330c04a5f2c3f32340196b1 /idl
parent2b0e6b0ebbb4b6fcce36ac7da1e7628e5b7a828b (diff)
INTEGRATION: CWS mba30patches01 (1.4.30); FILE MERGED
2008/04/23 09:45:14 mba 1.4.30.2: RESYNC: (1.4-1.5); FILE MERGED 2008/03/18 15:40:04 mba 1.4.30.1: #i86353#: remove unused code
Diffstat (limited to 'idl')
-rw-r--r--idl/source/objects/bastype.cxx385
1 files changed, 1 insertions, 384 deletions
diff --git a/idl/source/objects/bastype.cxx b/idl/source/objects/bastype.cxx
index d6cbb11afb..ca5653d59c 100644
--- a/idl/source/objects/bastype.cxx
+++ b/idl/source/objects/bastype.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: bastype.cxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
@@ -41,24 +41,6 @@
#include <hash.hxx>
#include <database.hxx>
-/************************************************************************/
-ByteString MakeDefineName( const ByteString & rName )
-{
- ByteString aDefName;
- if( rName.Len() )
- {
- char * pStr = (char *)rName.GetBuffer();
- aDefName = *pStr;
- while( *++pStr )
- {
- if( isupper( *pStr ) )
- aDefName += '_';
- aDefName += (char)toupper( *pStr );
- }
- }
- return aDefName;
-}
-
#ifdef IDL_COMPILER
/************************************************************************/
static BOOL ReadRangeSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm,
@@ -111,115 +93,6 @@ static BOOL ReadRangeSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm,
}
#endif
-/************************************************************************/
-/*************************************************************************
-|*
-|* RangeUniqueIdContainer::RangeUniqueIdContainer()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-RangeUniqueIdContainer::RangeUniqueIdContainer( const Range & rRange )
- : UniqueIdContainer( rRange.Min() ),
- nMax( rRange.Max() ), nMin( rRange.Min() )
-{
-}
-
-/*************************************************************************
-|*
-|* RangeUniqueIdContainer::RangeUniqueIdContainer()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-RangeUniqueIdContainer::RangeUniqueIdContainer()
- : UniqueIdContainer( 0 ),
- nMax( 0 ), nMin( 0 )
-{
-}
-
-RangeUniqueIdContainer::~RangeUniqueIdContainer()
-{
-}
-
-/*************************************************************************
-|*
-|* RangeUniqueIdContainer:: opearator =()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-RangeUniqueIdContainer & RangeUniqueIdContainer::operator =
- ( const RangeUniqueIdContainer & rObj )
-{
- UniqueIdContainer::operator = ( rObj );
- nMin = rObj.nMin;
- nMax = rObj.nMax;
- return *this;
-}
-
-/*************************************************************************
-|*
-|* RangeUniqueIdContainer::CreateId()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL RangeUniqueIdContainer::CreateId( UniqueItemId * pId )
-{
- {
- // wegen Scope von aId
- UniqueItemId aId = UniqueIdContainer::CreateId();
- if( aId.GetId() <= nMax )
- {
- *pId = aId;
- return TRUE;
- }
- }
- Clear( FALSE ); // nicht gebrauchte freigeben
- // noch einmal versuchen
- {
- // wegen Scope von aId
- UniqueItemId aId = UniqueIdContainer::CreateId();
- if( aId.GetId() <= nMax )
- {
- *pId = aId;
- return TRUE;
- }
- }
- return FALSE;
-}
-
-/*************************************************************************
-|*
-|* RangeUniqueIdContainer::CreateId()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL RangeUniqueIdContainer::CreateId( UINT32 nIdValue, UniqueItemId * pId )
-{
- if( nIdValue >= nMin && nIdValue <= nMax )
- {
- if( IsIndexValid( nIdValue ) )
- return FALSE;
- *pId = CreateIdProt( nIdValue );
- return TRUE;
- }
- *pId = UniqueIdContainer::CreateFreeId( nIdValue );
- return TRUE;
-}
-
/*************************************************************************
|*
|* SvUINT32::Read()
@@ -323,196 +196,6 @@ SvStream& operator >> (SvStream & rStm, SvVersion & r )
#ifdef IDL_COMPILER
/************************************************************************/
-/*************************************************************************
-|*
-|* SvINT16::ReadSvIdl()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL SvINT16::ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm )
-{
- long n;
-
- if( ReadRangeSvIdl( pName, rInStm, -(long)0x8000, 0x7FFF, &n ) )
- {
- nVal = (short)n;
- return TRUE;
- }
- return FALSE;
-}
-
-/*************************************************************************
-|*
-|* SvINT16::WriteSvIdl()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL SvINT16::WriteSvIdl( SvStringHashEntry * pName, SvStream & rOutStm )
-{
- rOutStm << pName->GetName().GetBuffer() << "(\""
- << ByteString::CreateFromInt32( nVal ).GetBuffer() << "\")";
- return TRUE;
-}
-
-
-/*************************************************************************
-|*
-|* SvUINT16::ReadSvIdl()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL SvUINT16::ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm )
-{
- long n;
-
- if( ReadRangeSvIdl( pName, rInStm, 0, 0xFFFF, &n ) )
- {
- nVal = (UINT16)n;
- return TRUE;
- }
- return FALSE;
-}
-
-/*************************************************************************
-|*
-|* SvUINT16::WriteSvIdl()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL SvUINT16::WriteSvIdl( SvStringHashEntry * pName, SvStream & rOutStm )
-{
- rOutStm << pName->GetName().GetBuffer() << "(\""
- << ByteString::CreateFromInt32( nVal ).GetBuffer() << "\")";
- return TRUE;
-}
-
-
-/*************************************************************************
-|*
-|* SvINT32::ReadSvIdl()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL SvINT32::ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm )
-{
- long n;
-
- if( ReadRangeSvIdl( pName, rInStm, (-2147483647L-1L), 0x7FFFFFFF, &n ) )
- {
- nVal = (INT32)n;
- return TRUE;
- }
- return FALSE;
-}
-
-/*************************************************************************
-|*
-|* SvINT32::WriteSvIdl()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL SvINT32::WriteSvIdl( SvStringHashEntry * pName, SvStream & rOutStm )
-{
- rOutStm << pName->GetName().GetBuffer() << "(\""
- << ByteString::CreateFromInt32( nVal ).GetBuffer() << "\")";
- return TRUE;
-}
-
-
-/*************************************************************************
-|*
-|* SvUINT32::ReadSvIdl()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL SvUINT32::ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm )
-{
- long n;
-
- if( ReadRangeSvIdl( pName, rInStm, 0, 0xFFFFFFFF, &n ) )
- {
- nVal = (UINT32)n;
- return TRUE;
- }
- return FALSE;
-}
-
-/*************************************************************************
-|*
-|* SvUINT32::WriteSvIdl()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL SvUINT32::WriteSvIdl( SvStringHashEntry * pName, SvStream & rOutStm )
-{
- rOutStm << pName->GetName().GetBuffer() << "(\""
- << ByteString::CreateFromInt32( nVal ).GetBuffer() << "\")";
- return TRUE;
-}
-
-
-/************************************************************************/
-/*************************************************************************
-|*
-|* Svint::ReadSvIdl()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL Svint::ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm )
-{
- long n;
-
- if( ReadRangeSvIdl( pName, rInStm, INT_MIN, INT_MAX, &n ) )
- {
- nVal = (int)n;
- return TRUE;
- }
- return FALSE;
-}
-
-/*************************************************************************
-|*
-|* Svint::WriteSvIdl()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL Svint::WriteSvIdl( SvStringHashEntry * pName, SvStream & rOutStm )
-{
- rOutStm << pName->GetName().GetBuffer() << "(\""
- << ByteString::CreateFromInt32( nVal ).GetBuffer() << "\")";
- return TRUE;
-}
-
/*************************************************************************
|*
@@ -840,72 +523,6 @@ BOOL SvHelpText::WriteSvIdl( SvIdlDataBase &, SvStream & rOutStm, USHORT nTab )
return SvString::WriteSvIdl( SvHash_HelpText(), rOutStm, nTab );
}
-#ifdef sdvnmsd
-/*************************************************************************
-|*
-|* SvHelpContext::ReadSvIdl()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL SvHelpContext::ReadSvIdl( RangeUniqueIdContainer & rCont,
- SvTokenStream & rInStm )
-{
- UINT32 nTokPos = rInStm.Tell();
- long n = 0;
-
- if( ReadRangeSvIdl( SvHash_HelpContext(), rInStm, 0, 0xFFFFFFFF, &n ) )
- {
- if( n == 0 )
- {
- //if( rCont.CreateId( &aId ) )
- // erst beim Schreiben anlegen
- bSet = TRUE;
- return TRUE;
- }
- else
- {
- if( (UINT32)n <= rCont.GetMax() && (UINT32)n >= rCont.GetMin() )
- {
- aId = UniqueIdContainer::CreateFreeId( (UINT32)n );
- bSet = TRUE;
- return TRUE;
- }
- else if( rCont.CreateId( (UINT32)n, &aId ) )
- {
- bSet = TRUE;
- return TRUE;
- }
- }
- }
-
- rInStm.Seek( nTokPos );
- return FALSE;
-}
-
-/*************************************************************************
-|*
-|* SvHelpContext::WriteSvIdl()
-|*
-|* Beschreibung
-|* Ersterstellung MM 12.12.94
-|* Letzte Aenderung MM 12.12.94
-|*
-*************************************************************************/
-BOOL SvHelpContext::WriteSvIdl( RangeUniqueIdContainer & rCont,
- SvStream & rOutStm, USHORT )
-{
- if( IsSet() && GetId() == 0 )
- if( !rCont.CreateId( &aId ) )
- return FALSE;
- rOutStm << (const char *)SvHash_HelpContext()->GetName() << '('
- << (const char *)ByteString( GetId() ) << ')';
- return TRUE;
-}
-#endif
-
/************************************************************************/
/*************************************************************************
|*