Class: makePptx

makePptx

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

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)

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)

Create XML string for a chart description
Name Type Description
chartInfo object
Returns:
Text Xml string.

innercbMakePptxApp(data)

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)

Create the 'slideLayout1.xml' resource.
Name Type Description
data object Ignored by this callback function.
Returns:
Text string.

innercbMakePptxPresentation(data)

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)

Create the 'presProps.xml' resource.
Name Type Description
data object Ignored by this callback function.
Returns:
Text string.

innercbMakePptxSlide(data)

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)

Create the slides masters resource.
Name Type Description
data object Ignored by this callback function.
Returns:
Text string.

innercbMakePptxStyles(data)

Create the 'tableStyles.xml' resource.
Name Type Description
data object Ignored by this callback function.
Returns:
Text string.

innercbMakePptxViewProps(data)

Create the 'viewProps.xml' resource.
Name Type Description
data object Ignored by this callback function.
Returns:
Text string.

innercbPreparePptxToGenerate()

Prepare everything to generate PPTX files. This method checking for extra resources needed to add by the generator engine.

innercMakePptxColorSelection(color_info, back_info)

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)

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)

???.
Name Type Description
text_info object Information how to display the text.
slide_obj object The object of this slider.
Returns:
Text string.

innercreateBodyProperties()

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)

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)

???.
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:
???.