![]() |
![]() |
PPrivateData(const char * sDeveloperID, const char * sPlugInID, short CTargetClass, unsigned long nTypeFlag, unsigned long nTargetID, PMBool bChange, const char * sPrivateString);
sDeveloperID. To ensure that no one else uses your four-character developer ID, you should register it with the Adobe Plug-ins Support Engineer.const char * sDeveloperID;
Four-character string representing your name or your company name (e.g., "ADBE" for Adobe)const char * sPlugInID;
Four-character string representing plug-in (e.g., "KYLN" for Keyline plug-in)short cTargetClass;
kClassObject for imported graphics and images, as well as PageMaker lines, boxes, ovals, polygons, or text blocks
kClassStory for stories
kClassPub for publication (current publication only)
kClassPage for page
kClassMaster for master pageunsigned long nTypeFlag;
Identifier you define to distinguish between types of private data for same cTargetClass (but -1 and -2 are not allowed). If you don't need to classify your private data, use 0.unsigned long nTargetID;
Internal PageMaker identifier for the element (graphic, image, text block, page, master page, or story) to which the private string is associated
0 (zero) for publication (PageMaker associates private strings with the current publication only)PMBool bChange;
true or 1 to overwrite existing private string from same plug-in
false or 0 to return error (and leave private string unchanged) if the target already has private string from the same plug-inconst char * sPrivateString;
Private string
Five parameters needed to identify data. PageMaker requires five parameters to identify a private string:
bChange. If the target already has a private string from the same plug-in and bChange is:
PPrivateString("ADBE", "KYLN", kClassObject, 1, 15, true, "This is my string");
The PGetPrivateData, PGetPrivateList, and PGetPrivateString queries
Comments or suggestions? Contact Adobe Developer Support