All files / output cl_dd_document.clas.mjs

32.63% Statements 31/95
100% Branches 2/2
3.44% Functions 1/29
32.63% Lines 31/95

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 951x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                                   1x                     1x         1x               1x         1x     1x                   1x         1x         1x       1x 1x 1x
const {cl_dd_area} = await import("./cl_dd_area.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_dd_document.clas.abap
class cl_dd_document extends cl_dd_area {
  static STATIC_SUPER = cl_dd_area;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_DD_DOCUMENT';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"HTML_CONTROL": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_HTML_VIEWER", RTTIName: "\\CLASS=CL_GUI_HTML_VIEWER"});}, "visibility": "U", "is_constant": " ", "is_class": " "}};
  static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {"STYLE": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"sdydo_attribute"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "BACKGROUND_COLOR": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "BDS_STYLESHEET": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "NO_MARGINS": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "ADD_PICTURE": {"visibility": "U", "parameters": {"PICTURE_ID": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "WIDTH": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "DISPLAY_DOCUMENT": {"visibility": "U", "parameters": {"REUSE_CONTROL": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "REUSE_REGISTRATION": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "CONTAINER": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "PARENT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});}, "is_optional": " ", "parm_kind": "I", "type_name": "ObjectReferenceType"}}},
  "SET_DOCUMENT_BACKGROUND": {"visibility": "U", "parameters": {"PICTURE_ID": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "NEW_LINE": {"visibility": "U", "parameters": {"REPEAT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "MERGE_DOCUMENT": {"visibility": "U", "parameters": {}},
  "INITIALIZE_DOCUMENT": {"visibility": "U", "parameters": {"BACKGROUND_COLOR": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "VERTICAL_SPLIT": {"visibility": "U", "parameters": {"SPLIT_AREA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_DD_AREA", RTTIName: "\\CLASS=CL_DD_AREA"});}, "is_optional": " ", "parm_kind": "I", "type_name": "ObjectReferenceType"}, "SPLIT_WIDTH": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "RIGHT_AREA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_DD_AREA", RTTIName: "\\CLASS=CL_DD_AREA"});}, "is_optional": " ", "parm_kind": "E", "type_name": "ObjectReferenceType"}}},
  "PRINT_DOCUMENT": {"visibility": "U", "parameters": {"REUSE_CONTROL": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"sdydo_flag"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}}};
  constructor() {
    const sup = super();
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "SUPER": sup.FRIENDS_ACCESS_INSTANCE,
      "add_picture": this.add_picture.bind(this),
      "display_document": this.display_document.bind(this),
      "set_document_background": this.set_document_background.bind(this),
      "new_line": this.new_line.bind(this),
      "merge_document": this.merge_document.bind(this),
      "initialize_document": this.initialize_document.bind(this),
      "vertical_split": this.vertical_split.bind(this),
      "print_document": this.print_document.bind(this),
    };
    this.html_control = new abap.types.ABAPObject({qualifiedName: "CL_GUI_HTML_VIEWER", RTTIName: "\\CLASS=CL_GUI_HTML_VIEWER"});
  }
  async constructor_(INPUT) {
    let style = new abap.types.Character(50, {"qualifiedName":"sdydo_attribute"});
    if (INPUT && INPUT.style) {style.set(INPUT.style);}
    let background_color = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.background_color) {background_color.set(INPUT.background_color);}
    let bds_stylesheet = INPUT?.bds_stylesheet || new abap.types.Character(4);
    let no_margins = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.no_margins) {no_margins.set(INPUT.no_margins);}
    return this;
    return this;
  }
  async print_document(INPUT) {
    let reuse_control = new abap.types.Character(1, {"qualifiedName":"sdydo_flag"});
    if (INPUT && INPUT.reuse_control) {reuse_control.set(INPUT.reuse_control);}
    return;
  }
  async vertical_split(INPUT) {
    let split_area = INPUT?.split_area;
    if (split_area?.getQualifiedName === undefined || split_area.getQualifiedName() !== "CL_DD_AREA") { split_area = undefined; }
    if (split_area === undefined) { split_area = new abap.types.ABAPObject({qualifiedName: "CL_DD_AREA", RTTIName: "\\CLASS=CL_DD_AREA"}).set(INPUT.split_area); }
    let split_width = INPUT?.split_width || new abap.types.Character();
    let right_area = INPUT?.right_area || new abap.types.ABAPObject({qualifiedName: "CL_DD_AREA", RTTIName: "\\CLASS=CL_DD_AREA"});
    return;
  }
  async initialize_document(INPUT) {
    let background_color = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.background_color) {background_color.set(INPUT.background_color);}
    return;
  }
  async merge_document() {
    return;
  }
  async display_document(INPUT) {
    let reuse_control = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.reuse_control) {reuse_control.set(INPUT.reuse_control);}
    let reuse_registration = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.reuse_registration) {reuse_registration.set(INPUT.reuse_registration);}
    let container = INPUT?.container || new abap.types.Character();
    let parent = new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});
    if (INPUT && INPUT.parent) {parent.set(INPUT.parent);}
    return;
  }
  async add_picture(INPUT) {
    let picture_id = INPUT?.picture_id;
    let width = INPUT?.width || new abap.types.Character(4);
    return;
  }
  async new_line(INPUT) {
    let repeat = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.repeat) {repeat.set(INPUT.repeat);}
    return;
  }
  async set_document_background(INPUT) {
    let picture_id = INPUT?.picture_id || new abap.types.Character(4);
    return;
  }
}
abap.Classes['CL_DD_DOCUMENT'] = cl_dd_document;
export {cl_dd_document};