InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITreeViewController.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Joss
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 __ITreeViewController__
25 #define __ITreeViewController__
26 
27 #include "IPMUnknown.h"
28 #include "IControlView.h"
29 #include "UIDList.h"
30 #include "IEvent.h"
31 #include "NodeID.h" // for NodeIDList
32 
37 {
38 public:
39  enum { kDefaultIID = IID_ITREEVIEWCONTROLLER };
40  typedef enum { eSuccess, eNoSelectionAllowed, eSingleItemAlreadySelected, eSingleParentOnly, eDiscontiguousNotAllowed, eCantSelectHiddenRootNode } SelectCode;
41  // ----- Item selection -----
42 
48  virtual void ProcessSelectionRules(IEvent* event, UID node, bool16 notifyOfChange = kTrue) = 0;
49 
50 
55  virtual void DeselectAll( bool16 notifyOfChange = kTrue, bool16 changeHilite = kTrue ) = 0;
56 
57 
64  virtual SelectCode Select( const NodeID& itemToSelect, bool16 notifyOfChange = kTrue, bool16 changeHilite = kTrue ) = 0;
65 
71  virtual void Deselect( const NodeID& itemToDeselect, bool16 notifyOfChange = kTrue, bool16 changeHilite = kTrue ) = 0;
72 
73 
77  virtual bool16 IsSelected( const NodeID& item ) const = 0;
78 
79 
84  virtual void GetSelectedItems( NodeIDList& selectedItems) const = 0;
85 
90  virtual void GetSelectedItemsDisplayOrder( NodeIDList& selectedItems) const = 0;
91 
92 
97  virtual bool16 AllowsSelection( ) const = 0;
98 
102  virtual NodeID GetMasterItem() const = 0;
103 
104 };
105 
106 #endif