diff options
author | Kohei Yoshida <kohei@openoffice.org> | 2009-07-30 21:07:52 +0000 |
---|---|---|
committer | Kohei Yoshida <kohei@openoffice.org> | 2009-07-30 21:07:52 +0000 |
commit | 58a98fbb38dc78eba9768cebfc1e6215fbe97306 (patch) | |
tree | d7f5debedcfa5b8c2837549d3b860c0090fd1958 /sc/source/ui/inc/dpcontrol.hxx | |
parent | e55664992c9182d89988ca1253693c012c806930 (diff) |
Used SvxCheckListBox to implement the check list box instead of rolling
my own.
Diffstat (limited to 'sc/source/ui/inc/dpcontrol.hxx')
-rw-r--r-- | sc/source/ui/inc/dpcontrol.hxx | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/sc/source/ui/inc/dpcontrol.hxx b/sc/source/ui/inc/dpcontrol.hxx index 5c1e7a59aad2..e360f4f5acf2 100644 --- a/sc/source/ui/inc/dpcontrol.hxx +++ b/sc/source/ui/inc/dpcontrol.hxx @@ -37,6 +37,7 @@ #include "vcl/button.hxx" #include "vcl/scrbar.hxx" #include "vcl/timer.hxx" +#include "svx/checklbx.hxx" #include <boost/shared_ptr.hpp> #include <memory> @@ -245,7 +246,8 @@ private: enum SectionType { WHOLE, // entire window - LISTBOX_AREA, // box enclosing the check box items. + LISTBOX_AREA_OUTER, // box enclosing the check box items. + LISTBOX_AREA_INNER, // box enclosing the check box items. FIRST_LISTITEM, // first list item at the top BTN_OK, // OK button BTN_CANCEL, // Cancel button @@ -253,32 +255,15 @@ private: }; void getSectionPosSize(Point& rPos, Size& rSize, SectionType eType) const; - void resetDisplayedItems(); - - DECL_LINK( CheckBoxHdl, CheckBox* ); DECL_LINK( OKButtonHdl, OKButton* ); DECL_LINK( ScrollHdl, ScrollBar* ); private: - - CheckBox maCheck0; - CheckBox maCheck1; - CheckBox maCheck2; - CheckBox maCheck3; - CheckBox maCheck4; - CheckBox maCheck5; - CheckBox maCheck6; - CheckBox maCheck7; - CheckBox maCheck8; - CheckBox maCheck9; - - ScrollBar maScrollBar; + SvxCheckListBox maChecks; OKButton maBtnOk; CancelButton maBtnCancel; - ::std::vector<CheckBox*> mpCheckPtr; - ::std::vector<Member> maMembers; ::std::auto_ptr<ExtendedData> mpExtendedData; ::std::auto_ptr<Action> mpOKAction; |