summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-07-28 23:22:03 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-07-28 23:23:49 +0200
commit776544f5e9b58a3fa05a9559c0fe9f678b2076c2 (patch)
tree7ef4c2f891c621ef4fada14d1d24c3f33b763ed2 /sc
parent40d892a2db4d750aaf0562c63004e693c028273c (diff)
write the customWidth property also to XLS
Change-Id: I3d12e141e1cf6c70c3fbae7b6fb25a2fabeed77b
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xetable.cxx2
-rw-r--r--sc/source/filter/inc/xltable.hxx1
2 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx
index ccab97e502d8..81edb3689a0f 100644
--- a/sc/source/filter/excel/xetable.cxx
+++ b/sc/source/filter/excel/xetable.cxx
@@ -1605,9 +1605,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 --------------------------------------------------------------