diff options
author | Gergo Mocsi <gmocsi91@gmail.com> | 2013-08-06 11:30:21 +0200 |
---|---|---|
committer | Gergo Mocsi <gmocsi91@gmail.com> | 2013-09-02 18:16:55 +0200 |
commit | b4319d8726e3d01b55f80b1dc30af1f96df1c211 (patch) | |
tree | 6b4c80d25cdced16ac009699ea415bad7a57c68b /basic | |
parent | 972bbede6e79fb7c828a32a560559391290af997 (diff) |
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<OUString>.
I had to modify file basic/source/comp/dim.cxx, to check on UNO types when code completition is on.
Change-Id: Id93a6fe896424efb7868f6102985f59fb419b17e
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/dim.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
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("<<aTypeName<<"):"<< IsUnoInterface(aTypeName) << std::endl; - std::cerr << "finally: " << (CodeCompleteOptions::IsExtendedTypeDeclaration() && !IsUnoInterface(aTypeName)) << std::endl;*/ if( rTypeArray->Find( aTypeName, SbxCLASS_OBJECT ) == NULL ) { - if(!CodeCompleteOptions::IsExtendedTypeDeclaration()) + if(!CodeCompleteOptions::IsCodeCompleteOn()) Error( SbERR_UNDEF_TYPE, aTypeName ); else { |