![]() | InDesign SDK 20.5 |

Public Member Functions | |
| SnipRunQuickApplyService (IPMUnknown *boss) | |
| virtual void | BeginServiceSession () |
| virtual void | EndServiceSession () |
| virtual TypesHandledList | GetItemTypesHandled (const TypesHandledList &existingItemTypes) |
| virtual void | LoadItems (IActiveContext *ac, K2Vector< QuickApplyFindListNode > *masterList, IdleTimer *timeCheck, uint32 itemTypeToLoad) |
| virtual bool16 | LoadItemsIsComplete (uint32 id) |
| virtual bool16 | ApplyItem (IActiveContext *ac, const QuickApplyFindListNode &itemToApply, IEvent *e, bool16 edit) |
| virtual void | ResetProvider () |
Public Member Functions inherited from CPMUnknown< IQuickApplyService > | |
| IPMUnknown * | QueryInterface (PMIID interfaceID) const |
| void | AddRef () const |
| void | Release () const |
| void | PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| void | PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| CPMUnknown (const CPMUnknown &)=delete | |
| CPMUnknown & | operator= (const CPMUnknown &)=delete |
Additional Inherited Members | |
Public Types inherited from IQuickApplyService | |
| enum | { kDefaultIID = IID_IQUICKAPPLYSERVICE } |
Protected Member Functions inherited from CPMUnknown< IQuickApplyService > | |
| CPMUnknown (IPMUnknown *boss) | |
Protected Attributes inherited from CPMUnknown< IQuickApplyService > | |
| HelperInterface | fHelperInterface |
Implements the quick apply service for SnippetRunner.
| SnipRunQuickApplyService::SnipRunQuickApplyService | ( | IPMUnknown * | boss | ) |
Constructor.
| boss | interface ptr from boss object on which this interface is aggregated. |
| virtual |
Indicates to the service provider that the user has selected the itemToApply for execution.
| ac | IN the active context. |
| itemToApply | IN the item that represents the user selected snipper. |
| e | IN the actual event that invokes the item (thisis useful for example when the behaviour might change with a modifier key). |
| edit | IN Holding down cmd/shift or cmd/alt indicates an edit of the item represented by the quick apply element is required. |
Implements IQuickApplyService.
| inlinevirtual |
Called when the quick apply dialog opens to initialise the quick apply service.
Implements IQuickApplyService.
| inlinevirtual |
Called befor ethe quick apply dialog closes to allow the service to perform clean-up activity.
Implements IQuickApplyService.
| virtual |
Provide the type of items supported by this quick apply service
| existingItemTypes | IN the set of previously registered quick apply item types. Interrogate these to ensure the choice of prefix key for this quick apply service provider is unique. Bad things happen if two quick apply services attempt to register with the same prefix key. |
Implements IQuickApplyService.
| virtual |
The quick apply service can add items to the master list, the complete set of items that are displayed in the quick apply dialog. This implementation adds elements that represent runnable code snippets.
| ac | IN the current active context, used to determine the set of items that can be legally added. |
| masterList | IN/OUT the list of items to be displayed in the quick apply dialog. |
| timeCheck | OUT an idle time, if non-nil, an implementation that is heavy-weight should save state and return when the idle timer reaches 0. This allows more responsive UI, and the lazy loading of the quick apply dialog. |
| itemTypeToLoad | IN the type of item to be loaded. Some services can support multiple item types. This indicates the actual type to be loaded. |
Implements IQuickApplyService.
| virtual |
Indicates that the service has completed loading the items it supports. A service can indicate that it has not completed loading items (for example, where the loading of items would take too long and cause the dialog to stutter). It will then be called back at the next idle loop to continue loading.
| id | IN the type of item being tested. Some services can support miltiple item types. This indicates the actual type to be tested. |
Implements IQuickApplyService.
| inlinevirtual |
Reset the provider back to the initial (unloaded) state.
Implements IQuickApplyService.