InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IExecutionContext.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Florin Trofin
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Purpose: Provides access to the current thread's execution context.
24 //
25 // THIS IS NOT A STANDARD BOSS INTERFACE
26 //
27 //========================================================================================
28 
29 #ifndef __IEXECUTIONCONTEXT__
30 #define __IEXECUTIONCONTEXT__
31 
32 #include "IPMUnknown.h" // for the definition of
33 
34 class ISession;
35 class IErrorState;
36 class IObjectModel;
37 class IDTask;
38 
47 {
48 public:
51  virtual ~IExecutionContext() {};
52 
55  virtual ISession* GetSession() const = 0;
56 
60  virtual IErrorState* GetErrorState() const = 0;
61 
64  virtual IObjectModel* GetObjectModel() const = 0;
65 
69  virtual IDTask* GetCurrentTask() const = 0;
70 
71 }; // IExecutionContext
72 
75  IExecutionContext* GetExecutionContext();
76 
77 
78 #endif // __IEXECUTIONCONTEXT__