InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISpreadSelectionSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: ???
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: All information contained herein is, and remains
20 // the property of Adobe Systems Incorporated and its suppliers,
21 // if any. The intellectual and technical concepts contained
22 // herein are proprietary to Adobe Systems Incorporated and its
23 // suppliers and may be covered by U.S. and Foreign Patents,
24 // patents in process, and are protected by trade secret or copyright law.
25 // Dissemination of this information or reproduction of this material
26 // is strictly forbidden unless prior written permission is obtained
27 // from Adobe Systems Incorporated.
28 //
29 //========================================================================================
30 
31 #ifndef _ISpreadSelectionSuite_
32 #define _ISpreadSelectionSuite_
33 
34 #include "ILayoutObject.h"
35 #include "IPMUnknown.h"
36 #include "ISelectionMessages.h"
37 
38 #include "LayoutUIID.h"
39 #include "ShuksanID.h"
40 
41 class IHierarchy;
42 class ISpread;
43 class IControlView;
44 
45 
47 {
48 
49 public:
50  enum { kDefaultIID = IID_ISPREADSELECTION_ISUITE };
51 
52 
53 public:
54 
60  virtual void SelectSpreadItems( const UIDList& newItems, Selection::Action selectionMode, Selection::LayoutScrollChoice doScroll) = 0;
61 // virtual void SelectDocumentPages( page numbers, Selection::Action selectionMode, Selection::LayoutScrollChoice doScroll) = 0;
62 // virtual void SelectSpreadPages( UIDRef spread, page indices, Selection::Action selectionMode, Selection::LayoutScrollChoice doScroll) = 0;
63 // virtual void SelectDocumentSpreads( spread numbers, Selection::Action selectionMode, Selection::LayoutScrollChoice doScroll) = 0;
64 
71  virtual void SelectInTarget( IPMUnknown* targetingBoss, Selection::Action selectionMode, Selection::LayoutScrollChoice doScroll) = 0;
72 
81  virtual void SelectInView( IControlView* controlView, const PMRect& rect, Selection::Action selectionMode, int32 selectionType, bool16 deselectSelected, Selection::LayoutScrollChoice doScroll) = 0;
82 
88  virtual void SelectAllPages( ISpread* spread, Selection::LayoutScrollChoice doScroll) = 0;
89  virtual void SelectAllSpreads( Selection::LayoutScrollChoice doScroll) = 0;
90 
91 
95  virtual void SelectKeyObject(const UIDRef& keyObject) = 0;
96 
100  virtual UIDRef GetSelectedKeyObject() const = 0;
101 
106  virtual bool16 IsKeyObjectSelected( const UIDRef& uidRef) const = 0;
107 
111  virtual void DeselectSpreadItems( const UIDList& itemsToDeselect) = 0;
112 
113 
117  virtual void DeselectAllExceptThisSpreadItem( const UID&) = 0;
118 
122  virtual void DeselectAllSpreadItems() = 0;
123 
124 
128  virtual bool16 IsSpreadSelectionEmpty() const = 0;
129 
134  virtual bool16 IsSpreadItemSelected( const UID&) const = 0;
135 
139  virtual bool32 CanShowObjectConstraints() const = 0;
140 
141  virtual UIDList GetSelectedItems() const = 0;
142 };
143 
144 
148 {
149 public:
150  enum ActionType { kDeselectAll};
151 
155  virtual ActionType GetActionType (void) const = 0;
156 
160  virtual bool16 GetDrawIt (void) const = 0;
161 };
162 
163 #endif // _ISpreadSelectionSuite_
164