[gnumeric] Write print-content for sheet objects to ODF



commit d5139255e451a1cf11b0e23b8e87494dba4e543c
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Wed May 6 00:15:16 2020 -0600

    Write print-content for sheet objects to ODF
    
    2020-05-06  Andreas J. Guelzow <aguelzow pyrshep ca>
    
            * openoffice-write.c (odf_write_sheet_object_style): write print-content
            attribute
            (odf_write_sheet_object_line_style): write print-content attribute

 plugins/openoffice/ChangeLog          | 14 ++++++++++----
 plugins/openoffice/openoffice-write.c |  4 ++++
 2 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index d548e121b..4a30a440e 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,7 +1,13 @@
+2020-05-06  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+       * openoffice-write.c (odf_write_sheet_object_style): write print-content
+       attribute
+       (odf_write_sheet_object_line_style): write print-content attribute
+
 2020-04-27  Andreas J. Guelzow <aguelzow pyrshep ca>
 
-    * openoffice-read.c (od_draw_frame_end_full): assign name to sheet object
-    * openoffice-write.c (odf_write_frame_size): write sheet object name
+       * openoffice-read.c (od_draw_frame_end_full): assign name to sheet object
+       * openoffice-write.c (odf_write_frame_size): write sheet object name
 
 2019-11-06  Morten Welinder <terra gnome org>
 
@@ -23,12 +29,12 @@
 
 2019-06-27  Andreas J. Guelzow <aguelzow pyrshep ca>
 
-    * openoffice-read.c (oo_format_text_append): new, use unless we are dealing with dates or times.
+       * openoffice-read.c (oo_format_text_append): new, use unless we are dealing with dates or times.
     (oo_date_text_append): undo last change
 
 2019-06-27  Andreas J. Guelzow <aguelzow pyrshep ca>
 
-    * openoffice-read.c (oo_date_text_append): quote slash
+       * openoffice-read.c (oo_date_text_append): quote slash
 
 2019-05-20  Morten Welinder <terra gnome org>
 
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index 84b794c76..8737083ae 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -867,6 +867,8 @@ odf_write_sheet_object_style (GnmOOExport *state, SheetObject *so)
 
        odf_start_style (state->xml, name, "graphic");
        gsf_xml_out_start_element (state->xml, STYLE "graphic-properties");
+       odf_add_bool (state->xml, STYLE "print-content",
+                     sheet_object_get_print_flag (so));
        odf_write_gog_style_graphic (state, style, FALSE);
        gsf_xml_out_end_element (state->xml); /* </style:graphic-properties> */
        gsf_xml_out_start_element (state->xml, STYLE "text-properties");
@@ -904,6 +906,8 @@ odf_write_sheet_object_line_style (GnmOOExport *state, SheetObject *so)
 
        odf_start_style (state->xml, name, "graphic");
        gsf_xml_out_start_element (state->xml, STYLE "graphic-properties");
+       odf_add_bool (state->xml, STYLE "print-content",
+                     sheet_object_get_print_flag (so));
        if (start_arrow_name != NULL)
                gsf_xml_out_add_cstr (state->xml, DRAW "marker-start", start_arrow_name);
        if (end_arrow_name != NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]