Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
31eee6b3
Kaydet (Commit)
31eee6b3
authored
Ara 18, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
handle last week/next week betweek different years, fdo#58340
üst
1e65f017
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
9 deletions
+25
-9
conditio.cxx
sc/source/core/data/conditio.cxx
+25
-9
No files found.
sc/source/core/data/conditio.cxx
Dosyayı görüntüle @
31eee6b3
...
...
@@ -1684,24 +1684,40 @@ bool ScCondDateFormatEntry::IsValid( const ScAddress& rPos ) const
return
true
;
break
;
case
condformat
:
:
LASTWEEK
:
if
(
rActDate
.
Get
Year
()
==
aCellDate
.
GetYear
()
)
if
(
rActDate
.
Get
DayOfWeek
()
!=
SUNDAY
)
{
if
(
rActDate
.
GetWeekOfYear
(
SUNDAY
)
==
aCellDate
.
GetWeekOfYear
(
SUNDAY
)
+
1
)
return
true
;
Date
aBegin
(
rActDate
-
8
-
static_cast
<
long
>
(
rActDate
.
GetDayOfWeek
()));
Date
aEnd
(
rActDate
-
2
-
static_cast
<
long
>
(
rActDate
.
GetDayOfWeek
()));
return
aCellDate
.
IsBetween
(
aBegin
,
aEnd
);
}
else
{
Date
aBegin
(
rActDate
-
8
);
Date
aEnd
(
rActDate
-
1
);
return
aCellDate
.
IsBetween
(
aBegin
,
aEnd
);
}
break
;
case
condformat
:
:
THISWEEK
:
if
(
rActDate
.
Get
Year
()
==
aCellDate
.
GetYear
()
)
if
(
rActDate
.
Get
DayOfWeek
()
!=
SUNDAY
)
{
if
(
rActDate
.
GetWeekOfYear
(
SUNDAY
)
==
aCellDate
.
GetWeekOfYear
(
SUNDAY
)
)
return
true
;
Date
aBegin
(
rActDate
-
1
-
static_cast
<
long
>
(
rActDate
.
GetDayOfWeek
()));
Date
aEnd
(
rActDate
+
5
-
static_cast
<
long
>
(
rActDate
.
GetDayOfWeek
()));
return
aCellDate
.
IsBetween
(
aBegin
,
aEnd
);
}
else
{
Date
aEnd
(
rActDate
+
6
);
return
aCellDate
.
IsBetween
(
rActDate
,
aEnd
);
}
break
;
case
condformat
:
:
NEXTWEEK
:
if
(
rActDate
.
Get
Year
()
==
aCellDate
.
GetYear
()
)
if
(
rActDate
.
Get
DayOfWeek
()
!=
SUNDAY
)
{
if
(
rActDate
.
GetWeekOfYear
(
SUNDAY
)
==
aCellDate
.
GetWeekOfYear
(
SUNDAY
)
-
1
)
return
true
;
return
aCellDate
.
IsBetween
(
rActDate
+
6
-
static_cast
<
long
>
(
rActDate
.
GetDayOfWeek
()),
rActDate
+
12
-
static_cast
<
long
>
(
rActDate
.
GetDayOfWeek
())
);
}
else
{
return
aCellDate
.
IsBetween
(
rActDate
+
7
,
rActDate
+
13
);
}
break
;
case
condformat
:
:
LASTMONTH
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment