1 |
From 872c5e0c807ae248387ee425615e4c8080d01221 Mon Sep 17 00:00:00 2001 |
2 |
From: Jaskaran Singh <jvsg1303@gmail.com> |
3 |
Date: Thu, 28 Jul 2016 14:00:46 +0530 |
4 |
Subject: [PATCH] Add odf strikeout to orcus interface |
5 |
|
6 |
Change-Id: Ibf8d1e7b0272fe4112fda0249eafef1aa5438d9a |
7 |
--- |
8 |
sc/source/filter/inc/orcusinterface.hxx | 7 +++ |
9 |
sc/source/filter/orcus/interface.cxx | 88 +++++++++++++++++++++++++++++---- |
10 |
2 files changed, 85 insertions(+), 10 deletions(-) |
11 |
|
12 |
diff --git a/sc/source/filter/inc/orcusinterface.hxx b/sc/source/filter/inc/orcusinterface.hxx |
13 |
index 9754ea4..9afc218 100644 |
14 |
--- a/sc/source/filter/inc/orcusinterface.hxx |
15 |
+++ b/sc/source/filter/inc/orcusinterface.hxx |
16 |
@@ -390,6 +393,10 @@ public: |
17 |
orcus::spreadsheet::color_elem_t red, |
18 |
orcus::spreadsheet::color_elem_t green, |
19 |
orcus::spreadsheet::color_elem_t blue) override; |
20 |
+ virtual void set_strikethrough_style(orcus::spreadsheet::strikethrough_style_t s) override; |
21 |
+ virtual void set_strikethrough_type(orcus::spreadsheet::strikethrough_type_t s) override; |
22 |
+ virtual void set_strikethrough_width(orcus::spreadsheet::strikethrough_width_t s) override; |
23 |
+ virtual void set_strikethrough_text(orcus::spreadsheet::strikethrough_text_t s) override; |
24 |
virtual size_t commit_font() override; |
25 |
|
26 |
// fill |
27 |
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx |
28 |
index 1be81262..5f30120 100644 |
29 |
--- a/sc/source/filter/orcus/interface.cxx |
30 |
+++ b/sc/source/filter/orcus/interface.cxx |
31 |
@@ -1141,6 +1149,22 @@ void ScOrcusStyles::set_font_color(orcus::spreadsheet::color_elem_t alpha, |
32 |
maCurrentFont.maColor = Color(alpha, red, green, blue); |
33 |
} |
34 |
|
35 |
+void ScOrcusStyles::set_strikethrough_style(orcus::spreadsheet::strikethrough_style_t /*s*/) |
36 |
+{ |
37 |
+} |
38 |
+ |
39 |
+void ScOrcusStyles::set_strikethrough_type(orcus::spreadsheet::strikethrough_type_t /*s*/) |
40 |
+{ |
41 |
+} |
42 |
+ |
43 |
+void ScOrcusStyles::set_strikethrough_width(orcus::spreadsheet::strikethrough_width_t /*s*/) |
44 |
+{ |
45 |
+} |
46 |
+ |
47 |
+void ScOrcusStyles::set_strikethrough_text(orcus::spreadsheet::strikethrough_text_t /*s*/) |
48 |
+{ |
49 |
+} |
50 |
+ |
51 |
size_t ScOrcusStyles::commit_font() |
52 |
{ |
53 |
SAL_INFO("sc.orcus.style", "commit font"); |
54 |
-- |
55 |
2.9.3 |
56 |
|