[gnumeric] xls: export sliders as scrollbars.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xls: export sliders as scrollbars.
- Date: Wed, 28 Jan 2015 20:39:01 +0000 (UTC)
commit 1d2f9c24088a8cae1411d27952d92b4432f696a4
Author: Morten Welinder <terra gnome org>
Date: Wed Jan 28 13:37:01 2015 -0500
xls: export sliders as scrollbars.
XL doesn't seem to have sliders, but scrollbars work and look similarly.
NEWS | 1 +
plugins/excel/ChangeLog | 5 +++++
plugins/excel/ms-excel-write.c | 4 +++-
3 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index c5f2255..668ac4a 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,7 @@ Morten:
* Import/export xlsx chart axis min/max/steps.
* Export xlsx chart axis tick marks.
* Fix xlsx problem with inverted axis.
+ * Export sliders as scrollbars for xls.
--------------------------------------------------------------------------
Gnumeric 1.12.19
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 2d5aaea..08877c4 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-28 Morten Welinder <terra gnome org>
+
+ * ms-excel-write.c (excel_write_other_v8): Export sliders as-if
+ they were scrollbars.
+
2015-01-27 Morten Welinder <terra gnome org>
* xlsx-write-drawing.c (xlsx_write_axis): Fix crossing for
diff --git a/plugins/excel/ms-excel-write.c b/plugins/excel/ms-excel-write.c
index f4e109c..77d47ff 100644
--- a/plugins/excel/ms-excel-write.c
+++ b/plugins/excel/ms-excel-write.c
@@ -4663,7 +4663,8 @@ excel_write_other_v8 (ExcelWriteSheet *esheet,
shape = 0xc9;
type = MSOT_SPINNER;
flags = 0x0011;
- } else if (GNM_IS_SOW_SCROLLBAR (so)) {
+ } else if (GNM_IS_SOW_SCROLLBAR (so) || GNM_IS_SOW_SLIDER (so)) {
+ /* Pretend sliders are scrollbars. */
shape = 0xc9;
type = MSOT_SCROLLBAR;
flags = 0x6011;
@@ -5860,6 +5861,7 @@ excel_sheet_new (ExcelWriteState *ewb, Sheet *sheet,
GNM_IS_SOW_RADIO_BUTTON (so) ||
GNM_IS_SOW_SPINBUTTON (so) ||
GNM_IS_SOW_SCROLLBAR (so) ||
+ GNM_IS_SOW_SLIDER (so) ||
GNM_IS_SOW_LIST (so) ||
GNM_IS_SOW_BUTTON (so) ||
GNM_IS_SOW_COMBO (so)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]