| AddPicture |
Description: Adds a text box shape to the current slide
Syntax: newshapeno„'obj' Œwi 'AddPicture'filename top left height width linktofile savewithdoc
filename: a complete .BMP file name
top,left,height,width: coordinates in twips
linktofile: 1=should be linked to the file from which it was created, 0=otherwise(default)
savewithdoc: 1=save bitmap with doc(default), 0=don't
Example:
'pp' Œwi 'AddPicture' 'c:\microsoft office\clipart\music.bmp'100 100 70 70 |
| AddPresentation |
Description: Create a new Presentation
Syntax: 'obj' Œwi 'AddPresentation' {visible}
visible: boolean scalar (1=created with a visible window, 0=not visible)
Example:
'pp' Œwi 'AddPresentation'1 |
| AddSlide |
Description: Appends a new slide at the end of the Active Presentation
Syntax: 'obj' Œwi 'AddSlide'index layout{title}
index: 1 to insert slide before 1st slide
title: optional slide title
layout: one of:
12 (ppLayoutBlank)
8 (ppLayoutChart)
6 (ppLayoutChartAndText)
10 (ppLayoutClipartAndText)
26 (ppLayoutClipArtAndVerticalText)
24 (ppLayoutFourObjects)
15 (ppLayoutLargeObject)
18 (ppLayoutMediaClipAndText)
16 (ppLayoutObject)
14 (ppLayoutObjectAndText)
19 (ppLayoutObjectOverText)
7 (ppLayoutOrgchart)
4 (ppLayoutTable)
2 (ppLayoutText)
5 (ppLayoutTextAndChart)
9 (ppLayoutTextAndClipart)
17 (ppLayoutTextAndMediaClip)
13 (ppLayoutTextAndObject)
21 (ppLayoutTextAndTwoObjects)
20 (ppLayoutTextOverObject)
1 (ppLayoutTitle)
11 (ppLayoutTitleOnly)
3 (ppLayoutTwoColumnText)
22 (ppLayoutTwoObjectsAndText)
23 (ppLayoutTwoObjectsOverText)
25 (ppLayoutVerticalText)
27 (ppLayoutVerticalTitleAndText)
28 (ppLayoutVerticalTitleAndTextOverChart)
Example:
'pp' Œwi 'AddSlide'1 12 |
| AddTable |
Description: Adds a new shape containing a Table in the current slide
Syntax: 'obj' Œwi 'AddTable'rows cols {top} {left} {height} {width}
rows: number of rows for the table
cols: number of columns for the table
top: position in pixels from top of slide
left: position in pixels from left of slide
height: table height in pixels
width: table width in pixels
Example:
'pp' Œwi 'AddTable'4 10 |
| AddTextBox |
Description: Adds a text box shape to the current slide
Syntax: newshapeno„'obj' Œwi 'AddTextBox'orientation top left height width text
orientation: 0=horizontal 1=vertical
top,left,height,width: coordinates in twips
text: text to install in the text box
newshapeno: number of the new shape
Note: the TextBox is selected
Example:
'pp' Œwi 'AddTextBox'0 100 100 200 300'This is a text box shape' |
| AnimateText |
Description: Animates text items in a shape
Syntax: 'obj' Œwi 'AnimateText' {entryeffect{reverseorder{wavfilename}}}
entryeffect: a character text representing an effect, one of:
Appear Dissolve RandomBarsVertical UncoverLeft
BlindsHorizontal Fade Spiral UncoverLeftDown
BlindsVertical FlashOnceFast SplitHorizontalIn UncoverLeftUp
BoxIn FlashOnceMedium SplitHorizontalOut UncoverRight
BoxOut FlashOnceSlow SplitVerticalIn UncoverRightDown
CheckerboardAcross FlyFromBottom SplitVerticalOut UncoverRightUp
CheckerboardDown FlyFromBottomLeft StretchAcross UncoverUp
CoverDown FlyFromBottomRight StretchDown WipeDown
CoverLeft FlyFromLeft StretchLeft WipeLeft
CoverLeftDown FlyFromRight StretchRight WipeRight
CoverLeftUp FlyFromTop StretchUp WipeUp
CoverRight FlyFromTopLeft StripsDownLeft ZoomBottom
CoverRightDown FlyFromTopRight StripsDownRight ZoomCenter
CoverRightUp Mixed StripsLeftDown ZoomIn
CoverUp None StripsLeftUp ZoomInSlightly
CrawlFromDown PeekFromDown StripsRightDown ZoomOut
CrawlFromLeft PeekFromLeft StripsRightUp ZoomOutSlightly
CrawlFromRight PeekFromRight StripsUpLeft
CrawlFromUp PeekFromUp StripsUpRight
Cut Random Swivel
CutThroughBlack RandomBarsHorizontal UncoverDown
reversorder: call text items from the bottom rather than from the top
wavfilename: name of a .WAV file
Example:
'pp' Œwi 'AnimateText' 'FlyFromTop' |
| CellBackColor |
Description: Sets the background color for a given table cell
Syntax: 'obj' Œwi 'CellBackColor'row col color
row: a table row number
col: a table column number
color: a color expressed as (B G R) or 256ƒB G R
Example:
'pp' Œwi 'CellBackColor'3 3(256ƒ0 0 255) |
| ColumnWidths |
Description: Set column widths for one or more column tables
Syntax: 'obj' Œwi 'ColumnWidths'slideno shapeno colnos {widths}
slideno: a slide number
shapeno: the shape number corresponding to a table in this slide
colnos: one or more column numbers
widths: column widths expressed in pixels
Example:
'pp' Œwi 'ColumnWidths'120 240 195 |
| ComputeColors |
Description: Compute colors to color table cells based on the values in these cells
Syntax: colormatrix„'obj' Œwi 'ComputeColors'tablevalues {min} {max}
colormatrix: is a matrix of colors expressed as 256ƒR G B
tablevalues: is a matrix of values contained in a Powerpoint table
min: the minimum value corresponding to red (256ƒ255 0 0)
max: the maximum value corresponding to green (256ƒ0 255 0)
Example:
aaa„?4 9½100
'pp' Œwi 'ComputeColors'aaa 1 100 |
| DeleteAllShapes |
Description: Deletes all the shapes of the currently selected slide
Syntax: 'obj' Œwi 'DeleteAllShapes'
Example:
'pp' Œwi 'DeleteAllShapes' |
| DeleteAllSlides |
Description: Deletes all the presentation existing slides
Syntax: 'obj' Œwi 'DeleteAllSlides'
Example:
'pp' Œwi 'DeleteAllSlides' |
| DeleteShape |
Description: Deletes a shape in a slide
Syntax: 'obj' Œwi 'DeleteShape' {shapeno}
shapeno: a shape number
Example:
'pp' Œwi 'DeleteShape'3 |
| DeleteSlide |
Description: Deletes a slide
Syntax: 'obj' Œwi 'DeleteSlide' {slide}
slide: a slide number
Example:
'pp' Œwi 'DeleteSlide'3 |
| Exit |
Description: End any slide shows that may be running
Syntax: 'obj' Œwi 'End'
Example:
'pp' Œwi 'End'
*:R„1ª…0}" |
| FillTable |
Description: Fills a table with values, background cell colors, using specified fonts
Syntax: 'obj' Œwi 'FillTable'nestedmatrix{backcolormatrix}{fontsizes}{fontcolors}{fontbold}{fontitalics}
nestedmatrix: an APL nested matrix (cells may be character and/or numeric)
backcolormatrix: a matrix of cell background colors (expressed as 256ƒB G R)
fontsizes: a matrix of font sizes expressed in points
fontcolors: (256ƒB G R) or Ð if font colors not defined
fontbold: boolean matrix or Ð if font colors not defined
fontitalics: boolean matrix or Ð if font colors not defined
Example:
aaa„?4 9½100
'pp' Œwi 'FillTable'aaa('pp' Œwi 'ComputeColors'aaa 1 100) ((½aaa)½10)
Œerase'aaa' |
| FillTableAlignment |
Description: Set the table cells alignment
Syntax: 'obj' Œwi 'FillTableAlignment'alignmentmatrix {rows} {cols}
alignmentmatrix: an integer matrix (1=left, 2=center, 3=right)
rows: a scalar or vector of row numbers
cols: a scalar or vector of column numbers
Example:
'pp' Œwi 'FillTableAlignment' (5 3½1 2 3) |
| FillTableBold |
Description: Set table cells to bold or not
Syntax: 'obj' Œwi 'FillTableBold'boldmatrix {rows} {cols}
boldmatrix: a boolean matrix (1=bold, 0=normal)
rows: a scalar or vector of row numbers
cols: a scalar or vector of column numbers
Example:
'pp' Œwi 'FillTableBold' (5 3½1 0 1) |
| FillTableColors |
Description: Set background colors in table cells
Syntax: 'obj' Œwi 'FillTableColors'backcolormatrix {rows} {cols}
backcolormatrix: a numeric matrix of BGR (256ƒB G R) colors
rows: a scalar or vector of row numbers
cols: a scalar or vector of column numbers
Example:
'pp' Œwi 'FillTableColors' (5 3½234556+10×¼15) |
| FillTableFontSize |
Description: Set the table cells font size
Syntax: 'obj' Œwi 'FillTableFontSize'fontsizematrix {rows} {cols}
fontsizematrix: a numeric matrix
rows: a scalar or vector of row numbers
cols: a scalar or vector of column numbers
Example:
'pp' Œwi 'FillTableFontSize' (5 3½10 12 16) |
| FillTableItalic |
Description: Set table cells to italics or not
Syntax: 'obj' Œwi 'FillTableItalic'italicmatrix {rows} {cols}
italicmatrix: a boolean matrix (1=bold, 0=normal)
rows: a scalar or vector of row numbers
cols: a scalar or vector of column numbers
Example:
'pp' Œwi 'FillTableItalic' (5 3½1 0 1) |
| FindTables |
Description: Return the shapes numbers of the shapes having a table in a given slide
Syntax: 'obj' Œwi 'FindTables'
Example:
'pp' Œwi 'FindTables' |
| First |
Description: Go to the first slide in the Slide Show
Syntax: 'obj' Œwi 'First'
Example:
'pp' Œwi 'First' |
| Hide |
Description: Hides the Powerpoint window
Syntax: 'obj' Œwi 'Hide' {reset}
reset: 1=Hide object 0=unhides it
Example:
'pp' Œwi 'Hide'1 |
| Last |
Description: Go to the last slide in the Slide Show
Syntax: 'obj' Œwi 'Last'
Example:
'pp' Œwi 'Last' |
| Load |
Description: Loads a Powerpoint document
Syntax: 'obj' Œwi 'Load'pptfilename
pptfilename: a character string (the Powerpoint complete file name)
Example:
'pp' Œwi 'Load' (('oo5' Œwi 'installdir'),'aplwin95.ppt') |
 |
| LoadAndRun |
Description: Loads a Powerpoint document and reuns the presentation
Syntax: 'obj' Œwi 'LoadAndRun'pptfilename{top left height width}
'obj' Œwi 'LoadAndRun'pptfilename{aplwindowname}
pptfilename: a character string (the Powerpoint full path name)
top: the vertical position of the Powerpoint slide top edge (in pixels)
left: the vertical position of the Powerpoint slide left edge (in pixels)
height: the Powerpoint slide height (in pixels)
width: the Powerpoint slide width (in pixels)
Example:
'pp' Œwi 'Quit'
'pp' Œwi '*Create' 'TPowerpoint5' ('where'10000 10000 400 600)
'pp' Œwi 'LoadAndRun' (('oo5' Œwi 'installdir'),'aplwin95.ppt') |
| MoveBottom |
Description: Moves the current shape object vertically towards bottom of slide
Syntax: 'obj' Œwi 'MoveBottom'increment
increment: a positive or negative increment in pixels
Example:
'pp' Œwi 'MoveBottom'40 |
| MoveLeft |
Description: Moves the current shape object horizontally
Syntax: 'obj' Œwi 'MoveLeft'increment
increment: a positive or negative increment in pixels
Example:
'pp' Œwi 'MoveLeft'10 |
| MoveRight |
Description: Moves the current shape object horizontally
Syntax: 'obj' Œwi 'MoveRight'increment
increment: a positive or negative increment in pixels
Example:
'pp' Œwi 'MoveRight'30 |
| MoveTop |
Description: Moves the current shape object upwardly
Syntax: 'obj' Œwi 'MoveTop'increment
increment: a positive or negative increment in pixels
Example:
'pp' Œwi 'MoveTop'20 |
| NbShapes |
Description: Returns the number of shapes in the active slide
Syntax: nbshapes„'obj' Œwi 'NbShapes'
Example:
'pp' Œwi 'NbShapes' |
| NbSlides |
Description: Returns the number of slides in the active presentation
Syntax: 'obj' Œwi 'NbSlides'
Example:
'pp' Œwi 'NbSlides' |
| New |
Description: Create a new instance of TPowerpoint5
Example:
'obj' Œwi '*Create' 'TPowerpoint5'
|
| Next |
Description: Go to the next slide in the Slide Show
Syntax: 'obj' Œwi 'Next'
Example:
'pp' Œwi 'Next' |
| Open |
Description: Opens a Powerpoint presentation
Syntax: 'obj' Œwi 'Open' pptfilename
pptfilename: full name a a Powerpoint file
Example:
'pp' Œwi 'Open' 'c:\temp\presentation.ppt' |
| OrigScale |
Description: Returns the current shape object to its origin scale
Syntax: 'obj' Œwi 'OrigScale'
Example:
'pp' Œwi 'OrigScale' |
| Previous |
Description: Go to the previous slide in the Slide Show
Syntax: 'obj' Œwi 'Previous'
Example:
'pp' Œwi 'Previous' |
| Quit |
Description: Silently closes and deletes the Powerpoint object
Syntax: 'obj' Œwi 'Close'
or 'obj' Œwi 'Quit'
Example:
'pp' Œwi 'Quit' |
 |
| RemoveBullets |
Description: Remove bullets for a number of paragraphs
Syntax: 'obj' Œwi 'RemoveBullets'start length
start: line number to start removing bullets
length: number of lines to remove bullets
Example:
'pp' Œwi 'RemoveBullets'5 3 |
| Run |
Description: Run a slide show of the currently loaded Powerpoint presentation
Syntax: 'obj' Œwi 'Run'mode startingslide endingslide top left height width ontop{wavfilename}
mode: 1=ppShowTypeSpeaker(includes Mouse box)
2=ppShowTypeWindow
3=ppShowTypeKiosk(no mouse box)
startingslide: the starting slide number (an integer scalar) or 0 for default (slide 1)
endingslide: the ending slide number (an integer scalar) or 0 for default (last slide)
top: the vertical position of the Powerpoint slide top edge (in pixels); use ¯1 to center vertically
left: the horizontal position of the Powerpoint slide left edge (in pixels); use ¯1 to center horizontally
height: the Powerpoint slide height (in pixels)
width: the Powerpoint slide width (in pixels)
ontop: 0=not on top; 1=ontop
wavfilename: complete name of a wav file to play
Example:
'pp' Œwi 'Run'1 2 3 150 200 546 728 1 |
| RunInAplWindow |
Description: Run the currently loaded Powerpoint presentation in an APL Window
Syntax: 'obj' Œwi 'RunInAplWindow'handle startingslide endingslide closeAPLwindow{wavfilename}
handle: handle (or name) of APL object container (form, frame, page, ...)
startingslide: the starting slide number (an integer scalar) or 0 for default (slide 1)
endingslide: the ending slide number (an integer scalar) or 0 for default (last slide)
closeAPLwindow: 1=close APL Window 0=leave it opened
wavfilename: complete name of a wav file to play
Example:
0 0½'ff' Œwi '*Create' 'TForm5' ('*caption' 'Powerpoint Presentation in an APL Window') ('*size'600 800) ('*color'1)
'ff' Œwi '*Set' ('ontop'1) 'Show' ª 'pp' Œwi 'RunInAplWindow' 'ff' 0 0 1((Œwi 'installdir'),'wmpaud3.wav') |
| Save |
Description: Saves the active Excel workbook
Syntax: rc„'obj' Œwi 'Save'
rc: return code (0=ok 1=save operation failed)
Note: Will replace an existing file of the same name
If another Open Workbook already has this name
it will be closed.
Example:
'pp' Œwi 'Save' |
| SaveAs |
Description: Saves the active Powerpoint presentation
Syntax: rc„'obj' Œwi 'SaveAs'filename format
filename: complete file name
format: save format
13=ppSaveAsHTMLv3 4=ppSaveAsPowerPoint3
8=ppSaveAsAddIn 3=ppSaveAsPowerPoint4
19=ppSaveAsBMP 10=ppSaveAsPowerPoint4FarEast
11=ppSaveAsDefault 2=ppSaveAsPowerPoint7
16=ppSaveAsGIF 1=ppSaveAsPresentation
12=ppSaveAsHTML 6=ppSaveAsRTF
14=ppSaveAsHTMLDual 7=ppSaveAsShow
17=ppSaveAsJPG 5=ppSaveAsTemplate
15=ppSaveAsMetaFile 21=ppSaveAsTIF
18=ppSaveAsPNG 20=ppSaveAsWebArchive
rc: return code (0=ok 1=save operation failed)
Note: Will replace an existing file of the same name
If another Open Workbook already has this name
it will be closed.
Example:
'pp' Œwi 'SaveAs' 'c:\temp\test.ppt' |
| Scale |
Description: Scales the current shape object horizontally & vertically
Syntax: 'obj' Œwi 'Scale'timesfactor
timesfactor: factor by which to multiply shape width & height
Example:
'pp' Œwi 'Scale'3 |
| ScaleHeight |
Description: Scales the current shape object vertically
Syntax: 'obj' Œwi 'ScaleHeight'timesfactor
timesfactor: factor by which to multiply shape height
Example:
'pp' Œwi 'ScaleHeight'2 |
| ScaleWidth |
Description: Scales the current shape object horizontally
Syntax: 'obj' Œwi 'ScaleWidth'timesfactor
timesfactor: factor by which to multiply shape width
Example:
'pp' Œwi 'ScaleWidth'1.5 |
| Show |
Description: Displays Powerpoint with a new Presentation opened
Syntax: 'obj' Œwi 'Show'
Example:
'pp' Œwi 'Show' |
| SlideShowHandle |
Description: Returns the handle of the current Slide Show or 0
Syntax: hwnd„'obj' Œwi 'SlideShowHandle'
hwnd: the Slide Show handle or 0 if no Slide Show is running
Example:
'pp' Œwi 'SlideShowHandle' |
| Title |
Description: Returns the title of the Nth slide
Syntax: 'obj' Œwi 'Title'N
N: a slide number
Example:
'pp' Œwi 'Title'3 |
| Titles |
Description: Returns all the active presentation slide titles
Syntax: 'obj' Œwi 'Titles'
Example:
'pp' Œwi 'Titles' |
| VBAHelp |
Description: Calls the VBA Help File if present
Syntax: 'obj' Œwi 'VBAHelp'
Example:
'pp' Œwi 'VBAHelp' |