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
35bbf925
Kaydet (Commit)
35bbf925
authored
Mar 12, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Simplify evaluation of returned booleans
Change-Id: I429d410cf735d4c1dd37ae71513b2e0d6332c50a
üst
2e26e6fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
34 deletions
+18
-34
calcmove.cxx
sw/source/core/layout/calcmove.cxx
+18
-34
No files found.
sw/source/core/layout/calcmove.cxx
Dosyayı görüntüle @
35bbf925
...
...
@@ -182,23 +182,15 @@ sal_Bool SwCntntFrm::ShouldBwdMoved( SwLayoutFrm *pNewUpper, sal_Bool, sal_Bool
}
// It's impossible for _WouldFit to return a usable result if
// we have a fresh multi-column section - so we really have to
// float back
else
if
(
pNewUpper
->
IsInSct
()
&&
pNewUpper
->
IsColBodyFrm
()
&&
!
(
pNewUpper
->
Prt
().
*
fnRectX
->
fnGetWidth
)()
&&
(
pNewUpper
->
GetUpper
()
->
GetPrev
()
||
pNewUpper
->
GetUpper
()
->
GetNext
()
)
)
return
sal_True
;
else
return
sal_False
;
// No space. No sense in floating back
}
else
{
// OD 2004-05-26 #i25904# - check for space left in new upper
if
(
nSpace
)
return
sal_True
;
else
return
sal_False
;
// float back unless there is no space.
return
pNewUpper
->
IsInSct
()
&&
pNewUpper
->
IsColBodyFrm
()
&&
!
(
pNewUpper
->
Prt
().
*
fnRectX
->
fnGetWidth
)()
&&
(
pNewUpper
->
GetUpper
()
->
GetPrev
()
||
pNewUpper
->
GetUpper
()
->
GetNext
()
);
}
// OD 2004-05-26 #i25904# - check for space left in new upper
return
nSpace
!=
0
;
}
}
return
sal_False
;
...
...
@@ -879,28 +871,20 @@ bool SwTxtNode::IsCollapse() const
SwSortedObjs
*
pObjs
=
this
->
getLayoutFrm
(
GetDoc
()
->
GetCurrentLayout
()
)
->
GetDrawObjs
(
);
sal_uInt32
nObjs
=
(
pObjs
!=
NULL
)
?
pObjs
->
Count
(
)
:
0
;
if
(
pNdBefore
!=
NULL
&&
pNdAfter
!=
NULL
&&
nObjs
==
0
&&
bInTable
)
{
return
true
;
}
else
{
return
false
;
}
}
else
return
false
;
return
pNdBefore
!=
NULL
&&
pNdAfter
!=
NULL
&&
nObjs
==
0
&&
bInTable
;
}
return
false
;
}
bool
SwFrm
::
IsCollapse
()
const
{
if
(
IsTxtFrm
())
{
const
SwTxtFrm
*
pTxtFrm
=
(
SwTxtFrm
*
)
this
;
const
SwTxtNode
*
pTxtNode
=
pTxtFrm
->
GetTxtNode
();
if
(
pTxtNode
&&
pTxtNode
->
IsCollapse
())
{
return
true
;
}
else
{
return
false
;
}
}
else
{
if
(
!
IsTxtFrm
())
return
false
;
}
const
SwTxtFrm
*
pTxtFrm
=
(
SwTxtFrm
*
)
this
;
const
SwTxtNode
*
pTxtNode
=
pTxtFrm
->
GetTxtNode
();
return
pTxtNode
&&
pTxtNode
->
IsCollapse
();
}
sal_Bool
SwCntntFrm
::
MakePrtArea
(
const
SwBorderAttrs
&
rAttrs
)
...
...
@@ -1762,7 +1746,7 @@ static bool lcl_IsNextFtnBoss( const SwFrm *pFrm, const SwFrm* pNxt )
while
(
pNxt
&&
pNxt
->
IsColumnFrm
()
&&
!
pNxt
->
GetPrev
()
)
pNxt
=
pNxt
->
GetUpper
()
->
FindFtnBossFrm
();
// So.. now pFrm and pNxt are either two adjacent pages or columns.
return
(
pFrm
&&
pNxt
&&
pFrm
->
GetNext
()
==
pNxt
)
;
return
pFrm
&&
pNxt
&&
pFrm
->
GetNext
()
==
pNxt
;
}
sal_Bool
SwCntntFrm
::
_WouldFit
(
SwTwips
nSpace
,
...
...
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