![]() | InDesign SDK 20.5 |

Classes | |
| struct | MappingRule |
Public Types | |
| enum | { kDefaultIID = IID_ISTYLEMAPPINGS } |
| enum | MappingStyleType { kParaStyleMapping = 0, kCharStyleMapping, kTableStyleMapping, kCellStyleMapping, kObjectStyleMapping } |
| enum | MappingRuleType { kStyleMappingRule = 0, kGroupMappingRule, kStyleToGroupMappingRule, kGroupToStyleMappingRule } |
| typedef std::vector< MappingRule > | MappingRuleVector |
Public Member Functions | |
| virtual void | SetStyleMappings (const MappingRuleVector &inStyleMap, MappingStyleType eInMappingType)=0 |
| virtual void | GetStyleMappings (MappingStyleType eInMappingType, MappingRuleVector &outStyleMap) const =0 |
| virtual void | SetMapping (const PMString &inStrStyleName, const PMString &inStrMappedTo, MappingRuleType eInMappingRuleType, MappingStyleType eInMappingStyleType)=0 |
| virtual int32 | AddMapping (const PMString &inStrStyleName, const PMString &inStrMappedTo, MappingRuleType eInMappingRuleType, MappingStyleType eInMappingStyleType)=0 |
| virtual void | AddMapping (MappingRule &inMappingRule, MappingStyleType eInMappingStyleType)=0 |
| virtual MappingRuleType | FindMapping (const PMString &inStrStyleName, MappingStyleType eInMappingType, PMString &outStrMappedTo) const =0 |
| virtual MappingRuleType | GetNthMapping (int32 n, MappingStyleType eInMappingStyleType, PMString &outStrStyleName, PMString &outStrMappedTo) const =0 |
| virtual bool16 | GetNthMapping (int32 n, MappingStyleType eInMappingStyleType, MappingRule &outMappingRule) const =0 |
| virtual void | SetNthMapping (int32 n, const PMString &inStrStyleName, const PMString &inStrMappedTo, MappingRuleType eInMappingRuleType, MappingStyleType eInMappingStyleType)=0 |
| virtual int32 | GetMappingIndex (MappingStyleType eInMappingStyleType, PMString &inStrStyleName, MappingRuleType eInMappingRuleType, PMString &inStrMappedTo) const =0 |
| virtual int32 | GetMappingRuleVectorSize (MappingStyleType eInMappingStyleType) const =0 |
| virtual void | CopyFrom (const IStyleMappings *inStyleMap)=0 |
| virtual void | ClearMappings ()=0 |
| virtual MappingStyleType | GetMappingStyleType (const IStyleInfo *styleInfo) const =0 |
| virtual bool16 | RemoveMapping (int32 n, MappingStyleType mappingStyleType)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
| typedef std::vector<MappingRule> IStyleMappings::MappingRuleVector |
typedef for mapping rule vector corresponding to a particular style type.
| anonymous enum |
Standard enum to for use with GetDefaultIID() method.
| pure virtual |
Add a mapping corresponding to the passed parameters to the mapping data.
| inStrStyleName[IN] | new source mapping name. |
| inStrMappedTo[IN] | new target mapping name. |
| eInMappingRuleType[IN] | new type for the mapping rule. |
| eInMappingStyleType[IN] | style type. |
| pure virtual |
Add the passed mapping rule to the mapping data.
| inMappingRule[IN] | mapping rule to add. |
| eInMappingStyleType[IN] | style type. |
| pure virtual |
Removes (or clears) all the style mapping data for all style types.
| pure virtual |
copies-in all the style mapping data (for all style types) from the input (parameter) style mapping data.
| inStyleMap[IN] | input style mapping data from which the data is copied to this interface. |
| pure virtual |
Try to find a mapping rule which is applicable in mapping an input source style name. If found return the target style or group name to which the input style should be mapped.
| inStrStyleName[IN] | name of the source style to be mapped. |
| eInMappingType[IN] | style type. |
| outStrMappedTo[IN] | name of the target style or group if an applicable mapping rule was found. |
| pure virtual |
Get the index or position of a mapping rule (defined by the passed on mapping data) in the mapping rule vector corresponding to a particular style type.
| eInMappingStyleType[IN] | style type of the mapping rule. |
| inStrStyleName[IN] | the source mapping name for the mapping rule we want to find. |
| eInMappingRuleType[IN] | the type of the mapping we want to find. |
| inStrMappedTo[IN] | the target mapping name for the mapping rule we want to find. |
| pure virtual |
Get the number of style mapping rules present for a particular mapping style type.
| mappingStyleType[IN] | style type for which we want to get number of style mapping rules. |
| pure virtual |
For an input style, this returns the mapping style type to which this style will correspond.
| styleInfo[IN] | IStyleInfo interface of the style. |
| pure virtual |
Get the nth mapping rule present in the mapping rule vector corresponding to a particular style type.
| n[IN] | position (in the mapping rule vector) of the mapping rule (mapping) we want to return. |
| eInMappingStyleType[IN] | style type to which the mapping rule, corresponds. |
| outStrStyleName[IN] | source mapping name corresponding to the nth mapping rule found. |
| outStrMappedTo[IN] | target mapping name corresponding to the nth mapping rule found. |
| pure virtual |
Get the nth mapping rule present in the mapping rule vector corresponding to a particular style type.
| n[IN] | position (in the mapping rule vector) of the mapping rule (mapping) we want to return. |
| eInMappingStyleType[IN] | style type to which the mapping rule, corresponds. |
| outMappingRule[IN] | the nth mapping rule which is being returned by this function. |
| pure virtual |
Returns the mapping rule vector corresponding to the given style type
| eInMappingType[IN] | the style type for which mapping rule vector will be returned |
| outStyleMap[IN] | mapping rule vector corresponding to the style type passed. |
| pure virtual |
Remove nth mapping rule from the style mapping data.
| n[IN] | the index of the style mapping rule to be removed. |
| mappingStyleType[IN] | style type of the mapping rule. |
| pure virtual |
Search the passed mapping parameters in the mapping data, if not already present at them as a mapping rule.
| inStrStyleName[IN] | new source mapping name to set. |
| inStrMappedTo[IN] | new target mapping name to set. |
| eInMappingRuleType[IN] | new type for the mapping rule to set. |
| eInMappingStyleType[IN] | style type. |
| pure virtual |
Change the nth mapping rule present in the mapping rule vector corresponding to a particular style type.
| n[IN] | position (in the mapping rule vector) of the mapping rule (mapping) we want to change. |
| inStrStyleName[IN] | new source mapping name with which we replace the old source mapping name. |
| inStrMappedTo[IN] | new target mapping name with which we replace the old target mapping name. |
| eInMappingRuleType[IN] | new type for the mapping rule. |
| eInMappingStyleType[IN] | style type to which the mapping rule being modified, corresponds. |
| pure virtual |
Replace the mapping rule vector for a particular style type, with the passed mapping rule vector.
| inStyleMap[IN] | the style name or the style group name to validate. |