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
349e9248
Kaydet (Commit)
349e9248
authored
Şub 19, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DocxAttributeOutput: fix export of btLr text direction in table cells
Change-Id: Ic99a5a11b32d4712b91d58021e1e9ff3bab7890d
üst
f37df270
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+23
-2
docxattributeoutput.hxx
sw/source/filter/ww8/docxattributeoutput.hxx
+3
-0
No files found.
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
349e9248
...
...
@@ -91,6 +91,7 @@
#include <ndtxt.hxx>
#include <pagedesc.hxx>
#include <paratr.hxx>
#include <charatr.hxx>
#include <swmodule.hxx>
#include <swtable.hxx>
#include <txtftn.hxx>
...
...
@@ -1756,6 +1757,7 @@ void DocxAttributeOutput::EndTableCell( )
{
m_pSerializer
->
endElementNS
(
XML_w
,
XML_tc
);
m_bBtLr
=
false
;
m_bTableCellOpen
=
false
;
}
...
...
@@ -1996,6 +1998,23 @@ void DocxAttributeOutput::TableVerticalCell( ww8::WW8TableNodeInfoInner::Pointer
m_pSerializer
->
singleElementNS
(
XML_w
,
XML_textDirection
,
FSNS
(
XML_w
,
XML_val
),
"tbRl"
,
FSEND
);
else
if
(
FRMDIR_HORI_LEFT_TOP
==
m_rExport
.
TrueFrameDirection
(
*
pFrmFmt
)
)
{
// Undo the text direction mangling done by the btLr handler in writerfilter::dmapper::DomainMapperTableManager::sprm()
SwPaM
aPam
(
*
pTabBox
->
GetSttNd
(),
0
);
aPam
.
GetPoint
()
->
nNode
++
;
if
(
aPam
.
GetPoint
()
->
nNode
.
GetNode
().
IsTxtNode
())
{
const
SwTxtNode
&
rTxtNode
=
(
const
SwTxtNode
&
)
aPam
.
GetPoint
()
->
nNode
.
GetNode
();
const
SwAttrSet
*
pAttrSet
=
rTxtNode
.
GetpSwAttrSet
();
const
SvxCharRotateItem
&
rCharRotate
=
pAttrSet
->
GetCharRotate
();
if
(
rCharRotate
.
GetValue
()
==
900
)
{
m_pSerializer
->
singleElementNS
(
XML_w
,
XML_textDirection
,
FSNS
(
XML_w
,
XML_val
),
"btLr"
,
FSEND
);
m_bBtLr
=
true
;
}
}
}
const
SwWriteTableRows
&
aRows
=
m_pTableWrt
->
GetRows
(
);
SwWriteTableRow
*
pRow
=
aRows
[
pTableTextNodeInfoInner
->
getRow
(
)
];
...
...
@@ -3562,7 +3581,8 @@ void DocxAttributeOutput::CharWeightCTL( const SvxWeightItem& rWeight )
void
DocxAttributeOutput
::
CharRotate
(
const
SvxCharRotateItem
&
rRotate
)
{
if
(
!
rRotate
.
GetValue
()
)
// Not rorated or we the rotation already handled?
if
(
!
rRotate
.
GetValue
()
||
m_bBtLr
)
return
;
if
(
!
m_pEastAsianLayoutAttrList
)
...
...
@@ -4802,7 +4822,8 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
m_postponedMath
(
NULL
),
m_postitFieldsMaxId
(
0
),
m_anchorId
(
0
),
m_nextFontId
(
1
)
m_nextFontId
(
1
),
m_bBtLr
(
false
)
{
}
...
...
sw/source/filter/ww8/docxattributeoutput.hxx
Dosyayı görüntüle @
349e9248
...
...
@@ -635,6 +635,9 @@ private:
boost
::
optional
<
XFillStyle
>
m_oFillStyle
;
/// Is fake rotation detected, so rotation with 90 degrees should be ignored in this cell?
bool
m_bBtLr
;
public
:
DocxAttributeOutput
(
DocxExport
&
rExport
,
::
sax_fastparser
::
FSHelperPtr
pSerializer
,
oox
::
drawingml
::
DrawingML
*
pDrawingML
);
...
...
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