PGetFindParaAttr

Gets paragraph attributes (paragraph style, alignment, and leading method) to be used for the search text in the PFind, PChange, and PChangeAll commands.


Query results

const char * sParaStyle;
Name of style (to a maximum of 31 characters)
"Any" for Any paragraph style (i.e., to not include paragraph style in search criteria; default setting)
"No style" for No Style
short cAlignment;
kFCAttrAny for Any alignment (i.e., to not include alignment in search criteria)
0 (zero) for Left
1 for Center
2 for Right
3 for Justify
4 for Force Justify
short cLeadingType;
kFCAttrAny for Any leading method (i.e., to not include leading method in search criteria)
0 (zero) for Proportional
1 for Top of Caps
2 for Baseline
Story editor only. The PGetFindParaAttr query works only in story editor.

Example. The following example changes all left-aligned text in the current publication to justifed text. (Notice that it sets all other Find and Change attributes to Any.) It then queries for the Find and Change paragraph settings.

PFindParaAttr("Any", left, kFCAttrAny);
PChangeParaAttr("Any", justify, kFCAttrAny);
PFindTypeAttr1("Any", kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny);
PChangeTypeAttr1("Any", kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny);
PFindTypeAttr2(kFCAttrAny, kFCAttrAny, "Any", kFCAttrAny);
PChangeTypeAttr2(kFCAttrAny, kFCAttrAny, "Any", kFCAttrAny);
PChangeAll("", "", kFCSAllStories, kFCAnyCase, kFCAllInstances, kFCUseAttributes);
PGetPFindParaAttr(--Reply: "Any", 0, kFCAttrAny);
PGetPChangeParaAttr(); // Reply: "Any", 3, kFCAttrAny);


See also

The PGetChangeParaAttr, PGetChangeTypeAttr1, PGetChangeTypeAttr2, PGetChangeWindow, 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