InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILayoutSelectionSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Martz
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 _ILayoutSelectionSuite_
25 #define _ILayoutSelectionSuite_
26 //________________________________________________________________________________________________
27 // INCLUDES
28 //________________________________________________________________________________________________
29  #include "ShuksanID.h"
30  #include "IPMUnknown.h"
31  #include "ISelectionMessages.h"
32 //================================================================================================
33 //________________________________________________________________________________________________
34 // CLASS FORWARDS
35 //________________________________________________________________________________________________
36  class IHierarchy;
37  class IControlView;
38 
39 //________________________________________________________________________________________________
40 // CLASS DECLARATION
41 //________________________________________________________________________________________________
45  {
46  //____________________________________________________________________________________________
47  // Data Types
48  //____________________________________________________________________________________________
49  public:
50  enum { kDefaultIID = IID_ILAYOUTSELECTION_ISUITE };
51 
52  //____________________________________________________________________________________________
53  // Member functions
54  //____________________________________________________________________________________________
55  public:
58  // Methods for extending the selection
59 
65 // virtual void SelectOne ( UID newItem, Selection::Action selectionMode, Selection::LayoutScrollChoice doScroll) = 0;
66 
72  virtual void SelectPageItems (const UIDList& newItems, Selection::Action selectionMode, Selection::LayoutScrollChoice doScroll) = 0;
73 
80  virtual void SelectInTarget (IPMUnknown* targetingBoss, Selection::Action selectionMode, Selection::LayoutScrollChoice doScroll) = 0;
81 
90  virtual void SelectInView (IControlView* controlView, const PMRect& rect, Selection::Action selectionMode, int32 selectionType, bool16 deselectSelected, Selection::LayoutScrollChoice doScroll) = 0;
91 
97  virtual void SelectAllPageItems (IHierarchy* spreadHierarchy, UID specificLayerUID, Selection::LayoutScrollChoice doScroll) = 0;
98 
102  virtual void SelectKeyObject(const UIDRef& keyObject) = 0;
103 
105 
108  // Methods for shrinking the selection
109 
113  virtual void DeselectPageItems (const UIDList& itemsToDeselect) = 0;
114 
118  virtual void DeselectPageItemsNotSupporting (const PMIID& id) = 0;
119 
123  virtual void DeselectAllExceptThisPageItem (const UID&) = 0;
124 
128  virtual void DeselectAllPageItems (void) = 0;
129 
131 
140  virtual bool16 IsLayoutSelectionEmpty (void) const = 0;
141 
146  virtual bool16 IsPageItemSelected (const UID&) const = 0;
147 
149  virtual void SelectPageItemsInternal (const UIDList& newItems, Selection::Action selectionMode, Selection::LayoutScrollChoice doScroll, bool16) = 0;
150 
151  };
152 
153 
157  {
158  //____________________________________________________________________________________________
159  // Data Types
160  //____________________________________________________________________________________________
161  public:
162  enum ActionType { kDeselectAll};
163 
167  virtual ActionType GetActionType (void) const = 0;
168 
172  virtual bool16 GetDrawIt (void) const = 0;
173  };
174 
175 #endif // _ILayoutSelectionSuite_