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
b2f4a1fe
Kaydet (Commit)
b2f4a1fe
authored
May 18, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw_redlinehide: trivial node conversions in frmpaint.cxx
Change-Id: I8ef3d0ca495d65d72506763fd10c137d53cfc47a
üst
d7309ae9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
frmpaint.cxx
sw/source/core/text/frmpaint.cxx
+12
-9
No files found.
sw/source/core/text/frmpaint.cxx
Dosyayı görüntüle @
b2f4a1fe
...
@@ -126,9 +126,9 @@ SwExtraPainter::SwExtraPainter( const SwTextFrame *pFrame, SwViewShell *pVwSh,
...
@@ -126,9 +126,9 @@ SwExtraPainter::SwExtraPainter( const SwTextFrame *pFrame, SwViewShell *pVwSh,
*/
*/
nDivider
=
!
rLineInf
.
GetDivider
().
isEmpty
()
?
rLineInf
.
GetDividerCountBy
()
:
0
;
nDivider
=
!
rLineInf
.
GetDivider
().
isEmpty
()
?
rLineInf
.
GetDividerCountBy
()
:
0
;
nX
=
pFrame
->
getFrameArea
().
Left
();
nX
=
pFrame
->
getFrameArea
().
Left
();
SwCharFormat
*
pFormat
=
rLineInf
.
GetCharFormat
(
const_cast
<
IDocumentStylePoolAccess
&>
(
pFrame
->
Get
Node
()
->
getIDocumentStylePoolAccess
())
);
SwCharFormat
*
pFormat
=
rLineInf
.
GetCharFormat
(
const_cast
<
IDocumentStylePoolAccess
&>
(
pFrame
->
Get
Doc
().
getIDocumentStylePoolAccess
())
);
OSL_ENSURE
(
pFormat
,
"PaintExtraData without CharFormat"
);
OSL_ENSURE
(
pFormat
,
"PaintExtraData without CharFormat"
);
pFnt
.
reset
(
new
SwFont
(
&
pFormat
->
GetAttrSet
(),
pFrame
->
GetTextNode
()
->
getIDocumentSettingAccess
()
)
);
pFnt
.
reset
(
new
SwFont
(
&
pFormat
->
GetAttrSet
(),
&
pFrame
->
GetDoc
().
getIDocumentSettingAccess
()
)
);
pFnt
->
Invalidate
();
pFnt
->
Invalidate
();
pFnt
->
ChgPhysFnt
(
pSh
,
*
pSh
->
GetOut
()
);
pFnt
->
ChgPhysFnt
(
pSh
,
*
pSh
->
GetOut
()
);
pFnt
->
SetVertical
(
0
,
pFrame
->
IsVertical
()
);
pFnt
->
SetVertical
(
0
,
pFrame
->
IsVertical
()
);
...
@@ -286,9 +286,9 @@ void SwTextFrame::PaintExtraData( const SwRect &rRect ) const
...
@@ -286,9 +286,9 @@ void SwTextFrame::PaintExtraData( const SwRect &rRect ) const
if
(
getFrameArea
().
Top
()
>
rRect
.
Bottom
()
||
getFrameArea
().
Bottom
()
<
rRect
.
Top
()
)
if
(
getFrameArea
().
Top
()
>
rRect
.
Bottom
()
||
getFrameArea
().
Bottom
()
<
rRect
.
Top
()
)
return
;
return
;
const
SwTextNode
&
rTextNode
=
*
GetTextNode
(
);
SwDoc
const
&
rDoc
(
GetDoc
()
);
const
IDocumentRedlineAccess
&
rIDRA
=
r
TextNode
.
getIDocumentRedlineAccess
();
const
IDocumentRedlineAccess
&
rIDRA
=
r
Doc
.
getIDocumentRedlineAccess
();
const
SwLineNumberInfo
&
rLineInf
=
r
TextNode
.
GetDoc
()
->
GetLineNumberInfo
();
const
SwLineNumberInfo
&
rLineInf
=
r
Doc
.
GetLineNumberInfo
();
const
SwFormatLineNumber
&
rLineNum
=
GetAttrSet
()
->
GetLineNumber
();
const
SwFormatLineNumber
&
rLineNum
=
GetAttrSet
()
->
GetLineNumber
();
bool
bLineNum
=
!
IsInTab
()
&&
rLineInf
.
IsPaintLineNumbers
()
&&
bool
bLineNum
=
!
IsInTab
()
&&
rLineInf
.
IsPaintLineNumbers
()
&&
(
!
IsInFly
()
||
rLineInf
.
IsCountInFlys
()
)
&&
rLineNum
.
IsCount
();
(
!
IsInFly
()
||
rLineInf
.
IsCountInFlys
()
)
&&
rLineNum
.
IsCount
();
...
@@ -387,8 +387,11 @@ void SwTextFrame::PaintExtraData( const SwRect &rRect ) const
...
@@ -387,8 +387,11 @@ void SwTextFrame::PaintExtraData( const SwRect &rRect ) const
}
}
else
else
{
{
if
(
SwRedlineTable
::
npos
==
rIDRA
.
GetRedlinePos
(
rTextNode
,
USHRT_MAX
)
)
if
(
!
GetMergedPara
()
&&
SwRedlineTable
::
npos
==
rIDRA
.
GetRedlinePos
(
*
GetTextNodeFirst
(),
USHRT_MAX
))
{
bRedLine
=
false
;
bRedLine
=
false
;
}
if
(
bLineNum
&&
rLineInf
.
IsCountBlankLines
()
&&
if
(
bLineNum
&&
rLineInf
.
IsCountBlankLines
()
&&
(
aExtra
.
HasNumber
()
||
aExtra
.
HasDivider
()
)
)
(
aExtra
.
HasNumber
()
||
aExtra
.
HasDivider
()
)
)
...
@@ -464,7 +467,7 @@ bool SwTextFrame::PaintEmpty( const SwRect &rRect, bool bCheck ) const
...
@@ -464,7 +467,7 @@ bool SwTextFrame::PaintEmpty( const SwRect &rRect, bool bCheck ) const
else
if
(
pSh
->
GetWin
()
)
else
if
(
pSh
->
GetWin
()
)
{
{
SwFont
*
pFnt
;
SwFont
*
pFnt
;
const
SwTextNode
&
rTextNode
=
*
GetTextNode
();
const
SwTextNode
&
rTextNode
=
*
GetTextNode
ForParaProps
();
if
(
rTextNode
.
HasSwAttrSet
()
)
if
(
rTextNode
.
HasSwAttrSet
()
)
{
{
const
SwAttrSet
*
pAttrSet
=
&
(
rTextNode
.
GetSwAttrSet
()
);
const
SwAttrSet
*
pAttrSet
=
&
(
rTextNode
.
GetSwAttrSet
()
);
...
@@ -509,7 +512,7 @@ bool SwTextFrame::PaintEmpty( const SwRect &rRect, bool bCheck ) const
...
@@ -509,7 +512,7 @@ bool SwTextFrame::PaintEmpty( const SwRect &rRect, bool bCheck ) const
Point
aPos
=
getFrameArea
().
Pos
()
+
getFramePrintArea
().
Pos
();
Point
aPos
=
getFrameArea
().
Pos
()
+
getFramePrintArea
().
Pos
();
const
SvxLRSpaceItem
&
rSpace
=
const
SvxLRSpaceItem
&
rSpace
=
GetTextNode
()
->
GetSwAttrSet
().
GetLRSpace
();
GetTextNode
ForParaProps
()
->
GetSwAttrSet
().
GetLRSpace
();
if
(
rSpace
.
GetTextFirstLineOfst
()
>
0
)
if
(
rSpace
.
GetTextFirstLineOfst
()
>
0
)
aPos
.
AdjustX
(
rSpace
.
GetTextFirstLineOfst
()
);
aPos
.
AdjustX
(
rSpace
.
GetTextFirstLineOfst
()
);
...
@@ -525,7 +528,7 @@ bool SwTextFrame::PaintEmpty( const SwRect &rRect, bool bCheck ) const
...
@@ -525,7 +528,7 @@ bool SwTextFrame::PaintEmpty( const SwRect &rRect, bool bCheck ) const
aPos
.
AdjustY
(
pFnt
->
GetAscent
(
pSh
,
*
pSh
->
GetOut
()
)
);
aPos
.
AdjustY
(
pFnt
->
GetAscent
(
pSh
,
*
pSh
->
GetOut
()
)
);
if
(
GetTextNode
()
->
GetSwAttrSet
().
GetParaGrid
().
GetValue
()
&&
if
(
GetTextNodeForParaProps
()
->
GetSwAttrSet
().
GetParaGrid
().
GetValue
()
&&
IsInDocBody
()
)
IsInDocBody
()
)
{
{
SwTextGridItem
const
*
const
pGrid
(
GetGridItem
(
FindPageFrame
()));
SwTextGridItem
const
*
const
pGrid
(
GetGridItem
(
FindPageFrame
()));
...
...
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