![]() | InDesign SDK 20.5 |
Classes | |
| struct | GridAttributes |
Public Types | |
| typedef K2Pair< UIDRef, PMString > | RefNamePair |
| typedef K2Vector< RefNamePair > | RefNamePairs |
Public Member Functions | |
| ErrorCode | InspectGridAttributes (const IGridAttributesPrefs *gridAttributesPrefs, GridAttributes &prefsData) |
| ErrorCode | ModifyGridAttributes (IGridAttributesPrefs *gridAttributesPrefs, const GridAttributes &prefsData) |
| void | SetAttributes (GridAttributes &prefsData) |
| void | ReportAttributes (const GridAttributes &prefsData) |
| RefNamePairs | GetCJKGridAttributeRefNamePairs (IDocument *doc=nil) |
CJK grid settings in an InCopy story document are encapsulated in the IGridAttributesPrefs interface. This interface is aggregated on one of the 4 following bosses:
Note that this code snippet only loads in the Japanese feature set of InCopy (kInCopyProductFS | kJapaneseLanguageFS), or kInCopyJapaneseFS.
, ,
Type definition for keeping a UIDRef of the boss that agregates IGridAttributesPres and its description.
A vector of RefNamePair.
| SnpManipulateInCopyCJKGridAttributes::RefNamePairs SnpManipulateInCopyCJKGridAttributes::GetCJKGridAttributeRefNamePairs | ( | IDocument * | doc = nil | ) |
Gathers the UIDRefs of instances of bosses that aggregate IGridAttributesPrefs and associates each item with a description. The descriptions can be passed on to ISnipRunParameterUtils::GetChoice to help the user pick a specific instance.
| doc | IN IDocument from a specific document, if available. If doc is non-nil, then the IGridAttributesPrefs from kDocWorkspaceBoss will be included in the returned vector. |
| ErrorCode SnpManipulateInCopyCJKGridAttributes::InspectGridAttributes | ( | const IGridAttributesPrefs * | gridAttributesPrefs, |
| GridAttributes & | prefsData | ||
| ) |
Inspects settings in IGridAttributesPrefs.
| gridAttributesPrefs | IN A specific instance of a IGridAttributesPrefs interface. |
| prefsData | OUT The inspected preference settings. |
| ErrorCode SnpManipulateInCopyCJKGridAttributes::ModifyGridAttributes | ( | IGridAttributesPrefs * | gridAttributesPrefs, |
| const GridAttributes & | prefsData | ||
| ) |
Modifies settings in a specific instance of IGridAttributesPrefs.
| gridAttributesPrefs | IN A specific instance of a IGridAttributesPrefs interface. |
| prefsData | IN The preference settings to set. |
| void SnpManipulateInCopyCJKGridAttributes::ReportAttributes | ( | const GridAttributes & | prefsData | ) |
Reports the values in GridAttributes to SNIPLOG. You can pass the GridAttributes gathered with InspectGridAttributes.
| prefsData | IN GridAttributes filled in. |
| void SnpManipulateInCopyCJKGridAttributes::SetAttributes | ( | GridAttributes & | prefsData | ) |
Arbitrarily sets the grid attributes data structure so that it could be passed to ModifyGridAttributes.
Modify the contents of this implementation as desired.