Replace pass by value with reference (#1037)

* Replace pass by value with reference

#1013

---------

Co-authored-by: Lars Hvam <larshp@hotmail.com>
Co-authored-by: Gregor Wolf <gregor.wolf@gmail.com>
Co-authored-by: Abo <andrea@borgia.bo.it>
Co-authored-by: Domi Bigl <dominik.bigl@cadaxo.com>
This commit is contained in:
pksingh78 2025-02-22 21:29:14 +05:30 committed by GitHub
parent a1af09f064
commit ca6fda29ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 48 additions and 47 deletions

View File

@ -24,10 +24,10 @@ CLASS zcl_excel_theme DEFINITION
VALUE(rv_xstring) TYPE xstring .
METHODS set_color
IMPORTING
VALUE(iv_type) TYPE string
VALUE(iv_srgb) TYPE zcl_excel_theme_color_scheme=>t_srgb OPTIONAL
VALUE(iv_syscolorname) TYPE string OPTIONAL
VALUE(iv_syscolorlast) TYPE zcl_excel_theme_color_scheme=>t_srgb OPTIONAL .
iv_type TYPE string
iv_srgb TYPE zcl_excel_theme_color_scheme=>t_srgb OPTIONAL
iv_syscolorname TYPE string OPTIONAL
iv_syscolorlast TYPE zcl_excel_theme_color_scheme=>t_srgb OPTIONAL .
METHODS set_color_scheme_name
IMPORTING
iv_name TYPE string .
@ -38,31 +38,31 @@ CLASS zcl_excel_theme DEFINITION
iv_typeface TYPE string .
METHODS set_latin_font
IMPORTING
VALUE(iv_type) TYPE string
VALUE(iv_typeface) TYPE string
VALUE(iv_panose) TYPE string OPTIONAL
VALUE(iv_pitchfamily) TYPE string OPTIONAL
VALUE(iv_charset) TYPE string OPTIONAL .
iv_type TYPE string
iv_typeface TYPE string
iv_panose TYPE string OPTIONAL
iv_pitchfamily TYPE string OPTIONAL
iv_charset TYPE string OPTIONAL .
METHODS set_ea_font
IMPORTING
VALUE(iv_type) TYPE string
VALUE(iv_typeface) TYPE string
VALUE(iv_panose) TYPE string OPTIONAL
VALUE(iv_pitchfamily) TYPE string OPTIONAL
VALUE(iv_charset) TYPE string OPTIONAL .
iv_type TYPE string
iv_typeface TYPE string
iv_panose TYPE string OPTIONAL
iv_pitchfamily TYPE string OPTIONAL
iv_charset TYPE string OPTIONAL .
METHODS set_cs_font
IMPORTING
VALUE(iv_type) TYPE string
VALUE(iv_typeface) TYPE string
VALUE(iv_panose) TYPE string OPTIONAL
VALUE(iv_pitchfamily) TYPE string OPTIONAL
VALUE(iv_charset) TYPE string OPTIONAL .
iv_type TYPE string
iv_typeface TYPE string
iv_panose TYPE string OPTIONAL
iv_pitchfamily TYPE string OPTIONAL
iv_charset TYPE string OPTIONAL .
METHODS set_font_scheme_name
IMPORTING
VALUE(iv_name) TYPE string .
iv_name TYPE string .
METHODS set_theme_name
IMPORTING
VALUE(iv_name) TYPE string .
iv_name TYPE string .
PROTECTED SECTION.
DATA elements TYPE REF TO zcl_excel_theme_elements .

View File

@ -54,7 +54,7 @@ CLASS zcl_excel_theme_color_scheme DEFINITION
METHODS constructor .
METHODS set_name
IMPORTING
VALUE(iv_name) TYPE string .
iv_name TYPE string .
PROTECTED SECTION.
DATA name TYPE string .

View File

@ -58,41 +58,41 @@ CLASS zcl_excel_theme_font_scheme DEFINITION
!io_document TYPE REF TO if_ixml_document .
METHODS modify_font
IMPORTING
VALUE(iv_type) TYPE string
VALUE(iv_script) TYPE string
VALUE(iv_typeface) TYPE string .
iv_type TYPE string
iv_script TYPE string
iv_typeface TYPE string .
METHODS modify_latin_font
IMPORTING
VALUE(iv_type) TYPE string
VALUE(iv_typeface) TYPE string
VALUE(iv_panose) TYPE string OPTIONAL
VALUE(iv_pitchfamily) TYPE string OPTIONAL
VALUE(iv_charset) TYPE string OPTIONAL .
iv_type TYPE string
iv_typeface TYPE string
iv_panose TYPE string OPTIONAL
iv_pitchfamily TYPE string OPTIONAL
iv_charset TYPE string OPTIONAL .
METHODS modify_ea_font
IMPORTING
VALUE(iv_type) TYPE string
VALUE(iv_typeface) TYPE string
VALUE(iv_panose) TYPE string OPTIONAL
VALUE(iv_pitchfamily) TYPE string OPTIONAL
VALUE(iv_charset) TYPE string OPTIONAL .
iv_type TYPE string
iv_typeface TYPE string
iv_panose TYPE string OPTIONAL
iv_pitchfamily TYPE string OPTIONAL
iv_charset TYPE string OPTIONAL .
METHODS modify_cs_font
IMPORTING
VALUE(iv_type) TYPE string
VALUE(iv_typeface) TYPE string
VALUE(iv_panose) TYPE string OPTIONAL
VALUE(iv_pitchfamily) TYPE string OPTIONAL
VALUE(iv_charset) TYPE string OPTIONAL .
iv_type TYPE string
iv_typeface TYPE string
iv_panose TYPE string OPTIONAL
iv_pitchfamily TYPE string OPTIONAL
iv_charset TYPE string OPTIONAL .
METHODS constructor .
PROTECTED SECTION.
METHODS modify_lec_fonts
IMPORTING
VALUE(iv_type) TYPE string
VALUE(iv_font_type) TYPE string
VALUE(iv_typeface) TYPE string
VALUE(iv_panose) TYPE string OPTIONAL
VALUE(iv_pitchfamily) TYPE string OPTIONAL
VALUE(iv_charset) TYPE string OPTIONAL .
iv_type TYPE string
iv_font_type TYPE string
iv_typeface TYPE string
iv_panose TYPE string OPTIONAL
iv_pitchfamily TYPE string OPTIONAL
iv_charset TYPE string OPTIONAL .
PRIVATE SECTION.
DATA font_scheme TYPE t_scheme .

View File

@ -74,7 +74,8 @@ CLASS zcl_excel_worksheet DEFINITION
col_to TYPE i,
END OF mty_merge .
TYPES:
mty_ts_merge TYPE SORTED TABLE OF mty_merge WITH UNIQUE KEY table_line .
mty_ts_merge TYPE SORTED TABLE OF mty_merge WITH UNIQUE KEY table_line.
TYPES:
ty_area TYPE c LENGTH 1 .