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
4db2a6f6
Kaydet (Commit)
4db2a6f6
authored
Kas 28, 2012
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: I7b00701ed44bb747a3f85e1638f0f82c1ee15299
üst
150e3277
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
45 deletions
+45
-45
pagechg.cxx
sw/source/core/layout/pagechg.cxx
+15
-15
paintfrm.cxx
sw/source/core/layout/paintfrm.cxx
+0
-0
sectfrm.cxx
sw/source/core/layout/sectfrm.cxx
+30
-30
No files found.
sw/source/core/layout/pagechg.cxx
Dosyayı görüntüle @
4db2a6f6
...
...
@@ -133,13 +133,13 @@ void SwBodyFrm::Format( const SwBorderAttrs * )
Frm
().
Width
(
nWidth
);
}
sal_Bool
bNoGrid
=
sal_T
rue
;
bool
bNoGrid
=
t
rue
;
if
(
GetUpper
()
->
IsPageFrm
()
&&
((
SwPageFrm
*
)
GetUpper
())
->
HasGrid
()
)
{
GETGRID
(
((
SwPageFrm
*
)
GetUpper
())
)
if
(
pGrid
)
{
bNoGrid
=
sal_F
alse
;
bNoGrid
=
f
alse
;
long
nSum
=
pGrid
->
GetBaseHeight
()
+
pGrid
->
GetRubyHeight
();
SWRECTFN
(
this
)
long
nSize
=
(
Frm
().
*
fnRect
->
fnGetWidth
)();
...
...
@@ -446,7 +446,7 @@ static void lcl_MakeObjs( const SwFrmFmts &rTbl, SwPageFrm *pPage )
}
//Wird ein Rahmen oder ein SdrObject beschrieben?
sal_B
ool
bSdrObj
=
RES_DRAWFRMFMT
==
pFmt
->
Which
();
b
ool
bSdrObj
=
RES_DRAWFRMFMT
==
pFmt
->
Which
();
pSdrObj
=
0
;
if
(
bSdrObj
&&
0
==
(
pSdrObj
=
pFmt
->
FindSdrObject
())
)
{
...
...
@@ -569,7 +569,7 @@ void SwPageFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew )
SfxItemIter
aOIter
(
*
((
SwAttrSetChg
*
)
pOld
)
->
GetChgSet
()
);
SwAttrSetChg
aOldSet
(
*
(
SwAttrSetChg
*
)
pOld
);
SwAttrSetChg
aNewSet
(
*
(
SwAttrSetChg
*
)
pNew
);
while
(
sal_T
rue
)
while
(
t
rue
)
{
_UpdateAttr
(
(
SfxPoolItem
*
)
aOIter
.
GetCurItem
(),
(
SfxPoolItem
*
)
aNIter
.
GetCurItem
(),
nInvFlags
,
...
...
@@ -607,7 +607,7 @@ void SwPageFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
sal_uInt8
&
rInvFlags
,
SwAttrSetChg
*
pOldSet
,
SwAttrSetChg
*
pNewSet
)
{
sal_Bool
bClear
=
sal_T
rue
;
bool
bClear
=
t
rue
;
const
sal_uInt16
nWhich
=
pOld
?
pOld
->
Which
()
:
pNew
?
pNew
->
Which
()
:
0
;
switch
(
nWhich
)
{
...
...
@@ -728,7 +728,7 @@ void SwPageFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
break
;
default
:
bClear
=
sal_F
alse
;
bClear
=
f
alse
;
}
if
(
bClear
)
{
...
...
@@ -1255,7 +1255,7 @@ void SwFrm::CheckPageDescs( SwPageFrm *pStart, sal_Bool bNotifyFields )
//1. Keine zwei EmptyPages hintereinander.
//2. Alle PageDescs richtig?
sal_Bool
bEmpty
=
sal_F
alse
;
bool
bEmpty
=
f
alse
;
SwPageFrm
*
pPg
=
pStart
;
while
(
pPg
)
{
...
...
@@ -1266,10 +1266,10 @@ void SwFrm::CheckPageDescs( SwPageFrm *pStart, sal_Bool bNotifyFields )
OSL_FAIL
(
"Doppelte Leerseiten."
);
break
;
//Einmal reicht.
}
bEmpty
=
sal_T
rue
;
bEmpty
=
t
rue
;
}
else
bEmpty
=
sal_F
alse
;
bEmpty
=
f
alse
;
//MA 21. Jun. 95: Kann zu testzwecken 'rein, ist aber bei zyklen durchaus
//moeglich: Ein paar Seiten, auf der ersten 'erste Seite' anwenden,
...
...
@@ -1296,8 +1296,8 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn )
pSibling
=
(
SwPageFrm
*
)
pPrevPage
->
GetNext
();
//Rechte (ungerade) oder linke (gerade) Seite einfuegen?
sal_B
ool
bNextOdd
=
!
pPrevPage
->
OnRightPage
();
sal_B
ool
bWishedOdd
=
bNextOdd
;
b
ool
bNextOdd
=
!
pPrevPage
->
OnRightPage
();
b
ool
bWishedOdd
=
bNextOdd
;
//Welcher PageDesc gilt?
//Bei CntntFrm der aus dem Format wenn einer angegeben ist,
...
...
@@ -1308,7 +1308,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn )
pDesc
=
rDesc
.
GetPageDesc
();
if
(
rDesc
.
GetNumOffset
()
)
{
bWishedOdd
=
rDesc
.
GetNumOffset
()
%
2
?
sal_True
:
sal_F
alse
;
bWishedOdd
=
rDesc
.
GetNumOffset
()
%
2
?
true
:
f
alse
;
//Die Gelegenheit nutzen wir um das Flag an der Root zu pflegen.
pRoot
->
SetVirtPageNum
(
sal_True
);
}
...
...
@@ -1325,7 +1325,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn )
SwDoc
*
pDoc
=
pPrevPage
->
GetFmt
()
->
GetDoc
();
SwFrmFmt
*
pFmt
;
sal_Bool
bCheckPages
=
sal_F
alse
;
bool
bCheckPages
=
f
alse
;
//Wenn ich kein FrmFmt fuer die Seite gefunden habe, muss ich eben eine
//Leerseite einfuegen.
if
(
bWishedOdd
!=
bNextOdd
)
...
...
@@ -1347,7 +1347,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn )
delete
pDel
;
}
else
bCheckPages
=
sal_T
rue
;
bCheckPages
=
t
rue
;
}
if
(
bWishedFirst
&&
!
pDesc
->
IsFirstShared
())
pFmt
=
pDesc
->
GetFirstFmt
();
...
...
@@ -1370,7 +1370,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, sal_Bool bFtn )
delete
pDel
;
}
else
bCheckPages
=
sal_T
rue
;
bCheckPages
=
t
rue
;
if
(
pSibling
)
{
...
...
sw/source/core/layout/paintfrm.cxx
Dosyayı görüntüle @
4db2a6f6
This diff is collapsed.
Click to expand it.
sw/source/core/layout/sectfrm.cxx
Dosyayı görüntüle @
4db2a6f6
...
...
@@ -459,7 +459,7 @@ sal_Bool SwSectionFrm::HasToBreak( const SwFrm* pFrm ) const
return
sal_False
;
if
(
pTmp
==
pOtherFmt
)
return
sal_True
;
}
while
(
sal_T
rue
);
// ( pTmp->GetSect().GetValue() );
}
while
(
t
rue
);
// ( pTmp->GetSect().GetValue() );
}
/*************************************************************************
...
...
@@ -609,12 +609,12 @@ static SwCntntFrm* lcl_GetNextCntntFrm( const SwLayoutFrm* pLay, bool bFwd )
// #100926#
const
SwFrm
*
pFrm
=
pLay
;
SwCntntFrm
*
pCntntFrm
=
0
;
sal_Bool
bGoingUp
=
sal_T
rue
;
bool
bGoingUp
=
t
rue
;
do
{
const
SwFrm
*
p
=
0
;
sal_Bool
bGoingFwdOrBwd
=
sal_F
alse
;
bool
bGoingFwdOrBwd
=
f
alse
;
sal_B
ool
bGoingDown
=
!
bGoingUp
&&
(
0
!=
(
p
=
pFrm
->
IsLayoutFrm
()
?
((
SwLayoutFrm
*
)
pFrm
)
->
Lower
()
:
0
)
);
b
ool
bGoingDown
=
!
bGoingUp
&&
(
0
!=
(
p
=
pFrm
->
IsLayoutFrm
()
?
((
SwLayoutFrm
*
)
pFrm
)
->
Lower
()
:
0
)
);
if
(
!
bGoingDown
)
{
bGoingFwdOrBwd
=
(
0
!=
(
p
=
pFrm
->
IsFlyFrm
()
?
...
...
@@ -879,7 +879,7 @@ SwCntntFrm *SwSectionFrm::FindLastCntnt( sal_uInt8 nMode )
pSect
=
(
SwSectionFrm
*
)
pTmp
;
else
break
;
}
while
(
sal_T
rue
);
}
while
(
t
rue
);
}
sal_Bool
bFtnFound
=
nMode
==
FINDMODE_ENDNOTE
;
do
...
...
@@ -918,7 +918,7 @@ sal_Bool SwSectionFrm::CalcMinDiff( SwTwips& rMinDiff ) const
*
*************************************************************************/
static
SwFtnFrm
*
lcl_FindEndnote
(
SwSectionFrm
*
&
rpSect
,
sal_B
ool
&
rbEmpty
,
static
SwFtnFrm
*
lcl_FindEndnote
(
SwSectionFrm
*
&
rpSect
,
b
ool
&
rbEmpty
,
SwLayouter
*
pLayouter
)
{
// if rEmpty is set, the rpSect is already searched
...
...
@@ -960,12 +960,12 @@ static SwFtnFrm* lcl_FindEndnote( SwSectionFrm* &rpSect, sal_Bool &rbEmpty,
}
rpSect
=
pSect
;
pSect
=
pLayouter
?
pSect
->
GetFollow
()
:
NULL
;
rbEmpty
=
sal_T
rue
;
rbEmpty
=
t
rue
;
}
return
NULL
;
}
static
void
lcl_ColumnRefresh
(
SwSectionFrm
*
pSect
,
sal_B
ool
bFollow
)
static
void
lcl_ColumnRefresh
(
SwSectionFrm
*
pSect
,
b
ool
bFollow
)
{
while
(
pSect
)
{
...
...
@@ -1000,14 +1000,14 @@ void SwSectionFrm::CollectEndnotes( SwLayouter* pLayouter )
SwSectionFrm
*
pSect
=
this
;
SwFtnFrm
*
pFtn
;
sal_Bool
bEmpty
=
sal_F
alse
;
bool
bEmpty
=
f
alse
;
// pSect is the last sectionfrm without endnotes or the this-pointer
// the first sectionfrm with endnotes may be destroyed, when the endnotes
// is cutted
while
(
0
!=
(
pFtn
=
lcl_FindEndnote
(
pSect
,
bEmpty
,
pLayouter
))
)
pLayouter
->
CollectEndnote
(
pFtn
);
if
(
pLayouter
->
HasEndnotes
()
)
lcl_ColumnRefresh
(
this
,
sal_T
rue
);
lcl_ColumnRefresh
(
this
,
t
rue
);
}
/*************************************************************************
...
...
@@ -1056,7 +1056,7 @@ void SwSectionFrm::_CheckClipping( sal_Bool bGrow, sal_Bool bMaximize )
if
(
!
bCalc
&&
!
bGrow
&&
IsAnyNoteAtEnd
()
&&
!
IsInFtn
()
)
{
SwSectionFrm
*
pSect
=
this
;
sal_Bool
bEmpty
=
sal_F
alse
;
bool
bEmpty
=
f
alse
;
SwLayoutFrm
*
pFtn
=
IsEndnAtEnd
()
?
lcl_FindEndnote
(
pSect
,
bEmpty
,
NULL
)
:
NULL
;
if
(
pFtn
)
...
...
@@ -1103,7 +1103,7 @@ void SwSectionFrm::_CheckClipping( sal_Bool bGrow, sal_Bool bMaximize )
{
if
(
Lower
()
->
IsColumnFrm
()
)
{
lcl_ColumnRefresh
(
this
,
sal_F
alse
);
lcl_ColumnRefresh
(
this
,
f
alse
);
::
CalcCntnt
(
this
);
}
else
...
...
@@ -1143,7 +1143,7 @@ void SwSectionFrm::SimpleFormat()
nTop
=
nHeight
;
(
this
->*
fnRect
->
fnSetYMargins
)(
nTop
,
0
);
}
lcl_ColumnRefresh
(
this
,
sal_F
alse
);
lcl_ColumnRefresh
(
this
,
f
alse
);
UnlockJoin
();
}
...
...
@@ -1470,13 +1470,13 @@ void SwSectionFrm::Format( const SwBorderAttrs *pAttr )
pFrm
=
((
SwLayoutFrm
*
)
pFrm
)
->
Lower
();
CalcFtnCntnt
();
}
sal_Bool
bUnderSz
=
sal_F
alse
;
bool
bUnderSz
=
f
alse
;
while
(
pFrm
)
{
if
(
pFrm
->
IsTxtFrm
()
&&
((
SwTxtFrm
*
)
pFrm
)
->
IsUndersized
()
)
{
pFrm
->
Prepare
(
PREP_ADJUST_FRM
);
bUnderSz
=
sal_T
rue
;
bUnderSz
=
t
rue
;
}
pFrm
=
pFrm
->
GetNext
();
}
...
...
@@ -1538,7 +1538,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage )
// GetLeaf is called
// SwSectionFrm *pSect = GetUpper()->FindSctFrm();
SwSectionFrm
*
pSect
=
FindSctFrm
();
sal_Bool
bWrongPage
=
sal_F
alse
;
bool
bWrongPage
=
f
alse
;
OSL_ENSURE
(
pSect
,
"GetNextSctLeaf: Missing SectionFrm"
);
// Shortcut for sections with Follows. That's ok,
...
...
@@ -1551,7 +1551,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage )
{
SwPageFrm
*
pPg
=
pSect
->
GetFollow
()
->
FindPageFrm
();
if
(
WrongPageDesc
(
pPg
)
)
bWrongPage
=
sal_T
rue
;
bWrongPage
=
t
rue
;
else
return
FIRSTLEAF
(
pSect
->
GetFollow
()
);
}
...
...
@@ -1579,7 +1579,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage )
SwPageFrm
*
pNxtPg
=
pUp
->
IsPageFrm
()
?
(
SwPageFrm
*
)
pUp
:
pUp
->
FindPageFrm
();
if
(
WrongPageDesc
(
pNxtPg
)
)
bWrongPage
=
sal_T
rue
;
bWrongPage
=
t
rue
;
else
return
FIRSTLEAF
(
pSect
->
GetFollow
()
);
}
...
...
@@ -1614,7 +1614,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage )
// created pages, the search is
// not started over at the beginning
while
(
sal_T
rue
)
while
(
t
rue
)
{
if
(
pLayLeaf
)
{
...
...
@@ -1644,7 +1644,7 @@ SwLayoutFrm *SwFrm::GetNextSctLeaf( MakePageType eMakePage )
if
(
bWrongPage
)
break
;
// there's a column between me and my right page
pLayLeaf
=
0
;
bWrongPage
=
sal_T
rue
;
bWrongPage
=
t
rue
;
pOldLayLeaf
=
0
;
continue
;
}
...
...
@@ -1761,7 +1761,7 @@ SwLayoutFrm *SwFrm::GetPrevSctLeaf( MakePageType )
pCol
=
GetUpper
()
->
GetUpper
();
else
pCol
=
NULL
;
sal_Bool
bJump
=
sal_F
alse
;
bool
bJump
=
f
alse
;
if
(
pCol
)
{
if
(
pCol
->
GetPrev
()
)
...
...
@@ -1777,7 +1777,7 @@ SwLayoutFrm *SwFrm::GetPrevSctLeaf( MakePageType )
SwFlowFrm
::
SetMoveBwdJump
(
sal_True
);
return
(
SwLayoutFrm
*
)
pCol
->
Lower
();
// The columnm body
}
bJump
=
sal_T
rue
;
bJump
=
t
rue
;
}
while
(
pCol
->
GetPrev
()
);
// We get here when all columns are empty, pCol is now the
...
...
@@ -1987,7 +1987,7 @@ SwTwips SwSectionFrm::_Grow( SwTwips nDist, sal_Bool bTst )
if
(
nDist
<=
0L
)
return
0L
;
sal_B
ool
bInCalcCntnt
=
GetUpper
()
&&
IsInFly
()
&&
FindFlyFrm
()
->
IsLocked
();
b
ool
bInCalcCntnt
=
GetUpper
()
&&
IsInFly
()
&&
FindFlyFrm
()
->
IsLocked
();
// OD 2004-03-15 #116561# - allow grow in online layout
bool
bGrow
=
!
Lower
()
||
!
Lower
()
->
IsColumnFrm
()
||
!
Lower
()
->
GetNext
()
||
GetSection
()
->
GetFmt
()
->
GetBalancedColumns
().
GetValue
();
...
...
@@ -2219,15 +2219,15 @@ sal_Bool SwSectionFrm::MoveAllowed( const SwFrm* pFrm) const
// The first paragraph in the first footnote in the first column
// in the sectionfrm at the top of the page is not moveable,
// if the columnbody is empty.
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
if
(
pLay
->
GetIndPrev
()
||
pFrm
->
GetIndPrev
()
||
pFrm
->
FindFtnFrm
()
->
GetPrev
()
)
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
else
{
SwLayoutFrm
*
pBody
=
((
SwColumnFrm
*
)
pLay
)
->
FindBodyCont
();
if
(
pBody
&&
pBody
->
Lower
()
)
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
}
if
(
bRet
&&
(
IsFtnAtEnd
()
||
!
Growable
()
)
)
return
sal_True
;
...
...
@@ -2388,7 +2388,7 @@ void SwSectionFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew )
SfxItemIter
aOIter
(
*
((
SwAttrSetChg
*
)
pOld
)
->
GetChgSet
()
);
SwAttrSetChg
aOldSet
(
*
(
SwAttrSetChg
*
)
pOld
);
SwAttrSetChg
aNewSet
(
*
(
SwAttrSetChg
*
)
pNew
);
while
(
sal_T
rue
)
while
(
t
rue
)
{
_UpdateAttr
(
(
SfxPoolItem
*
)
aOIter
.
GetCurItem
(),
(
SfxPoolItem
*
)
aNIter
.
GetCurItem
(),
nInvFlags
,
...
...
@@ -2429,7 +2429,7 @@ void SwSectionFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew
sal_uInt8
&
rInvFlags
,
SwAttrSetChg
*
pOldSet
,
SwAttrSetChg
*
pNewSet
)
{
sal_Bool
bClear
=
sal_T
rue
;
bool
bClear
=
t
rue
;
const
sal_uInt16
nWhich
=
pOld
?
pOld
->
Which
()
:
pNew
?
pNew
->
Which
()
:
0
;
switch
(
nWhich
)
{
// Suppress multi columns in foot notes
...
...
@@ -2464,7 +2464,7 @@ void SwSectionFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew
rInvFlags
|=
0x10
;
}
rInvFlags
|=
0x01
;
bClear
=
sal_F
alse
;
bClear
=
f
alse
;
}
break
;
...
...
@@ -2522,7 +2522,7 @@ void SwSectionFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew
break
;
default
:
bClear
=
sal_F
alse
;
bClear
=
f
alse
;
}
if
(
bClear
)
{
...
...
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