class ZCL_EXCEL_STYLE_FONT definition
public
final
create public .
public section.
*"* public components of class ZCL_EXCEL_STYLE_FONT
*"* do not include other source files here!!!
type-pools ABAP .
data BOLD type FLAG .
data COLOR type ZEXCEL_S_STYLE_COLOR .
constants C_SCHEME_MAJOR type ZEXCEL_STYLE_FONT_SCHEME value 'major'. "#EC NOTEXT
constants C_SCHEME_MINOR type ZEXCEL_STYLE_FONT_SCHEME value 'minor'. "#EC NOTEXT
constants C_UNDERLINE_DOUBLE type CHAR20 value 'double'. "#EC NOTEXT
constants C_UNDERLINE_DOUBLEACCOUNTING type CHAR20 value 'doubleAccounting'. "#EC NOTEXT
constants C_UNDERLINE_NONE type CHAR20 value 'none'. "#EC NOTEXT
constants C_UNDERLINE_SINGLE type CHAR20 value 'single'. "#EC NOTEXT
constants C_UNDERLINE_SINGLEACCOUNTING type CHAR20 value 'singleAccounting'. "#EC NOTEXT
data FAMILY type INT1 value 2. "#EC NOTEXT .
data ITALIC type FLAG .
data NAME type CHAR255 value 'Calibri'. "#EC NOTEXT .
data SCHEME type ZEXCEL_STYLE_FONT_SCHEME .
data SIZE type INT1 value 11. "#EC NOTEXT .
data STRIKETHROUGH type FLAG .
data UNDERLINE type FLAG .
data UNDERLINE_MODE type CHAR20 .
methods CONSTRUCTOR .
methods GET_STRUCTURE
returning
value(ES_FONT) type ZEXCEL_S_STYLE_FONT .*"* protected components of class ZCL_EXCEL_STYLE_FONT
*"* do not include other source files here!!!
protected section.*"* private components of class ZCL_EXCEL_STYLE_FONT
*"* do not include other source files here!!!
private section.*"* 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.
me->color-rgb = zcl_excel_style_color=>c_black.
me->color-theme = zcl_excel_style_color=>c_theme_not_set.
me->color-indexed = zcl_excel_style_color=>c_indexed_not_set.
me->scheme = zcl_excel_style_font=>c_scheme_minor.
me->underline_mode = zcl_excel_style_font=>c_underline_single.
endmethod.method GET_STRUCTURE.
es_font-bold = me->bold.
es_font-italic = me->italic.
es_font-underline = me->underline.
es_font-underline_mode = me->underline_mode.
es_font-strikethrough = me->strikethrough.
es_font-size = me->size.
es_font-color = me->color.
es_font-name = me->name.
es_font-family = me->family.
es_font-scheme = me->scheme.
endmethod.