class ZCL_EXCEL_WORKSHEET_COLUMNDIME definition public final create public . *"* public components of class ZCL_EXCEL_WORKSHEET_COLUMNDIME *"* do not include other source files here!!! public section. type-pools ABAP . methods CONSTRUCTOR importing !IP_INDEX type ZEXCEL_CELL_COLUMN_ALPHA . methods GET_AUTO_SIZE returning value(R_AUTO_SIZE) type ABAP_BOOL . methods GET_COLLAPSED returning value(R_COLLAPSED) type ABAP_BOOL . methods GET_COLUMN_INDEX returning value(R_COLUMN_INDEX) type INT4 . methods GET_OUTLINE_LEVEL returning value(R_OUTLINE_LEVEL) type INT4 . methods GET_VISIBLE returning value(R_VISIBLE) type ABAP_BOOL . methods GET_WIDTH returning value(R_WIDTH) type FLOAT . methods GET_XF_INDEX returning value(R_XF_INDEX) type INT4 . methods SET_AUTO_SIZE importing !IP_AUTO_SIZE type ABAP_BOOL returning value(R_WORKSHEET_COLUMNDIME) type ref to ZCL_EXCEL_WORKSHEET_COLUMNDIME . methods SET_COLLAPSED importing !IP_COLLAPSED type ABAP_BOOL returning value(R_WORKSHEET_COLUMNDIME) type ref to ZCL_EXCEL_WORKSHEET_COLUMNDIME . methods SET_COLUMN_INDEX importing !IP_INDEX type ZEXCEL_CELL_COLUMN_ALPHA returning value(R_WORKSHEET_COLUMNDIME) type ref to ZCL_EXCEL_WORKSHEET_COLUMNDIME . methods SET_OUTLINE_LEVEL importing !IP_OUTLINE_LEVEL type INT4 . methods SET_VISIBLE importing !IP_VISIBLE type ABAP_BOOL returning value(R_WORKSHEET_COLUMNDIME) type ref to ZCL_EXCEL_WORKSHEET_COLUMNDIME . methods SET_WIDTH importing !IP_WIDTH type SIMPLE returning value(R_WORKSHEET_COLUMNDIME) type ref to ZCL_EXCEL_WORKSHEET_COLUMNDIME raising ZCX_EXCEL . methods SET_XF_INDEX importing !IP_XF_INDEX type INT4 returning value(R_WORKSHEET_COLUMNDIME) type ref to ZCL_EXCEL_WORKSHEET_COLUMNDIME . *"* protected components of class ZCL_EXCEL_WORKSHEET_COLUMNDIME *"* do not include other source files here!!! protected section. *"* private components of class ZCL_EXCEL_WORKSHEET_COLUMNDIME *"* do not include other source files here!!! private section. data COLUMN_INDEX type INT4 . data WIDTH type FLOAT . type-pools ABAP . data AUTO_SIZE type ABAP_BOOL . data VISIBLE type ABAP_BOOL . data OUTLINE_LEVEL type INT4 . data COLLAPSED type ABAP_BOOL . 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. me->column_index = zcl_excel_common=>convert_column2int( ip_index ). me->width = -1. me->auto_size = abap_false. me->visible = abap_true. me->outline_level = 0. me->collapsed = abap_false. " set default index to cellXf me->xf_index = 0. endmethod. method GET_AUTO_SIZE. r_auto_size = me->auto_size. endmethod. method GET_COLLAPSED. r_Collapsed = me->Collapsed. endmethod. method GET_COLUMN_INDEX. r_column_index = me->column_index. endmethod. method GET_OUTLINE_LEVEL. r_outline_level = me->outline_level. endmethod. method GET_VISIBLE. r_Visible = me->Visible. endmethod. method GET_WIDTH. r_WIDTH = me->WIDTH. endmethod. method GET_XF_INDEX. r_xf_index = me->xf_index. endmethod. method SET_AUTO_SIZE. me->auto_size = ip_auto_size. r_worksheet_columndime = me. endmethod. method SET_COLLAPSED. me->Collapsed = ip_Collapsed. r_worksheet_columndime = me. endmethod. method SET_COLUMN_INDEX. me->column_index = zcl_excel_common=>convert_column2int( ip_index ). r_worksheet_columndime = me. endmethod. method SET_OUTLINE_LEVEL. me->outline_level = ip_outline_level. endmethod. method SET_VISIBLE. me->Visible = ip_Visible. r_worksheet_columndime = me. endmethod. METHOD set_width. TRY. me->width = ip_width. r_worksheet_columndime = me. 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_XF_INDEX. me->XF_INDEX = ip_XF_INDEX. r_worksheet_columndime = me. endmethod.