![]() | InDesign SDK 20.5 |
#include <IAppearanceSuite.h>

Public Member Functions | |
| virtual Form::AppearanceState | GetActiveState () const =0 |
| virtual ErrorCode | SetActiveState (Form::AppearanceState inState) const =0 |
| virtual void | SelectActiveState () const =0 |
| virtual Form::AppearanceState | GetNthState (int32 inStateIndex) const =0 |
| virtual bool16 | GetAppearance (Form::AppearanceState inState, Form::Appearance *outAppearance) const =0 |
| virtual bool16 | HasAppearance (Form::AppearanceState inState) const =0 |
| virtual bool16 | HasAppearanceContent (Form::AppearanceState inState) const =0 |
| virtual ErrorCode | SetAppearance (Form::AppearanceState inState, Form::AppearanceState inNewState, const Form::Appearance &inAppearance) const =0 |
| virtual ErrorCode | NewState (Form::AppearanceState inState, int32 inPosition=IAppearanceList::kLastInOrder) const =0 |
| virtual ErrorCode | DeleteState (Form::AppearanceState inState) const =0 |
| virtual ErrorCode | DeleteStateContent (Form::AppearanceState inState) const =0 |
| virtual Form::AppearanceState | GetNewState () const =0 |
| virtual bool16 | CanAddState (Form::AppearanceState inState) const =0 |
| virtual ErrorCode | GetAppearanceThumbnail (Form::AppearanceState inState, int32 inMaxWidth, int32 inMaxHeight, AGMImageAccessor **pOutAGMImage) const =0 |
| virtual ErrorCode | SetAppearanceStyle (ILibrary *inLibrary, int32 inStyleIndex) const =0 |
| virtual ErrorCode | RemoveAppearances () const =0 |
| virtual int32 | NumStates () const =0 |
| virtual bool16 | SelectionHasContentInAnyState () const =0 |
| virtual bool16 | SelectionHasContentInActiveState () const =0 |
| virtual bool16 | SelectionHasContentInState (Form::AppearanceState inState) const =0 |
| virtual bool16 | HasStates () const =0 |
| virtual PMString | GetStateName (Form::AppearanceState inState) const =0 |
| virtual bool | GetName (PMString &name) const =0 |
| virtual bool | GetNameOfOnlyItemOfClass (PMString &name, const ClassID &classID) const =0 |
| virtual ErrorCode | SetName (const PMString &newName) const =0 |
| virtual ErrorCode | SetStateName (Form::AppearanceState state, const PMString &newName) const =0 |
| virtual ErrorCode | CreateAppearanceItem (const ClassID &formFieldType, MultiItemSelectionPolicy multiItemSelectionPolicy=kHandleItemsIndividually) const =0 |
| virtual ErrorCode | MoveState (Form::AppearanceState state, int32 position) const =0 |
| virtual ErrorCode | DeleteAppearance (Form::AppearanceState state) const =0 |
| virtual ErrorCode | ReleaseAppearanceAsObject (Form::AppearanceState state) const =0 |
| virtual ErrorCode | ReleaseAllAppearancesAsObjects () const =0 |
| virtual int32 | GetStatePosition (Form::AppearanceState state) const =0 |
| virtual bool16 | CanPasteIntoState (const ClassID inAppearanceItemClass) const =0 |
| virtual ErrorCode | PasteIntoState (const ClassID inAppearanceItemClass, Form::AppearanceState inState) const =0 |
| virtual ErrorCode | SetIsInitiallyHidden (bool16 inHidden) const =0 |
| virtual bool16 | GetIsInitiallyHidden () const =0 |
| virtual bool16 | IsAppearanceItemOfTypeSelected (const ClassID inAppearanceItemClass) const =0 |
| virtual ErrorCode | SelectAssociatedAppearanceItemOfType (const ClassID inAppearanceItemClass)=0 |
| virtual bool16 | IsActiveStateOfAppearanceItemOfTypeSelected (const ClassID inAppearanceItemClass) const =0 |
| virtual bool16 | CanAddItemsAsStates (const ClassID &inClassToAddTo) const =0 |
| virtual ErrorCode | AddItemsAsStates (const ClassID &inClassToAddTo, HowToAddStates inHowToAddStates) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Selection suite for manipulating appearances on page items that have appearances (form fields This is currently implemented only for concrete selections (page items). There isn't a default selection suite for Appearances. This suite also doesn't operate on multiple selections. Most of these methods call through to IAppearanceList (GetActiveState, GetNthState, GetAppearance, HasAppearance, etc) or call an appearance state-related command (SetActiveState, NewState, DeleteState, RemoveAppearances, SetAppearanceStyle)
| pure virtual |
Finds a unique appearance item of class inClassToAddTo in the selection, and then adds all of the other items in the selection to one or more of that item's states.
| inClassToAddTo | [IN]: the class of the appearance item |
| inHowToAddStates | [IN]: how to add the non-appearance items to the appearance item |
| pure virtual |
Determines if there is a unique appearance item in the selection of class inClassToAddTo, and if all of the other items can be placed into one of that item's states.
| inClassToAddTo | [IN]: the class of the appearance item |
| pure virtual |
| pure virtual |
Determine whether the current contents of the clipboard can be pasted into the selected item of the specified class. This will return false if there are more than one item in the current selection.
| inAppearanceItemClass | [IN]: the class of the appearance item of interest |
| pure virtual |
Move the state of an item to a new position in the item's state ordering.
| state | [IN]: The state to move. |
| position | [IN]: The new position for the state. |
| pure virtual |
Remove a state from the selection
| inState | State to remove |
| pure virtual |
Remove the state content from the selection
| inState | State to remove content |
| pure virtual |
return active state of selection, kStateInvalid if selection doesn't have appearances or is multiple selection
| pure virtual |
Get parameters for inState
| inState | State to get |
| outAppearance | Points to inState appearance params on exit |
| pure virtual |
Get rendered appearance of an appearance state
| inState | State to get |
| inMaxWidth | Maximum width of returned bitmap |
| inMaxHeight | Maximum height of returned bitmap |
| pOutAGMImage | [OUT]: On exit, points to address of a newly allocated AGMImageAccessor, which must be deleted by the client. The AGMImageAccessor contains the rendered appearance. |
| pure virtual |
Determines whether the selected appearance item is hidden until triggered on export.
| pure virtual |
Get the name of the currently selected Field.
| name | [OUT]: User-readable name of the selected Field/Page Item. |
| pure virtual |
Gets the name of the only page item with the specified class in the current selection.
| name | [OUT]: User-readable name of the selected Field/Page Item of the specified class. |
| classID | class of the item whose name to retrieve |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
Get the index of the specified state in the selected object's state ordering.
| state | [IN]: the state whose position will be returned |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
Returns whether the group that wraps the active states for the specified appearance item class in the selection is selected.
| inAppearanceItemClass | [IN]: The desired appearance item class. |
| pure virtual |
Examines the selected item for the specified appearance item class.
| inAppearanceItemClass | [IN]: The desired appearance item class. |
| pure virtual |
Move the state of an item to a new position in the item's state ordering.
| state | [IN]: The state to move. |
| position | [IN]: The new position for the state. |
| pure virtual |
Add a new state to selection
| inState | State to add |
| inPosition | Position in the appearance list to add the state |
| pure virtual |
| pure virtual |
Paste the contents of the clipboard into the specified state of an appearance item in the current selection.
| inAppearanceItemClass | [IN]: the class of the appearance item to paste into |
| inState | [IN]: the state of the appearance item to paste into |
| pure virtual |
Release all of the objects that represent the appearances of each of the selected item's states to be children of the spread, and then delete the appearance item.
| pure virtual |
Release objects that represent the appearance of the selected item's specified state to be children of the spread, and then delete the state.
| state | [IN]: The state to release |
| pure virtual |
Remove all page item children of all the states (but retain the states themselves)
| pure virtual |
Selects the group that wraps the active states of appearance items in the selection
| pure virtual |
Selects the appearance item that is associated with the current selection.
| inAppearanceItemClass | [IN]: The desired appearance item class. |
| pure virtual |
| pure virtual |
| pure virtual |
| inState | the state to check for seleciton |
| pure virtual |
Perform kChangeActiveStateCmdBoss command on the selection
| pure virtual |
Change parameters for state inState
| inState | State to change |
| inNewState | State to change it to (may be == inState) |
| inAppearance | New parameters for state |
| pure virtual |
Set form field appearance from an Assert in an Asset Library All of the page item children from the asset are copied over, as well as the Form Field related graphic attributes (read only, export, etc.) i.e. all the attributes that can be set in the Form Field Properties dialog The size, and transform, and non form field graphic attributes are preserved.
| inLibrary | Asset library to use |
| Which | asset to use in inLibrary |
| pure virtual |
Set whether the selected appearance item is hidden until triggered on export.
| pure virtual |
Set the name of the selected field.
| newName | [IN]: The name to assign to the button/field. |
| pure virtual |
Set the name of the specified state for the selected field.
| state | [IN]: The state to rename. |
| newName | [IN]: The name to assign to the state. |