PFindParaAttr

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


Command constructor

PFindParaAttr(const char * sParaStyle, short cAlignment, short cLeadingType);
const char * sParaStyle;
Name of style exactly as it appears inStyles palette (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; default setting)
kAlignmentLeft for Left
kAlignmentCenter for Center
kAlignmentRight for Right
kAlignmentJustify for Justify
kAlignmentForce for Force Justify
short cLeadingType;
kFCAttrAny for Any leading method (i.e., to not include leading method in search criteria; default setting)
kLeadProportional for Proportional
kLeadTopOfCaps for Top of Caps
kLeadBaseline for Baseline
Story editor only. The PFindParaAttr command works only in story editor. If the story editor is not active, PFindParaAttr throws a CQ_LO_INVALID_MODE exception..

All attributes cleared first. The settings you include with the PFindParaAttr command replace all existing attribute settings.

Example. The following example changes all left-aligned text in the current publication to full-justifed text. Notice that it first sets all other Find and Change attributes to Any.

PFindTypeAttr1("Any", kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny);
PChangeTypeAttr1("Any", kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny);
PFindTypeAttr2(kFCAttrAny, kFCAttrAny, "Any", kFCAttrAny);
PChangeTypeAttr2(kFCAttrAny, kFCAttrAny, "Any", kFCAttrAny);
PFindParaAttr("Any", kAlignmentLeft, kFCAttrAny);
PChangeParaAttr("Any", kAlignmentJustify, kFCAttrAny);
PChangeAll("", "", kFCSAllStories, false, false, false);


See also

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

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

Adobe PageMaker 6.5 Help > Commands > Utilities > Find


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

Comments or suggestions? Contact Adobe Developer Support