summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/shapes.cxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx
index 4ef0838f233f..95b0b37383ad 100644
--- a/oox/source/export/shapes.cxx
+++ b/oox/source/export/shapes.cxx
@@ -1004,7 +1004,9 @@ void ShapeExport::WriteTable( Reference< XShape > rXShape )
WriteTextBox( xCell, XML_a );
- mpFS->singleElementNS( XML_a, XML_tcPr, FSEND );
+ Reference< XPropertySet > xCellPropSet(xCell, UNO_QUERY_THROW);
+ WriteTableCellProperties(xCellPropSet);
+
mpFS->endElementNS( XML_a, XML_tc );
}
}
@@ -1019,6 +1021,17 @@ void ShapeExport::WriteTable( Reference< XShape > rXShape )
mpFS->endElementNS( XML_a, XML_graphic );
}
+void ShapeExport::WriteTableCellProperties(Reference< XPropertySet> xCellPropSet)
+{
+ mpFS->startElementNS( XML_a, XML_tcPr, FSEND );
+ // Write background fill for table cell.
+ DrawingML::WriteFill(xCellPropSet);
+ // TODO
+ // tcW : Table cell width
+ // tcBorders : Table cell border values.
+ mpFS->endElementNS( XML_a, XML_tcPr );
+}
+
ShapeExport& ShapeExport::WriteTableShape( Reference< XShape > xShape )
{
FSHelperPtr pFS = GetFS();