InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGalleySwitch.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Kevin Van Wiel
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 __IGalleySwitch__
25 #define __IGalleySwitch__
26 
27 #include "IPMUnknown.h"
28 #include "WritingModeUIID2.h"
29 #include "WritingModeID2.h"
30 #include "PMPoint.h"
31 #include "UIDList.h"
32 
33 const ClassID kSwitchedToGalley = 'SwGl'; // these are broadcast by IGalleySwitch after it switches
34 const ClassID kSwitchedToLayout = 'SwLy';
35 const ClassID kSwitchingToGalley = 'SwGb'; // these are broadcast by IGalleySwitch before it switches
36 const ClassID kSwitchingToLayout = 'SwLb';
37 const ClassID kPreSwitchGalleyStory = 'BSGS'; // Broadcast before story switch in galley
38 const ClassID kPostSwitchGalleyStory = 'ASGS'; // Broadcast after story switch in galley
39 
40 class IControlView;
41 class IFocusCache;
42 class ITextModel;
43 class IWaxRun;
44 class IDocument;
45 
46 #define kMinPrintGalleyHeight 500
47 
52 class IGalleySwitch : public IPMUnknown
53 {
54 public:
55  enum {kDefaultIID = IID_IGALLEYSWITCH};
56 
60  enum {kInvalidUniqueID = 0};
61 
66  virtual ErrorCode OpenNewGalleyWindow(const UIDList &stories) = 0;
67 
71  virtual bool IsInGalley() = 0;
72 
77  virtual void SetGalleyStoryIndex(int32 index) = 0;
78 
82  virtual int32 GetGalleyStoryIndex() = 0;
83 
87  virtual UIDRef GetCurrentStoryRef() = 0;
88 
92  virtual IControlView *GetGalleyView() = 0;
93 
97  virtual uint32 GetUniqueSessionID() = 0;
98 };
99 
100 #endif // __IGalleySwitch__