summaryrefslogtreecommitdiff
path: root/include/svtools/calendar.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-14 11:27:52 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-14 10:21:55 +0000
commit06ea347b939895d3091ce747c26de58f4d4a766a (patch)
treee93a25d2aadc36c263a8ccd8b593449b37fb8b6b /include/svtools/calendar.hxx
parent9be8c4f21200aeec5b334d9536b3b7a0b72c24fa (diff)
loplugin:unusedmethods svtools
Change-Id: I04ad31055c04a247faddf4311943ca769051473c Reviewed-on: https://gerrit.libreoffice.org/17032 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/svtools/calendar.hxx')
-rw-r--r--include/svtools/calendar.hxx58
1 files changed, 0 insertions, 58 deletions
diff --git a/include/svtools/calendar.hxx b/include/svtools/calendar.hxx
index 4bc14ad3b89e..c1b391c95266 100644
--- a/include/svtools/calendar.hxx
+++ b/include/svtools/calendar.hxx
@@ -283,80 +283,33 @@ public:
void DoubleClick();
void Select();
- const CalendarWrapper& GetCalendarWrapper() const { return maCalendarWrapper; }
-
void SelectDate( const Date& rDate, bool bSelect = true );
void SetNoSelection();
bool IsDateSelected( const Date& rDate ) const;
Date GetFirstSelectedDate() const;
void EnableCallEverySelect( bool bEvery = true ) { mbAllSel = bEvery; }
- bool IsCallEverySelectEnabled() const { return mbAllSel; }
- sal_uInt16 GetRequestYear() const { return mnRequestYear; }
void SetCurDate( const Date& rNewDate );
- Date GetCurDate() const { return maCurDate; }
void SetFirstDate( const Date& rNewFirstDate );
Date GetFirstDate() const { return maFirstDate; }
Date GetLastDate() const { return GetFirstDate() + mnDayCount; }
- sal_uLong GetDayCount() const { return mnDayCount; }
Date GetFirstMonth() const;
Date GetLastMonth() const;
sal_uInt16 GetMonthCount() const;
bool GetDate( const Point& rPos, Date& rDate ) const;
Rectangle GetDateRect( const Date& rDate ) const;
- long GetCurMonthPerLine() const { return mnMonthPerLine; }
- long GetCurLines() const { return mnLines; }
-
- const Color& GetStandardColor() const;
- const Color& GetSaturdayColor() const;
- const Color& GetSundayColor() const;
-
void StartSelection();
void EndSelection();
bool IsTravelSelect() const { return mbTravelSelect; }
- bool IsScrollDateRangeChanged() const { return mbScrollDateRange; }
- bool IsSelectLeft() const { return mbSelLeft; }
Size CalcWindowSizePixel( long nCalcMonthPerLine = 1,
long nCalcLines = 1 ) const;
- void SetSelectionChangingHdl( const Link<>& rLink ) { maSelectionChangingHdl = rLink; }
- const Link<>& GetSelectionChangingHdl() const { return maSelectionChangingHdl; }
- void SetDateRangeChangedHdl( const Link<>& rLink ) { maDateRangeChangedHdl = rLink; }
- const Link<>& GetDateRangeChangedHdl() const { return maDateRangeChangedHdl; }
- void SetRequestDateInfoHdl( const Link<>& rLink ) { maRequestDateInfoHdl = rLink; }
- const Link<>& GetRequestDateInfoHdl() const { return maRequestDateInfoHdl; }
- void SetDoubleClickHdl( const Link<>& rLink ) { maDoubleClickHdl = rLink; }
- const Link<>& GetDoubleClickHdl() const { return maDoubleClickHdl; }
void SetSelectHdl( const Link<>& rLink ) { maSelectHdl = rLink; }
- const Link<>& GetSelectHdl() const { return maSelectHdl; }
};
-inline const Color& Calendar::GetStandardColor() const
-{
- if ( mpStandardColor )
- return *mpStandardColor;
- else
- return GetFont().GetColor();
-}
-
-inline const Color& Calendar::GetSaturdayColor() const
-{
- if ( mpSaturdayColor )
- return *mpSaturdayColor;
- else
- return GetFont().GetColor();
-}
-
-inline const Color& Calendar::GetSundayColor() const
-{
- if ( mpSundayColor )
- return *mpSundayColor;
- else
- return GetFont().GetColor();
-}
/*************************************************************************
@@ -428,19 +381,8 @@ public:
VclPtr<Calendar> CreateCalendar( vcl::Window* pParent );
Calendar* GetCalendar();
- void SetDefaultDate( const Date& rDate ) { maDefaultDate = rDate; }
- Date GetDefaultDate() const { return maDefaultDate; }
-
void EnableToday( bool bToday = true ) { mbToday = bToday; }
- bool IsTodayEnabled() const { return mbToday; }
void EnableNone( bool bNone = true ) { mbNone = bNone; }
- bool IsNoneEnabled() const { return mbNone; }
-
- void SetCalendarStyle( WinBits nStyle ) { mnCalendarStyle = nStyle; }
- WinBits GetCalendarStyle() const { return mnCalendarStyle; }
-
- void SetSelectHdl( const Link<>& rLink ) { maSelectHdl = rLink; }
- const Link<>& GetSelectHdl() const { return maSelectHdl; }
protected:
virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE;