PAddition

Runs an installed menu plug-in, such as Build Booklet, from the PageMaker Plug-ins submenu.


Command constructors

This command class has two constructors. The first constructor only requires the plug-in name. If a plug-in file has a different name than the plug-in's name that appears under the plug-in submenu, you must use the second constructor, below.

PAddition(const char * sPlugInName);

const char * sPlugInName;
Name of plug-in exactly as it appears in menu (maximum of 31 characters)
PAddition(const char * sPlugInName, const char * sFilename);

const char * sPlugInName;
Name of plug-in exactly as it appears in menu (maximum of 31 characters)
const char * sFilename;
Exact name of file that contains plug-in (maximum of 31 characters; required only if two plug-ins have same menu name). Include path if the file is not in default PlugIns folder.
Additions now called plug-ins. Before PageMaker 6.0, plug-ins were known as Additions. The name was changed to plug-in to be consistent with other Adobe applications. For backward compatibility reasons, this command still uses the obsolete terminology.

Running plug-ins. A menu plug-in is a set of commands that combines PageMaker tasks into one software component; a plug-in is installed on the PageMaker Plug-ins submenu. Once the plug-in is executed using the PAddition command, the plug-in continues to run until it reaches the last command.

Creating the ellipsis. For a Macintosh plug-in, press Option + ; to include the required ellipsis (...) in the plug-in name. For a Windows plug-in, type three periods.

Example. Get a list of installed plug-ins with the PGetAdditions query, then execute a specific plug-in.

PGetAdditions additions;
for (short i = additions.Count(); i > 0; --i) {
    if (strcmp(additions.sPlugInLibrary, "MyOtherPlugin.add") == 0)
        PAddition(additions.sPlugInLibrary, additions.sPlugInName);
    additions++;
}

See also

The PGetAdditionsDir query

Adobe PageMaker 6.5 Help > Commands > Utilities > PageMaker Plug-ins


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support