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
994cca6b
Kaydet (Commit)
994cca6b
authored
Agu 06, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DOCX export: handle <w:cnfStyle> row property
Change-Id: Ice1cf2ce078b130130c44952ec2be0f8642f21a8
üst
dbaff6d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+19
-0
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+14
-0
No files found.
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
994cca6b
...
@@ -1980,6 +1980,25 @@ DECLARE_OOXMLEXPORT_TEST(testTableThemePreservation, "table-theme-preservation.d
...
@@ -1980,6 +1980,25 @@ DECLARE_OOXMLEXPORT_TEST(testTableThemePreservation, "table-theme-preservation.d
// check that one cell attribute present in the original document has been preserved
// check that one cell attribute present in the original document has been preserved
assertXPath
(
pXmlDocument
,
"/w:document/w:body/w:tbl/w:tr[1]/w:tc[1]/w:tcPr/w:tcBorders/*"
,
1
);
assertXPath
(
pXmlDocument
,
"/w:document/w:body/w:tbl/w:tr[1]/w:tc[1]/w:tcPr/w:tcBorders/*"
,
1
);
// Check that w:cnfStyle row, cell and paragraph property is preserved.
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:trPr/w:cnfStyle"
,
"val"
,
"100000000000"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:trPr/w:cnfStyle"
,
"firstRow"
,
"1"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:trPr/w:cnfStyle"
,
"lastRow"
,
"0"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:trPr/w:cnfStyle"
,
"firstColumn"
,
"0"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:trPr/w:cnfStyle"
,
"lastColumn"
,
"0"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:tc/w:tcPr/w:cnfStyle"
,
"val"
,
"001000000000"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:tc/w:tcPr/w:cnfStyle"
,
"oddVBand"
,
"0"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:tc/w:tcPr/w:cnfStyle"
,
"evenVBand"
,
"0"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:tc/w:tcPr/w:cnfStyle"
,
"oddHBand"
,
"0"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:tc/w:tcPr/w:cnfStyle"
,
"evenHBand"
,
"0"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:tc[2]/w:p/w:pPr/w:cnfStyle"
,
"val"
,
"100000000000"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:tc[2]/w:p/w:pPr/w:cnfStyle"
,
"firstRowFirstColumn"
,
"0"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:tc[2]/w:p/w:pPr/w:cnfStyle"
,
"firstRowLastColumn"
,
"0"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:tc[2]/w:p/w:pPr/w:cnfStyle"
,
"lastRowFirstColumn"
,
"0"
);
assertXPath
(
pXmlDocument
,
"//w:tbl/w:tr[1]/w:tc[2]/w:p/w:pPr/w:cnfStyle"
,
"lastRowLastColumn"
,
"0"
);
}
}
DECLARE_OOXMLEXPORT_TEST
(
testcantSplit
,
"2_table_doc.docx"
)
DECLARE_OOXMLEXPORT_TEST
(
testcantSplit
,
"2_table_doc.docx"
)
...
...
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
994cca6b
...
@@ -2921,6 +2921,20 @@ void DocxAttributeOutput::StartTableRow( ww8::WW8TableNodeInfoInner::Pointer_t p
...
@@ -2921,6 +2921,20 @@ void DocxAttributeOutput::StartTableRow( ww8::WW8TableNodeInfoInner::Pointer_t p
TableHeight( pTableTextNodeInfoInner );
TableHeight( pTableTextNodeInfoInner );
TableCanSplit( pTableTextNodeInfoInner );
TableCanSplit( pTableTextNodeInfoInner );
const SwTableBox *pTableBox = pTableTextNodeInfoInner->getTableBox();
const SwTableLine* pTableLine = pTableBox->GetUpper();
if (const SfxGrabBagItem* pItem = sw::util::HasItem<SfxGrabBagItem>(pTableLine->GetFrmFmt()->GetAttrSet(), RES_FRMATR_GRABBAG))
{
const std::map<OUString, uno::Any>& rGrabBag = pItem->GetGrabBag();
std::map<OUString, uno::Any>::const_iterator it = rGrabBag.find("RowCnfStyle");
if (it != rGrabBag.cend())
{
uno::Sequence<beans::PropertyValue> aAttributes = it->second.get< uno::Sequence<beans::PropertyValue> >();
m_pTableStyleExport->CnfStyle(aAttributes);
}
}
m_pSerializer->endElementNS( XML_w, XML_trPr );
m_pSerializer->endElementNS( XML_w, XML_trPr );
}
}
...
...
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