diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-11-18 15:55:45 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2010-11-18 15:55:45 -0500 |
commit | de7813a766fcf6112f74d6949594f3c8f34c0905 (patch) | |
tree | c215beec783b1dd018ff299b516b062cd88a27ad /sc/source/ui/dbgui/fieldwnd.cxx | |
parent | 06cb54cdbb4603d79460b950ba2c19d5b9134b7f (diff) |
Started re-working the select field window widget.
The new widget will make use of horizontal scroll control base
class to manage scrolling etc. Much better than the old method of
having the parent class manage scrolling.
Diffstat (limited to 'sc/source/ui/dbgui/fieldwnd.cxx')
-rw-r--r-- | sc/source/ui/dbgui/fieldwnd.cxx | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/sc/source/ui/dbgui/fieldwnd.cxx b/sc/source/ui/dbgui/fieldwnd.cxx index e1865e2b3e5e..3a3a03f1d560 100644 --- a/sc/source/ui/dbgui/fieldwnd.cxx +++ b/sc/source/ui/dbgui/fieldwnd.cxx @@ -41,7 +41,7 @@ #include "dpuiglobal.hxx" #include "AccessibleDataPilotControl.hxx" #include "scresid.hxx" -#include "sc.hrc" +#include "pivot.hrc" using ::rtl::OUString; using ::std::vector; @@ -1215,6 +1215,26 @@ IMPL_LINK(ScDPRowFieldControl, EndScrollHdl, ScrollBar*, EMPTYARG) //============================================================================= +#if NEW_SELECT_FIELD + +ScDPSelectFieldControl::ScDPSelectFieldControl( + ScDPLayoutDlg* pDialog, const ResId& rResId, FixedText* pCaption) : + ScDPHorFieldControl(pDialog, rResId, pCaption) +{ + SetName(String(ScResId(STR_SELECT))); +} + +ScDPSelectFieldControl::~ScDPSelectFieldControl() +{ +} + +ScDPFieldType ScDPSelectFieldControl::GetFieldType() const +{ + return TYPE_SELECT; +} + +#else + ScDPSelectFieldControl::ScDPSelectFieldControl( ScDPLayoutDlg* pDialog, const ResId& rResId, const String& rName ) : ScDPFieldControlBase( pDialog, rResId, NULL ) @@ -1326,6 +1346,8 @@ ScDPFieldType ScDPSelectFieldControl::GetFieldType() const return TYPE_SELECT; } +#endif + //============================================================================= ScDPDataFieldControl::ScDPDataFieldControl( ScDPLayoutDlg* pParent, const ResId& rResId, FixedText* pCaption ) : |