From b4319d8726e3d01b55f80b1dc30af1f96df1c211 Mon Sep 17 00:00:00 2001 From: Gergo Mocsi Date: Tue, 6 Aug 2013 11:30:21 +0200 Subject: GSOC work, Extended types correction Stucts can be autocompleted when extended types disabled. Created two functions to make the code brighter. They extract the methods/fields from an XIdlClass and return them in a std::vector. I had to modify file basic/source/comp/dim.cxx, to check on UNO types when code completition is on. Change-Id: Id93a6fe896424efb7868f6102985f59fb419b17e --- basic/source/comp/dim.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'basic/source') diff --git a/basic/source/comp/dim.cxx b/basic/source/comp/dim.cxx index 9a030ccff85a..2b94c397ef52 100644 --- a/basic/source/comp/dim.cxx +++ b/basic/source/comp/dim.cxx @@ -405,12 +405,9 @@ void SbiParser::DefVar( SbiOpcode eOp, bool bStatic ) if( !bCompatible && !pDef->IsNew() ) { OUString aTypeName( aGblStrings.Find( pDef->GetTypeId() ) ); - /*std::cerr <<"CodeCompleteOptions::IsExtendedTypeDeclaration():" << CodeCompleteOptions::IsExtendedTypeDeclaration() << std::endl; - std::cerr << "IsUnoInterface("<Find( aTypeName, SbxCLASS_OBJECT ) == NULL ) { - if(!CodeCompleteOptions::IsExtendedTypeDeclaration()) + if(!CodeCompleteOptions::IsCodeCompleteOn()) Error( SbERR_UNDEF_TYPE, aTypeName ); else { -- cgit