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

Public Types | |
| enum | { kDefaultIID = IID_IAPPLICATION } |
| enum | ApplicationStateType { kUnknown, kStartingUp, kRunning, kQuitting, kShuttingDown } |
| typedef enum IApplication::ApplicationStateType | ApplicationStateType |
Public Member Functions | |
| virtual int32 | GetAPIMajorVersion () const =0 |
| virtual int32 | GetAPIMinorVersion () const =0 |
| virtual int32 | GetUIMajorVersion () const =0 |
| virtual int32 | GetUIMinorVersion () const =0 |
| virtual int32 | GetUIDotVersion () const =0 |
| virtual int32 | GetBuildNumber () const =0 |
| virtual PMString | GetUIVersionString () const =0 |
| virtual PMString | GetUIVersionNumberString () const =0 |
| virtual PMString | GetApplicationName () const =0 |
| virtual bool16 | IsApplicationActive () const =0 |
| virtual IDocumentList * | QueryDocumentList () const =0 |
| virtual IActionManager * | QueryActionManager () const =0 |
| virtual IPanelMgr * | QueryPanelManager () const =0 |
| virtual IToolManager * | QueryToolManager () const =0 |
| virtual void | EventLoop (bool16 bSuppressScheduled=kFalse)=0 |
| virtual void | ExitEventLoop ()=0 |
| virtual ApplicationStateType | GetApplicationState () const =0 |
For Internal Use Only | |
| virtual void | Run ()=0 |
| virtual void | Terminate (bool16 emergencyExit)=0 |
| virtual void | SuspendScheduledCommandProcessing (bool16 suspend=kTrue)=0 |
| virtual bool | HasSuspendedScheduledCommandProcessing ()=0 |
| virtual void | SuspendDocRendering (bool16 suspend=kTrue)=0 |
| virtual bool | HasSuspendedDocRendering ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
IApplication is similar to ISession, and holds all the app-specific and UI-specific information on the current session (kSessionBoss). The application object (kAppBoss) also manages and provides access to the global event loop (via its interface IEventDispatcher).
There is only ever one application object (kAppBoss), and you can get a reference to its IApplication interface by querying the session (ISession, off kSessionBoss), for example:
InterfacePtr<IApplication> app(GetExecutionContextSession()->QueryApplication());
The state of the application: starting up, running, quitting, and shutting down. kQuitting indicates Terminate has been called (typically by the QuitCmd) which happens before we enter kShuttingDown. The transition from kQuitting to kShuttingDown occurs once the event loop has stopped. Neither kQuitting nor kShuttingDown is user cancelable
The state of the application: starting up, running, quitting, and shutting down. kQuitting indicates Terminate has been called (typically by the QuitCmd) which happens before we enter kShuttingDown. The transition from kQuitting to kShuttingDown occurs once the event loop has stopped. Neither kQuitting nor kShuttingDown is user cancelable
| pure virtual |
Internal Use Only: Used by Run() This function does not return until ExitEventLoop() gets called. Calls to EventLoop can no longer be nested in CC and beyond.
| pure virtual |
Calling ExitEventLoop() will cause the current execution of EventLoop() to exit and return to its caller.
| pure virtual |
Return the API major version number.
| pure virtual |
Return the API minor version number.
| pure virtual |
Return the application name.
| pure virtual |
Return the current state of the application.
| pure virtual |
Return the build number of the application.
| pure virtual |
Return the UI dot version number.
| pure virtual |
Return the UI major version number.
| pure virtual |
Return the UI minor version number.
| pure virtual |
Return a string indicating the version number of the application. (e.g. "4.0" or "4.0.1", etc.)
| pure virtual |
Return a string identifying the package version of the application. (e.g. "CC")
| pure virtual |
return kTrue is the application is active, not in background, etc.
| pure virtual |
Returns a reference to the action manager - the manager responsible for menus/shortcuts.
| pure virtual |
Returns a reference to the application's list of open documents.
| pure virtual |
Returns a reference to the panel manager.
| pure virtual |
Returns a reference to the tool manager.
| pure virtual |
Start the main event loop.
| pure virtual |
Suspend doc rendering on UI thread.
| pure virtual |
Suspend processing scheduled commands in the event loop. Used for Drover-based Dialogs Handles nested calls correctly.
| pure virtual |
Terminate the application. Terminates the event loop, and closes all open windows.