InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITreeAttributes.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Dave Burnard (was 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 __ITreeAttributes__
25 #define __ITreeAttributes__
26 
27 #include "widgetid.h"
28 #include "IPMUnknown.h"
29 
30 class ITreeNode;
31 
32 //========================================================================================
33 // CLASS ITreeAttributes
36 //========================================================================================
38 {
39 public:
40  enum { kDefaultIID = IID_ITREEATTRIBUTES };
41 
42 
43  // -----------------------------------------------------------
48  virtual bool16 IsRootNodeDisplayed() const = 0;
52  virtual void DisplayRootNode(bool16 displayRoot) = 0;
54 
55  // -----------------------------------------------------------
58 
59  typedef enum { kVerticalScrollBar, kHorizontalScrollBar} ScrollBarType;
60 
64  virtual bool16 IsScrollBarUsed( ScrollBarType scrollType ) const = 0;
65 
69  virtual void UseScrollBar( ScrollBarType scrollType, bool16 useScrollBar ) = 0;
70 
79  virtual int16 GetThumbScrollIncrement( ScrollBarType scrollType ) const = 0;
83  virtual int16 GetScrollButtonIncrement( ScrollBarType scrollType ) const = 0;
84 
91  virtual void SetScrollAmount( ScrollBarType scrollType, int16 scrollButtonIncrement, int16 thumbScrollIncrement ) = 0;
93 
94 
95  // -----------------------------------------------------------
98 
103  virtual void SetDrawEndLine( const bool16 willDrawEndLine ) = 0;
104 
107  virtual bool16 DrawsEndLine( ) const = 0;
108 
113  virtual void SetDrawBorder( const bool16 willDrawBorder ) = 0;
114 
117  virtual bool16 DrawsBorder( ) const = 0;
119 };
120 
121 
122 #endif