PGetChangeTypeAttr2

Gets additional text attributes (set width, tracking, color, and tint) to be used for the search text in the PChange and PChangeAll commands.


Query results

short dSetWidth;
Percentage to scale the character width (from 5.0 to 250.0; normal is 100.0) in tenths of a percent (100.0% =1000).
kFCAttrAny for Any set width (i.e., to not include set width settings in search criteria)
short cTrack;
kFCAttrAny for Any tracking (i.e., to not include track settings in search criteria)
kTrackNoTrack for No Track (these are the enum eTrack)
kTrackVeryLoose for Very Loose
kTrackLoose for Loose
kTrackNormal for Normal Track
kTrackTight for Tight
kTrackVeryTight for Very Tight
const char * sColorName;
Name of color (to maximum of 31 characters)
"Any" for Any color (i.e., to not include color in search criteria)
short nTintValue;
Percentage of color (from 0 to 100) in whole percentages, expressed in tenths of a percent (100% =1000), although command uses only whole percentages.
kFCAttrAny for Any tint amount
Story editor only. The PGetChangeTypeAttr2 query works only in story editor.

Example. The following example changes all purple text in the current publication to a 93% tint of purple. (Notice that it sets all other Find and Change attributes to Any.) It then queries for the Find and Change type settings.

PFindParaAttr("Any", kFCAttrAny, kFCAttrAny);
PChangeParaAttr("Any", kFCAttrAny, kFCAttrAny);
PFindTypeAttr1("Any", kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny);
PChangeTypeAttr1("Any", kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny);
PFindTypeAttr2(kFCAttrAny, kFCAttrAny, "Purple", kFCAttrAny);
PChangeTypeAttr2(kFCAttrAny, kFCAttrAny, "Purple", 93);
PChangeAll("", "", kFCSAllStories, kFCAnyCase, kFCAllInstances, kFCUseAttributes);
PGetPFindTypeAttr2(); // Reply: kFCAttrAny, kFCAttrAny, "Purple", kFCAttrAny);
PGetPChangeTypeAttr2(); // Reply: kFCAttrAny, kFCAttrAny, "Purple", 93);


See also

The PGetChangeParaAttr, PGetChangeTypeAttr1, PGetChangeWindow , PGetFindParaAttr, PGetFindTypeAttr1, PGetFindTypeAttr2, and PGetFindWindow queries.

The PChange, PChangeAll, PChangeNext, PChangeParaAttr, PChangeTypeAttr1, PChangeTypeAttr2, PChangeWindow , PFind, PFindNext, PFindParaAttr , PFindTypeAttr1, PFindTypeAttr2, and PFindWindow commands.


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

Comments or suggestions? Contact Adobe Developer Support