Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace IXML with SXML (for Cloud) #1188

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions abap_transpile.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"src/zcl_excel_a",
"src/zcl_excel_c",
"src/zcl_excel_d",
"src/xml/*",
"src/zcl_excel_fill_template",
"src/zcl_excel_font TODO, missing TDFONTSIZE",
"src/zcl_excel_g",
Expand Down
52 changes: 52 additions & 0 deletions src/not_cloud/zcl_excel_ixml.clas.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
CLASS zcl_excel_ixml DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .

PUBLIC SECTION.

INTERFACES zif_excel_xml.

CLASS-METHODS create
RETURNING
VALUE(rval) TYPE REF TO zif_excel_xml.

PROTECTED SECTION.
PRIVATE SECTION.
CLASS-DATA singleton TYPE REF TO zif_excel_xml.
ENDCLASS.



CLASS zcl_excel_ixml IMPLEMENTATION.
METHOD create.
IF singleton IS NOT BOUND.
singleton = lcl_wrap_ixml=>get_singleton( ).
ENDIF.
rval = singleton.
ENDMETHOD.

METHOD zif_excel_xml~create_document.
rval = singleton->create_document( ).
ENDMETHOD.

METHOD zif_excel_xml~create_encoding.
rval = singleton->create_encoding( byte_order = byte_order
character_set = character_set ).
ENDMETHOD.

METHOD zif_excel_xml~create_parser.
rval = singleton->create_parser( document = document
istream = istream
stream_factory = stream_factory ).
ENDMETHOD.

METHOD zif_excel_xml~create_renderer.
rval = singleton->create_renderer( document = document
ostream = ostream ).
ENDMETHOD.

METHOD zif_excel_xml~create_stream_factory.
rval = singleton->create_stream_factory( ).
ENDMETHOD.
ENDCLASS.