mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 19:16:10 +08:00
Update zcl_excel_writer_2007.clas.abap -> table_style_none
This commit is contained in:
parent
61482e2b30
commit
e8bcec233a
|
@ -5785,38 +5785,39 @@ CLASS zcl_excel_writer_2007 IMPLEMENTATION.
|
||||||
lo_element->append_child( new_child = lo_element2 ).
|
lo_element->append_child( new_child = lo_element2 ).
|
||||||
ENDLOOP.
|
ENDLOOP.
|
||||||
|
|
||||||
|
IF io_table->settings-table_style NE zcl_excel_table=>table_style_none.
|
||||||
|
lo_element = lo_document->create_simple_element( name = 'tableStyleInfo'
|
||||||
|
parent = lo_element_root ).
|
||||||
|
|
||||||
lo_element = lo_document->create_simple_element( name = 'tableStyleInfo'
|
lo_element->set_attribute_ns( name = 'name'
|
||||||
parent = lo_element_root ).
|
value = io_table->settings-table_style ).
|
||||||
|
|
||||||
lo_element->set_attribute_ns( name = 'name'
|
lo_element->set_attribute_ns( name = 'showFirstColumn'
|
||||||
value = io_table->settings-table_style ).
|
value = '0' ).
|
||||||
|
|
||||||
lo_element->set_attribute_ns( name = 'showFirstColumn'
|
lo_element->set_attribute_ns( name = 'showLastColumn'
|
||||||
value = '0' ).
|
value = '0' ).
|
||||||
|
|
||||||
lo_element->set_attribute_ns( name = 'showLastColumn'
|
IF io_table->settings-show_row_stripes = abap_true.
|
||||||
value = '0' ).
|
lv_value = '1'.
|
||||||
|
ELSE.
|
||||||
|
lv_value = '0'.
|
||||||
|
ENDIF.
|
||||||
|
|
||||||
IF io_table->settings-show_row_stripes = abap_true.
|
lo_element->set_attribute_ns( name = 'showRowStripes'
|
||||||
lv_value = '1'.
|
value = lv_value ).
|
||||||
ELSE.
|
|
||||||
lv_value = '0'.
|
IF io_table->settings-show_column_stripes = abap_true.
|
||||||
|
lv_value = '1'.
|
||||||
|
ELSE.
|
||||||
|
lv_value = '0'.
|
||||||
|
ENDIF.
|
||||||
|
|
||||||
|
lo_element->set_attribute_ns( name = 'showColumnStripes'
|
||||||
|
value = lv_value ).
|
||||||
|
|
||||||
|
lo_element_root->append_child( new_child = lo_element ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
lo_element->set_attribute_ns( name = 'showRowStripes'
|
|
||||||
value = lv_value ).
|
|
||||||
|
|
||||||
IF io_table->settings-show_column_stripes = abap_true.
|
|
||||||
lv_value = '1'.
|
|
||||||
ELSE.
|
|
||||||
lv_value = '0'.
|
|
||||||
ENDIF.
|
|
||||||
|
|
||||||
lo_element->set_attribute_ns( name = 'showColumnStripes'
|
|
||||||
value = lv_value ).
|
|
||||||
|
|
||||||
lo_element_root->append_child( new_child = lo_element ).
|
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
* STEP 5: Create xstring stream
|
* STEP 5: Create xstring stream
|
||||||
ep_content = render_xml_document( lo_document ).
|
ep_content = render_xml_document( lo_document ).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user