sbxobj.cxx (e1f63238) | sbxobj.cxx (22a7caf0) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 362 unchanged lines hidden (view full) --- 371 } 372 } 373 return pArray; 374} 375 376// Falls ein neues Objekt eingerichtet wird, wird es, falls es bereits 377// eines mit diesem Namen gibt, indiziert. 378 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 362 unchanged lines hidden (view full) --- 371 } 372 } 373 return pArray; 374} 375 376// Falls ein neues Objekt eingerichtet wird, wird es, falls es bereits 377// eines mit diesem Namen gibt, indiziert. 378 |
379SbxVariable* SbxObject::Make( const XubString& rName, SbxClassType ct, SbxDataType dt ) | 379SbxVariable* SbxObject::Make( const XubString& rName, SbxClassType ct, SbxDataType dt, bool bIsRuntimeFunction ) |
380{ 381 // Ist das Objekt bereits vorhanden? 382 SbxArray* pArray = NULL; 383 switch( ct ) 384 { 385 case SbxCLASS_VARIABLE: 386 case SbxCLASS_PROPERTY: pArray = pProps; break; 387 case SbxCLASS_METHOD: pArray = pMethods; break; --- 29 unchanged lines hidden (view full) --- 417 SbxVariable* pVar = NULL; 418 switch( ct ) 419 { 420 case SbxCLASS_VARIABLE: 421 case SbxCLASS_PROPERTY: 422 pVar = new SbxProperty( rName, dt ); 423 break; 424 case SbxCLASS_METHOD: | 380{ 381 // Ist das Objekt bereits vorhanden? 382 SbxArray* pArray = NULL; 383 switch( ct ) 384 { 385 case SbxCLASS_VARIABLE: 386 case SbxCLASS_PROPERTY: pArray = pProps; break; 387 case SbxCLASS_METHOD: pArray = pMethods; break; --- 29 unchanged lines hidden (view full) --- 417 SbxVariable* pVar = NULL; 418 switch( ct ) 419 { 420 case SbxCLASS_VARIABLE: 421 case SbxCLASS_PROPERTY: 422 pVar = new SbxProperty( rName, dt ); 423 break; 424 case SbxCLASS_METHOD: |
425 pVar = new SbxMethod( rName, dt ); | 425 pVar = new SbxMethod( rName, dt, bIsRuntimeFunction ); |
426 break; 427 case SbxCLASS_OBJECT: 428 pVar = CreateObject( rName ); 429 break; 430 default: break; 431 } 432 pVar->SetParent( this ); 433 pArray->Put( pVar, pArray->Count() ); --- 711 unchanged lines hidden --- | 426 break; 427 case SbxCLASS_OBJECT: 428 pVar = CreateObject( rName ); 429 break; 430 default: break; 431 } 432 pVar->SetParent( this ); 433 pArray->Put( pVar, pArray->Count() ); --- 711 unchanged lines hidden --- |