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
fe2b2be9
Kaydet (Commit)
fe2b2be9
authored
Agu 23, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improve readability by early bailout
Change-Id: Ie6616f886d58c756df10ae917ced07c82cae7f61
üst
43bd90ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
tox.cxx
sw/source/core/tox/tox.cxx
+13
-10
No files found.
sw/source/core/tox/tox.cxx
Dosyayı görüntüle @
fe2b2be9
...
@@ -345,20 +345,23 @@ SwForm& SwForm::operator=(const SwForm& rForm)
...
@@ -345,20 +345,23 @@ SwForm& SwForm::operator=(const SwForm& rForm)
sal_uInt16
SwForm
::
GetFormMaxLevel
(
TOXTypes
eTOXType
)
sal_uInt16
SwForm
::
GetFormMaxLevel
(
TOXTypes
eTOXType
)
{
{
sal_uInt16
nRet
=
0
;
switch
(
eTOXType
)
switch
(
eTOXType
)
{
{
case
TOX_INDEX
:
nRet
=
5
;
break
;
case
TOX_INDEX
:
case
TOX_USER
:
nRet
=
MAXLEVEL
+
1
;
break
;
return
5
;
case
TOX_CONTENT
:
nRet
=
MAXLEVEL
+
1
;
break
;
case
TOX_USER
:
case
TOX_CONTENT
:
return
MAXLEVEL
+
1
;
case
TOX_ILLUSTRATIONS
:
case
TOX_ILLUSTRATIONS
:
case
TOX_OBJECTS
:
case
TOX_OBJECTS
:
case
TOX_TABLES
:
nRet
=
2
;
break
;
case
TOX_TABLES
:
case
TOX_BIBLIOGRAPHY
:
return
2
;
case
TOX_BIBLIOGRAPHY
:
case
TOX_CITATION
:
case
TOX_CITATION
:
case
TOX_AUTHORITIES
:
nRet
=
AUTH_TYPE_END
+
1
;
break
;
case
TOX_AUTHORITIES
:
return
AUTH_TYPE_END
+
1
;
}
}
return
nRet
;
return
0
;
}
}
void
SwForm
::
AdjustTabStops
(
SwDoc
&
rDoc
)
// #i21237#
void
SwForm
::
AdjustTabStops
(
SwDoc
&
rDoc
)
// #i21237#
...
@@ -463,7 +466,7 @@ SwTOXBase& SwTOXBase::CopyTOXBase( SwDoc* pDoc, const SwTOXBase& rSource )
...
@@ -463,7 +466,7 @@ SwTOXBase& SwTOXBase::CopyTOXBase( SwDoc* pDoc, const SwTOXBase& rSource )
// type not in pDoc, so create it now
// type not in pDoc, so create it now
const
SwTOXTypes
&
rTypes
=
pDoc
->
GetTOXTypes
();
const
SwTOXTypes
&
rTypes
=
pDoc
->
GetTOXTypes
();
bool
bFound
=
false
;
bool
bFound
=
false
;
for
(
s
al_uInt16
n
=
rTypes
.
size
();
n
;
)
for
(
s
ize_t
n
=
rTypes
.
size
();
n
;
)
{
{
const
SwTOXType
*
pCmp
=
rTypes
[
--
n
];
const
SwTOXType
*
pCmp
=
rTypes
[
--
n
];
if
(
pCmp
->
GetType
()
==
pType
->
GetType
()
&&
if
(
pCmp
->
GetType
()
==
pType
->
GetType
()
&&
...
...
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