diff options
author | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2014-04-01 17:18:39 +0200 |
---|---|---|
committer | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2014-04-03 09:59:17 +0200 |
commit | a3efbb5d33f5c6928141fd3e7aa7c6d3bdc6a087 (patch) | |
tree | e4fa257d59181f85ce421cd4cd98fac36a403428 /offapi | |
parent | a718b02f8e24d7c167a56456523bc921b12e4f64 (diff) |
oox: Preserve cell theme color.
When some background color is set to a table cell, it is stored in the
cell properties tag <tcPr> like this:
<w:shd w:fill="ECD2B6" w:color="auto"
w:themeFill="accent6" w:themeFillTint="66" w:val="clear"/>
The theme-related attributes in w:shd were not being preserved. To
fix this I added an InteropGrabBag to the cell properties object,
which is filled with the attributes of w:shd to be checked on export.
The exporter checks if the cell color is still the original color that
was imported from the file, if it is not it means the user has
manually changed it during the edition and the new color is written
instead.
Finally, added a unit test for theme attributes on tables.
Change-Id: Ica8091b5eb4075e51912a255650a1d9d64f5767a
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/table/CellProperties.idl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/offapi/com/sun/star/table/CellProperties.idl b/offapi/com/sun/star/table/CellProperties.idl index 94b71db5ae80..3e01b315e2fe 100644 --- a/offapi/com/sun/star/table/CellProperties.idl +++ b/offapi/com/sun/star/table/CellProperties.idl @@ -263,6 +263,16 @@ published service CellProperties */ [optional, property] com::sun::star::table::BorderLine2 DiagonalBLTR2; + /** Grab bag of cell properties, used as a string-any map for interim interop purposes. + + @since LibreOffice 4.3 + + <p>This property is intentionally not handled by the ODF filter. Any + member that should be handled there should be first moved out from this grab + bag to a separate property.</p> + */ + [optional, property] sequence<com::sun::star::beans::PropertyValue> CellInteropGrabBag; + }; |