InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSetStateTemp Class Reference

#include <IAppearanceList.h>

Public Member Functions

 StSetStateTemp (IAppearanceList *inAppList, Form::AppearanceState inState, bool16 inInvalCaches=IAppearanceList::kInvalidate)
 
 ~StSetStateTemp ()
 

Detailed Description

Stack based class for 'temporarily' changing the active state of an IAppearanceList. Used to iterate through states, when the IAppearanceList interface itself doesn't need to be dirtied. That is, when you need to access all the children page items of all the appearances states.

Constructor & Destructor Documentation

StSetStateTemp::StSetStateTemp (IAppearanceListinAppList,
Form::AppearanceState inState,
bool16 inInvalCaches = IAppearanceList::kInvalidate 
)
inline

Temporarily set the active state on an appearance list

Parameters
inAppListappearance list to change
inStatestate to make active
inInvalCachesinvalidate thumbnails of inAppList. If you plan on modifying the children of inAppList, pass in true (the default). If you are certain none of the appearances of any of the states will be changed, false may be used.
StSetStateTemp::~StSetStateTemp ()
inline

Upon destruction, set state back to what it was previously