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
cf3b6d9a
Kaydet (Commit)
cf3b6d9a
authored
Şub 02, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: Ie53b7f225b6845748d231ad0a03e9f5b080e9066
üst
21b745fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
itrpaint.cxx
sw/source/core/text/itrpaint.cxx
+13
-13
itrpaint.hxx
sw/source/core/text/itrpaint.hxx
+5
-5
No files found.
sw/source/core/text/itrpaint.cxx
Dosyayı görüntüle @
cf3b6d9a
...
...
@@ -92,7 +92,7 @@ void SwTxtPainter::CtorInitTxtPainter( SwTxtFrm *pNewFrm, SwTxtPaintInfo *pNewIn
pMyFnt
->
SetAlign
(
ALIGN_BASELINE
);
}
#endif
bPaintDrop
=
sal_F
alse
;
bPaintDrop
=
f
alse
;
}
...
...
@@ -153,7 +153,7 @@ SwLinePortion *SwTxtPainter::CalcPaintOfst( const SwRect &rPaint )
* als Default eingestellt.
*************************************************************************/
void
SwTxtPainter
::
DrawTextLine
(
const
SwRect
&
rPaint
,
SwSaveClip
&
rClip
,
const
sal_B
ool
bUnderSz
)
const
b
ool
bUnderSz
)
{
#if OSL_DEBUG_LEVEL > 1
// sal_uInt16 nFntHeight = GetInfo().GetFont()->GetHeight( GetInfo().GetVsh(), GetInfo().GetOut() );
...
...
@@ -173,7 +173,7 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip,
const
bool
bDrawInWindow
=
GetInfo
().
OnWin
();
// 6882: Leerzeilen duerfen nicht wegoptimiert werden bei Paragraphzeichen.
const
sal_B
ool
bEndPor
=
GetInfo
().
GetOpt
().
IsParagraph
()
&&
GetInfo
().
GetTxt
().
isEmpty
();
const
b
ool
bEndPor
=
GetInfo
().
GetOpt
().
IsParagraph
()
&&
GetInfo
().
GetTxt
().
isEmpty
();
SwLinePortion
*
pPor
=
bEndPor
?
pCurr
->
GetFirstPortion
()
:
CalcPaintOfst
(
rPaint
);
...
...
@@ -284,7 +284,7 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip,
if
(
bEndPor
)
SeekStartAndChg
(
GetInfo
()
);
sal_B
ool
bRest
=
pCurr
->
IsRest
();
const
b
ool
bRest
=
pCurr
->
IsRest
();
bool
bFirst
=
true
;
SwArrowPortion
*
pArrow
=
NULL
;
...
...
@@ -293,7 +293,7 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip,
while
(
pPor
)
{
sal_Bool
bSeeked
=
sal_T
rue
;
bool
bSeeked
=
t
rue
;
GetInfo
().
SetLen
(
pPor
->
GetLen
()
);
const
SwTwips
nOldY
=
GetInfo
().
Y
();
...
...
@@ -319,7 +319,7 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip,
else
if
(
pPor
->
IsQuoVadisPortion
()
)
{
sal_Int32
nOffset
=
GetInfo
().
GetIdx
();
SeekStartAndChg
(
GetInfo
(),
sal_T
rue
);
SeekStartAndChg
(
GetInfo
(),
t
rue
);
if
(
GetRedln
()
&&
pCurr
->
HasRedline
()
)
GetRedln
()
->
Seek
(
*
pFnt
,
nOffset
,
0
);
}
...
...
@@ -335,9 +335,9 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip,
SeekAndChgBefore
(
GetInfo
()
);
}
else
bSeeked
=
sal_F
alse
;
bSeeked
=
f
alse
;
// bRest =
sal_F
alse;
// bRest =
f
alse;
// Wenn das Ende der Portion hinausragt, wird geclippt.
// Es wird ein Sicherheitsabstand von Height-Halbe aufaddiert,
...
...
@@ -447,7 +447,7 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip,
}
if
(
GetInfo
().
GetVsh
()
&&
!
GetInfo
().
GetVsh
()
->
IsPreview
()
)
{
const
sal_B
ool
bNextUndersized
=
const
b
ool
bNextUndersized
=
(
GetTxtFrm
()
->
GetNext
()
&&
0
==
GetTxtFrm
()
->
GetNext
()
->
Prt
().
Height
()
&&
GetTxtFrm
()
->
GetNext
()
->
IsTxtFrm
()
&&
...
...
@@ -519,20 +519,20 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor,
SwTxtAttr
*
pTxtAttr
;
if
(
HasHints
()
)
{
sal_Bool
bUnder
=
sal_F
alse
;
bool
bUnder
=
f
alse
;
MSHORT
nTmp
=
0
;
while
(
nTmp
<
pHints
->
GetStartCount
()
)
{
pTxtAttr
=
pHints
->
GetStart
(
nTmp
++
);
sal_Bool
bUnderSelect
=
sal_F
alse
;
bool
bUnderSelect
=
f
alse
;
const
SvxUnderlineItem
*
pItem
=
static_cast
<
const
SvxUnderlineItem
*>
(
CharFmt
::
GetItem
(
*
pTxtAttr
,
RES_CHRATR_UNDERLINE
));
if
(
pItem
)
{
bUnder
=
sal_T
rue
;
bUnder
=
t
rue
;
bUnderSelect
=
pFnt
->
GetUnderline
()
==
pItem
->
GetLineStyle
();
}
...
...
@@ -546,7 +546,7 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor,
if
(
bUnder
)
aUnderMulti
.
Select
(
aTmp
,
bUnderSelect
);
}
bUnder
=
sal_F
alse
;
bUnder
=
f
alse
;
}
}
}
...
...
sw/source/core/text/itrpaint.hxx
Dosyayı görüntüle @
cf3b6d9a
...
...
@@ -29,7 +29,7 @@ class SwMultiPortion;
class
SwTxtPainter
:
public
SwTxtCursor
{
sal_B
ool
bPaintDrop
;
b
ool
bPaintDrop
;
SwLinePortion
*
CalcPaintOfst
(
const
SwRect
&
rPaint
);
void
CheckSpecialUnderline
(
const
SwLinePortion
*
pPor
,
...
...
@@ -38,7 +38,7 @@ protected:
void
CtorInitTxtPainter
(
SwTxtFrm
*
pFrm
,
SwTxtPaintInfo
*
pInf
);
inline
SwTxtPainter
(
SwTxtNode
*
pTxtNode
)
:
SwTxtCursor
(
pTxtNode
)
,
bPaintDrop
(
sal_F
alse
)
,
bPaintDrop
(
f
alse
)
{
}
public
:
...
...
@@ -48,14 +48,14 @@ public:
CtorInitTxtPainter
(
pTxtFrm
,
pTxtPaintInf
);
}
void
DrawTextLine
(
const
SwRect
&
rPaint
,
SwSaveClip
&
rClip
,
const
sal_B
ool
bUnderSz
);
const
b
ool
bUnderSz
);
void
PaintDropPortion
();
// if PaintMultiPortion is called recursively, we have to pass the
// surrounding SwBidiPortion
void
PaintMultiPortion
(
const
SwRect
&
rPaint
,
SwMultiPortion
&
rMulti
,
const
SwMultiPortion
*
pEnvPor
=
0
);
inline
void
SetPaintDrop
(
const
sal_B
ool
bNew
)
{
bPaintDrop
=
bNew
;
}
inline
sal_B
ool
IsPaintDrop
()
const
{
return
bPaintDrop
;
}
inline
void
SetPaintDrop
(
const
b
ool
bNew
)
{
bPaintDrop
=
bNew
;
}
inline
b
ool
IsPaintDrop
()
const
{
return
bPaintDrop
;
}
inline
SwTxtPaintInfo
&
GetInfo
()
{
return
(
SwTxtPaintInfo
&
)
SwTxtIter
::
GetInfo
();
}
inline
const
SwTxtPaintInfo
&
GetInfo
()
const
...
...
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