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
202d721e
Kaydet (Commit)
202d721e
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: I9eed0bd99beb80240f9925a7ce815b54bdaa62c8
üst
9e88fca7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
29 deletions
+29
-29
itrform2.cxx
sw/source/core/text/itrform2.cxx
+0
-0
itrform2.hxx
sw/source/core/text/itrform2.hxx
+25
-25
itrpaint.cxx
sw/source/core/text/itrpaint.cxx
+1
-1
itrpaint.hxx
sw/source/core/text/itrpaint.hxx
+1
-1
txthyph.cxx
sw/source/core/text/txthyph.cxx
+2
-2
No files found.
sw/source/core/text/itrform2.cxx
Dosyayı görüntüle @
202d721e
This diff is collapsed.
Click to expand it.
sw/source/core/text/itrform2.hxx
Dosyayı görüntüle @
202d721e
...
...
@@ -40,11 +40,11 @@ class SwTxtFormatter : public SwTxtPainter
sal_uInt8
nCntMidHyph
;
// Counts consecutive hyphens before flies
sal_Int32
nLeftScanIdx
;
// for increasing performance during
sal_Int32
nRightScanIdx
;
// scanning for portion ends
sal_B
ool
bOnceMore
:
1
;
// Another round?
sal_B
ool
bFlyInCntBase
:
1
;
// Base reference that sets a character-bound frame
sal_B
ool
bChanges
:
1
;
// Flag for calculating the repaint rectangle
sal_B
ool
bTruncLines
:
1
;
// Flag for extending the repaint rect, if needed
sal_B
ool
bUnclipped
:
1
;
// Flag whether repaint is larger than the fixed line height
b
ool
bOnceMore
:
1
;
// Another round?
b
ool
bFlyInCntBase
:
1
;
// Base reference that sets a character-bound frame
b
ool
bChanges
:
1
;
// Flag for calculating the repaint rectangle
b
ool
bTruncLines
:
1
;
// Flag for extending the repaint rect, if needed
b
ool
bUnclipped
:
1
;
// Flag whether repaint is larger than the fixed line height
sal_uInt16
m_nHintEndIndex
;
// HACK for TryNewNoLengthPortion
SwLinePortion
*
m_pFirstOfBorderMerge
;
// The first text portion of a joined border (during portion bulding)
...
...
@@ -89,7 +89,7 @@ class SwTxtFormatter : public SwTxtPainter
void
CalcAdjustLine
(
SwLineLayout
*
pCurr
);
// consideres line spacing attributes
void
CalcRealHeight
(
sal_Bool
bNewLine
=
sal_F
alse
);
void
CalcRealHeight
(
bool
bNewLine
=
f
alse
);
// Transfers the data to rInf
void
FeedInf
(
SwTxtFormatInfo
&
rInf
)
const
;
...
...
@@ -101,7 +101,7 @@ class SwTxtFormatter : public SwTxtPainter
void
CalcAscent
(
SwTxtFormatInfo
&
rInf
,
SwLinePortion
*
pPor
);
// determines, if a optimized repaint rectange is allowed
sal_B
ool
AllowRepaintOpt
()
const
;
b
ool
AllowRepaintOpt
()
const
;
// Is called by by FormatLine
void
FormatReset
(
SwTxtFormatInfo
&
rInf
);
...
...
@@ -114,7 +114,7 @@ class SwTxtFormatter : public SwTxtPainter
Mainly to correct the X position.
*/
void
UpdatePos
(
SwLineLayout
*
pCurr
,
Point
aStart
,
sal_Int32
nStartIdx
,
sal_Bool
bAlways
=
sal_F
alse
)
const
;
bool
bAlways
=
f
alse
)
const
;
/**
Set all anchored as character objects to the passed BaseLine
...
...
@@ -129,7 +129,7 @@ class SwTxtFormatter : public SwTxtPainter
We check this and return true, meaning that the line has to be
formatted again.
*/
sal_B
ool
ChkFlyUnderflow
(
SwTxtFormatInfo
&
rInf
)
const
;
b
ool
ChkFlyUnderflow
(
SwTxtFormatInfo
&
rInf
)
const
;
// Insert portion
void
InsertPortion
(
SwTxtFormatInfo
&
rInf
,
SwLinePortion
*
pPor
)
const
;
...
...
@@ -150,12 +150,12 @@ public:
void
CalcUnclipped
(
SwTwips
&
rTop
,
SwTwips
&
rBottom
);
// Amongst others for DropCaps
sal_B
ool
CalcOnceMore
();
b
ool
CalcOnceMore
();
void
CtorInitTxtFormatter
(
SwTxtFrm
*
pFrm
,
SwTxtFormatInfo
*
pInf
);
SwTxtFormatter
(
SwTxtFrm
*
pTxtFrm
,
SwTxtFormatInfo
*
pTxtFmtInf
)
:
SwTxtPainter
(
pTxtFrm
!=
NULL
?
pTxtFrm
->
GetTxtNode
()
:
NULL
)
,
bUnclipped
(
sal_F
alse
)
,
bUnclipped
(
f
alse
)
{
CtorInitTxtFormatter
(
pTxtFrm
,
pTxtFmtInf
);
}
...
...
@@ -166,7 +166,7 @@ public:
void
RecalcRealHeight
();
// We format a line for interactive hyphenation
sal_B
ool
Hyphenate
(
SwInterHyphInfo
&
rInf
);
b
ool
Hyphenate
(
SwInterHyphInfo
&
rInf
);
// A special method for QuoVadis texts:
// nErgo is the page number of the ErgoSum Ftn
...
...
@@ -174,13 +174,13 @@ public:
sal_Int32
FormatQuoVadis
(
const
sal_Int32
nStart
);
// The emergency break: Cancel formatting, discard line
sal_B
ool
IsStop
()
const
{
return
GetInfo
().
IsStop
();
}
b
ool
IsStop
()
const
{
return
GetInfo
().
IsStop
();
}
// The counterpart: Continue formatting at all costs
sal_B
ool
IsNewLine
()
const
{
return
GetInfo
().
IsNewLine
();
}
b
ool
IsNewLine
()
const
{
return
GetInfo
().
IsNewLine
();
}
// FormatQuick(); Refresh formatting information
sal_B
ool
IsQuick
()
const
{
return
GetInfo
().
IsQuick
();
}
b
ool
IsQuick
()
const
{
return
GetInfo
().
IsQuick
();
}
// Create a SwLineLayout if needed, which avoids Ftn/Fly to oscillate
void
MakeDummyLine
();
...
...
@@ -201,20 +201,20 @@ public:
SwMultiPortion
*
GetMulti
()
const
{
return
pMulti
;
}
sal_B
ool
IsOnceMore
()
const
{
return
bOnceMore
;
}
void
SetOnceMore
(
sal_B
ool
bNew
)
{
bOnceMore
=
bNew
;
}
b
ool
IsOnceMore
()
const
{
return
bOnceMore
;
}
void
SetOnceMore
(
b
ool
bNew
)
{
bOnceMore
=
bNew
;
}
sal_B
ool
HasChanges
()
const
{
return
bChanges
;
}
void
SetChanges
()
{
bChanges
=
sal_T
rue
;
}
b
ool
HasChanges
()
const
{
return
bChanges
;
}
void
SetChanges
()
{
bChanges
=
t
rue
;
}
sal_B
ool
HasTruncLines
()
const
{
return
bTruncLines
;
}
void
SetTruncLines
(
sal_B
ool
bNew
)
{
bTruncLines
=
bNew
;
}
b
ool
HasTruncLines
()
const
{
return
bTruncLines
;
}
void
SetTruncLines
(
b
ool
bNew
)
{
bTruncLines
=
bNew
;
}
sal_B
ool
IsUnclipped
()
const
{
return
bUnclipped
;
}
void
SetUnclipped
(
sal_B
ool
bNew
)
{
bUnclipped
=
bNew
;
}
b
ool
IsUnclipped
()
const
{
return
bUnclipped
;
}
void
SetUnclipped
(
b
ool
bNew
)
{
bUnclipped
=
bNew
;
}
sal_B
ool
IsFlyInCntBase
()
const
{
return
bFlyInCntBase
;
}
void
SetFlyInCntBase
(
sal_Bool
bNew
=
sal_True
)
{
bFlyInCntBase
=
bNew
;
}
b
ool
IsFlyInCntBase
()
const
{
return
bFlyInCntBase
;
}
void
SetFlyInCntBase
(
bool
bNew
=
true
)
{
bFlyInCntBase
=
bNew
;
}
SwTxtFormatInfo
&
GetInfo
()
{
return
(
SwTxtFormatInfo
&
)
SwTxtIter
::
GetInfo
();
}
...
...
sw/source/core/text/itrpaint.cxx
Dosyayı görüntüle @
202d721e
...
...
@@ -64,7 +64,7 @@
* Adding some more conditions here means you also have to change them
* in SwTxtPainter::CheckSpecialUnderline
*************************************************************************/
sal_B
ool
IsUnderlineBreak
(
const
SwLinePortion
&
rPor
,
const
SwFont
&
rFnt
)
b
ool
IsUnderlineBreak
(
const
SwLinePortion
&
rPor
,
const
SwFont
&
rFnt
)
{
return
UNDERLINE_NONE
==
rFnt
.
GetUnderline
()
||
rPor
.
IsFlyPortion
()
||
rPor
.
IsFlyCntPortion
()
||
...
...
sw/source/core/text/itrpaint.hxx
Dosyayı görüntüle @
202d721e
...
...
@@ -62,7 +62,7 @@ public:
{
return
(
const
SwTxtPaintInfo
&
)
SwTxtIter
::
GetInfo
();
}
};
bool
IsUnderlineBreak
(
const
SwLinePortion
&
rPor
,
const
SwFont
&
rFnt
);
#endif
...
...
sw/source/core/text/txthyph.cxx
Dosyayı görüntüle @
202d721e
...
...
@@ -130,10 +130,10 @@ void SetParaPortion( SwTxtInfo *pInf, SwParaPortion *pRoot )
pInf
->
pPara
=
pRoot
;
}
sal_B
ool
SwTxtFormatter
::
Hyphenate
(
SwInterHyphInfo
&
rHyphInf
)
b
ool
SwTxtFormatter
::
Hyphenate
(
SwInterHyphInfo
&
rHyphInf
)
{
SwTxtFormatInfo
&
rInf
=
GetInfo
();
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
// In der letzten Zeile gibt es nie etwas zu trennen.
// Es sei denn, es befindet sich eine FlyPortion darin,
...
...
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