summaryrefslogtreecommitdiff
path: root/include/basic/sbmod.hxx
diff options
context:
space:
mode:
authorGergo Mocsi <gmocsi91@gmail.com>2013-07-07 19:43:05 +0200
committerGergo Mocsi <gmocsi91@gmail.com>2013-09-02 18:16:44 +0200
commit5beb4be54cf296e3895a8849072f1892841aec75 (patch)
tree8ac72dbf48a4a3236b1d6835ee8af48aff50115f /include/basic/sbmod.hxx
parent5b9840955baa40b22fa31b8ecccecaa71d25ce94 (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 'include/basic/sbmod.hxx')
-rw-r--r--include/basic/sbmod.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/basic/sbmod.hxx b/include/basic/sbmod.hxx
index 446397716dec..65dab93173c4 100644
--- a/include/basic/sbmod.hxx
+++ b/include/basic/sbmod.hxx
@@ -49,6 +49,16 @@ struct CodeCompleteData
OUString sVarName;
OUString sVarParent;
OUString sVarType;
+
+ inline bool operator==( const CodeCompleteData& aOther )
+ {
+ return (sVarName == aOther.sVarName && sVarParent == aOther.sVarParent);
+ }
+
+ inline bool IsGlobal() const
+ {
+ return ( sVarParent == OUString("") );
+ }
};
class BASIC_DLLPUBLIC SbModule : public SbxObject, private ::boost::noncopyable
@@ -141,6 +151,7 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::script::XInvocation > GetUnoModule();
bool createCOMWrapperForIface( ::com::sun::star::uno::Any& o_rRetAny, SbClassModuleObject* pProxyClassModuleObject );
std::vector< CodeCompleteData > GetCodeCompleteDataFromParse();
+ SbxArrayRef GetMethods();
};
SV_DECL_IMPL_REF(SbModule)