# Class: makePptx

## lib/genpptx~ makePptx

#### new makePptx(genobj, new_type, options, gen_private, type_info)

lib/genpptx.js, line 61
  Extend officegen object with PPTX/PPSX support. This method extending the given officegen object to create PPTX/PPSX document.

  Name | Type | Description
  --- | --- | ---
  `genobj` | object | The object to extend.
  `new_type` | string | The type of object to create.
  `options` | object | The object's options.
  `gen_private` | object | Access to the internals of this object.
  `type_info` | object | Additional information about this type.

### Members

#### innerpptWidth

  Convert shape name to shape information. This method convert the shape information reseived from the user to the real shape information object.

### Methods

#### innercbGenerateEffects(effectData, effectName)

lib/genpptx.js, line 621
  Create the XML code of a single effect. This method creating the effect XML code for a single object.

  Name | Type | Description
  --- | --- | ---
  `effectData` | object | Effect data.
  `effectName` | string | The name of the effect.

#### innercbMakeCharts(chartInfo)

lib/genpptx.js, line 1229
  Create XML string for a chart description

  Name | Type | Description
  --- | --- | ---
  `chartInfo` | object |

  ##### Returns:

  Text Xml string.

#### innercbMakePptxApp(data)

lib/genpptx.js, line 1210
  Generate the extended attributes file (app) for PPTX/PPSX documents.

  Name | Type | Description
  --- | --- | ---
  `data` | object | Ignored by this callback function.

  ##### Returns:

  Text string.

#### innercbMakePptxLayout(data)

lib/genpptx.js, line 183
  Create the 'slideLayout1.xml' resource.

  Name | Type | Description
  --- | --- | ---
  `data` | object | Ignored by this callback function.

  ##### Returns:

  Text string.

#### innercbMakePptxPresentation(data)

lib/genpptx.js, line 195
  Create the main presentation resource. This resource is the main resource of any PowerPoint document.

  Name | Type | Description
  --- | --- | ---
  `data` | object | Ignored by this callback function.

  ##### Returns:

  Text string.

#### innercbMakePptxPresProps(data)

lib/genpptx.js, line 139
  Create the 'presProps.xml' resource.

  Name | Type | Description
  --- | --- | ---
  `data` | object | Ignored by this callback function.

  ##### Returns:

  Text string.

#### innercbMakePptxSlide(data)

lib/genpptx.js, line 741
  Generate a slider resource. This function generating a slider XML resource.

  Name | Type | Description
  --- | --- | ---
  `data` | object | The main slide object.

  ##### Returns:

  Text string.

#### innercbMakePptxSlideMasters(data)

lib/genpptx.js, line 229
  Create the slides masters resource.

  Name | Type | Description
  --- | --- | ---
  `data` | object | Ignored by this callback function.

  ##### Returns:

  Text string.

#### innercbMakePptxStyles(data)

lib/genpptx.js, line 163
  Create the 'tableStyles.xml' resource.

  Name | Type | Description
  --- | --- | ---
  `data` | object | Ignored by this callback function.

  ##### Returns:

  Text string.

#### innercbMakePptxViewProps(data)

lib/genpptx.js, line 173
  Create the 'viewProps.xml' resource.

  Name | Type | Description
  --- | --- | ---
  `data` | object | Ignored by this callback function.

  ##### Returns:

  Text string.

#### innercbPreparePptxToGenerate()

lib/genpptx.js, line 127
  Prepare everything to generate PPTX files. This method checking for extra resources needed to add by the generator engine.

#### innercMakePptxColorSelection(color_info, back_info)

lib/genpptx.js, line 239
  Generate the XML code to describe colors.

  Name | Type | Description
  --- | --- | ---
  `color_info` | object | Foreground color information.
  `back_info` | object | Background color information.

#### innercMakePptxOutTextCommand(text_info, text_string, slide_obj, slide_num)

lib/genpptx.js, line 496
  Create a text object for adding into a slide.

  Name | Type | Description
  --- | --- | ---
  `text_info` | object | Information how to display the text.
  `text_string` | object | The text string or requested field.
  `slide_obj` | object | The object of this slider.
  `slide_num` | object | Current slide number.

  ##### Returns:

  The PPTX code.

#### innercMakePptxOutTextData(text_info, slide_obj)

lib/genpptx.js, line 421
  ???.

  Name | Type | Description
  --- | --- | ---
  `text_info` | object | Information how to display the text.
  `slide_obj` | object | The object of this slider.

  ##### Returns:

  Text string.

#### innercreateBodyProperties()

lib/genpptx.js, line 678
  Create the body properties code for text. This method creating the XML code of the body properties of a text.

  ##### Returns:

  The body properties XML code.

#### innerCreateFieldText(field_name, slide_num)

lib/genpptx.js, line 295
  Translate field_name into the text real value. This method creating the text to display for the given field.

  Name | Type | Description
  --- | --- | ---
  `field_name` | string | the name of the field.
  `slide_num` | number | current slide number.

  ##### Returns:

  The text string data.

#### innerparseSmartNumber(in_data_val, max_value, def_value, auto_val, mul_val)

lib/genpptx.js, line 564
  ???.

  Name | Type | Description
  --- | --- | ---
  `in_data_val` | object | Input value as passed by the user.
  `max_value` | number | Maximum value allowed.
  `def_value` | number | Default value.
  `auto_val` | number | ???.
  `mul_val` | number | ???.

  ##### Returns:

  ???.