From 835829a00d58f32c69ba957f4c41ed21f1410bbc Mon Sep 17 00:00:00 2001 From: Gregor Wolf Date: Fri, 18 Feb 2011 00:43:13 +0000 Subject: [PATCH] Fix output of attribute 'operator' for data validation (Issue #54). git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@146 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049 --- ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk | 134 ++++++++++++++------------- 1 file changed, 68 insertions(+), 66 deletions(-) diff --git a/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk b/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk index 8db2fa4..ee4a728 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 @@ -114,32 +114,32 @@ private section. *"* in the implementation part of the class - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + method ZIF_EXCEL_WRITER~WRITE_FILE. me->excel = io_excel. ep_file = me->create( ). endmethod. - - + + method CREATE. @@ -310,8 +310,8 @@ endmethod. endmethod. - - + + method CREATE_CONTENT_TYPES. @@ -565,8 +565,8 @@ endmethod. endmethod. - - + + method CREATE_DOCPROPS_APP. @@ -787,8 +787,8 @@ endmethod. endmethod. - - + + method CREATE_DOCPROPS_CORE. @@ -904,8 +904,8 @@ endmethod. endmethod. - - + + method CREATE_RELATIONSHIPS. @@ -1004,9 +1004,9 @@ endmethod. endmethod. - - - + + + method CREATE_XL_DRAWINGS. @@ -1235,9 +1235,9 @@ endmethod. endmethod. - - - + + + method CREATE_XL_DRAWINGS_RELS. ** Constant node name @@ -1322,8 +1322,8 @@ endmethod. endmethod. - - + + method CREATE_XL_RELATIONSHIPS. @@ -1471,8 +1471,8 @@ endmethod. endmethod. - - + + method CREATE_XL_SHAREDSTRINGS. @@ -1589,10 +1589,10 @@ endmethod. endmethod. - - - - + + + + METHOD create_xl_sheet. ** Constant node name @@ -2406,9 +2406,11 @@ endmethod. lv_value = lo_data_validation->type. lo_element_2->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). - lv_value = lo_data_validation->operator. - lo_element_2->set_attribute_ns( name = lc_xml_attr_operator - value = lv_value ). + IF NOT lo_data_validation->operator IS INITIAL. + lv_value = lo_data_validation->operator. + lo_element_2->set_attribute_ns( name = lc_xml_attr_operator + value = lv_value ). + ENDIF. IF lo_data_validation->allowblank EQ abap_true. lv_value = '1'. ELSE. @@ -2758,10 +2760,10 @@ endmethod. ENDMETHOD. - - - - + + + + method CREATE_XL_SHEET_RELS. @@ -2904,8 +2906,8 @@ ENDMETHOD. endmethod. - - + + method CREATE_XL_STYLES. @@ -3640,9 +3642,9 @@ endmethod. endmethod. - - - + + + method CREATE_XL_TABLE. DATA: lc_xml_node_table TYPE string VALUE 'table', @@ -3812,8 +3814,8 @@ endmethod. endmethod. - - + + method CREATE_XL_THEME. @@ -3902,8 +3904,8 @@ endmethod. endmethod. - - + + method CREATE_XL_WORKBOOK. @@ -4126,9 +4128,9 @@ endmethod. endmethod. - - - + + + method FLAG2BOOL. @@ -4140,9 +4142,9 @@ endmethod. endmethod. - - - + + + method GET_SHARED_STRING_INDEX.