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:
RixarSAP 2024-05-02 11:12:55 +02:00 committed by GitHub
parent d16af94064
commit 618471e3e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.