diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-11-19 12:41:39 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-11-19 12:42:10 +0100 |
commit | ad913681c0e0cdaaa706329f518f59ee54b86d43 (patch) | |
tree | b8557b2c7bdc960b607bb8082962151df2912b7b /writerfilter/inc | |
parent | 63cb9b5ee42c3e08e7fc29461487426af891c983 (diff) |
n#780645 DOCX import: add support for fixed column width
In general, DOCX tables provide a grid for the table, then use spans in
case different number of cells are used in different rows. In this case,
the cell width is ignored, as the wished width can be counted from the
grid and span values.
However, it's also valid to simply provide more cells then the amount
defined by the grid, and in this case the cell width should decide the
final width of the cells. This commit adds support for this later case.
Change-Id: I0dd6c1f0c06f81c2afa00489b7ad1f33ff300a7c
Diffstat (limited to 'writerfilter/inc')
-rw-r--r-- | writerfilter/inc/resourcemodel/TableManager.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/writerfilter/inc/resourcemodel/TableManager.hxx b/writerfilter/inc/resourcemodel/TableManager.hxx index 71d9a819a61d..b6555cc00264 100644 --- a/writerfilter/inc/resourcemodel/TableManager.hxx +++ b/writerfilter/inc/resourcemodel/TableManager.hxx @@ -467,6 +467,11 @@ protected: sal_uInt32 getTableDepthNew() { return mnTableDepthNew; } /** + Return the current table difference, i.e. 1 if we are in the first cell of a new table, etc. + */ + sal_uInt32 getTableDepthDifference() { return mnTableDepthNew - mnTableDepth; } + + /** Action to be carried out at the end of the last paragraph of a cell. */ |