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
1c70ea4b
Kaydet (Commit)
1c70ea4b
authored
Şub 07, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: Ia3b89bc6c51874e66e5923b5f2a0352967b6ec41
üst
cb0d8ba5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
23 deletions
+22
-23
pordrop.hxx
sw/source/core/text/pordrop.hxx
+1
-1
porexp.cxx
sw/source/core/text/porexp.cxx
+4
-4
porexp.hxx
sw/source/core/text/porexp.hxx
+4
-4
txtdrop.cxx
sw/source/core/text/txtdrop.cxx
+13
-14
No files found.
sw/source/core/text/pordrop.hxx
Dosyayı görüntüle @
1c70ea4b
...
...
@@ -79,7 +79,7 @@ class SwDropPortion : public SwTxtPortion
short
nX
;
// X PaintOffset
short
nY
;
// Y Offset
sal_B
ool
FormatTxt
(
SwTxtFormatInfo
&
rInf
);
b
ool
FormatTxt
(
SwTxtFormatInfo
&
rInf
);
void
PaintTxt
(
const
SwTxtPaintInfo
&
rInf
)
const
;
inline
void
Fix
(
const
KSHORT
nNew
)
{
nFix
=
nNew
;
}
...
...
sw/source/core/text/porexp.cxx
Dosyayı görüntüle @
1c70ea4b
...
...
@@ -74,7 +74,7 @@ bool SwExpandPortion::Format( SwTxtFormatInfo &rInf )
// So komisch es aussieht, die Abfrage auf GetLen() muss wegen der
// ExpandPortions _hinter_ aDiffTxt (vgl. SoftHyphs)
//
sal_F
alse returnen wegen SetFull ...
//
f
alse returnen wegen SetFull ...
if
(
!
nFullLen
)
{
// nicht Init(), weil wir Hoehe und Ascent brauchen
...
...
@@ -137,7 +137,7 @@ SwLinePortion *SwBlankPortion::Compress() { return this; }
// Komplikationen bei Flys...
MSHORT
SwBlankPortion
::
MayUnderFlow
(
const
SwTxtFormatInfo
&
rInf
,
sal_Int32
nIdx
,
sal_B
ool
bUnderFlow
)
const
sal_Int32
nIdx
,
b
ool
bUnderFlow
)
const
{
if
(
rInf
.
StopUnderFlow
()
)
return
0
;
...
...
@@ -189,7 +189,7 @@ MSHORT SwBlankPortion::MayUnderFlow( const SwTxtFormatInfo &rInf,
void
SwBlankPortion
::
FormatEOL
(
SwTxtFormatInfo
&
rInf
)
{
MSHORT
nMay
=
MayUnderFlow
(
rInf
,
rInf
.
GetIdx
()
-
nLineLength
,
sal_T
rue
);
MSHORT
nMay
=
MayUnderFlow
(
rInf
,
rInf
.
GetIdx
()
-
nLineLength
,
t
rue
);
if
(
nMay
)
{
if
(
nMay
>
1
)
...
...
@@ -259,7 +259,7 @@ void SwBlankPortion::HandlePortion( SwPortionHandler& rPH ) const
* class SwPostItsPortion
*************************************************************************/
SwPostItsPortion
::
SwPostItsPortion
(
sal_B
ool
bScrpt
)
SwPostItsPortion
::
SwPostItsPortion
(
b
ool
bScrpt
)
:
bScript
(
bScrpt
)
{
nLineLength
=
1
;
...
...
sw/source/core/text/porexp.hxx
Dosyayı görüntüle @
1c70ea4b
...
...
@@ -65,7 +65,7 @@ public:
virtual
bool
Format
(
SwTxtFormatInfo
&
rInf
);
virtual
void
Paint
(
const
SwTxtPaintInfo
&
rInf
)
const
;
MSHORT
MayUnderFlow
(
const
SwTxtFormatInfo
&
rInf
,
sal_Int32
nIdx
,
sal_B
ool
bUnderFlow
)
const
;
b
ool
bUnderFlow
)
const
;
// Accessibility: pass information about this portion to the PortionHandler
virtual
void
HandlePortion
(
SwPortionHandler
&
rPH
)
const
;
...
...
@@ -79,14 +79,14 @@ public:
class
SwPostItsPortion
:
public
SwExpandPortion
{
sal_B
ool
bScript
;
b
ool
bScript
;
public
:
SwPostItsPortion
(
sal_B
ool
bScrpt
);
SwPostItsPortion
(
b
ool
bScrpt
);
virtual
void
Paint
(
const
SwTxtPaintInfo
&
rInf
)
const
;
virtual
bool
Format
(
SwTxtFormatInfo
&
rInf
);
virtual
KSHORT
GetViewWidth
(
const
SwTxtSizeInfo
&
rInf
)
const
;
virtual
bool
GetExpTxt
(
const
SwTxtSizeInfo
&
rInf
,
OUString
&
rTxt
)
const
;
sal_B
ool
IsScript
()
const
{
return
bScript
;
}
b
ool
IsScript
()
const
{
return
bScript
;
}
OUTPUT_OPERATOR
};
...
...
sw/source/core/text/txtdrop.cxx
Dosyayı görüntüle @
1c70ea4b
...
...
@@ -49,7 +49,7 @@ using namespace ::com::sun::star;
* the position is calculated from the values in rInf
*************************************************************************/
static
sal_B
ool
lcl_IsDropFlyInter
(
const
SwTxtFormatInfo
&
rInf
,
static
b
ool
lcl_IsDropFlyInter
(
const
SwTxtFormatInfo
&
rInf
,
sal_uInt16
nWidth
,
sal_uInt16
nHeight
)
{
const
SwTxtFly
*
pTxtFly
=
rInf
.
GetTxtFly
();
...
...
@@ -63,7 +63,7 @@ static sal_Bool lcl_IsDropFlyInter( const SwTxtFormatInfo &rInf,
return
aRect
.
HasArea
();
}
return
sal_F
alse
;
return
f
alse
;
}
/*************************************************************************
...
...
@@ -168,7 +168,7 @@ MSHORT SwTxtNode::GetDropLen( MSHORT nWishLen ) const
Boundary
aBound
=
g_pBreakIt
->
GetBreakIter
()
->
getWordBoundary
(
GetTxt
(),
0
,
g_pBreakIt
->
GetLocale
(
eLanguage
),
WordType
::
DICTIONARY_WORD
,
sal_T
rue
);
g_pBreakIt
->
GetLocale
(
eLanguage
),
WordType
::
DICTIONARY_WORD
,
t
rue
);
nEnd
=
aBound
.
endPos
;
}
...
...
@@ -401,20 +401,19 @@ void SwDropPortion::Paint( const SwTxtPaintInfo &rInf ) const
*************************************************************************/
sal_B
ool
SwDropPortion
::
FormatTxt
(
SwTxtFormatInfo
&
rInf
)
b
ool
SwDropPortion
::
FormatTxt
(
SwTxtFormatInfo
&
rInf
)
{
const
sal_Int32
nOldLen
=
GetLen
();
const
sal_Int32
nOldInfLen
=
rInf
.
GetLen
();
const
sal_Bool
bFull
=
SwTxtPortion
::
Format
(
rInf
);
if
(
bFull
)
{
// sieht zwar Scheisse aus, aber was soll man schon machen?
rInf
.
SetUnderFlow
(
0
);
Truncate
();
SetLen
(
nOldLen
);
rInf
.
SetLen
(
nOldInfLen
);
}
return
bFull
;
if
(
!
SwTxtPortion
::
Format
(
rInf
))
return
false
;
// sieht zwar Scheisse aus, aber was soll man schon machen?
rInf
.
SetUnderFlow
(
0
);
Truncate
();
SetLen
(
nOldLen
);
rInf
.
SetLen
(
nOldInfLen
);
return
true
;
}
/*************************************************************************
...
...
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