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
b5c583c2
Kaydet (Commit)
b5c583c2
authored
May 15, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw_redlinehide: adapt more functions of SwAttrIter
Change-Id: I17c14f9e66c82cafa2fb5b3e8e45b3bf94fc4a88
üst
2984f84c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
itratr.cxx
sw/source/core/text/itratr.cxx
+18
-2
No files found.
sw/source/core/text/itratr.cxx
Dosyayı görüntüle @
b5c583c2
...
...
@@ -113,12 +113,20 @@ SwAttrIter::~SwAttrIter()
*/
SwTextAttr
*
SwAttrIter
::
GetAttr
(
TextFrameIndex
const
nPosition
)
const
{
return
(
m_pTextNode
)
?
m_pTextNode
->
GetTextAttrForCharAt
(
nPosition
)
:
nullptr
;
std
::
pair
<
SwTextNode
const
*
,
sal_Int32
>
const
pos
(
m_pMergedPara
?
sw
::
MapViewToModel
(
*
m_pMergedPara
,
nPosition
)
:
std
::
make_pair
(
m_pTextNode
,
sal_Int32
(
nPosition
)));
return
pos
.
first
->
GetTextAttrForCharAt
(
pos
.
second
);
}
bool
SwAttrIter
::
SeekAndChgAttrIter
(
TextFrameIndex
const
nNewPos
,
OutputDevice
*
pOut
)
{
bool
bChg
=
m_nStartIndex
&&
nNewPos
==
m_nPosition
?
m_pFont
->
IsFntChg
()
:
Seek
(
nNewPos
);
std
::
pair
<
SwTextNode
const
*
,
sal_Int32
>
const
pos
(
m_pMergedPara
?
sw
::
MapViewToModel
(
*
m_pMergedPara
,
nNewPos
)
:
std
::
make_pair
(
m_pTextNode
,
sal_Int32
(
nNewPos
)));
bool
bChg
=
m_nStartIndex
&&
pos
.
first
==
m_pTextNode
&&
pos
.
second
==
m_nPosition
?
m_pFont
->
IsFntChg
()
:
Seek
(
nNewPos
);
if
(
m_pLastOut
.
get
()
!=
pOut
)
{
m_pLastOut
=
pOut
;
...
...
@@ -152,6 +160,14 @@ bool SwAttrIter::SeekStartAndChgAttrIter( OutputDevice* pOut, const bool bParaFo
if
(
m_pRedline
&&
m_pRedline
->
ExtOn
()
)
m_pRedline
->
LeaveExtend
(
*
m_pFont
,
pFirstTextNode
->
GetIndex
(),
0
);
if
(
m_pTextNode
!=
pFirstTextNode
)
{
assert
(
m_pMergedPara
);
m_pTextNode
=
m_pMergedPara
->
pFirstNode
;
m_pHints
=
m_pTextNode
->
GetpSwpHints
();
InitFontAndAttrHandler
(
*
m_pTextNode
,
m_pMergedPara
->
mergedText
,
nullptr
);
}
// reset font to its original state
m_aAttrHandler
.
Reset
();
m_aAttrHandler
.
ResetFont
(
*
m_pFont
);
...
...
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