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
0564c1c2
Kaydet (Commit)
0564c1c2
authored
Şub 27, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1187691 don't smoke crack and code
Change-Id: Id38ce22671ecf24fde1b828a5da94b7b19c27e60
üst
c2a5369e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
inftxt.cxx
sw/source/core/text/inftxt.cxx
+8
-11
inftxt.hxx
sw/source/core/text/inftxt.hxx
+1
-1
porrst.cxx
sw/source/core/text/porrst.cxx
+1
-1
No files found.
sw/source/core/text/inftxt.cxx
Dosyayı görüntüle @
0564c1c2
...
@@ -794,13 +794,13 @@ void SwTxtPaintInfo::CalcRect( const SwLinePortion& rPor,
...
@@ -794,13 +794,13 @@ void SwTxtPaintInfo::CalcRect( const SwLinePortion& rPor,
* Draws a special portion, e.g., line break portion, tab portion.
* Draws a special portion, e.g., line break portion, tab portion.
* rPor - The portion
* rPor - The portion
* rRect - The rectangle surrounding the character
* rRect - The rectangle surrounding the character
*
p
Col - Specify a color for the character
*
r
Col - Specify a color for the character
* bCenter - Draw the character centered, otherwise left aligned
* bCenter - Draw the character centered, otherwise left aligned
* bRotate - Rotate the character if character rotation is set
* bRotate - Rotate the character if character rotation is set
*************************************************************************/
*************************************************************************/
static
void
lcl_DrawSpecial
(
const
SwTxtPaintInfo
&
rInf
,
const
SwLinePortion
&
rPor
,
static
void
lcl_DrawSpecial
(
const
SwTxtPaintInfo
&
rInf
,
const
SwLinePortion
&
rPor
,
SwRect
&
rRect
,
const
Color
*
p
Col
,
sal_Unicode
cChar
,
SwRect
&
rRect
,
const
Color
&
r
Col
,
sal_Unicode
cChar
,
sal_uInt8
nOptions
)
sal_uInt8
nOptions
)
{
{
bool
bCenter
=
0
!=
(
nOptions
&
DRAW_SPECIAL_OPTIONS_CENTER
);
bool
bCenter
=
0
!=
(
nOptions
&
DRAW_SPECIAL_OPTIONS_CENTER
);
...
@@ -831,10 +831,7 @@ static void lcl_DrawSpecial( const SwTxtPaintInfo& rInf, const SwLinePortion& rP
...
@@ -831,10 +831,7 @@ static void lcl_DrawSpecial( const SwTxtPaintInfo& rInf, const SwLinePortion& rP
else
else
m_pFnt
->
SetVertical
(
pOldFnt
->
GetOrientation
()
);
m_pFnt
->
SetVertical
(
pOldFnt
->
GetOrientation
()
);
if
(
pCol
)
m_pFnt
->
SetColor
(
rCol
);
m_pFnt
->
SetColor
(
*
pCol
);
else
m_pFnt
->
SetColor
(
pOldFnt
->
GetColor
()
);
Size
aFontSize
(
0
,
SPECIAL_FONT_HEIGHT
);
Size
aFontSize
(
0
,
SPECIAL_FONT_HEIGHT
);
m_pFnt
->
SetSize
(
aFontSize
,
m_pFnt
->
GetActual
()
);
m_pFnt
->
SetSize
(
aFontSize
,
m_pFnt
->
GetActual
()
);
...
@@ -934,7 +931,7 @@ void SwTxtPaintInfo::DrawRect( const SwRect &rRect, bool bNoGraphic,
...
@@ -934,7 +931,7 @@ void SwTxtPaintInfo::DrawRect( const SwRect &rRect, bool bNoGraphic,
}
}
}
}
void
SwTxtPaintInfo
::
DrawSpecial
(
const
SwLinePortion
&
rPor
,
sal_Unicode
cChar
,
Color
*
pColor
)
const
void
SwTxtPaintInfo
::
DrawSpecial
(
const
SwLinePortion
&
rPor
,
sal_Unicode
cChar
,
const
Color
&
rColor
)
const
{
{
if
(
OnWin
()
)
if
(
OnWin
()
)
{
{
...
@@ -950,7 +947,7 @@ void SwTxtPaintInfo::DrawSpecial( const SwLinePortion &rPor, sal_Unicode cChar,
...
@@ -950,7 +947,7 @@ void SwTxtPaintInfo::DrawSpecial( const SwLinePortion &rPor, sal_Unicode cChar,
if
(
aRect
.
HasArea
()
)
if
(
aRect
.
HasArea
()
)
{
{
const
sal_uInt8
nOptions
=
0
;
const
sal_uInt8
nOptions
=
0
;
lcl_DrawSpecial
(
*
this
,
rPor
,
aRect
,
p
Color
,
cChar
,
nOptions
);
lcl_DrawSpecial
(
*
this
,
rPor
,
aRect
,
r
Color
,
cChar
,
nOptions
);
}
}
((
SwLinePortion
&
)
rPor
).
Width
(
nOldWidth
);
((
SwLinePortion
&
)
rPor
).
Width
(
nOldWidth
);
...
@@ -970,7 +967,7 @@ void SwTxtPaintInfo::DrawTab( const SwLinePortion &rPor ) const
...
@@ -970,7 +967,7 @@ void SwTxtPaintInfo::DrawTab( const SwLinePortion &rPor ) const
const
sal_Unicode
cChar
=
GetTxtFrm
()
->
IsRightToLeft
()
?
CHAR_TAB_RTL
:
CHAR_TAB
;
const
sal_Unicode
cChar
=
GetTxtFrm
()
->
IsRightToLeft
()
?
CHAR_TAB_RTL
:
CHAR_TAB
;
const
sal_uInt8
nOptions
=
DRAW_SPECIAL_OPTIONS_CENTER
|
DRAW_SPECIAL_OPTIONS_ROTATE
;
const
sal_uInt8
nOptions
=
DRAW_SPECIAL_OPTIONS_CENTER
|
DRAW_SPECIAL_OPTIONS_ROTATE
;
lcl_DrawSpecial
(
*
this
,
rPor
,
aRect
,
new
Color
(
0x6a
,
0xbe
,
0xd3
),
cChar
,
nOptions
);
lcl_DrawSpecial
(
*
this
,
rPor
,
aRect
,
Color
(
0x6a
,
0xbe
,
0xd3
),
cChar
,
nOptions
);
}
}
}
}
...
@@ -990,7 +987,7 @@ void SwTxtPaintInfo::DrawLineBreak( const SwLinePortion &rPor ) const
...
@@ -990,7 +987,7 @@ void SwTxtPaintInfo::DrawLineBreak( const SwLinePortion &rPor ) const
CHAR_LINEBREAK_RTL
:
CHAR_LINEBREAK
;
CHAR_LINEBREAK_RTL
:
CHAR_LINEBREAK
;
const
sal_uInt8
nOptions
=
0
;
const
sal_uInt8
nOptions
=
0
;
lcl_DrawSpecial
(
*
this
,
rPor
,
aRect
,
new
Color
(
NON_PRINTING_CHARACTER_COLOR
),
cChar
,
nOptions
);
lcl_DrawSpecial
(
*
this
,
rPor
,
aRect
,
Color
(
NON_PRINTING_CHARACTER_COLOR
),
cChar
,
nOptions
);
}
}
((
SwLinePortion
&
)
rPor
).
Width
(
nOldWidth
);
((
SwLinePortion
&
)
rPor
).
Width
(
nOldWidth
);
...
@@ -1027,7 +1024,7 @@ void SwTxtPaintInfo::DrawRedArrow( const SwLinePortion &rPor ) const
...
@@ -1027,7 +1024,7 @@ void SwTxtPaintInfo::DrawRedArrow( const SwLinePortion &rPor ) const
if
(
aRect
.
HasArea
()
)
if
(
aRect
.
HasArea
()
)
{
{
const
sal_uInt8
nOptions
=
0
;
const
sal_uInt8
nOptions
=
0
;
lcl_DrawSpecial
(
*
this
,
rPor
,
aRect
,
&
aCol
,
cChar
,
nOptions
);
lcl_DrawSpecial
(
*
this
,
rPor
,
aRect
,
aCol
,
cChar
,
nOptions
);
}
}
}
}
...
...
sw/source/core/text/inftxt.hxx
Dosyayı görüntüle @
0564c1c2
...
@@ -472,7 +472,7 @@ public:
...
@@ -472,7 +472,7 @@ public:
void
DrawRect
(
const
SwRect
&
rRect
,
bool
bNoGraphic
=
false
,
void
DrawRect
(
const
SwRect
&
rRect
,
bool
bNoGraphic
=
false
,
bool
bRetouche
=
true
)
const
;
bool
bRetouche
=
true
)
const
;
void
DrawSpecial
(
const
SwLinePortion
&
rPor
,
sal_Unicode
cChar
,
Color
*
pColor
)
const
;
void
DrawSpecial
(
const
SwLinePortion
&
rPor
,
sal_Unicode
cChar
,
const
Color
&
rColor
)
const
;
void
DrawTab
(
const
SwLinePortion
&
rPor
)
const
;
void
DrawTab
(
const
SwLinePortion
&
rPor
)
const
;
void
DrawLineBreak
(
const
SwLinePortion
&
rPor
)
const
;
void
DrawLineBreak
(
const
SwLinePortion
&
rPor
)
const
;
void
DrawRedArrow
(
const
SwLinePortion
&
rPor
)
const
;
void
DrawRedArrow
(
const
SwLinePortion
&
rPor
)
const
;
...
...
sw/source/core/text/porrst.cxx
Dosyayı görüntüle @
0564c1c2
...
@@ -69,7 +69,7 @@ void SwTmpEndPortion::Paint( const SwTxtPaintInfo &rInf ) const
...
@@ -69,7 +69,7 @@ void SwTmpEndPortion::Paint( const SwTxtPaintInfo &rInf ) const
{
{
if
(
rInf
.
OnWin
()
&&
rInf
.
GetOpt
().
IsParagraph
()
)
if
(
rInf
.
OnWin
()
&&
rInf
.
GetOpt
().
IsParagraph
()
)
{
{
rInf
.
DrawSpecial
(
*
this
,
CH_PAR
,
new
Color
(
NON_PRINTING_CHARACTER_COLOR
)
);
rInf
.
DrawSpecial
(
*
this
,
CH_PAR
,
Color
(
NON_PRINTING_CHARACTER_COLOR
)
);
}
}
}
}
...
...
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