InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPagesSubPanelController.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Brendan O'Shea
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 __IPagesSubPanelController__
25 #define __IPagesSubPanelController__
26 
27 #include "IPMUnknown.h"
28 #include "PagesPanelID.h"
29 #include "PMTypes.h"
30 
31 class PMString;
32 class IDocument;
33 class UIDList;
34 class PMRect;
35 
41 {
42 public:
43  enum { kDefaultIID = IID_IPAGESSUBPANELCONTROLLER };
44 
45  typedef enum { kNoReasonSpecified, kPageAdded, kSpreadAdded, kPagesPanelPrefsChanged } ReasonForUpdate;
46 
52  virtual bool16 ActiveDocChange(IDocument *theNewDoc) = 0;
53 
60  virtual void AddPageToPanel(int32 numPages, const UIDRef& spreadUID) = 0;
61 
69  virtual void UpdatePagesPanel( bool16 bForceUpdateAll /*= kFalse*/,
70  bool16 bForcePurge /*= kFalse*/,
71  IPagesSubPanelController::ReasonForUpdate reason /*= kNoReasonSpecified*/) = 0;
72 
78  virtual bool16 IsPanelUpdatePending() = 0;
79 
85  virtual void AddSpreadToPanel(const UIDList *spreadList) = 0;
86 
92  virtual void ScrollPanelToSpread(const UIDRef& spreadUID) = 0;
93 
99  virtual void AboutToDraw(SysRgn updateRgn) = 0;
100 
106  virtual void GetPanelPanoramaBounds(PMRect *panoramaRect) = 0;
107 
111  virtual void PagesPanelResized() = 0;
112 
116  virtual void PagesPanelClosed() = 0;
117 
118 
124  virtual bool16 InvalidateSpreadWidget(const UIDRef& spreadUID) = 0;
125 
132  virtual bool16 InvalidatePageWidget(const UIDRef& spreadUID, const UIDRef& pageUID) = 0;
133 };
134 
135 #endif