InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IKit.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Ramme
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 of interface:
24 // Provide a mechanism for plugins to define what kind of views they have.
25 // This interface and the default implementation should be put onto the
26 // the current boss for the panel's control view. It will read information
27 // from the resources on creation.
28 //
29 //========================================================================================
30 
31 #ifndef __IKit__
32 #define __IKit__
33 
34 #include "IPMUnknown.h"
35 #include "widgetid.h"
36 
37 class PMRect;
38 class IControlView;
39 
40 class IKit : public IPMUnknown
41 {
42 public:
43  enum { kDefaultIID = IID_IKIT };
44 
48  virtual KitViewID GetActiveViewID() const = 0;
49 
53  virtual IControlView* QueryActiveView() const = 0;
54 
59  virtual bool16 ActivateView(KitViewID viewType) = 0;
60 
65  virtual bool16 HasView(KitViewID viewType) const = 0;
66 
71  virtual PMRect GetBounds(KitViewID viewType) const = 0;
72 
77  virtual bool16 IsViewResizeable(KitViewID viewType) const = 0;
78 
81  virtual int32 GetNumViews() const = 0;
82  virtual KitViewID GetNthView(int32 n) const = 0;
83 };
84 
85 
86 #endif
87 
88