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
95fc4bdb
Kaydet (Commit)
95fc4bdb
authored
Ock 03, 2013
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unneeded 'else' and fix 'else if' style
Change-Id: I774af9ca0631e931ddc8c5025981dabca557e325
üst
52ad6005
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
annotationmanager.cxx
sd/source/ui/annotations/annotationmanager.cxx
+12
-14
No files found.
sd/source/ui/annotations/annotationmanager.cxx
Dosyayı görüntüle @
95fc4bdb
...
@@ -127,8 +127,8 @@ static SfxBindings* getBindings( ViewShellBase& rBase )
...
@@ -127,8 +127,8 @@ static SfxBindings* getBindings( ViewShellBase& rBase )
{
{
if
(
rBase
.
GetMainViewShell
().
get
()
&&
rBase
.
GetMainViewShell
()
->
GetViewFrame
()
)
if
(
rBase
.
GetMainViewShell
().
get
()
&&
rBase
.
GetMainViewShell
()
->
GetViewFrame
()
)
return
&
rBase
.
GetMainViewShell
()
->
GetViewFrame
()
->
GetBindings
();
return
&
rBase
.
GetMainViewShell
()
->
GetViewFrame
()
->
GetBindings
();
else
return
0
;
return
0
;
}
}
// --------------------------------------------------------------------
// --------------------------------------------------------------------
...
@@ -137,8 +137,8 @@ static SfxDispatcher* getDispatcher( ViewShellBase& rBase )
...
@@ -137,8 +137,8 @@ static SfxDispatcher* getDispatcher( ViewShellBase& rBase )
{
{
if
(
rBase
.
GetMainViewShell
().
get
()
&&
rBase
.
GetMainViewShell
()
->
GetViewFrame
()
)
if
(
rBase
.
GetMainViewShell
().
get
()
&&
rBase
.
GetMainViewShell
()
->
GetViewFrame
()
)
return
rBase
.
GetMainViewShell
()
->
GetViewFrame
()
->
GetDispatcher
();
return
rBase
.
GetMainViewShell
()
->
GetViewFrame
()
->
GetDispatcher
();
else
return
0
;
return
0
;
}
}
com
::
sun
::
star
::
util
::
DateTime
getCurrentDateTime
()
com
::
sun
::
star
::
util
::
DateTime
getCurrentDateTime
()
...
@@ -161,11 +161,9 @@ OUString getAnnotationDateTimeString( const Reference< XAnnotation >& xAnnotatio
...
@@ -161,11 +161,9 @@ OUString getAnnotationDateTimeString( const Reference< XAnnotation >& xAnnotatio
Date
aDate
=
Date
(
aDateTime
.
Day
,
aDateTime
.
Month
,
aDateTime
.
Year
);
Date
aDate
=
Date
(
aDateTime
.
Day
,
aDateTime
.
Month
,
aDateTime
.
Year
);
if
(
aDate
==
aSysDate
)
if
(
aDate
==
aSysDate
)
sRet
=
sRet
+
String
(
SdResId
(
STR_ANNOTATION_TODAY
));
sRet
=
sRet
+
String
(
SdResId
(
STR_ANNOTATION_TODAY
));
else
else
if
(
aDate
==
Date
(
aSysDate
-
1
))
if
(
aDate
==
Date
(
aSysDate
-
1
))
sRet
=
sRet
+
String
(
SdResId
(
STR_ANNOTATION_YESTERDAY
));
sRet
=
sRet
+
String
(
SdResId
(
STR_ANNOTATION_YESTERDAY
));
else
else
if
(
aDate
.
IsValidAndGregorian
()
)
if
(
aDate
.
IsValidAndGregorian
()
)
sRet
=
sRet
+
rLocalData
.
getDate
(
aDate
);
sRet
=
sRet
+
rLocalData
.
getDate
(
aDate
);
Time
aTime
(
aDateTime
.
Hours
,
aDateTime
.
Minutes
,
aDateTime
.
Seconds
,
aDateTime
.
HundredthSeconds
);
Time
aTime
(
aDateTime
.
Hours
,
aDateTime
.
Minutes
,
aDateTime
.
Seconds
,
aDateTime
.
HundredthSeconds
);
...
@@ -1101,8 +1099,8 @@ Color AnnotationManagerImpl::GetColor(sal_uInt16 aAuthorIndex)
...
@@ -1101,8 +1099,8 @@ Color AnnotationManagerImpl::GetColor(sal_uInt16 aAuthorIndex)
return
Color
(
aArrayNormal
[
aAuthorIndex
%
(
sizeof
(
aArrayNormal
)
/
sizeof
(
aArrayNormal
[
0
]
))]);
return
Color
(
aArrayNormal
[
aAuthorIndex
%
(
sizeof
(
aArrayNormal
)
/
sizeof
(
aArrayNormal
[
0
]
))]);
}
}
else
return
Color
(
COL_WHITE
);
return
Color
(
COL_WHITE
);
}
}
Color
AnnotationManagerImpl
::
GetColorLight
(
sal_uInt16
aAuthorIndex
)
Color
AnnotationManagerImpl
::
GetColorLight
(
sal_uInt16
aAuthorIndex
)
...
@@ -1116,8 +1114,8 @@ Color AnnotationManagerImpl::GetColorLight(sal_uInt16 aAuthorIndex)
...
@@ -1116,8 +1114,8 @@ Color AnnotationManagerImpl::GetColorLight(sal_uInt16 aAuthorIndex)
return
Color
(
aArrayLight
[
aAuthorIndex
%
(
sizeof
(
aArrayLight
)
/
sizeof
(
aArrayLight
[
0
]
))]);
return
Color
(
aArrayLight
[
aAuthorIndex
%
(
sizeof
(
aArrayLight
)
/
sizeof
(
aArrayLight
[
0
]
))]);
}
}
else
return
Color
(
COL_WHITE
);
return
Color
(
COL_WHITE
);
}
}
Color
AnnotationManagerImpl
::
GetColorDark
(
sal_uInt16
aAuthorIndex
)
Color
AnnotationManagerImpl
::
GetColorDark
(
sal_uInt16
aAuthorIndex
)
...
@@ -1131,8 +1129,8 @@ Color AnnotationManagerImpl::GetColorDark(sal_uInt16 aAuthorIndex)
...
@@ -1131,8 +1129,8 @@ Color AnnotationManagerImpl::GetColorDark(sal_uInt16 aAuthorIndex)
return
Color
(
aArrayAnkor
[
aAuthorIndex
%
(
sizeof
(
aArrayAnkor
)
/
sizeof
(
aArrayAnkor
[
0
]
))]);
return
Color
(
aArrayAnkor
[
aAuthorIndex
%
(
sizeof
(
aArrayAnkor
)
/
sizeof
(
aArrayAnkor
[
0
]
))]);
}
}
else
return
Color
(
COL_WHITE
);
return
Color
(
COL_WHITE
);
}
}
SdPage
*
AnnotationManagerImpl
::
GetNextPage
(
SdPage
*
pPage
,
bool
bForeward
)
SdPage
*
AnnotationManagerImpl
::
GetNextPage
(
SdPage
*
pPage
,
bool
bForeward
)
...
...
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