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 /sw/inc/unoprnms.hxx | |
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 'sw/inc/unoprnms.hxx')
-rw-r--r-- | sw/inc/unoprnms.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/inc/unoprnms.hxx b/sw/inc/unoprnms.hxx index ab08fc277933..280c7e40f12c 100644 --- a/sw/inc/unoprnms.hxx +++ b/sw/inc/unoprnms.hxx @@ -839,6 +839,7 @@ #define UNO_NAME_STYLE_INTEROP_GRAB_BAG "StyleInteropGrabBag" #define UNO_NAME_CHAR_INTEROP_GRAB_BAG "CharInteropGrabBag" #define UNO_NAME_TEXT_VERT_ADJUST "TextVerticalAdjust" +#define UNO_NAME_CELL_INTEROP_GRAB_BAG "CellInteropGrabBag" #endif |