Kaydet (Commit) e64a54ac authored tarafından Noel Grandin's avatar Noel Grandin

WB_RANGESELECT,WB_MULTISELECT in Calendar is dead

since

    commit 6c759da0
    delete workben

Change-Id: Ib9db62ea3fb064b70912318eda2528590c307295
Reviewed-on: https://gerrit.libreoffice.org/41287Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst adf38e23
...@@ -58,9 +58,6 @@ WinBits ...@@ -58,9 +58,6 @@ WinBits
WB_BORDER We draw a border around the window. WB_BORDER We draw a border around the window.
WB_TABSTOP Keyboard control is possible. We get the focus, when WB_TABSTOP Keyboard control is possible. We get the focus, when
the user clicks in the Control. the user clicks in the Control.
WB_RANGESELECT The user can select multiple days, which need to be
consecutive
WB_MULTISELECT The user can select multiple days
-------------------------------------------------------------------------- --------------------------------------------------------------------------
...@@ -97,9 +94,6 @@ If a ContextMenu is displayed, the baseclass' handler must not be called. ...@@ -97,9 +94,6 @@ If a ContextMenu is displayed, the baseclass' handler must not be called.
-------------------------------------------------------------------------- --------------------------------------------------------------------------
For multiple selection (WB_RANGESELECT or WB_MULTISELECT) SelectDate(),
SelectDateRange() can select date ranges. SelectDateRange() selects
including the end date.
SetNoSelection() deselects everything. SetNoSelection() deselects everything.
SetCurDate() does not select the current date, but only defines the focus SetCurDate() does not select the current date, but only defines the focus
rectangle. rectangle.
...@@ -125,17 +119,6 @@ calls or by ending a selection. ...@@ -125,17 +119,6 @@ calls or by ending a selection.
*************************************************************************/ *************************************************************************/
// Needs to be in agreement with the WinBits in the TabBar or
// we move it to \vcl\inc\wintypes.hxx
#ifndef WB_RANGESELECT
#define WB_RANGESELECT ((WinBits)0x00200000)
#endif
#ifndef WB_MULTISELECT
#define WB_MULTISELECT ((WinBits)0x00400000)
#endif
#define DIB_BOLD ((sal_uInt16)0x0001)
typedef std::set<sal_Int32> IntDateSet; typedef std::set<sal_Int32> IntDateSet;
...@@ -183,7 +166,6 @@ private: ...@@ -183,7 +166,6 @@ private:
mbFormat:1, mbFormat:1,
mbDrag:1, mbDrag:1,
mbSelection:1, mbSelection:1,
mbMultiSelection:1,
mbUnSel:1, mbUnSel:1,
mbMenuDown:1, mbMenuDown:1,
mbSpinDown:1, mbSpinDown:1,
...@@ -217,7 +199,7 @@ private: ...@@ -217,7 +199,7 @@ private:
SVT_DLLPRIVATE void ImplUpdateDate( const Date& rDate ); SVT_DLLPRIVATE void ImplUpdateDate( const Date& rDate );
SVT_DLLPRIVATE void ImplUpdateSelection( IntDateSet* pOld ); SVT_DLLPRIVATE void ImplUpdateSelection( IntDateSet* pOld );
SVT_DLLPRIVATE void ImplMouseSelect( const Date& rDate, sal_uInt16 nHitTest, SVT_DLLPRIVATE void ImplMouseSelect( const Date& rDate, sal_uInt16 nHitTest,
bool bMove, bool bExpand, bool bExtended ); bool bMove );
SVT_DLLPRIVATE void ImplUpdate( bool bCalcNew = false ); SVT_DLLPRIVATE void ImplUpdate( bool bCalcNew = false );
using Window::ImplScroll; using Window::ImplScroll;
SVT_DLLPRIVATE void ImplScroll( bool bPrev ); SVT_DLLPRIVATE void ImplScroll( bool bPrev );
...@@ -303,9 +285,6 @@ With EnableToday()/EnableNone() we can enable a TodayButton and a NoneButton. ...@@ -303,9 +285,6 @@ With EnableToday()/EnableNone() we can enable a TodayButton and a NoneButton.
-------------------------------------------------------------------------- --------------------------------------------------------------------------
If we set WB_RANGESELECT with SetCalendarStyle(), we can select multiple days
in the Calendar.
Because we only take over the start date into the field, we should query Because we only take over the start date into the field, we should query
with GetCalendar() in the SelectHandler and with GetSelectDateCount()/GetSelectDate() with GetCalendar() in the SelectHandler and with GetSelectDateCount()/GetSelectDate()
the selected range. We then can e.g. take over that value to another field. the selected range. We then can e.g. take over that value to another field.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment