class ZCL_EXCEL_STYLE_BORDERS definition public final create public . *"* public components of class ZCL_EXCEL_STYLE_BORDERS *"* do not include other source files here!!! public section. data LEFT type ref to ZCL_EXCEL_STYLE_BORDER . data RIGHT type ref to ZCL_EXCEL_STYLE_BORDER . data TOP type ref to ZCL_EXCEL_STYLE_BORDER . data DOWN type ref to ZCL_EXCEL_STYLE_BORDER . data DIAGONAL type ref to ZCL_EXCEL_STYLE_BORDER . data ALLBORDERS type ref to ZCL_EXCEL_STYLE_BORDER . methods CONSTRUCTOR . methods GET_STRUCTURE returning value(ES_FILL) type ZEXCEL_S_STYLE_BORDER . *"* protected components of class ZABAP_EXCEL_STYLE_FONT *"* do not include other source files here!!! protected section. *"* private components of class ZCL_EXCEL_STYLE_BORDERS *"* do not include other source files here!!! private section. constants C_DIAGONAL_NONE type ZEXCEL_DIAGONAL value 0. "#EC NOTEXT constants C_DIAGONAL_UP type ZEXCEL_DIAGONAL value 1. "#EC NOTEXT constants C_DIAGONAL_DOWN type ZEXCEL_DIAGONAL value 2. "#EC NOTEXT constants C_DIAGONAL_BOTH type ZEXCEL_DIAGONAL value 3. "#EC NOTEXT *"* 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 method CONSTRUCTOR. endmethod. method GET_STRUCTURE. * Check if all borders is set otherwise check single border IF me->allborders IS BOUND. es_fill-left_color = me->allborders->border_color. es_fill-left_style = me->allborders->border_style. es_fill-right_color = me->allborders->border_color. es_fill-right_style = me->allborders->border_style. es_fill-top_color = me->allborders->border_color. es_fill-top_style = me->allborders->border_style. es_fill-bottom_color = me->allborders->border_color. es_fill-bottom_style = me->allborders->border_style. ELSE. IF me->left IS BOUND. es_fill-left_color = me->left->border_color. es_fill-left_style = me->left->border_style. ENDIF. IF me->right IS BOUND. es_fill-right_color = me->right->border_color. es_fill-right_style = me->right->border_style. ENDIF. IF me->top IS BOUND. es_fill-top_color = me->top->border_color. es_fill-top_style = me->top->border_style. ENDIF. IF me->down IS BOUND. es_fill-bottom_color = me->down->border_color. es_fill-bottom_style = me->down->border_style. ENDIF. ENDIF. * Check if diagonal is set IF me->diagonal IS BOUND. es_fill-diagonal_color = me->diagonal->border_color. es_fill-diagonal_style = me->diagonal->border_style. ENDIF. endmethod.