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
d4d0df13
Kaydet (Commit)
d4d0df13
authored
Agu 21, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DOCX import: fix handling of textframes having shape text ending with a table
Change-Id: I82ef1072bfeb1195152ef7f1ea743653ac102b37
üst
43c7735d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+3
-6
TableManager.hxx
writerfilter/inc/resourcemodel/TableManager.hxx
+8
-0
DomainMapper.cxx
writerfilter/source/dmapper/DomainMapper.cxx
+6
-0
No files found.
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
d4d0df13
...
...
@@ -1168,12 +1168,9 @@ void Test::testTableFloatingMargins()
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
1000
),
getProperty
<
sal_Int32
>
(
xFrame
,
"TopMargin"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
2000
),
getProperty
<
sal_Int32
>
(
xFrame
,
"BottomMargin"
));
if
(
m_bImport
)
{
// Paragraph bottom margin wasn't 0 in the A1 cell of the floating table.
xmlDocPtr
pXmlDoc
=
parseExport
();
assertXPath
(
pXmlDoc
,
"/w:document/w:body/w:p/w:r/w:pict/v:rect/v:textbox/w:txbxContent/w:tbl/w:tr[1]/w:tc[1]/w:p/w:pPr/w:spacing"
,
"after"
,
"0"
);
}
// Paragraph bottom margin wasn't 0 in the A1 cell of the floating table.
xmlDocPtr
pXmlDoc
=
parseExport
();
assertXPath
(
pXmlDoc
,
"/w:document/w:body/w:p/w:r/w:pict/v:rect/v:textbox/w:txbxContent/w:tbl/w:tr[1]/w:tc[1]/w:p/w:pPr/w:spacing"
,
"after"
,
"0"
);
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
...
...
writerfilter/inc/resourcemodel/TableManager.hxx
Dosyayı görüntüle @
d4d0df13
...
...
@@ -530,6 +530,14 @@ public:
*/
virtual
void
endLevel
();
/**
* Signal that the next paragraph definitely won't be part of any table.
*/
void
endTable
()
{
setRowEnd
(
false
);
}
/**
Tells whether a table has been started or not
*/
...
...
writerfilter/source/dmapper/DomainMapper.cxx
Dosyayı görüntüle @
d4d0df13
...
...
@@ -3558,6 +3558,12 @@ void DomainMapper::lcl_endShape( )
{
if
(
m_pImpl
->
GetTopContext
())
{
// End the current table, if there are any. Otherwise the unavoidable
// empty paragraph at the end of the shape text will cause problems: if
// the shape text ends with a table, the extra paragraph will be
// handled as an additional row of the ending table.
m_pImpl
->
getTableManager
().
endTable
();
lcl_endParagraphGroup
();
m_pImpl
->
PopShapeContext
(
);
}
...
...
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