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
5120e40e
Kaydet (Commit)
5120e40e
authored
Haz 02, 2011
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String to OUString.
üst
b4d15361
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
24 deletions
+30
-24
userlist.cxx
sc/source/core/tool/userlist.cxx
+30
-24
No files found.
sc/source/core/tool/userlist.cxx
Dosyayı görüntüle @
5120e40e
...
...
@@ -44,6 +44,7 @@
#include <boost/bind.hpp>
using
::
rtl
::
OUString
;
using
::
rtl
::
OUStringBuffer
;
namespace
{
...
...
@@ -228,53 +229,58 @@ ScUserList::ScUserList()
xCal
=
xCalendars
[
j
].
Days
;
if
(
xCal
.
getLength
()
)
{
String
sDayShort
,
sDayLong
;
OUStringBuffer
aDayShortBuf
,
aDayLongBuf
;
sal_Int32
i
;
sal_Int32
nLen
=
xCal
.
getLength
();
rtl
::
OUString
sStart
=
xCalendars
[
j
].
StartOfWeek
;
sal_Int16
nStart
=
sal
::
static_int_cast
<
sal_Int16
>
(
nLen
);
while
(
nStart
>
0
)
{
if
(
xCal
[
--
nStart
].
ID
==
sStart
)
if
(
xCal
[
--
nStart
].
ID
==
xCalendars
[
j
].
StartOfWeek
)
break
;
}
sal_Int16
nLast
=
sal
::
static_int_cast
<
sal_Int16
>
(
(
nStart
+
nLen
-
1
)
%
nLen
);
for
(
i
=
nStart
;
i
!=
nLast
;
i
=
(
i
+
1
)
%
nLen
)
{
sDayShort
+=
String
(
xCal
[
i
].
AbbrevName
);
sDayShort
+=
cDelimiter
;
sDayLong
+=
String
(
xCal
[
i
].
FullName
);
sDayLong
+=
cDelimiter
;
aDayShortBuf
.
append
(
xCal
[
i
].
AbbrevName
);
aDayShortBuf
.
append
(
cDelimiter
)
;
aDayLongBuf
.
append
(
xCal
[
i
].
FullName
);
aDayLongBuf
.
append
(
cDelimiter
)
;
}
sDayShort
+=
String
(
xCal
[
i
].
AbbrevName
);
sDayLong
+=
String
(
xCal
[
i
].
FullName
);
aDayShortBuf
.
append
(
xCal
[
i
].
AbbrevName
);
aDayLongBuf
.
append
(
xCal
[
i
].
FullName
);
if
(
!
HasEntry
(
sDayShort
)
)
maData
.
push_back
(
new
ScUserListData
(
sDayShort
));
if
(
!
HasEntry
(
sDayLong
)
)
maData
.
push_back
(
new
ScUserListData
(
sDayLong
));
OUString
aDayShort
=
aDayShortBuf
.
makeStringAndClear
();
OUString
aDayLong
=
aDayLongBuf
.
makeStringAndClear
();
if
(
!
HasEntry
(
aDayShort
)
)
maData
.
push_back
(
new
ScUserListData
(
aDayShort
));
if
(
!
HasEntry
(
aDayLong
)
)
maData
.
push_back
(
new
ScUserListData
(
aDayLong
));
}
xCal
=
xCalendars
[
j
].
Months
;
if
(
xCal
.
getLength
()
)
{
String
sMonthShort
,
sMonthLong
;
OUStringBuffer
aMonthShortBuf
,
aMonthLongBuf
;
sal_Int32
i
;
sal_Int32
nLen
=
xCal
.
getLength
()
-
1
;
for
(
i
=
0
;
i
<
nLen
;
i
++
)
{
sMonthShort
+=
String
(
xCal
[
i
].
AbbrevName
);
sMonthShort
+=
cDelimiter
;
sMonthLong
+=
String
(
xCal
[
i
].
FullName
);
sMonthLong
+=
cDelimiter
;
aMonthShortBuf
.
append
(
xCal
[
i
].
AbbrevName
);
aMonthShortBuf
.
append
(
cDelimiter
)
;
aMonthLongBuf
.
append
(
xCal
[
i
].
FullName
);
aMonthLongBuf
.
append
(
cDelimiter
)
;
}
sMonthShort
+=
String
(
xCal
[
i
].
AbbrevName
);
sMonthLong
+=
String
(
xCal
[
i
].
FullName
);
aMonthShortBuf
.
append
(
xCal
[
i
].
AbbrevName
);
aMonthLongBuf
.
append
(
xCal
[
i
].
FullName
);
OUString
aMonthShort
=
aMonthShortBuf
.
makeStringAndClear
();
OUString
aMonthLong
=
aMonthLongBuf
.
makeStringAndClear
();
if
(
!
HasEntry
(
s
MonthShort
)
)
maData
.
push_back
(
new
ScUserListData
(
s
MonthShort
));
if
(
!
HasEntry
(
s
MonthLong
)
)
maData
.
push_back
(
new
ScUserListData
(
s
MonthLong
));
if
(
!
HasEntry
(
a
MonthShort
)
)
maData
.
push_back
(
new
ScUserListData
(
a
MonthShort
));
if
(
!
HasEntry
(
a
MonthLong
)
)
maData
.
push_back
(
new
ScUserListData
(
a
MonthLong
));
}
}
}
...
...
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