Remove unotest macro

This commit is contained in:
Xisco Fauli 2011-03-28 17:03:18 +02:00 committed by Noel Power
parent df965c99f3
commit d53c8dfe13

View file

@ -32,14 +32,6 @@
#include <vcl/msgbox.hxx>
#include <basic/sbx.hxx>
// AB-Uno-Test
//#define unotest
#ifdef unotest
#include <usr/uno.hxx>
#include <basic/sbuno.hxx>
#include <sbunoobj.hxx>
#endif
#include "sbintern.hxx"
#include <basic/ttstrhlp.hxx>
@ -90,20 +82,6 @@ MyBasic::MyBasic() : StarBASIC()
p->SetName( CUniString("Objects") );
Insert( p );
// AB-Uno-Test
#ifdef unotest
// Get Uno-Service-Manager and Reflection Service
createAndSetDefaultServiceManager(); // done later
// Get Uno-Test-Object
UsrAny aObjAny = getIntrospectionTestObject();
// Box object into SbUnoObject
String aName( "UnoObject" );
SbxObjectRef xSbUnoObj = GetSbUnoObject( aName, aObjAny );
Insert( (SbxObject*)xSbUnoObj );
#endif
pTestObject = NULL;
}