![]() | InDesign SDK 20.5 |
#include <RsrcSpec.h>
Public Member Functions | |
| RsrcSpec () | |
| RsrcSpec (const RsrcType &type, const RsrcID &indexOrID, bool16 byID=kTrue) | |
| RsrcSpec (PluginID pluginID, const RsrcType &type, const RsrcID &indexOrID, bool16 byID=kTrue) | |
| RsrcSpec (const PMLocaleId &localeId, PluginID pluginID, const RsrcType &type, const RsrcID &indexOrID, bool16 byID=kTrue) | |
| PMLocaleId | GetLocaleID () const |
| PluginID | GetPluginID () const |
| RsrcType | GetType () const |
| RsrcID | GetIndexOrID () const |
| bool16 | GetByID () const |
Class used to specify a resource.
IDResourceShell::GetResource takes a RsrcSpec. By default you can create a resource spec by giving it a type and id. But if you are iterating over all resources of a given type you can set the optionaly third parameter, byID, to false. This will treat the ID field as an index. This class makes it so that we don't have to overload every method in shuksan that takes a resource type and id to be able to specify type and index.
| inline |
Empty Contructor - creates an invalid resource
| inline |
Constructor - specify a resource by type and ID (or index)
| inline |
Constructor - specify a resource by type and ID (or index) and pluginID
| inline |
Constructor - specify a resource by type and ID (or index) and pluginID and for a specific localeID
| inline |
Get the flag controllong whether it refers to resources by index or ID (kTrue by default, meaning by ID)
| inline |
Get the resource ID (or index if RsrcApec was constructed with fByID == kFalse
| inline |
Get the locale ID
| inline |
Get the plugin ID
| inline |
Get the resource type