summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/lboxctrl.cxx
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2001-04-10 07:16:48 +0000
committerThomas Lange <tl@openoffice.org>2001-04-10 07:16:48 +0000
commitfc3fcc2ebc738f80a253ffa1a5c5f6fd80404a8b (patch)
treeb56c63f0a561f274ac8619ed4a34ed061fe0d0fd /svx/source/tbxctrls/lboxctrl.cxx
parent63bb9d4bf36fe56d92fae0e91879640c543e8dc5 (diff)
SvxPopupWindowListBox declaration moved here from the hxx file
Diffstat (limited to 'svx/source/tbxctrls/lboxctrl.cxx')
-rw-r--r--svx/source/tbxctrls/lboxctrl.cxx43
1 files changed, 41 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/lboxctrl.cxx b/svx/source/tbxctrls/lboxctrl.cxx
index 2fba8e41844f..9e12dd08c999 100644
--- a/svx/source/tbxctrls/lboxctrl.cxx
+++ b/svx/source/tbxctrls/lboxctrl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: lboxctrl.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: tl $ $Date: 2001-04-09 07:38:21 $
+ * last change: $Author: tl $ $Date: 2001-04-10 08:16:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -112,6 +112,45 @@ class SvxPopupWindowListBox;
/////////////////////////////////////////////////////////////////
+class SvxPopupWindowListBox : public SfxPopupWindow
+{
+ FixedInfo aInfo;
+ ListBox * pListBox;
+ ToolBox & rToolBox;
+ USHORT nItemId;
+ BOOL bUserSel;
+
+ // disallow copy-constructor and assignment-operator
+ SvxPopupWindowListBox( const & SvxPopupWindowListBox );
+ SvxPopupWindowListBox & operator = ( const & SvxPopupWindowListBox );
+
+ DECL_LINK( SelectHdl, void * );
+
+ SvxPopupWindowListBox( USHORT nSlotId,
+ ToolBox& rTbx, USHORT nTbxItemId );
+
+public:
+ SvxPopupWindowListBox( USHORT nSlotId,
+ ToolBox& rTbx, USHORT nTbxItemId,
+ SfxBindings &rBindings );
+ virtual ~SvxPopupWindowListBox();
+
+ // SfxPopupWindow
+ virtual SfxPopupWindow * Clone() const;
+ virtual void PopupModeEnd();
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+
+ void StartSelection();
+ inline ListBox & GetListBox() { return *pListBox; }
+ inline FixedInfo & GetInfo() { return aInfo; }
+
+ BOOL IsUserSelected() const { return bUserSel; }
+ void SetUserSelected( BOOL bVal ) { bUserSel = bVal; }
+};
+
+/////////////////////////////////////////////////////////////////
+
class PopupListBox : public ListBox
{
SvxPopupWindowListBox &rPopupWin;