InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IBookUIUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Yeming Liu
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 __IBOOKUIUTILS__
25 #define __IBOOKUIUTILS__
26 
27 #include "IPMUnknown.h"
28 #include "IPanelControlData.h"
29 
30 #include "K2Vector.h"
31 #include "UIDList.h"
32 #include "Utils.h"
33 
34 #include "BookID.h"
35 
41 class IBookUIUtils : public IPMUnknown
42 {
43  public:
45  enum { kDefaultIID = IID_IBOOKUIUTILS };
46 
51  // Comments: Get the total list items in this panel.
52  virtual int32 GetListItems(IPanelControlData* panelData) = 0;
53 
61  virtual int32 GetSelectedBookContents
62  (
63  K2Vector<int32>& selectedItems,
64  UIDList* &selectedUIDList,
65  IPanelControlData* panelData
66  ) = 0;
67 
73  virtual void GetBookFileFromBookPanel(IDFile& bookFile, IPMUnknown* widget) = 0;
74 
80  virtual IPanelControlData* QueryBookPanelData(IPMUnknown* widget) = 0;
81 
86  virtual IPanelControlData* QueryActiveBookPanel(void) = 0;
87 
92  virtual void SetBookPanelWidget(IPMUnknown* widget) = 0;
93 
98  virtual IPMUnknown* GetBookPanelWidget(void) = 0;
99 };
100 
101 #endif // __IBOOKUIUTILS__