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_ROW_INDEX
returning
value(R_ROW_INDEX) type INT4 .
methods GET_XF_INDEX
returning
value(R_XF_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 FLOAT .
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 classABAPMETHOD 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.
me->row_height = ip_row_height.
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.