![]() | InDesign SDK 20.5 |
#include <ITreeViewWidgetMgr.h>

Public Types | |
| enum | { kDefaultIID = IID_ITREEVIEWWIDGETMGR } |
Public Member Functions | |
Widget Factory and reuse | |
| virtual IControlView * | CreateWidgetForNode (const NodeID &node) const =0 |
| virtual WidgetID | GetWidgetTypeForNode (const NodeID &node) const =0 |
| virtual bool16 | ApplyNodeIDToWidget (const NodeID &node, IControlView *widget, int32 message=0) const =0 |
| virtual void | PreDeleteWidget (IControlView *widget)=0 |
Widget placement | |
| virtual PMReal | GetNodeWidgetHeight (const NodeID &node) const =0 |
| virtual PMReal | GetNodeWidgetWidth (const NodeID &node) const =0 |
| virtual PMReal | GetIndentForNode (const NodeID &node) const =0 |
Widget Style - The tree view may have different looks, i.e. Large vs. Small palette rows | |
| virtual void | SetStyle (int32 styleIdentifier)=0 |
| virtual int32 | GetStyle () const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Interface responsible for creating the tree-view control widgets and applying node data to the widget.
Should be implemented by client code wishing to use a tree-view widget.
| pure virtual |
Change data in your nodeWidget(widget) to reflect the node passed in.
| node | specifies node to be rendered |
| widget | this is where the data from the node should be rendered |
| message | if you call an ITreeViewMgr method with a message, that message will be passes back to you in this parameter. For instance, if it is expensive to update the text, but not the icon. You could pass yourself a kMyIconChanged message in ITreeViewMgr::NodeChanged() and then only update the icon in ApplyDataToWidget() if message=kMyIconChanged |
Implemented in CusDtLnkUITreeTVWidgetMgr, PnlTrvTVWidgetMgr, DataUpdaterUITVWidgetMgr, CTreeViewWidgetMgr, CusCondTxtTreeViewWidgetMgr, and StringListBoxWidgetMgr.
| pure virtual |
Create the widget, but don't change the widget-data to match the node. That should be handled in ApplyNodeIDToWidget
| node |
Implemented in CTreeViewWidgetMgr, CusDtLnkUITreeTVWidgetMgr, PnlTrvTVWidgetMgr, DataUpdaterUITVWidgetMgr, CusCondTxtTreeViewWidgetMgr, StringListBoxWidgetMgr, TKITreeViewWidgetMgr, and ViewListBoxTreeViewWidgetMgr.
| node |
Implemented in CusDtLnkUITreeTVWidgetMgr, PnlTrvTVWidgetMgr, DataUpdaterUITVWidgetMgr, CTreeViewWidgetMgr, and PstLstUITVWidgetMgr.
| node | |
| return | desired height in pixels of widget rendering given node |
Implemented in CTreeViewWidgetMgr, StringListBoxWidgetMgr, and ViewListBoxTreeViewWidgetMgr.
| node |
Implemented in CTreeViewWidgetMgr, StringListBoxWidgetMgr, and ViewListBoxTreeViewWidgetMgr.
| pure virtual |
Implemented in CTreeViewWidgetMgr.
Determine a widget id that corresponds to the type of widget that should be used to render data from the given node
| node | specifies the node of interest |
Implemented in CTreeViewWidgetMgr, CusDtLnkUITreeTVWidgetMgr, PnlTrvTVWidgetMgr, and DataUpdaterUITVWidgetMgr.
| pure virtual |
Only TreeViews that need to do something prior to the tree deleting a widget will need to override this method. This method is called from the tree view manaager before it deletes a widget. For example, this provides the widget manager client to disconnect any child widgets it wants to continue to manage.
| widget | this is the widget that is being deleted |
Implemented in CTreeViewWidgetMgr, and ViewListBoxTreeViewWidgetMgr.
| pure virtual |
Set a style for the TreeView. These are essentially client defined and can be used however you like. This method is not called by the Tree Architecture, but can be called by a given tree implementaion to change the look of the tree.
| styleIdentifier | this is a client defined number that arbitrarily identifies a style. For you convenience, 2 standard styles identifiers have been provided, kSmallPaletteRowsTreeStyle and kLargePaletteRowsTreeStyle |
Implemented in CTreeViewWidgetMgr.