mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 16:46:11 +08:00
Update zcl_excel_comment.clas.abap: Add SIZE to comments
New Methods SET_SIZE and GET_SIZE. New attributes: WIDHT, HEIGHT, DEFAULT_WIDTH, DEFAULT_HEIGHT The size of the comments will be read in class ZCL_EXCEL_WRITER_2007, method CREATE_XL_DRAWING_FOR_COMMENTS
This commit is contained in:
parent
d16af94064
commit
618471e3e7
|
@ -81,4 +81,33 @@ CLASS zcl_excel_comment IMPLEMENTATION.
|
||||||
me->ref = ip_ref.
|
me->ref = ip_ref.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
METHOD set_size.
|
||||||
|
|
||||||
|
IF ip_width IS SUPPLIED.
|
||||||
|
width = ip_width.
|
||||||
|
ENDIF.
|
||||||
|
|
||||||
|
IF ip_height IS SUPPLIED.
|
||||||
|
height = ip_height.
|
||||||
|
ENDIF.
|
||||||
|
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
|
method GET_SIZE.
|
||||||
|
|
||||||
|
IF width IS NOT INITIAL.
|
||||||
|
ep_width = width.
|
||||||
|
ELSE.
|
||||||
|
ep_width = default_width. "Default width
|
||||||
|
ENDIF.
|
||||||
|
|
||||||
|
IF height IS NOT INITIAL.
|
||||||
|
ep_height = height.
|
||||||
|
ELSE.
|
||||||
|
ep_height = default_height. "Default height
|
||||||
|
ENDIF.
|
||||||
|
|
||||||
|
endmethod.
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user