![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { eAllowNoSelection = 0, eAllowSingleSelection = 1, eAllowMultipleSelection } |
Public Types inherited from ITreeViewController | |
| enum | { kDefaultIID = IID_ITREEVIEWCONTROLLER } |
| enum | SelectCode { eSuccess, eNoSelectionAllowed, eSingleItemAlreadySelected, eSingleParentOnly, eDiscontiguousNotAllowed, eCantSelectHiddenRootNode } |
Public Member Functions | |
| CTreeViewController (IPMUnknown *boss) | |
| virtual void | ProcessSelectionRules (IEvent *event, UID node, bool16 notifyOfChange) |
| virtual void | DeselectAll (bool16 notifyOfChange=kTrue, bool16 changeHilite=kTrue) |
| virtual SelectCode | Select (const NodeID &node, bool16 notifyOfChange=kTrue, bool16 changeHilite=kTrue) |
| virtual void | Deselect (const NodeID &node, bool16 notifyOfChange=kTrue, bool16 changeHilite=kTrue) |
| virtual bool16 | AllowsSelection () const |
| virtual NodeID | GetMasterItem () const |
| void | ReadWrite (IPMStream *s, ImplementationID prop) |
Protected Member Functions | |
| virtual void | NotifyOfChange (bool16 notifyOfChange, int32 changeMessage) |
| virtual void | ChangeHilite (const NodeID &nodeToHilite, bool16 hilite) |
| virtual void | UpdateSelection (const NodeID &, bool16 select) |
| virtual void | ClearSelection (bool8 notifyOfSelectionChange=true) |
| virtual bool16 | IsSelected (const NodeID &item) const |
| virtual void | GetSelectedItems (NodeIDList &selectedItems) const |
| virtual void | GetSelectedItemsDisplayOrder (NodeIDList &selectedItems) const |
| virtual bool16 | IgnoreIfNodeIsSelected () const |
Protected Attributes | |
| NodeIDList | fSelectedNodes |
| NodeID | fFirstSelected |
| int16 | fNumSelectableItems |
| bool16 | fAllowMultipleParents |
| bool16 | fAllowDiscontiguousSelection |
| virtual |
Does this tree allow nodes to be selected.
Implements ITreeViewController.
| virtual |
Deselect the element specified by the given node.
| itemToDeselect | |
| notifyOfChange | kTrue if the change in state should be broadcast to registered observers, kFalse otherwise |
| changeHilite | kTrue if the hilite state should reflect the change |
Implements ITreeViewController.
| virtual |
Deselect all elements.
| notifyOfChange | kTrue if the change in state should be broadcast to registered observers, kFalse otherwise |
| changeHilite | kTrue if the hilite state should reflect the change |
Implements ITreeViewController.
| inlinevirtual |
Returns the NodeID of the first item selected.
Implements ITreeViewController.
| protectedvirtual |
Determine the items selected within the tree control.
| selectedItems | OUT parameter, is a sorted array arranged in NodeID order |
Implements ITreeViewController.
| protectedvirtual |
Determine the items selected within the tree control.
| selectedItems | OUT parameter, is a sorted array arranged in display order. |
Implements ITreeViewController.
| protectedvirtual |
Determine if given node is selected
Implements ITreeViewController.
| virtual |
Handles a click on the given node to determine how it affects the selection.
| event | encapsulates event generated by end-user |
| node | refers to node clicked |
Implements ITreeViewController.
| virtual |
Select the element at the given position in the list.
| itemToSelect | |
| notifyOfChange | kTrue if the change in state should be broadcast to registered observers, kFalse otherwise |
| changeHilite | kTrue if the hilite state should reflect the change |
Implements ITreeViewController.