InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISnipRunSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 
24 #ifndef __ISNIPRUNSUITE__
25 #define __ISNIPRUNSUITE__
26 
27 #include "IPMUnknown.h"
28 
29 class PMString;
30 
38 class ISnipRunSuite : public IPMUnknown
39 {
40  public:
42  enum { kDefaultIID = IID_ISNIPRUNSUITE };
43 
45  typedef enum {
46  kSnpRunNoContext,
47 
48  kSnpRunWorkspaceContext,
49  kSnpRunFrontDocContext,
50  kSnpRunLayoutTargetContext,
51  kSnpRunTextTargetContext,
52  kSnpRunTextSelectionTargetContext,
53  kSnpRunTableTargetContext,
54 
57 
62 
66 
72  typedef PMString Category;
73 
78 
82  virtual void GetSnippetNames(SnippetNames& snippetNames) const = 0;
83 
87  virtual bool16 IsRegistered(const SnippetName& snippetName) const = 0;
88 
95  virtual void GetCategories(const SnippetName& snippetName, Categories& categories) const = 0;
96 
102  virtual void GetDescription(const SnippetName& snippetName, PMString& description) const = 0;
103 
113  virtual void GetPreconditions(const SnippetName& snippetName, PMString& preconditions) const = 0;
114 
120  virtual bool16 CanRun(const SnippetName& snippetName) const = 0;
121 
140  virtual ErrorCode Run(const SnippetName& snippetName, PMString& parameters, bool16 enableParameterDialog = kFalse) const = 0;
141 
148  virtual ErrorCode SetupContext(const SnippetName& snippetName) = 0;
149 
150 };
151 
152 #endif // __ISNIPRUNSUITE__
153