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
f01f4197
Kaydet (Commit)
f01f4197
authored
Nis 12, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid reserved identifiers
Change-Id: Ibae35afb647622707b1104cd6e938692951d566e
üst
57aaf302
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
DocumentRedlineManager.cxx
sw/source/core/doc/DocumentRedlineManager.cxx
+16
-16
No files found.
sw/source/core/doc/DocumentRedlineManager.cxx
Dosyayı görüntüle @
f01f4197
...
...
@@ -35,7 +35,7 @@ using namespace com::sun::star;
#ifdef DBG_UTIL
#define
_
ERROR_PREFIX "redline table corrupted: "
#define ERROR_PREFIX "redline table corrupted: "
namespace
{
...
...
@@ -80,7 +80,7 @@ using namespace com::sun::star;
// check for empty redlines
OSL_ENSURE
(
(
*
(
rTable
[
j
]
->
GetPoint
())
!=
*
(
rTable
[
j
]
->
GetMark
())
)
||
(
rTable
[
j
]
->
GetContentIdx
()
!=
nullptr
),
_
ERROR_PREFIX
"empty redline"
);
ERROR_PREFIX
"empty redline"
);
}
// verify proper redline sorting
...
...
@@ -91,22 +91,22 @@ using namespace com::sun::star;
// check redline sorting
SAL_WARN_IF
(
*
pPrev
->
Start
()
>
*
pCurrent
->
Start
(),
"sw"
,
_
ERROR_PREFIX
"not sorted correctly"
);
ERROR_PREFIX
"not sorted correctly"
);
// check for overlapping redlines
SAL_WARN_IF
(
*
pPrev
->
End
()
>
*
pCurrent
->
Start
(),
"sw"
,
_
ERROR_PREFIX
"overlapping redlines"
);
ERROR_PREFIX
"overlapping redlines"
);
}
assert
(
std
::
is_sorted
(
rTable
.
begin
(),
rTable
.
end
(),
CompareSwRedlineTable
()));
}
}
#define
_
CHECK_REDLINE( pDoc ) lcl_CheckRedline( pDoc );
#define CHECK_REDLINE( pDoc ) lcl_CheckRedline( pDoc );
#else
#define
_
CHECK_REDLINE( pDoc )
#define CHECK_REDLINE( pDoc )
#endif
...
...
@@ -622,7 +622,7 @@ void DocumentRedlineManager::SetRedlineMode( RedlineMode_t eMode )
}
CheckAnchoredFlyConsistency
(
m_rDoc
);
_
CHECK_REDLINE
(
*
this
)
CHECK_REDLINE
(
*
this
)
if
(
pFnc
)
{
...
...
@@ -636,7 +636,7 @@ void DocumentRedlineManager::SetRedlineMode( RedlineMode_t eMode )
}
CheckAnchoredFlyConsistency
(
m_rDoc
);
_
CHECK_REDLINE
(
*
this
)
CHECK_REDLINE
(
*
this
)
m_rDoc
.
SetInXMLImport
(
bSaveInXMLImportFlag
);
}
meRedlineMode
=
eMode
;
...
...
@@ -733,7 +733,7 @@ Behaviour of Delete-Redline:
bool
DocumentRedlineManager
::
AppendRedline
(
SwRangeRedline
*
pNewRedl
,
bool
bCallDelete
)
{
bool
bMerged
=
false
;
_
CHECK_REDLINE
(
*
this
)
CHECK_REDLINE
(
*
this
)
if
(
IsRedlineOn
()
&&
!
IsShowOriginal
(
meRedlineMode
))
{
...
...
@@ -1679,7 +1679,7 @@ bool DocumentRedlineManager::AppendRedline( SwRangeRedline* pNewRedl, bool bCall
delete
pNewRedl
;
pNewRedl
=
nullptr
;
}
_
CHECK_REDLINE
(
*
this
)
CHECK_REDLINE
(
*
this
)
return
(
nullptr
!=
pNewRedl
)
||
bMerged
;
}
...
...
@@ -1691,7 +1691,7 @@ bool DocumentRedlineManager::AppendTableRowRedline( SwTableRowRedline* pNewRedl,
// #TODO - equivalent for 'SwTableRowRedline'
bool
bMerged
=
false
;
/*
_
CHECK_REDLINE( this )
CHECK_REDLINE( this )
*/
if
(
IsRedlineOn
()
&&
!
IsShowOriginal
(
meRedlineMode
))
...
...
@@ -1723,7 +1723,7 @@ bool DocumentRedlineManager::AppendTableRowRedline( SwTableRowRedline* pNewRedl,
}
// #TODO - equivalent for 'SwTableRowRedline'
/*
_
CHECK_REDLINE( this )
CHECK_REDLINE( this )
*/
return
(
nullptr
!=
pNewRedl
)
||
bMerged
;
...
...
@@ -1736,7 +1736,7 @@ bool DocumentRedlineManager::AppendTableCellRedline( SwTableCellRedline* pNewRed
// #TODO - equivalent for 'SwTableCellRedline'
bool
bMerged
=
false
;
/*
_
CHECK_REDLINE( this )
CHECK_REDLINE( this )
*/
if
(
IsRedlineOn
()
&&
!
IsShowOriginal
(
meRedlineMode
))
...
...
@@ -1768,7 +1768,7 @@ bool DocumentRedlineManager::AppendTableCellRedline( SwTableCellRedline* pNewRed
}
// #TODO - equivalent for 'SwTableCellRedline'
/*
_
CHECK_REDLINE( this )
CHECK_REDLINE( this )
*/
return
(
nullptr
!=
pNewRedl
)
||
bMerged
;
...
...
@@ -1776,7 +1776,7 @@ bool DocumentRedlineManager::AppendTableCellRedline( SwTableCellRedline* pNewRed
void
DocumentRedlineManager
::
CompressRedlines
()
{
_
CHECK_REDLINE
(
*
this
)
CHECK_REDLINE
(
*
this
)
void
(
SwRangeRedline
::*
pFnc
)(
sal_uInt16
,
size_t
)
=
nullptr
;
switch
(
nsRedlineMode_t
::
REDLINE_SHOW_MASK
&
meRedlineMode
)
...
...
@@ -1817,7 +1817,7 @@ void DocumentRedlineManager::CompressRedlines()
(
pPrev
->*
pFnc
)(
0
,
nPrevIndex
);
}
}
_
CHECK_REDLINE
(
*
this
)
CHECK_REDLINE
(
*
this
)
// #TODO - add 'SwExtraRedlineTable' also ?
}
...
...
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