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
aeeb7948
Kaydet (Commit)
aeeb7948
authored
May 01, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1296292 merge these two enum types
Change-Id: I4f82ca5f7a6b392322225c0b871dbaffeba44377
üst
ee494e4a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
21 deletions
+22
-21
ctredlin.hxx
include/svx/ctredlin.hxx
+1
-1
chgviset.hxx
sc/inc/chgviset.hxx
+5
-8
chgviset.cxx
sc/source/core/tool/chgviset.cxx
+3
-3
xmlimprt.cxx
sc/source/filter/xml/xmlimprt.cxx
+1
-1
highred.cxx
sc/source/ui/miscdlgs/highred.cxx
+1
-1
viewutil.cxx
sc/source/ui/view/viewutil.cxx
+7
-7
ctredlin.cxx
svx/source/dialog/ctredlin.cxx
+4
-0
No files found.
include/svx/ctredlin.hxx
Dosyayı görüntüle @
aeeb7948
...
...
@@ -38,7 +38,7 @@
enum
class
SvxRedlinDateMode
{
BEFORE
,
SINCE
,
EQUAL
,
NOTEQUAL
,
BETWEEN
,
SAVE
BEFORE
,
SINCE
,
EQUAL
,
NOTEQUAL
,
BETWEEN
,
SAVE
,
NONE
};
/// Struct for sorting data.
...
...
sc/inc/chgviset.hxx
Dosyayı görüntüle @
aeeb7948
...
...
@@ -20,13 +20,10 @@
#define INCLUDED_SC_INC_CHGVISET_HXX
#include <tools/datetime.hxx>
#include <svx/ctredlin.hxx>
#include "rangelst.hxx"
#include "scdllapi.h"
enum
ScChgsDateMode
{
SCDM_DATE_BEFORE
=
0
,
SCDM_DATE_SINCE
=
1
,
SCDM_DATE_EQUAL
=
2
,
SCDM_DATE_NOTEQUAL
=
3
,
SCDM_DATE_BETWEEN
=
4
,
SCDM_DATE_SAVE
=
5
,
SCDM_NO_DATEMODE
=
6
};
namespace
utl
{
class
TextSearch
;
}
...
...
@@ -43,7 +40,7 @@ private:
OUString
aAuthorToShow
;
OUString
aComment
;
ScRangeList
aRangeList
;
S
cChgsDateMode
eDateMode
;
S
vxRedlinDateMode
eDateMode
;
bool
bShowIt
;
bool
bIsDate
;
bool
bIsAuthor
;
...
...
@@ -62,7 +59,7 @@ public:
:
pCommentSearcher
(
NULL
)
,
aFirstDateTime
(
DateTime
::
EMPTY
)
,
aLastDateTime
(
DateTime
::
EMPTY
)
,
eDateMode
(
S
CDM_DATE_
BEFORE
)
,
eDateMode
(
S
vxRedlinDateMode
::
BEFORE
)
,
bShowIt
(
false
)
,
bIsDate
(
false
)
,
bIsAuthor
(
false
)
...
...
@@ -87,8 +84,8 @@ public:
bool
HasDate
()
const
{
return
bIsDate
;}
void
SetHasDate
(
bool
nFlag
)
{
bIsDate
=
nFlag
;}
void
SetTheDateMode
(
S
cChgs
DateMode
eDatMod
){
eDateMode
=
eDatMod
;
}
S
cChgsDateMode
GetTheDateMode
()
const
{
return
eDateMode
;
}
void
SetTheDateMode
(
S
vxRedlin
DateMode
eDatMod
){
eDateMode
=
eDatMod
;
}
S
vxRedlinDateMode
GetTheDateMode
()
const
{
return
eDateMode
;
}
void
SetTheFirstDateTime
(
const
DateTime
&
aDateTime
)
{
aFirstDateTime
=
aDateTime
;}
const
DateTime
&
GetTheFirstDateTime
()
const
{
return
aFirstDateTime
;}
...
...
sc/source/core/tool/chgviset.cxx
Dosyayı görüntüle @
aeeb7948
...
...
@@ -115,13 +115,13 @@ void ScChangeViewSettings::AdjustDateMode( const ScDocument& rDoc )
{
switch
(
eDateMode
)
{
// corresponds with ScViewUtil::IsActionShown
case
S
CDM_DATE_
EQUAL
:
case
S
CDM_DATE_
NOTEQUAL
:
case
S
vxRedlinDateMode
:
:
EQUAL
:
case
S
vxRedlinDateMode
:
:
NOTEQUAL
:
aFirstDateTime
.
SetTime
(
0
);
aLastDateTime
=
aFirstDateTime
;
aLastDateTime
.
SetTime
(
23595999
);
break
;
case
S
CDM_DATE_
SAVE
:
case
S
vxRedlinDateMode
:
:
SAVE
:
{
const
ScChangeAction
*
pLast
=
0
;
ScChangeTrack
*
pTrack
=
rDoc
.
GetChangeTrack
();
...
...
sc/source/filter/xml/xmlimprt.cxx
Dosyayı görüntüle @
aeeb7948
...
...
@@ -2476,7 +2476,7 @@ void ScXMLImport::SetChangeTrackingViewSettings(const com::sun::star::uno::Seque
else
if
(
sName
==
"ShowChangesByDatetimeMode"
)
{
if
(
rChangeProps
[
i
].
Value
>>=
nTemp16
)
pViewSettings
->
SetTheDateMode
(
ScChgsDateMode
(
nTemp16
));
pViewSettings
->
SetTheDateMode
(
static_cast
<
SvxRedlinDateMode
>
(
nTemp16
));
}
else
if
(
sName
==
"ShowChangesByDatetimeFirstDatetime"
)
{
...
...
sc/source/ui/miscdlgs/highred.cxx
Dosyayı görüntüle @
aeeb7948
...
...
@@ -223,7 +223,7 @@ IMPL_LINK( ScHighlightChgDlg, OKBtnHdl, PushButton*, pOKBtn )
{
aChangeViewSet
.
SetShowChanges
(
m_pHighlightBox
->
IsChecked
());
aChangeViewSet
.
SetHasDate
(
m_pFilterCtr
->
IsDate
());
S
cChgsDateMode
eMode
=
(
ScChgsDateMode
)
m_pFilterCtr
->
GetDateMode
();
S
vxRedlinDateMode
eMode
=
m_pFilterCtr
->
GetDateMode
();
aChangeViewSet
.
SetTheDateMode
(
eMode
);
Date
aFirstDate
(
m_pFilterCtr
->
GetFirstDate
()
);
tools
::
Time
aFirstTime
(
m_pFilterCtr
->
GetFirstTime
()
);
...
...
sc/source/ui/view/viewutil.cxx
Dosyayı görüntüle @
aeeb7948
...
...
@@ -178,35 +178,35 @@ bool ScViewUtil::IsActionShown( const ScChangeAction& rAction,
if
(
!
rSettings
.
GetTheRangeList
().
Intersects
(
rAction
.
GetBigRange
().
MakeRange
()
)
)
return
false
;
if
(
rSettings
.
HasDate
()
&&
rSettings
.
GetTheDateMode
()
!=
SCDM_NO_DATEMODE
)
if
(
rSettings
.
HasDate
()
&&
rSettings
.
GetTheDateMode
()
!=
SvxRedlinDateMode
::
NONE
)
{
DateTime
aDateTime
=
rAction
.
GetDateTime
();
const
DateTime
&
rFirst
=
rSettings
.
GetTheFirstDateTime
();
const
DateTime
&
rLast
=
rSettings
.
GetTheLastDateTime
();
switch
(
rSettings
.
GetTheDateMode
()
)
{
// corresponds with ScHighlightChgDlg::OKBtnHdl
case
S
CDM_DATE_
BEFORE
:
case
S
vxRedlinDateMode
:
:
BEFORE
:
if
(
aDateTime
>
rFirst
)
return
false
;
break
;
case
S
CDM_DATE_
SINCE
:
case
S
vxRedlinDateMode
:
:
SINCE
:
if
(
aDateTime
<
rFirst
)
return
false
;
break
;
case
S
CDM_DATE_
EQUAL
:
case
S
CDM_DATE_
BETWEEN
:
case
S
vxRedlinDateMode
:
:
EQUAL
:
case
S
vxRedlinDateMode
:
:
BETWEEN
:
if
(
aDateTime
<
rFirst
||
aDateTime
>
rLast
)
return
false
;
break
;
case
S
CDM_DATE_
NOTEQUAL
:
case
S
vxRedlinDateMode
:
:
NOTEQUAL
:
if
(
aDateTime
>=
rFirst
&&
aDateTime
<=
rLast
)
return
false
;
break
;
case
S
CDM_DATE_
SAVE
:
case
S
vxRedlinDateMode
:
:
SAVE
:
{
ScChangeTrack
*
pTrack
=
rDocument
.
GetChangeTrack
();
if
(
!
pTrack
||
pTrack
->
GetLastSavedActionNumber
()
>=
...
...
svx/source/dialog/ctredlin.cxx
Dosyayı görüntüle @
aeeb7948
...
...
@@ -215,6 +215,8 @@ void SvxRedlinTable::UpdateFilterTest()
aDaTiFilterFirst
=
aDaTiFirst
;
aDaTiFilterLast
=
aDaTiLast
;
break
;
case
SvxRedlinDateMode
:
:
NONE
:
break
;
}
}
...
...
@@ -668,6 +670,8 @@ void SvxTPFilter::ShowDateFields(SvxRedlinDateMode nKind)
EnableDateLine1
(
false
);
EnableDateLine2
(
false
);
break
;
case
SvxRedlinDateMode
:
:
NONE
:
break
;
}
}
...
...
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