1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 29*cdf0e10cSrcweir #include "precompiled_idl.hxx" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include <ctype.h> 32*cdf0e10cSrcweir #include <stdio.h> 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir #include <tools/debug.hxx> 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir #include <attrib.hxx> 37*cdf0e10cSrcweir #include <basobj.hxx> 38*cdf0e10cSrcweir #include <module.hxx> 39*cdf0e10cSrcweir #include <globals.hxx> 40*cdf0e10cSrcweir #include <database.hxx> 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir /****************** SvMetaObject *****************************************/ 43*cdf0e10cSrcweir SV_IMPL_META_FACTORY1( SvMetaObject, SvRttiBase ) 44*cdf0e10cSrcweir /************************************************************************* 45*cdf0e10cSrcweir |* SvMetaObject::SvMetaObject() 46*cdf0e10cSrcweir |* 47*cdf0e10cSrcweir |* Beschreibung 48*cdf0e10cSrcweir *************************************************************************/ 49*cdf0e10cSrcweir SvMetaObject::SvMetaObject() 50*cdf0e10cSrcweir { 51*cdf0e10cSrcweir } 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir void SvMetaObject::Load( SvPersistStream & ) 54*cdf0e10cSrcweir { 55*cdf0e10cSrcweir } 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir void SvMetaObject::Save( SvPersistStream & ) 58*cdf0e10cSrcweir { 59*cdf0e10cSrcweir } 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir /************************************************************************* 62*cdf0e10cSrcweir |* SvMetaObject::WriteTab() 63*cdf0e10cSrcweir |* 64*cdf0e10cSrcweir |* Beschreibung 65*cdf0e10cSrcweir *************************************************************************/ 66*cdf0e10cSrcweir #ifdef IDL_COMPILER 67*cdf0e10cSrcweir void SvMetaObject::WriteTab( SvStream & rOutStm, sal_uInt16 nTab ) 68*cdf0e10cSrcweir { 69*cdf0e10cSrcweir while( nTab-- ) 70*cdf0e10cSrcweir rOutStm << " "; 71*cdf0e10cSrcweir // rOutStm << '\t'; 72*cdf0e10cSrcweir } 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir /************************************************************************* 75*cdf0e10cSrcweir |* SvMetaObject::WriteStart() 76*cdf0e10cSrcweir |* 77*cdf0e10cSrcweir |* Beschreibung 78*cdf0e10cSrcweir *************************************************************************/ 79*cdf0e10cSrcweir void SvMetaObject::WriteStars( SvStream & rOutStm ) 80*cdf0e10cSrcweir { 81*cdf0e10cSrcweir rOutStm << '/'; 82*cdf0e10cSrcweir for( int i = 6; i > 0; i-- ) 83*cdf0e10cSrcweir rOutStm << "**********"; 84*cdf0e10cSrcweir rOutStm << '/' << endl; 85*cdf0e10cSrcweir } 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir /************************************************************************* 88*cdf0e10cSrcweir |* SvMetaObject::TestAndSeekSpaceOnly() 89*cdf0e10cSrcweir |* 90*cdf0e10cSrcweir |* Beschreibung 91*cdf0e10cSrcweir *************************************************************************/ 92*cdf0e10cSrcweir sal_Bool SvMetaObject::TestAndSeekSpaceOnly( SvStream & rOutStm, sal_uLong nBegPos ) 93*cdf0e10cSrcweir { 94*cdf0e10cSrcweir // keine leeren Klammern schreiben 95*cdf0e10cSrcweir sal_uLong nPos = rOutStm.Tell(); 96*cdf0e10cSrcweir rOutStm.Seek( nBegPos ); 97*cdf0e10cSrcweir sal_Bool bOnlySpace = sal_True; 98*cdf0e10cSrcweir while( bOnlySpace && rOutStm.Tell() < nPos ) 99*cdf0e10cSrcweir { 100*cdf0e10cSrcweir char c; 101*cdf0e10cSrcweir rOutStm >> c; 102*cdf0e10cSrcweir if( !isspace( c ) ) 103*cdf0e10cSrcweir bOnlySpace = sal_False; 104*cdf0e10cSrcweir } 105*cdf0e10cSrcweir if( bOnlySpace ) 106*cdf0e10cSrcweir // nichts geschrieben 107*cdf0e10cSrcweir rOutStm.Seek( nBegPos ); 108*cdf0e10cSrcweir else 109*cdf0e10cSrcweir rOutStm.Seek( nPos ); 110*cdf0e10cSrcweir return bOnlySpace; 111*cdf0e10cSrcweir } 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir /************************************************************************* 114*cdf0e10cSrcweir |* SvMetaObject::Back2Delemitter() 115*cdf0e10cSrcweir |* 116*cdf0e10cSrcweir |* Beschreibung 117*cdf0e10cSrcweir *************************************************************************/ 118*cdf0e10cSrcweir void SvMetaObject::Back2Delemitter( SvStream & rOutStm ) 119*cdf0e10cSrcweir { 120*cdf0e10cSrcweir // keine leeren Klammern schreiben 121*cdf0e10cSrcweir sal_uLong nPos = rOutStm.Tell(); 122*cdf0e10cSrcweir rOutStm.SeekRel( -1 ); 123*cdf0e10cSrcweir char c = 0; 124*cdf0e10cSrcweir rOutStm >> c; 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir while( isspace( c ) && rOutStm.Tell() != 1 ) 127*cdf0e10cSrcweir { 128*cdf0e10cSrcweir rOutStm.SeekRel( -2 ); 129*cdf0e10cSrcweir rOutStm >> c; 130*cdf0e10cSrcweir } 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir if( c == ';' || c == ',' ) 133*cdf0e10cSrcweir rOutStm.SeekRel( -1 ); 134*cdf0e10cSrcweir else 135*cdf0e10cSrcweir rOutStm.Seek( nPos ); 136*cdf0e10cSrcweir } 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir /************************************************************************* 139*cdf0e10cSrcweir |* SvMetaObject::ReadSvIdl() 140*cdf0e10cSrcweir |* 141*cdf0e10cSrcweir |* Beschreibung 142*cdf0e10cSrcweir *************************************************************************/ 143*cdf0e10cSrcweir sal_Bool SvMetaObject::ReadSvIdl( SvIdlDataBase &, SvTokenStream & ) 144*cdf0e10cSrcweir { 145*cdf0e10cSrcweir return sal_False; 146*cdf0e10cSrcweir } 147*cdf0e10cSrcweir 148*cdf0e10cSrcweir /************************************************************************* 149*cdf0e10cSrcweir |* SvMetaObject::WriteSvIdl() 150*cdf0e10cSrcweir |* 151*cdf0e10cSrcweir |* Beschreibung 152*cdf0e10cSrcweir *************************************************************************/ 153*cdf0e10cSrcweir void SvMetaObject::WriteSvIdl( SvIdlDataBase &, SvStream &, sal_uInt16 /*nTab */ ) 154*cdf0e10cSrcweir { 155*cdf0e10cSrcweir } 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir /************************************************************************* 158*cdf0e10cSrcweir |* SvMetaObject::Write() 159*cdf0e10cSrcweir |* 160*cdf0e10cSrcweir |* Beschreibung 161*cdf0e10cSrcweir *************************************************************************/ 162*cdf0e10cSrcweir void SvMetaObject::Write( SvIdlDataBase &, SvStream &, sal_uInt16 /*nTab */, 163*cdf0e10cSrcweir WriteType, WriteAttribute ) 164*cdf0e10cSrcweir { 165*cdf0e10cSrcweir } 166*cdf0e10cSrcweir 167*cdf0e10cSrcweir /************************************************************************* 168*cdf0e10cSrcweir |* SvMetaObject::WriteCxx() 169*cdf0e10cSrcweir |* 170*cdf0e10cSrcweir |* Beschreibung 171*cdf0e10cSrcweir *************************************************************************/ 172*cdf0e10cSrcweir void SvMetaObject::WriteCxx( SvIdlDataBase &, SvStream &, sal_uInt16 /*nTab */ ) 173*cdf0e10cSrcweir { 174*cdf0e10cSrcweir } 175*cdf0e10cSrcweir 176*cdf0e10cSrcweir /************************************************************************* 177*cdf0e10cSrcweir |* SvMetaObject::WriteHxx() 178*cdf0e10cSrcweir |* 179*cdf0e10cSrcweir |* Beschreibung 180*cdf0e10cSrcweir *************************************************************************/ 181*cdf0e10cSrcweir void SvMetaObject::WriteHxx( SvIdlDataBase &, SvStream &, sal_uInt16 /*nTab */ ) 182*cdf0e10cSrcweir { 183*cdf0e10cSrcweir } 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir #endif 186*cdf0e10cSrcweir 187*cdf0e10cSrcweir /****************** SvMetaName *****************************************/ 188*cdf0e10cSrcweir SV_IMPL_META_FACTORY1( SvMetaName, SvMetaObject ); 189*cdf0e10cSrcweir /************************************************************************* 190*cdf0e10cSrcweir |* SvMetaName::SvMetaName() 191*cdf0e10cSrcweir |* 192*cdf0e10cSrcweir |* Beschreibung 193*cdf0e10cSrcweir *************************************************************************/ 194*cdf0e10cSrcweir SvMetaName::SvMetaName() 195*cdf0e10cSrcweir { 196*cdf0e10cSrcweir } 197*cdf0e10cSrcweir 198*cdf0e10cSrcweir void SvMetaName::Load( SvPersistStream & rStm ) 199*cdf0e10cSrcweir { 200*cdf0e10cSrcweir SvMetaObject::Load( rStm ); 201*cdf0e10cSrcweir sal_uInt8 nMask; 202*cdf0e10cSrcweir rStm >> nMask; 203*cdf0e10cSrcweir 204*cdf0e10cSrcweir if( nMask >= 0x20 ) 205*cdf0e10cSrcweir { 206*cdf0e10cSrcweir rStm.SetError( SVSTREAM_FILEFORMAT_ERROR ); 207*cdf0e10cSrcweir DBG_ERROR( "wrong format" ); 208*cdf0e10cSrcweir return; 209*cdf0e10cSrcweir } 210*cdf0e10cSrcweir if( nMask & 0x01 ) rStm >> aName; 211*cdf0e10cSrcweir if( nMask & 0x02 ) rStm >> aHelpContext; 212*cdf0e10cSrcweir if( nMask & 0x04 ) rStm >> aHelpText; 213*cdf0e10cSrcweir if( nMask & 0x08 ) rStm >> aConfigName; 214*cdf0e10cSrcweir if( nMask & 0x10 ) rStm >> aDescription; 215*cdf0e10cSrcweir } 216*cdf0e10cSrcweir 217*cdf0e10cSrcweir void SvMetaName::Save( SvPersistStream & rStm ) 218*cdf0e10cSrcweir { 219*cdf0e10cSrcweir SvMetaObject::Save( rStm ); 220*cdf0e10cSrcweir sal_uInt8 nMask = 0; 221*cdf0e10cSrcweir if( aName.IsSet() ) nMask |= 0x01; 222*cdf0e10cSrcweir if( aHelpContext.IsSet() ) nMask |= 0x02; 223*cdf0e10cSrcweir if( aHelpText.IsSet() ) nMask |= 0x04; 224*cdf0e10cSrcweir if( aConfigName.IsSet() ) nMask |= 0x08; 225*cdf0e10cSrcweir if( aDescription.IsSet() ) nMask |= 0x10; 226*cdf0e10cSrcweir 227*cdf0e10cSrcweir rStm << nMask; 228*cdf0e10cSrcweir if( nMask & 0x01 ) rStm << aName; 229*cdf0e10cSrcweir if( nMask & 0x02 ) rStm << aHelpContext; 230*cdf0e10cSrcweir if( nMask & 0x04 ) rStm << aHelpText; 231*cdf0e10cSrcweir if( nMask & 0x08 ) rStm << aConfigName; 232*cdf0e10cSrcweir if( nMask & 0x10 ) rStm << aDescription; 233*cdf0e10cSrcweir } 234*cdf0e10cSrcweir 235*cdf0e10cSrcweir /************************************************************************* 236*cdf0e10cSrcweir |* 237*cdf0e10cSrcweir |* 238*cdf0e10cSrcweir |* Beschreibung 239*cdf0e10cSrcweir *************************************************************************/ 240*cdf0e10cSrcweir sal_Bool SvMetaName::SetName( const ByteString & rName, SvIdlDataBase * ) 241*cdf0e10cSrcweir { 242*cdf0e10cSrcweir aName = rName; 243*cdf0e10cSrcweir return sal_True; 244*cdf0e10cSrcweir } 245*cdf0e10cSrcweir 246*cdf0e10cSrcweir #ifdef IDL_COMPILER 247*cdf0e10cSrcweir /************************************************************************* 248*cdf0e10cSrcweir |* SvMetaName::ReadNameSvIdl() 249*cdf0e10cSrcweir |* 250*cdf0e10cSrcweir |* Beschreibung 251*cdf0e10cSrcweir *************************************************************************/ 252*cdf0e10cSrcweir sal_Bool SvMetaName::ReadNameSvIdl( SvIdlDataBase & rBase, 253*cdf0e10cSrcweir SvTokenStream & rInStm ) 254*cdf0e10cSrcweir { 255*cdf0e10cSrcweir sal_uInt32 nTokPos = rInStm.Tell(); 256*cdf0e10cSrcweir SvToken * pTok = rInStm.GetToken_Next(); 257*cdf0e10cSrcweir 258*cdf0e10cSrcweir // Modulnamen lesen 259*cdf0e10cSrcweir if( pTok->IsIdentifier() ) 260*cdf0e10cSrcweir if( SetName( pTok->GetString(), &rBase ) ) 261*cdf0e10cSrcweir return sal_True; 262*cdf0e10cSrcweir 263*cdf0e10cSrcweir rInStm.Seek( nTokPos ); 264*cdf0e10cSrcweir return sal_False; 265*cdf0e10cSrcweir } 266*cdf0e10cSrcweir 267*cdf0e10cSrcweir /************************************************************************* 268*cdf0e10cSrcweir |* SvMetaName::ReadSvIdl() 269*cdf0e10cSrcweir |* 270*cdf0e10cSrcweir |* Beschreibung 271*cdf0e10cSrcweir *************************************************************************/ 272*cdf0e10cSrcweir void SvMetaName::ReadAttributesSvIdl( SvIdlDataBase & rBase, 273*cdf0e10cSrcweir SvTokenStream & rInStm ) 274*cdf0e10cSrcweir { 275*cdf0e10cSrcweir sal_uInt32 nTokPos = rInStm.Tell(); 276*cdf0e10cSrcweir if( aName.ReadSvIdl( SvHash_Name(), rInStm ) ) 277*cdf0e10cSrcweir { 278*cdf0e10cSrcweir if( !SetName( aName, &rBase ) ) 279*cdf0e10cSrcweir rInStm.Seek( nTokPos ); 280*cdf0e10cSrcweir } 281*cdf0e10cSrcweir aHelpContext.ReadSvIdl( rBase, SvHash_HelpContext(), rInStm ); 282*cdf0e10cSrcweir aHelpText.ReadSvIdl( rBase, rInStm ); 283*cdf0e10cSrcweir aConfigName.ReadSvIdl( SvHash_ConfigName(), rInStm ); 284*cdf0e10cSrcweir aDescription.ReadSvIdl( SvHash_Description(), rInStm ); 285*cdf0e10cSrcweir /* 286*cdf0e10cSrcweir aHelpContext.ReadSvIdl( GetModule()->GetInfo()->GetHelpContextContainer(), 287*cdf0e10cSrcweir rInStm ); 288*cdf0e10cSrcweir */ 289*cdf0e10cSrcweir } 290*cdf0e10cSrcweir 291*cdf0e10cSrcweir /************************************************************************* 292*cdf0e10cSrcweir |* SvMetaName::DoReadContextSvIdl() 293*cdf0e10cSrcweir |* 294*cdf0e10cSrcweir |* Beschreibung 295*cdf0e10cSrcweir *************************************************************************/ 296*cdf0e10cSrcweir void SvMetaName::DoReadContextSvIdl( SvIdlDataBase & rBase, 297*cdf0e10cSrcweir SvTokenStream & rInStm, char cDel ) 298*cdf0e10cSrcweir { 299*cdf0e10cSrcweir sal_uInt32 nBeginPos = 0; // kann mit Tell nicht vorkommen 300*cdf0e10cSrcweir while( nBeginPos != rInStm.Tell() ) 301*cdf0e10cSrcweir { 302*cdf0e10cSrcweir nBeginPos = rInStm.Tell(); 303*cdf0e10cSrcweir ReadContextSvIdl( rBase, rInStm ); 304*cdf0e10cSrcweir if( cDel == '\0' ) 305*cdf0e10cSrcweir rInStm.ReadDelemiter(); 306*cdf0e10cSrcweir else 307*cdf0e10cSrcweir rInStm.Read( cDel ); 308*cdf0e10cSrcweir } 309*cdf0e10cSrcweir } 310*cdf0e10cSrcweir 311*cdf0e10cSrcweir /************************************************************************* 312*cdf0e10cSrcweir |* SvMetaName::ReadSvIdl() 313*cdf0e10cSrcweir |* 314*cdf0e10cSrcweir |* Beschreibung 315*cdf0e10cSrcweir *************************************************************************/ 316*cdf0e10cSrcweir void SvMetaName::ReadContextSvIdl( SvIdlDataBase &, SvTokenStream & ) 317*cdf0e10cSrcweir { 318*cdf0e10cSrcweir } 319*cdf0e10cSrcweir 320*cdf0e10cSrcweir /************************************************************************* 321*cdf0e10cSrcweir |* SvMetaName::Test() 322*cdf0e10cSrcweir |* 323*cdf0e10cSrcweir |* Beschreibung 324*cdf0e10cSrcweir *************************************************************************/ 325*cdf0e10cSrcweir sal_Bool SvMetaName::Test( SvIdlDataBase &, SvTokenStream & ) 326*cdf0e10cSrcweir { 327*cdf0e10cSrcweir return sal_True; 328*cdf0e10cSrcweir } 329*cdf0e10cSrcweir 330*cdf0e10cSrcweir /************************************************************************* 331*cdf0e10cSrcweir |* SvMetaName::WriteContextSvIdl() 332*cdf0e10cSrcweir |* 333*cdf0e10cSrcweir |* Beschreibung 334*cdf0e10cSrcweir *************************************************************************/ 335*cdf0e10cSrcweir void SvMetaName::WriteContextSvIdl( SvIdlDataBase &, SvStream &, sal_uInt16 ) 336*cdf0e10cSrcweir { 337*cdf0e10cSrcweir } 338*cdf0e10cSrcweir 339*cdf0e10cSrcweir /************************************************************************* 340*cdf0e10cSrcweir |* SvMetaName::WriteDescription() 341*cdf0e10cSrcweir |* 342*cdf0e10cSrcweir |* Beschreibung 343*cdf0e10cSrcweir *************************************************************************/ 344*cdf0e10cSrcweir void SvMetaName::WriteDescription( SvStream & rOutStm ) 345*cdf0e10cSrcweir { 346*cdf0e10cSrcweir rOutStm << "<DESCRIPTION>" << endl; 347*cdf0e10cSrcweir 348*cdf0e10cSrcweir ByteString aDesc( GetDescription() ); 349*cdf0e10cSrcweir sal_uInt16 nPos = aDesc.Search( '\n' ); 350*cdf0e10cSrcweir while ( nPos != STRING_NOTFOUND ) 351*cdf0e10cSrcweir { 352*cdf0e10cSrcweir rOutStm << aDesc.Copy( 0, nPos ).GetBuffer() << endl; 353*cdf0e10cSrcweir aDesc.Erase(0,nPos+1); 354*cdf0e10cSrcweir nPos = aDesc.Search( '\n' ); 355*cdf0e10cSrcweir } 356*cdf0e10cSrcweir 357*cdf0e10cSrcweir rOutStm << aDesc.GetBuffer() << endl << "</DESCRIPTION>" << endl; 358*cdf0e10cSrcweir } 359*cdf0e10cSrcweir 360*cdf0e10cSrcweir /************************************************************************* 361*cdf0e10cSrcweir |* SvMetaName::WriteAttributesIdl() 362*cdf0e10cSrcweir |* 363*cdf0e10cSrcweir |* Beschreibung 364*cdf0e10cSrcweir *************************************************************************/ 365*cdf0e10cSrcweir void SvMetaName::WriteAttributesSvIdl( SvIdlDataBase & rBase, 366*cdf0e10cSrcweir SvStream & rOutStm, 367*cdf0e10cSrcweir sal_uInt16 nTab ) 368*cdf0e10cSrcweir { 369*cdf0e10cSrcweir if( aHelpContext.IsSet() || aHelpText.IsSet() || aConfigName.IsSet() ) 370*cdf0e10cSrcweir { 371*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 372*cdf0e10cSrcweir rOutStm << "// class SvMetaName" << endl; 373*cdf0e10cSrcweir } 374*cdf0e10cSrcweir if( aHelpContext.IsSet() ) 375*cdf0e10cSrcweir { 376*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 377*cdf0e10cSrcweir aHelpContext.WriteSvIdl( SvHash_HelpContext(), rOutStm, nTab ); 378*cdf0e10cSrcweir rOutStm << ';' << endl; 379*cdf0e10cSrcweir } 380*cdf0e10cSrcweir if( aHelpText.IsSet() ) 381*cdf0e10cSrcweir { 382*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 383*cdf0e10cSrcweir aHelpText.WriteSvIdl( rBase, rOutStm, nTab ); 384*cdf0e10cSrcweir rOutStm << ';' << endl; 385*cdf0e10cSrcweir } 386*cdf0e10cSrcweir if( aConfigName.IsSet() ) 387*cdf0e10cSrcweir { 388*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 389*cdf0e10cSrcweir aConfigName.WriteSvIdl( SvHash_ConfigName(), rOutStm, nTab ); 390*cdf0e10cSrcweir rOutStm << ';' << endl; 391*cdf0e10cSrcweir } 392*cdf0e10cSrcweir } 393*cdf0e10cSrcweir 394*cdf0e10cSrcweir /************************************************************************* 395*cdf0e10cSrcweir |* SvMetaName::ReadSvIdl() 396*cdf0e10cSrcweir |* 397*cdf0e10cSrcweir |* Beschreibung 398*cdf0e10cSrcweir *************************************************************************/ 399*cdf0e10cSrcweir sal_Bool SvMetaName::ReadSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm ) 400*cdf0e10cSrcweir { 401*cdf0e10cSrcweir sal_uInt32 nTokPos = rInStm.Tell(); 402*cdf0e10cSrcweir sal_Bool bOk = sal_True; 403*cdf0e10cSrcweir if( rInStm.Read( '[' ) ) 404*cdf0e10cSrcweir { 405*cdf0e10cSrcweir sal_uInt32 nBeginPos = 0; // kann mit Tell nicht vorkommen 406*cdf0e10cSrcweir while( nBeginPos != rInStm.Tell() ) 407*cdf0e10cSrcweir { 408*cdf0e10cSrcweir nBeginPos = rInStm.Tell(); 409*cdf0e10cSrcweir ReadAttributesSvIdl( rBase, rInStm ); 410*cdf0e10cSrcweir rInStm.ReadDelemiter(); 411*cdf0e10cSrcweir } 412*cdf0e10cSrcweir bOk = rInStm.Read( ']' ); 413*cdf0e10cSrcweir } 414*cdf0e10cSrcweir 415*cdf0e10cSrcweir if( bOk ) 416*cdf0e10cSrcweir { 417*cdf0e10cSrcweir if( rInStm.Read( '{' ) ) 418*cdf0e10cSrcweir { 419*cdf0e10cSrcweir DoReadContextSvIdl( rBase, rInStm ); 420*cdf0e10cSrcweir bOk = rInStm.Read( '}' ); 421*cdf0e10cSrcweir } 422*cdf0e10cSrcweir } 423*cdf0e10cSrcweir 424*cdf0e10cSrcweir if( !bOk ) 425*cdf0e10cSrcweir rInStm.Seek( nTokPos ); 426*cdf0e10cSrcweir return bOk; 427*cdf0e10cSrcweir } 428*cdf0e10cSrcweir 429*cdf0e10cSrcweir /************************************************************************* 430*cdf0e10cSrcweir |* SvMetaName::WriteSvIdl() 431*cdf0e10cSrcweir |* 432*cdf0e10cSrcweir |* Beschreibung 433*cdf0e10cSrcweir *************************************************************************/ 434*cdf0e10cSrcweir void SvMetaName::WriteSvIdl( SvIdlDataBase & rBase, SvStream & rOutStm, 435*cdf0e10cSrcweir sal_uInt16 nTab ) 436*cdf0e10cSrcweir { 437*cdf0e10cSrcweir sal_uLong nBeginPos = rOutStm.Tell(); 438*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 439*cdf0e10cSrcweir rOutStm << '[' << endl; 440*cdf0e10cSrcweir sal_uLong nOldPos = rOutStm.Tell(); 441*cdf0e10cSrcweir WriteAttributesSvIdl( rBase, rOutStm, nTab +1 ); 442*cdf0e10cSrcweir 443*cdf0e10cSrcweir // keine leeren Klammern schreiben 444*cdf0e10cSrcweir if( TestAndSeekSpaceOnly( rOutStm, nOldPos ) ) 445*cdf0e10cSrcweir // nichts geschrieben 446*cdf0e10cSrcweir rOutStm.Seek( nBeginPos ); 447*cdf0e10cSrcweir else 448*cdf0e10cSrcweir { 449*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 450*cdf0e10cSrcweir rOutStm << ']'; 451*cdf0e10cSrcweir nBeginPos = rOutStm.Tell(); 452*cdf0e10cSrcweir rOutStm << endl; 453*cdf0e10cSrcweir } 454*cdf0e10cSrcweir 455*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 456*cdf0e10cSrcweir rOutStm << '{' << endl; 457*cdf0e10cSrcweir nOldPos = rOutStm.Tell(); 458*cdf0e10cSrcweir WriteContextSvIdl( rBase, rOutStm, nTab +1 ); 459*cdf0e10cSrcweir 460*cdf0e10cSrcweir // keine leeren Klammern schreiben 461*cdf0e10cSrcweir if( TestAndSeekSpaceOnly( rOutStm, nOldPos ) ) 462*cdf0e10cSrcweir // nichts geschrieben 463*cdf0e10cSrcweir rOutStm.Seek( nBeginPos ); 464*cdf0e10cSrcweir else 465*cdf0e10cSrcweir { 466*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 467*cdf0e10cSrcweir rOutStm << '}'; 468*cdf0e10cSrcweir } 469*cdf0e10cSrcweir } 470*cdf0e10cSrcweir 471*cdf0e10cSrcweir /************************************************************************* 472*cdf0e10cSrcweir |* SvMetaName::Write() 473*cdf0e10cSrcweir |* 474*cdf0e10cSrcweir |* Beschreibung 475*cdf0e10cSrcweir *************************************************************************/ 476*cdf0e10cSrcweir void SvMetaName::Write( SvIdlDataBase & rBase, SvStream & rOutStm, 477*cdf0e10cSrcweir sal_uInt16 nTab, 478*cdf0e10cSrcweir WriteType nT, WriteAttribute nA ) 479*cdf0e10cSrcweir { 480*cdf0e10cSrcweir sal_uLong nBeginPos = rOutStm.Tell(); 481*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 482*cdf0e10cSrcweir rOutStm << '[' << endl; 483*cdf0e10cSrcweir sal_uLong nOldPos = rOutStm.Tell(); 484*cdf0e10cSrcweir WriteAttributes( rBase, rOutStm, nTab +1, nT, nA ); 485*cdf0e10cSrcweir 486*cdf0e10cSrcweir // keine leeren Klammern schreiben 487*cdf0e10cSrcweir sal_uLong nPos = rOutStm.Tell(); 488*cdf0e10cSrcweir rOutStm.Seek( nOldPos ); 489*cdf0e10cSrcweir sal_Bool bOnlySpace = sal_True; 490*cdf0e10cSrcweir while( bOnlySpace && rOutStm.Tell() < nPos ) 491*cdf0e10cSrcweir { 492*cdf0e10cSrcweir char c; 493*cdf0e10cSrcweir rOutStm >> c; 494*cdf0e10cSrcweir if( !isspace( c ) ) 495*cdf0e10cSrcweir bOnlySpace = sal_False; 496*cdf0e10cSrcweir } 497*cdf0e10cSrcweir if( bOnlySpace ) 498*cdf0e10cSrcweir // nichts geschrieben 499*cdf0e10cSrcweir rOutStm.Seek( nBeginPos ); 500*cdf0e10cSrcweir else 501*cdf0e10cSrcweir { 502*cdf0e10cSrcweir rOutStm.Seek( nPos ); 503*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 504*cdf0e10cSrcweir rOutStm << ']' << endl; 505*cdf0e10cSrcweir } 506*cdf0e10cSrcweir } 507*cdf0e10cSrcweir 508*cdf0e10cSrcweir /************************************************************************* 509*cdf0e10cSrcweir |* SvMetaName::WriteAttributes() 510*cdf0e10cSrcweir |* 511*cdf0e10cSrcweir |* Beschreibung 512*cdf0e10cSrcweir *************************************************************************/ 513*cdf0e10cSrcweir void SvMetaName::WriteAttributes( SvIdlDataBase &, SvStream & rOutStm, 514*cdf0e10cSrcweir sal_uInt16 nTab, 515*cdf0e10cSrcweir WriteType, WriteAttribute ) 516*cdf0e10cSrcweir { 517*cdf0e10cSrcweir if( GetHelpText().IsSet() || GetHelpContext().IsSet() ) 518*cdf0e10cSrcweir { 519*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 520*cdf0e10cSrcweir rOutStm << "// class SvMetaName" << endl; 521*cdf0e10cSrcweir } 522*cdf0e10cSrcweir if( GetHelpText().IsSet() ) 523*cdf0e10cSrcweir { 524*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 525*cdf0e10cSrcweir rOutStm << "helpstring(\"" << GetHelpText().GetBuffer() << "\")," << endl; 526*cdf0e10cSrcweir } 527*cdf0e10cSrcweir if( GetHelpContext().IsSet() ) 528*cdf0e10cSrcweir { 529*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 530*cdf0e10cSrcweir rOutStm << "helpcontext(" 531*cdf0e10cSrcweir << ByteString::CreateFromInt64( 532*cdf0e10cSrcweir GetHelpContext().GetValue() ).GetBuffer() 533*cdf0e10cSrcweir << ")," << endl; 534*cdf0e10cSrcweir } 535*cdf0e10cSrcweir } 536*cdf0e10cSrcweir 537*cdf0e10cSrcweir /************************************************************************* 538*cdf0e10cSrcweir |* SvMetaName::WriteContext() 539*cdf0e10cSrcweir |* 540*cdf0e10cSrcweir |* Beschreibung 541*cdf0e10cSrcweir *************************************************************************/ 542*cdf0e10cSrcweir void SvMetaName::WriteContext( SvIdlDataBase &, SvStream &, 543*cdf0e10cSrcweir sal_uInt16, 544*cdf0e10cSrcweir WriteType, WriteAttribute ) 545*cdf0e10cSrcweir { 546*cdf0e10cSrcweir } 547*cdf0e10cSrcweir #endif // IDL_COMPILER 548*cdf0e10cSrcweir 549*cdf0e10cSrcweir /****************** SvMetaReference *****************************************/ 550*cdf0e10cSrcweir SV_IMPL_META_FACTORY1( SvMetaReference, SvMetaName ); 551*cdf0e10cSrcweir 552*cdf0e10cSrcweir /************************************************************************* 553*cdf0e10cSrcweir |* SvMetaReference::SvMetaReference() 554*cdf0e10cSrcweir |* 555*cdf0e10cSrcweir |* Beschreibung 556*cdf0e10cSrcweir *************************************************************************/ 557*cdf0e10cSrcweir SvMetaReference::SvMetaReference() 558*cdf0e10cSrcweir { 559*cdf0e10cSrcweir } 560*cdf0e10cSrcweir 561*cdf0e10cSrcweir void SvMetaReference::Load( SvPersistStream & rStm ) 562*cdf0e10cSrcweir { 563*cdf0e10cSrcweir SvMetaName::Load( rStm ); 564*cdf0e10cSrcweir 565*cdf0e10cSrcweir sal_uInt8 nMask; 566*cdf0e10cSrcweir rStm >> nMask; 567*cdf0e10cSrcweir if( nMask >= 0x2 ) 568*cdf0e10cSrcweir { 569*cdf0e10cSrcweir rStm.SetError( SVSTREAM_FILEFORMAT_ERROR ); 570*cdf0e10cSrcweir DBG_ERROR( "wrong format" ); 571*cdf0e10cSrcweir return; 572*cdf0e10cSrcweir } 573*cdf0e10cSrcweir if( nMask & 0x01 ) 574*cdf0e10cSrcweir { 575*cdf0e10cSrcweir SvMetaReference * pRef; 576*cdf0e10cSrcweir rStm >> pRef; 577*cdf0e10cSrcweir aRef = pRef; 578*cdf0e10cSrcweir } 579*cdf0e10cSrcweir } 580*cdf0e10cSrcweir 581*cdf0e10cSrcweir void SvMetaReference::Save( SvPersistStream & rStm ) 582*cdf0e10cSrcweir { 583*cdf0e10cSrcweir SvMetaName::Save( rStm ); 584*cdf0e10cSrcweir 585*cdf0e10cSrcweir // Maske erstellen 586*cdf0e10cSrcweir sal_uInt8 nMask = 0; 587*cdf0e10cSrcweir if( aRef.Is() ) 588*cdf0e10cSrcweir nMask |= 0x01; 589*cdf0e10cSrcweir 590*cdf0e10cSrcweir // Daten schreiben 591*cdf0e10cSrcweir rStm << nMask; 592*cdf0e10cSrcweir if( nMask & 0x01 ) rStm << aRef; 593*cdf0e10cSrcweir } 594*cdf0e10cSrcweir 595*cdf0e10cSrcweir /**************************************************************************/ 596*cdf0e10cSrcweir /****************** SvMetaExtern ******************************************/ 597*cdf0e10cSrcweir SV_IMPL_META_FACTORY1( SvMetaExtern, SvMetaReference ); 598*cdf0e10cSrcweir 599*cdf0e10cSrcweir /************************************************************************* 600*cdf0e10cSrcweir |* SvMetaExtern::SvMetaExtern() 601*cdf0e10cSrcweir |* 602*cdf0e10cSrcweir |* Beschreibung 603*cdf0e10cSrcweir *************************************************************************/ 604*cdf0e10cSrcweir SvMetaExtern::SvMetaExtern() 605*cdf0e10cSrcweir : pModule( NULL ) 606*cdf0e10cSrcweir , bReadUUId( sal_False ) 607*cdf0e10cSrcweir , bReadVersion( sal_False ) 608*cdf0e10cSrcweir { 609*cdf0e10cSrcweir } 610*cdf0e10cSrcweir 611*cdf0e10cSrcweir void SvMetaExtern::Load( SvPersistStream & rStm ) 612*cdf0e10cSrcweir { 613*cdf0e10cSrcweir SvMetaReference::Load( rStm ); 614*cdf0e10cSrcweir 615*cdf0e10cSrcweir sal_uInt8 nMask; 616*cdf0e10cSrcweir rStm >> nMask; 617*cdf0e10cSrcweir if( nMask >= 0x20 ) 618*cdf0e10cSrcweir { 619*cdf0e10cSrcweir rStm.SetError( SVSTREAM_FILEFORMAT_ERROR ); 620*cdf0e10cSrcweir DBG_ERROR( "wrong format" ); 621*cdf0e10cSrcweir return; 622*cdf0e10cSrcweir } 623*cdf0e10cSrcweir if( nMask & 0x01 ) rStm >> pModule; 624*cdf0e10cSrcweir if( nMask & 0x02 ) rStm >> aUUId; 625*cdf0e10cSrcweir if( nMask & 0x04 ) rStm >> aVersion; 626*cdf0e10cSrcweir if( nMask & 0x08 ) bReadUUId = sal_True; 627*cdf0e10cSrcweir if( nMask & 0x10 ) bReadVersion = sal_True; 628*cdf0e10cSrcweir } 629*cdf0e10cSrcweir 630*cdf0e10cSrcweir void SvMetaExtern::Save( SvPersistStream & rStm ) 631*cdf0e10cSrcweir { 632*cdf0e10cSrcweir SvMetaReference::Save( rStm ); 633*cdf0e10cSrcweir 634*cdf0e10cSrcweir // Maske erstellen 635*cdf0e10cSrcweir sal_uInt8 nMask = 0; 636*cdf0e10cSrcweir if( pModule ) nMask |= 0x01; 637*cdf0e10cSrcweir if( aUUId != SvGlobalName() ) nMask |= 0x02; 638*cdf0e10cSrcweir if( aVersion != SvVersion() ) nMask |= 0x04; 639*cdf0e10cSrcweir if( bReadUUId ) nMask |= 0x08; 640*cdf0e10cSrcweir if( bReadVersion ) nMask |= 0x10; 641*cdf0e10cSrcweir 642*cdf0e10cSrcweir // Daten schreiben 643*cdf0e10cSrcweir rStm << nMask; 644*cdf0e10cSrcweir if( nMask & 0x01 ) rStm << pModule; 645*cdf0e10cSrcweir if( nMask & 0x02 ) rStm << aUUId; 646*cdf0e10cSrcweir if( nMask & 0x04 ) rStm << aVersion; 647*cdf0e10cSrcweir } 648*cdf0e10cSrcweir 649*cdf0e10cSrcweir /************************************************************************* 650*cdf0e10cSrcweir |* SvMetaExtern::GetModule() 651*cdf0e10cSrcweir |* 652*cdf0e10cSrcweir |* Beschreibung 653*cdf0e10cSrcweir *************************************************************************/ 654*cdf0e10cSrcweir SvMetaModule * SvMetaExtern::GetModule() const 655*cdf0e10cSrcweir { 656*cdf0e10cSrcweir DBG_ASSERT( pModule != NULL, "module not set" ); 657*cdf0e10cSrcweir return pModule; 658*cdf0e10cSrcweir } 659*cdf0e10cSrcweir 660*cdf0e10cSrcweir /************************************************************************* 661*cdf0e10cSrcweir |* SvMetaExtern::GetUUId() 662*cdf0e10cSrcweir |* 663*cdf0e10cSrcweir |* Beschreibung 664*cdf0e10cSrcweir *************************************************************************/ 665*cdf0e10cSrcweir const SvGlobalName & SvMetaExtern::GetUUId() const 666*cdf0e10cSrcweir { 667*cdf0e10cSrcweir #ifdef IDL_COMPILER 668*cdf0e10cSrcweir if( aUUId == SvGlobalName() ) 669*cdf0e10cSrcweir GetModule()->FillNextName( &((SvMetaExtern *)this)->aUUId ); 670*cdf0e10cSrcweir #endif 671*cdf0e10cSrcweir return aUUId; 672*cdf0e10cSrcweir } 673*cdf0e10cSrcweir 674*cdf0e10cSrcweir #ifdef IDL_COMPILER 675*cdf0e10cSrcweir /************************************************************************* 676*cdf0e10cSrcweir |* SvMetaExtern::SetModule() 677*cdf0e10cSrcweir |* 678*cdf0e10cSrcweir |* Beschreibung 679*cdf0e10cSrcweir *************************************************************************/ 680*cdf0e10cSrcweir void SvMetaExtern::SetModule( SvIdlDataBase & rBase ) 681*cdf0e10cSrcweir { 682*cdf0e10cSrcweir pModule = (SvMetaModule *)rBase.GetStack().Get( TYPE( SvMetaModule ) ); 683*cdf0e10cSrcweir } 684*cdf0e10cSrcweir 685*cdf0e10cSrcweir /************************************************************************* 686*cdf0e10cSrcweir |* SvMetaExtern::ReadAttributesSvIdl() 687*cdf0e10cSrcweir |* 688*cdf0e10cSrcweir |* Beschreibung 689*cdf0e10cSrcweir *************************************************************************/ 690*cdf0e10cSrcweir void SvMetaExtern::ReadAttributesSvIdl( SvIdlDataBase & rBase, 691*cdf0e10cSrcweir SvTokenStream & rInStm ) 692*cdf0e10cSrcweir { 693*cdf0e10cSrcweir SvMetaReference::ReadAttributesSvIdl( rBase, rInStm ); 694*cdf0e10cSrcweir if( aUUId.ReadSvIdl( rBase, rInStm ) ) 695*cdf0e10cSrcweir bReadUUId = sal_True; 696*cdf0e10cSrcweir if( aVersion.ReadSvIdl( rInStm ) ) 697*cdf0e10cSrcweir bReadVersion = sal_True; 698*cdf0e10cSrcweir } 699*cdf0e10cSrcweir 700*cdf0e10cSrcweir /************************************************************************* 701*cdf0e10cSrcweir |* SvMetaExtern::WriteAttributesSvIdl() 702*cdf0e10cSrcweir |* 703*cdf0e10cSrcweir |* Beschreibung 704*cdf0e10cSrcweir *************************************************************************/ 705*cdf0e10cSrcweir void SvMetaExtern::WriteAttributesSvIdl( SvIdlDataBase & rBase, 706*cdf0e10cSrcweir SvStream & rOutStm, sal_uInt16 nTab ) 707*cdf0e10cSrcweir { 708*cdf0e10cSrcweir SvMetaReference::WriteAttributesSvIdl( rBase, rOutStm, nTab ); 709*cdf0e10cSrcweir if( bReadUUId || bReadVersion ) 710*cdf0e10cSrcweir { 711*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 712*cdf0e10cSrcweir rOutStm << "// class SvMetaExtern" << endl; 713*cdf0e10cSrcweir 714*cdf0e10cSrcweir if( bReadUUId ) 715*cdf0e10cSrcweir { 716*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 717*cdf0e10cSrcweir aUUId.WriteSvIdl( rOutStm ); 718*cdf0e10cSrcweir rOutStm << ';' << endl; 719*cdf0e10cSrcweir } 720*cdf0e10cSrcweir if( bReadVersion ) 721*cdf0e10cSrcweir { 722*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 723*cdf0e10cSrcweir aVersion.WriteSvIdl( rOutStm ); 724*cdf0e10cSrcweir rOutStm << ';' << endl; 725*cdf0e10cSrcweir } 726*cdf0e10cSrcweir } 727*cdf0e10cSrcweir } 728*cdf0e10cSrcweir 729*cdf0e10cSrcweir /************************************************************************* 730*cdf0e10cSrcweir |* SvMetaExtern::ReadSvIdl() 731*cdf0e10cSrcweir |* 732*cdf0e10cSrcweir |* Beschreibung 733*cdf0e10cSrcweir *************************************************************************/ 734*cdf0e10cSrcweir sal_Bool SvMetaExtern::ReadSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm ) 735*cdf0e10cSrcweir { 736*cdf0e10cSrcweir SetModule( rBase ); 737*cdf0e10cSrcweir GetUUId(); // Id wird angelegt 738*cdf0e10cSrcweir return SvMetaReference::ReadSvIdl( rBase, rInStm ); 739*cdf0e10cSrcweir } 740*cdf0e10cSrcweir 741*cdf0e10cSrcweir /************************************************************************* 742*cdf0e10cSrcweir |* SvMetaExtern::WriteSvIdl() 743*cdf0e10cSrcweir |* 744*cdf0e10cSrcweir |* Beschreibung 745*cdf0e10cSrcweir *************************************************************************/ 746*cdf0e10cSrcweir void SvMetaExtern::WriteSvIdl( SvIdlDataBase & rBase, SvStream & rOutStm, 747*cdf0e10cSrcweir sal_uInt16 nTab ) 748*cdf0e10cSrcweir { 749*cdf0e10cSrcweir SvMetaReference::WriteSvIdl( rBase, rOutStm, nTab ); 750*cdf0e10cSrcweir } 751*cdf0e10cSrcweir 752*cdf0e10cSrcweir /************************************************************************* 753*cdf0e10cSrcweir |* SvMetaExtern::Write() 754*cdf0e10cSrcweir |* 755*cdf0e10cSrcweir |* Beschreibung 756*cdf0e10cSrcweir *************************************************************************/ 757*cdf0e10cSrcweir void SvMetaExtern::Write( SvIdlDataBase & rBase, SvStream & rOutStm, 758*cdf0e10cSrcweir sal_uInt16 nTab, 759*cdf0e10cSrcweir WriteType nT, WriteAttribute nA ) 760*cdf0e10cSrcweir { 761*cdf0e10cSrcweir SvMetaReference::Write( rBase, rOutStm, nTab, nT, nA ); 762*cdf0e10cSrcweir } 763*cdf0e10cSrcweir 764*cdf0e10cSrcweir /************************************************************************* 765*cdf0e10cSrcweir |* SvMetaExtern::WriteAttributes() 766*cdf0e10cSrcweir |* 767*cdf0e10cSrcweir |* Beschreibung 768*cdf0e10cSrcweir *************************************************************************/ 769*cdf0e10cSrcweir void SvMetaExtern::WriteAttributes( SvIdlDataBase & rBase, SvStream & rOutStm, 770*cdf0e10cSrcweir sal_uInt16 nTab, 771*cdf0e10cSrcweir WriteType nT, WriteAttribute nA ) 772*cdf0e10cSrcweir { 773*cdf0e10cSrcweir SvMetaReference::WriteAttributes( rBase, rOutStm, nTab, nT, nA ); 774*cdf0e10cSrcweir 775*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 776*cdf0e10cSrcweir rOutStm << "// class SvMetaExtern" << endl; 777*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 778*cdf0e10cSrcweir rOutStm << "uuid(" << ByteString( GetUUId().GetHexName(), RTL_TEXTENCODING_UTF8 ).GetBuffer() << ")," << endl; 779*cdf0e10cSrcweir WriteTab( rOutStm, nTab ); 780*cdf0e10cSrcweir rOutStm << "version(" << ByteString::CreateFromInt32( aVersion.GetMajorVersion() ).GetBuffer() << '.' 781*cdf0e10cSrcweir << ByteString::CreateFromInt32( aVersion.GetMinorVersion() ).GetBuffer() << ")," << endl; 782*cdf0e10cSrcweir } 783*cdf0e10cSrcweir 784*cdf0e10cSrcweir #endif // IDL_COMPILER 785*cdf0e10cSrcweir 786*cdf0e10cSrcweir 787