class ZCL_EXCEL_WORKSHEET_ROWDIMENSI definition public final create public . *"* public components of class ZCL_EXCEL_WORKSHEET_ROWDIMENSI *"* do not include other source files here!!! public section. type-pools ABAP . methods CONSTRUCTOR importing !IP_INDEX type INT4 default 0 . methods GET_OUTLINE_LEVEL returning value(R_OUTLINE_LEVEL) type INT4 . methods GET_XF_INDEX returning value(R_XF_INDEX) type INT4 . methods GET_ROW_INDEX returning value(R_ROW_INDEX) type INT4 . methods SET_OUTLINE_LEVEL importing !IP_OUTLINE_LEVEL type INT4 raising ZCX_EXCEL . methods SET_ROW_INDEX importing !IP_INDEX type INT4 . methods SET_XF_INDEX importing !IP_XF_INDEX type INT4 . methods GET_ROW_HEIGHT returning value(R_ROW_HEIGHT) type FLOAT . methods SET_ROW_HEIGHT importing !IP_ROW_HEIGHT type SIMPLE raising ZCX_EXCEL . methods GET_COLLAPSED returning value(R_COLLAPSED) type BOOLEAN . methods GET_VISIBLE returning value(R_VISIBLE) type BOOLEAN . methods SET_COLLAPSED importing !IP_COLLAPSED type BOOLEAN . methods SET_VISIBLE importing !IP_VISIBLE type BOOLEAN . *"* protected components of class ZCL_EXCEL_WORKSHEET_ROWDIMENSI *"* do not include other source files here!!! protected section. *"* private components of class ZCL_EXCEL_WORKSHEET_ROWDIMENSI *"* do not include other source files here!!! private section. data ROW_INDEX type INT4 . data ROW_HEIGHT type FLOAT . data VISIBLE type BOOLEAN . data OUTLINE_LEVEL type INT4 value 0. "#EC NOTEXT . data COLLAPSED type BOOLEAN . data XF_INDEX type INT4 . *"* local class implementation for public class *"* use this source file for the implementation part of *"* local helper classes *"* use this source file for any type declarations (class *"* definitions, interfaces or data types) you need for method *"* implementation or private method's signature *"* use this source file for any macro definitions you need *"* in the implementation part of the class ABAP method CONSTRUCTOR. " Initialise values me->row_index = ip_index. me->row_height = -1. me->visible = abap_true. me->outline_level = 0. me->collapsed = abap_false. " set row dimension as unformatted by default me->xf_index = 0. endmethod. method GET_COLLAPSED. r_collapsed = me->collapsed. endmethod. method GET_OUTLINE_LEVEL. r_outline_level = me->outline_level. endmethod. method GET_ROW_HEIGHT. r_row_height = me->row_height. endmethod. method GET_ROW_INDEX. r_row_index = me->row_index. endmethod. method GET_VISIBLE. r_visible = me->visible. endmethod. method GET_XF_INDEX. r_xf_index = me->xf_index. endmethod. method SET_COLLAPSED. me->collapsed = ip_collapsed. endmethod. method SET_OUTLINE_LEVEL. IF ip_outline_level < 0 OR ip_outline_level > 7. RAISE EXCEPTION TYPE zcx_excel EXPORTING error = 'Outline level must range between 0 and 7.'. ENDIF. me->outline_level = ip_outline_level. endmethod. METHOD set_row_height. TRY. me->row_height = ip_row_height. CATCH cx_sy_conversion_no_number. RAISE EXCEPTION TYPE zcx_excel EXPORTING error = 'Unable to interpret ip_row_height as number'. ENDTRY. ENDMETHOD. method SET_ROW_INDEX. me->row_index = ip_index. endmethod. method SET_VISIBLE. me->visible = ip_visible. endmethod. method SET_XF_INDEX. me->XF_INDEX = ip_XF_INDEX. endmethod.