summaryrefslogtreecommitdiff
path: root/basic/source/inc/parser.hxx
diff options
context:
space:
mode:
authorGergo Mocsi <gmocsi91@gmail.com>2013-07-07 19:43:05 +0200
committerGergo Mocsi <gmocsi91@gmail.com>2013-07-07 19:43:05 +0200
commite83dd7cb1598b7567c3c4f5822c6132d8054d181 (patch)
tree68b4cfe9e56b98691b2365eadb665247b051ee55 /basic/source/inc/parser.hxx
parent3168fe1be0b45ea418f97430004fedf695f85a15 (diff)
GSOC work week 5, some recent fixes
This week I've managed to fix the ListBox appearance. Also, I've modified the code: it gets the data on insert/remove/change, and gets updated only when the dot is pressed. This makes the data to be up-to-date. Next, I wrote a Split(OUString , char) function to do the nested reflection (It works, but it will need some tweaks later). Also, code generation is disabled for code completition (just a boolean value, maybe it could be done in a more "elegant" way, like the error supression). Change-Id: I43d250c0a065351950ac6424dcd88266d70bcef3
Diffstat (limited to 'basic/source/inc/parser.hxx')
-rw-r--r--basic/source/inc/parser.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/basic/source/inc/parser.hxx b/basic/source/inc/parser.hxx
index 0ab6bcbb533b..a6f3751d8c57 100644
--- a/basic/source/inc/parser.hxx
+++ b/basic/source/inc/parser.hxx
@@ -42,6 +42,7 @@ class SbiParser : public SbiTokenizer
bool bGblDefs; // true: global definitions general
bool bNewGblDefs; // true: globale definitions before sub
bool bSingleLineIf;
+ bool bCodeCompleting;
SbiSymDef* VarDecl( SbiDimList**, bool, bool );
SbiProcDef* ProcDecl(bool bDecl);
@@ -57,7 +58,7 @@ class SbiParser : public SbiTokenizer
void DefEnum( bool bPrivate ); // Parse enum declaration
void DefDeclare( bool bPrivate );
void EnableCompatibility();
- bool IsUnoInterface(const OUString& sTypeName);
+ bool IsUnoInterface( const OUString& sTypeName );
public:
SbxArrayRef rTypeArray;
SbxArrayRef rEnumArray;
@@ -80,6 +81,8 @@ public:
SbiParser( StarBASIC*, SbModule* );
bool Parse();
+ void SetCodeCompleting( const bool& b );
+ bool IsCodeCompleting() const;
SbiExprNode* GetWithVar();
// from 31.3.1996, search symbol in the runtime-library