summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/baside2.hxx
diff options
context:
space:
mode:
authorGergo Mocsi <gmocsi91@gmail.com>2013-07-17 15:54:13 +0200
committerGergo Mocsi <gmocsi91@gmail.com>2013-07-17 15:54:13 +0200
commit9a6609e02589c2b38fd71817ed9e5cf47c37ab07 (patch)
treeb9dd62581c77e3e10f113c2eee1c5cbdbfa41611 /basctl/source/basicide/baside2.hxx
parentfe504de79ba87226a76940cf1670cb1864045cf8 (diff)
GSOC work Window appearance fix 2 + code fixes
Added a function to select the first entry in the ListBox by default. Selected entry can be inserted with the ENTER key. Fixed some code in basic code generation class (SbiCodeGen). Change-Id: Ia6eb43ee5661a0a3ae0b738b619f19972f019eac
Diffstat (limited to 'basctl/source/basicide/baside2.hxx')
-rw-r--r--basctl/source/basicide/baside2.hxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx
index c0d93aa2db16..51a130cdac18 100644
--- a/basctl/source/basicide/baside2.hxx
+++ b/basctl/source/basicide/baside2.hxx
@@ -116,9 +116,7 @@ private:
GetComponentInterface(sal_Bool bCreate = true);
std::vector< CodeCompleteData > aCodeCompleteCache;
CodeCompleteWindow* pCodeCompleteWnd;
- //CodeCompleteListBox* aListBox;
OUString GetActualSubName( sal_uLong nLine ); // gets the actual subroutine name according to line number
- std::vector< OUString > Split( const OUString& sStr, const sal_Unicode& aChar );
protected:
virtual void Paint( const Rectangle& );
@@ -482,7 +480,6 @@ private:
CodeCompleteListBox* pListBox;
void InitListBox(); // initialize the ListBox
- //DECL_LINK(ImplDoubleClickHdl, void*);
public:
CodeCompleteWindow( EditorWindow* pPar );
@@ -493,6 +490,7 @@ public:
void SetTextSelection( const TextSelection& aSel );
const TextSelection& GetTextSelection() const;
void ResizeListBox();
+ void SelectFirstEntry(); //selects first entry in ListBox
protected:
virtual void KeyInput( const KeyEvent& rKeyEvt );
@@ -506,7 +504,8 @@ private:
public:
CodeCompleteListBox(CodeCompleteWindow* pPar);
virtual ~CodeCompleteListBox();
- //DECL_LINK(ImplSelectHdl, void*);
+ void InsertSelectedEntry(); //insert the selected entry
+
DECL_LINK(ImplDoubleClickHdl, void*);
virtual long PreNotify( NotifyEvent& rNEvt );