Lines Matching refs:rDate

93 static void ImplCalendarSelectDate( Table* pTable, const Date& rDate, sal_Bool bSelect )  in DECLARE_TABLE()
96 pTable->Insert( rDate.GetDate(), TABLE_DATE_SELECTED ); in DECLARE_TABLE()
98 pTable->Remove( rDate.GetDate() ); in DECLARE_TABLE()
604 sal_uInt16 Calendar::ImplHitTest( const Point& rPos, Date& rDate ) const in ImplHitTest()
621 rDate = GetFirstMonth(); in ImplHitTest()
635 sal_uInt16 nDaysInMonth = rDate.GetDaysInMonth(); in ImplHitTest()
649 sal_uInt16 nDayIndex = (sal_uInt16)rDate.GetDayOfWeek(); in ImplHitTest()
653 Date aTempDate = rDate; in ImplHitTest()
661 rDate = aTempDate; in ImplHitTest()
662 rDate += nDay; in ImplHitTest()
671 rDate += nDayIndex; in ImplHitTest()
678 rDate += nDay-1; in ImplHitTest()
691 sal_uInt16 nWeekDay = (sal_uInt16)rDate.GetDayOfWeek(); in ImplHitTest()
694 Date aTempDate = rDate; in ImplHitTest()
700 rDate += nDayIndex; in ImplHitTest()
707 rDate = aTempDate; in ImplHitTest()
708 rDate += nDay-1; in ImplHitTest()
723 rDate += nDaysInMonth; in ImplHitTest()
1207 void Calendar::ImplUpdateDate( const Date& rDate ) in ImplUpdateDate() argument
1211 Rectangle aDateRect( GetDateRect( rDate ) ); in ImplUpdateDate()
1214 sal_Bool bOther = (rDate < GetFirstMonth()) || (rDate > GetLastMonth()); in ImplUpdateDate()
1216 rDate.GetDay(), rDate.GetMonth(), rDate.GetYear(), in ImplUpdateDate()
1217 rDate.GetDayOfWeek(), sal_True, bOther ); in ImplUpdateDate()
1259 void Calendar::ImplMouseSelect( const Date& rDate, sal_uInt16 nHitTest, in ImplMouseSelect() argument
1264 Date aTempDate = rDate; in ImplMouseSelect()
1424 void Calendar::ImplShowMenu( const Point& rPos, const Date& rDate ) in ImplShowMenu() argument
1433 sal_uInt16 nYear = rDate.GetYear()-1; in ImplShowMenu()
1438 nMonthOff = (rDate.GetYear()-aOldFirstDate.GetYear())*12; in ImplShowMenu()
1439 if ( aOldFirstDate.GetMonth() < rDate.GetMonth() ) in ImplShowMenu()
1440 nMonthOff += rDate.GetMonth()-aOldFirstDate.GetMonth(); in ImplShowMenu()
1442 nMonthOff -= aOldFirstDate.GetMonth()-rDate.GetMonth(); in ImplShowMenu()
2018 void Calendar::SelectDate( const Date& rDate, sal_Bool bSelect ) in SelectDate() argument
2020 if ( !rDate.IsValid() ) in SelectDate()
2030 ImplCalendarSelectDate( mpSelectTable, rDate, bSelect ); in SelectDate()
2085 sal_Bool Calendar::IsDateSelected( const Date& rDate ) const in IsDateSelected()
2087 return mpSelectTable->IsKeyValid( rDate.GetDate() ); in IsDateSelected()
2219 sal_Bool Calendar::GetDropDate( Date& rDate ) const in GetDropDate()
2223 rDate = maDropDate; in GetDropDate()
2231 sal_Bool Calendar::GetDate( const Point& rPos, Date& rDate ) const in GetDate()
2237 rDate = aDate; in GetDate()
2246 Rectangle Calendar::GetDateRect( const Date& rDate ) const in GetDateRect()
2250 if ( mbFormat || (rDate < maFirstDate) || (rDate > (maFirstDate+mnDayCount)) ) in GetDateRect()
2259 if ( rDate < aDate ) in GetDateRect()
2262 nDaysOff = aDate-rDate; in GetDateRect()
2271 if ( rDate > aLastDate ) in GetDateRect()
2277 nDaysOff = rDate-aLastDate; in GetDateRect()
2281 if ( aLastDate == rDate ) in GetDateRect()
2309 if ( (aDate.GetMonth() == rDate.GetMonth()) && in GetDateRect()
2310 (aDate.GetYear() == rDate.GetYear()) ) in GetDateRect()
2318 if ( nDay == rDate.GetDay() ) in GetDateRect()
2381 void Calendar::AddDateInfo( const Date& rDate, const String& rText, in AddDateInfo() argument
2389 sal_uLong nKey = rDate.GetDate(); in AddDateInfo()
2455 ImplUpdateDate( rDate ); in AddDateInfo()
2460 void Calendar::RemoveDateInfo( const Date& rDate ) in RemoveDateInfo() argument
2464 ImplDateInfo* pDateInfo = mpDateTable->Remove( rDate.GetDate() ); in RemoveDateInfo()
2468 ImplUpdateDate( rDate ); in RemoveDateInfo()
2496 XubString Calendar::GetDateInfoText( const Date& rDate ) in GetDateInfoText() argument
2501 sal_uLong nKey = rDate.GetDate(); in GetDateInfoText()
2511 sal_Bool Calendar::ShowDropPos( const Point& rPos, Date& rDate ) in ShowDropPos() argument
2537 rDate = maDropDate; in ShowDropPos()