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
1ff5ecda
Kaydet (Commit)
1ff5ecda
authored
Eyl 07, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: tdf#93676 msword wraps slightly differently than us
Change-Id: I91ba41cb052c38aa3b047cf079090b01bbe93b39
üst
30296337
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
wrtw8esh.cxx
sw/source/filter/ww8/wrtw8esh.cxx
+15
-2
No files found.
sw/source/filter/ww8/wrtw8esh.cxx
Dosyayı görüntüle @
1ff5ecda
...
@@ -803,6 +803,19 @@ void PlcDrawObj::WritePlc( WW8Export& rWrt ) const
...
@@ -803,6 +803,19 @@ void PlcDrawObj::WritePlc( WW8Export& rWrt ) const
SwTwips
nLeft
=
aRect
.
Left
()
+
nThick
;
SwTwips
nLeft
=
aRect
.
Left
()
+
nThick
;
SwTwips
nRight
=
aRect
.
Right
()
-
nThick
;
SwTwips
nRight
=
aRect
.
Right
()
-
nThick
;
SwTwips
nTop
=
aRect
.
Top
()
+
nThick
;
SwTwips
nBottom
=
aRect
.
Bottom
()
-
nThick
;
// tdf#93675, 0 below line/paragraph and/or top line/paragraph with
// wrap top+bottom or other wraps is affecting the line directly
// above the anchor line, which seems odd, but a tiny adjustment
// here to bring the top down convinces msoffice to wrap like us
if
(
nTop
<
8
&&
!
rFrameFormat
.
IsInline
()
&&
rVOr
.
GetVertOrient
()
==
text
::
VertOrientation
::
NONE
&&
rVOr
.
GetRelationOrient
()
==
text
::
RelOrientation
::
FRAME
)
{
nTop
=
8
;
}
//Nasty swap for bidi if necessary
//Nasty swap for bidi if necessary
rWrt
.
MiserableRTLFrameFormatHack
(
nLeft
,
nRight
,
rFrameFormat
);
rWrt
.
MiserableRTLFrameFormatHack
(
nLeft
,
nRight
,
rFrameFormat
);
...
@@ -811,9 +824,9 @@ void PlcDrawObj::WritePlc( WW8Export& rWrt ) const
...
@@ -811,9 +824,9 @@ void PlcDrawObj::WritePlc( WW8Export& rWrt ) const
//(most of) the border is outside the graphic is word, so
//(most of) the border is outside the graphic is word, so
//change dimensions to fit
//change dimensions to fit
SwWW8Writer
::
WriteLong
(
*
rWrt
.
pTableStrm
,
nLeft
);
SwWW8Writer
::
WriteLong
(
*
rWrt
.
pTableStrm
,
nLeft
);
SwWW8Writer
::
WriteLong
(
*
rWrt
.
pTableStrm
,
aRect
.
Top
()
+
nThick
);
SwWW8Writer
::
WriteLong
(
*
rWrt
.
pTableStrm
,
nTop
);
SwWW8Writer
::
WriteLong
(
*
rWrt
.
pTableStrm
,
nRight
);
SwWW8Writer
::
WriteLong
(
*
rWrt
.
pTableStrm
,
nRight
);
SwWW8Writer
::
WriteLong
(
*
rWrt
.
pTableStrm
,
aRect
.
Bottom
()
-
nThick
);
SwWW8Writer
::
WriteLong
(
*
rWrt
.
pTableStrm
,
nBottom
);
//fHdr/bx/by/wr/wrk/fRcaSimple/fBelowText/fAnchorLock
//fHdr/bx/by/wr/wrk/fRcaSimple/fBelowText/fAnchorLock
sal_uInt16
nFlags
=
0
;
sal_uInt16
nFlags
=
0
;
...
...
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