24 #ifndef __ITreeViewMgr__ 25 #define __ITreeViewMgr__ 27 #include "IPMUnknown.h" 50 enum { kDefaultIID = IID_ITREEVIEWMGR };
65 virtual void ChangeRoot( bool16 widgetHeightIsConstant = kFalse ) = 0;
70 virtual void NodeAdded(
const NodeID& nodeAdded ) = 0;
80 virtual void BeforeNodeDeleted(
const NodeID& nodeDeleted ) = 0;
99 virtual void NodeMoved(
const NodeID& nodeMoved,
const NodeID& oldParent ) = 0;
109 virtual void NodeChanged(
const NodeID& nodeChanged, bool16 childrenChangedAlso = kFalse, int32 message = 0 ) = 0;
111 typedef enum { eScrollToTop, eScrollToMiddle, eScrollIntoView, eScrollToShowChildren } ScrollWhere;
117 virtual void ScrollToNode(
const NodeID& scrollToNode, ScrollWhere whereToScroll ) = 0;
123 virtual bool16 IsNodeExpanded(
const NodeID& nodeInQuestion )
const = 0;
129 virtual bool16 IsNodeExpanded(
IControlView* widget)
const = 0;
136 virtual void ExpandNode(
const NodeID& nodeToExpand, bool16 expandAllDescendants = kFalse ) = 0;
142 virtual void CollapseNode(
const NodeID& nodeToCollapse, bool16 collapseAllDescendants = kFalse ) = 0;
146 virtual void HandleScroll( int32 amount, bool16 up ) = 0;
150 virtual void HandleResize() = 0;
154 virtual void ScrollUp() = 0;
158 virtual void ScrollDown() = 0;
179 virtual void ClearTree( bool16 clearExpandedNodeList = kFalse ) = 0;
191 virtual void Purge(int32 level) = 0;
198 virtual void RefreshSubTree(
const NodeID& subTreeRoot, bool16 includeEntireHier = kTrue) = 0;
201 virtual void ArrangeWidgets() = 0;
207 virtual PMRect GetViewableArea() = 0;
212 virtual PMPoint GetSizeNeededWihtoutScrollbar() = 0;
217 virtual void ScrollVerticalAbsoluteAmount(int32 amount, bool16 forceRedraw = kTrue) = 0;
224 #endif // __ITreeViewMgr__