InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPreflightRuleUIParamTable.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Phillips
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 // The purpose of this interface is to work with the kPreflightNativeRuleUIImpl
25 // implementation of IID_IPREFLIGHTRULEUI. That implementation looks for this interface
26 // to pull a table of parameter information, and drives the UI requirements from there.
27 //
28 //========================================================================================
29 
30 
31 #include "IPMUnknown.h"
32 #include "IPreflightRuleUI.h"
33 #include "PackageAndPreflightUIID.h"
34 
35 static const char* kParamRoot = "";
36 static const char* kParamNoLabel = "";
37 
39 {
40 public:
41  enum { kDefaultIID = IID_IPREFLIGHTRULEUIPARAMTABLE };
42 
44  typedef struct
45  {
47  const char* fKeyID;
49  const char* fKeyLabel;
51  const IPreflightRuleUI::UnitType fUnitType;
53  const PMReal fMin;
55  const PMReal fMax;
57  const char* fKeyParent;
58  } ParamInfo;
59 
61  virtual ParamInfo const* GetParameterTable(int32& count) const = 0;
62 };
63