diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-07-28 23:22:03 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-02-08 11:56:05 +0100 |
commit | 3e8876c404d7bbb6be7b829858f80168e622a967 (patch) | |
tree | 3db3b89a6c3594b0cb31d3d9dde029a8ffc7dcf0 /sc | |
parent | 05a248f18649f11170972cd395e48a4dc3497005 (diff) |
write the customWidth property also to XLS
Change-Id: I3d12e141e1cf6c70c3fbae7b6fb25a2fabeed77b
(cherry picked from commit 776544f5e9b58a3fa05a9559c0fe9f678b2076c2)
Reviewed-on: https://gerrit.libreoffice.org/31660
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 74da8ee082dd4a7c2073a6174589174ec42ce9b1)
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xetable.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/inc/xltable.hxx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx index 6429d1d9db28..bc8edc0dc184 100644 --- a/sc/source/filter/excel/xetable.cxx +++ b/sc/source/filter/excel/xetable.cxx @@ -1617,9 +1617,9 @@ XclExpColinfo::XclExpColinfo( const XclExpRoot& rRoot, // column flags ::set_flag( mnFlags, EXC_COLINFO_HIDDEN, rDoc.ColHidden(nScCol, nScTab) ); - // TODO Do we need to save customWidth information also for .xls (with mnFlags)? XclExpDefcolwidth defColWidth = XclExpDefcolwidth( rRoot ); mbCustomWidth = !defColWidth.IsDefWidth( mnWidth ); + set_flag(mnFlags, EXC_COLINFO_CUSTOMWIDTH, mbCustomWidth); // outline data rOutlineBfr.Update( nScCol ); diff --git a/sc/source/filter/inc/xltable.hxx b/sc/source/filter/inc/xltable.hxx index c3beff09694e..4d06dd250abb 100644 --- a/sc/source/filter/inc/xltable.hxx +++ b/sc/source/filter/inc/xltable.hxx @@ -141,6 +141,7 @@ const sal_uInt16 EXC_DEFCOLWIDTH_DEF = 10; const sal_uInt16 EXC_ID_COLINFO = 0x007D; const sal_uInt16 EXC_COLINFO_HIDDEN = 0x0001; +const sal_uInt16 EXC_COLINFO_CUSTOMWIDTH = 0x0002; const sal_uInt16 EXC_COLINFO_COLLAPSED = 0x1000; // (0x0080) GUTS -------------------------------------------------------------- |