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
d895b1d5
Kaydet (Commit)
d895b1d5
authored
May 04, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw_redlinehide: trivial conversions in EnhancedPDFExportHelper.cxx
Change-Id: I0f6c0842988f49e293c56c105f3eae13c21f0024
üst
9ac658c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
EnhancedPDFExportHelper.cxx
sw/source/core/text/EnhancedPDFExportHelper.cxx
+8
-7
No files found.
sw/source/core/text/EnhancedPDFExportHelper.cxx
Dosyayı görüntüle @
d895b1d5
...
...
@@ -760,7 +760,7 @@ void SwTaggedPDFHelper::SetAttributes( vcl::PDFWriter::StructElement eType )
if
(
pPor
->
GetWhichPor
()
==
POR_SOFTHYPH
||
pPor
->
GetWhichPor
()
==
POR_HYPH
)
aActualText
=
OUString
(
u
'\
x00ad
'
);
// soft hyphen
else
aActualText
=
rInf
.
GetText
().
copy
(
rInf
.
GetIdx
(),
pPor
->
GetLen
(
));
aActualText
=
rInf
.
GetText
().
copy
(
sal_Int32
(
rInf
.
GetIdx
()),
sal_Int32
(
pPor
->
GetLen
()
));
mpPDFExtOutDevData
->
SetActualText
(
aActualText
);
}
...
...
@@ -1335,15 +1335,16 @@ void SwTaggedPDFHelper::BeginInlineStructureElements()
case
POR_TXT
:
case
POR_PARA
:
{
SwTextNode
*
pNd
=
const_cast
<
SwTextNode
*>
(
pFrame
->
GetTextNode
());
std
::
pair
<
SwTextNode
const
*
,
sal_Int32
>
const
pos
(
pFrame
->
MapViewToModel
(
rInf
.
GetIdx
()));
SwTextAttr
const
*
const
pInetFormatAttr
=
p
Nd
->
GetTextAttrAt
(
rInf
.
GetIdx
()
,
RES_TXTATR_INETFMT
);
p
os
.
first
->
GetTextAttrAt
(
pos
.
second
,
RES_TXTATR_INETFMT
);
OUString
sStyleName
;
if
(
!
pInetFormatAttr
)
{
std
::
vector
<
SwTextAttr
*>
const
charAttrs
(
p
Nd
->
GetTextAttrsAt
(
rInf
.
GetIdx
()
,
RES_TXTATR_CHARFMT
));
p
os
.
first
->
GetTextAttrsAt
(
pos
.
second
,
RES_TXTATR_CHARFMT
));
// TODO: handle more than 1 char style?
const
SwCharFormat
*
pCharFormat
=
(
charAttrs
.
size
())
?
(
*
charAttrs
.
begin
())
->
GetCharFormat
().
GetCharFormat
()
:
nullptr
;
...
...
@@ -1401,9 +1402,9 @@ void SwTaggedPDFHelper::BeginInlineStructureElements()
case
POR_FLD
:
{
// check field type:
const
sal_Int32
nIdx
=
static_cast
<
const
SwFieldPortion
*>
(
pPor
)
->
IsFollow
()
?
rInf
.
GetIdx
()
-
1
:
rInf
.
GetIdx
();
TextFrameIndex
const
nIdx
=
static_cast
<
const
SwFieldPortion
*>
(
pPor
)
->
IsFollow
()
?
rInf
.
GetIdx
()
-
TextFrameIndex
(
1
)
:
rInf
.
GetIdx
();
const
SwTextAttr
*
pHint
=
mpPorInfo
->
mrTextPainter
.
GetAttr
(
nIdx
);
if
(
pHint
&&
RES_TXTATR_FIELD
==
pHint
->
Which
()
)
{
...
...
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