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
f88c2962
Kaydet (Commit)
f88c2962
authored
Ock 22, 2013
tarafından
Pierre-Eric Pelloux-Prayer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
docx export: fix table 'tblInd' attribute computation
Change-Id: I3980ad8e372290973ed89488eb540267136af491
üst
ec8ff9ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+12
-5
docxattributeoutput.hxx
sw/source/filter/ww8/docxattributeoutput.hxx
+1
-1
No files found.
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
f88c2962
...
...
@@ -1833,6 +1833,16 @@ void DocxAttributeOutput::TableDefinition( ww8::WW8TableNodeInfoInner::Pointer_t
else
pJcVal
=
"start"
;
nIndent
=
sal_Int32
(
pTblFmt
->
GetLRSpace
(
).
GetLeft
(
)
);
// Table indentation has different meaning in Word, depending if the table is nested or not.
// If nested, tblInd is added to parent table's left spacing and defines left edge position
// If not nested, text position of left-most cell must be at absolute X = tblInd
// so, table_spacing + table_spacing_to_content = tblInd
if
(
m_nTableDepth
==
0
)
{
const
SwTableBox
*
pTabBox
=
pTableTextNodeInfoInner
->
getTableBox
();
const
SwFrmFmt
*
pFrmFmt
=
pTabBox
->
GetFrmFmt
();
nIndent
+=
sal_Int32
(
pFrmFmt
->
GetBox
(
).
GetDistance
(
BOX_LINE_LEFT
)
);
}
break
;
}
}
...
...
@@ -1844,7 +1854,7 @@ void DocxAttributeOutput::TableDefinition( ww8::WW8TableNodeInfoInner::Pointer_t
TableDefaultBorders
(
pTableTextNodeInfoInner
);
// Output the default cell margins
TableDefaultCellMargins
(
pTableTextNodeInfoInner
,
nIndent
);
TableDefaultCellMargins
(
pTableTextNodeInfoInner
);
TableBidi
(
pTableTextNodeInfoInner
);
...
...
@@ -1886,7 +1896,7 @@ void DocxAttributeOutput::TableDefaultBorders( ww8::WW8TableNodeInfoInner::Point
impl_pageBorders
(
m_pSerializer
,
pFrmFmt
->
GetBox
(
),
XML_tblBorders
,
!
bEcma
,
true
);
}
void
DocxAttributeOutput
::
TableDefaultCellMargins
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
,
sal_Int32
&
tblIndent
)
void
DocxAttributeOutput
::
TableDefaultCellMargins
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
)
{
const
SwTableBox
*
pTabBox
=
pTableTextNodeInfoInner
->
getTableBox
();
const
SwFrmFmt
*
pFrmFmt
=
pTabBox
->
GetFrmFmt
();
...
...
@@ -1894,9 +1904,6 @@ void DocxAttributeOutput::TableDefaultCellMargins( ww8::WW8TableNodeInfoInner::P
const
bool
bEcma
=
GetExport
().
GetFilter
().
getVersion
(
)
==
oox
::
core
::
ECMA_DIALECT
;
impl_cellMargins
(
m_pSerializer
,
rBox
,
XML_tblCellMar
,
!
bEcma
);
// add table cell left margin to tblIndent
tblIndent
+=
sal_Int32
(
rBox
.
GetDistance
(
BOX_LINE_LEFT
)
);
}
void
DocxAttributeOutput
::
TableBackgrounds
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
)
...
...
sw/source/filter/ww8/docxattributeoutput.hxx
Dosyayı görüntüle @
f88c2962
...
...
@@ -148,7 +148,7 @@ public:
virtual
void
TableInfoRow
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
);
virtual
void
TableDefinition
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
);
virtual
void
TableDefaultBorders
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
);
virtual
void
TableDefaultCellMargins
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
,
sal_Int32
&
tblIndent
);
virtual
void
TableDefaultCellMargins
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
);
virtual
void
TableBackgrounds
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
);
virtual
void
TableHeight
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
);
virtual
void
TableCanSplit
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
);
...
...
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