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
bcf42665
Kaydet (Commit)
bcf42665
authored
Nis 24, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: simplify and remove special case in SwHTMLParser::AddParSpace()
Change-Id: Ia64935bcc957cc5730f8cd67ec374c548a46b531
üst
104ed86c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
swhtml.cxx
sw/source/filter/html/swhtml.cxx
+2
-11
No files found.
sw/source/filter/html/swhtml.cxx
Dosyayı görüntüle @
bcf42665
...
...
@@ -2415,29 +2415,20 @@ void SwHTMLParser::AddParSpace()
}
else
{
if
(
!
pTxtNode
->
HasHints
())
{
pTxtNode
->
SetAttr
(
SvxULSpaceItem
(
rULSpace
.
GetUpper
(),
HTML_PARSPACE
,
RES_UL_SPACE
)
);
return
;
}
//What I do here, is that I examine the attributes, and if
//I find out, that it's CJK/CTL, then I set the paragraph space
//to the value set in HTML_CJK_PARSPACE/HTML_CTL_PARSPACE.
bool
bIsCJK
=
false
;
bool
bIsCTL
=
false
;
SwpHints
&
rHints
=
pTxtNode
->
GetSwpHints
();
sal_uInt16
nWhich
;
SwTxtAttr
*
pHt
;
const
size_t
nCntAttr
=
(
pTxtNode
&&
pTxtNode
->
GetpSwpHints
())
?
pTxtNode
->
GetSwpHints
().
Count
()
:
0
;
for
(
size_t
i
=
0
;
i
<
nCntAttr
;
++
i
)
{
pHt
=
rHints
.
GetTextHint
(
i
);
nWhich
=
pHt
->
Which
();
SwTxtAttr
*
const
pHt
=
pTxtNode
->
GetSwpHints
()
.
GetTextHint
(
i
);
sal_uInt16
const
nWhich
=
pHt
->
Which
();
if
(
RES_CHRATR_CJK_FONT
==
nWhich
||
RES_CHRATR_CJK_FONTSIZE
==
nWhich
||
RES_CHRATR_CJK_LANGUAGE
==
nWhich
||
...
...
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