diff --git a/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk b/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk index cb3c0b7..535d867 100644 --- a/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk +++ b/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk @@ -1,6 +1,6 @@ - - - + + + class ZCL_EXCEL_WRITER_2007 definition public final @@ -2904,9 +2904,7 @@ endmethod. ls_alignment TYPE zexcel_s_style_alignment, lt_cellxfs TYPE zexcel_t_cellxfs, ls_cellxfs TYPE zexcel_s_cellxfs, - ls_styles_mapping TYPE zexcel_s_styles_mapping, - lt_colors TYPE TABLE OF zexcel_style_color_argb, - ls_color TYPE zexcel_style_color_argb. + ls_styles_mapping TYPE zexcel_s_styles_mapping. DATA: lv_value TYPE string, lv_fonts_count TYPE i, @@ -3152,7 +3150,6 @@ endmethod. value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element ). lo_element_fonts->append_child( new_child = lo_element_font ). - APPEND ls_font-color TO lt_colors. ENDLOOP. " create fill elements @@ -3188,10 +3185,6 @@ endmethod. lo_element_fill->append_child( new_child = lo_sub_element )."pattern lo_element_fills->append_child( new_child = lo_element_fill ). - " Collect color - IF ls_fill-fgcolor IS NOT INITIAL. - APPEND ls_fill-fgcolor TO lt_colors. - ENDIF. ENDLOOP. " create border elements @@ -3213,8 +3206,6 @@ endmethod. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_rgb value = lv_value ). lo_sub_element->append_child( new_child = lo_sub_element_2 )." color -* Collect color - APPEND ls_border-left_color TO lt_colors. ENDIF. lo_element_border->append_child( new_child = lo_sub_element ). @@ -3233,8 +3224,6 @@ endmethod. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_rgb value = lv_value ). lo_sub_element->append_child( new_child = lo_sub_element_2 )." color -* Collect color - APPEND ls_border-right_color TO lt_colors. ENDIF. lo_element_border->append_child( new_child = lo_sub_element ). @@ -3253,8 +3242,6 @@ endmethod. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_rgb value = lv_value ). lo_sub_element->append_child( new_child = lo_sub_element_2 )." color -* Collect color - APPEND ls_border-top_color TO lt_colors. ENDIF. lo_element_border->append_child( new_child = lo_sub_element ). @@ -3273,8 +3260,6 @@ endmethod. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_rgb value = lv_value ). lo_sub_element->append_child( new_child = lo_sub_element_2 )." color -* Collect color - APPEND ls_border-bottom_color TO lt_colors. ENDIF. lo_element_border->append_child( new_child = lo_sub_element ). @@ -3293,8 +3278,6 @@ endmethod. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_rgb value = lv_value ). lo_sub_element->append_child( new_child = lo_sub_element_2 )." color -* Collect color - APPEND ls_border-diagonal_color TO lt_colors. ENDIF. lo_element_border->append_child( new_child = lo_sub_element ). lo_element_borders->append_child( new_child = lo_element_border ). @@ -3519,29 +3502,6 @@ endmethod. value = zcl_excel_table=>builtinstyle_pivot_light16 ). lo_element_root->append_child( new_child = lo_element ). - " colors node - lo_element = lo_document->create_simple_element( name = lc_xml_node_colors - parent = lo_document ). - " mruColors node - lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_mrucolors - parent = lo_document ). - - SORT lt_colors. - DELETE ADJACENT DUPLICATES FROM lt_colors. - - LOOP AT lt_colors INTO ls_color. - " color node - lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_color - parent = lo_document ). - lv_value = ls_color. - lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_rgb - value = lv_value ). - lo_sub_element->append_child( new_child = lo_sub_element_2 )." color node - ENDLOOP. - - lo_element->append_child( new_child = lo_sub_element )." mruColors node - lo_element_root->append_child( new_child = lo_element )." colors node - ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ).