/// <summary> /// Creates a IxxxBlockSelection object. /// </summary> private protected override IFocusBlockListSelection CreateBlockListSelection(IFocusNodeStateView stateView, string propertyName, int startIndex, int endIndex) { ControllerTools.AssertNoOverride(this, Type.FromTypeof <LayoutControllerView>()); return(new LayoutBlockListSelection((ILayoutNodeStateView)stateView, propertyName, startIndex, endIndex)); }
/// <summary> /// Creates a IxxxCommentSelection object. /// </summary> private protected override IFocusCommentSelection CreateCommentSelection(IFocusNodeStateView stateView, int start, int end) { ControllerTools.AssertNoOverride(this, Type.FromTypeof <LayoutControllerView>()); return(new LayoutCommentSelection((ILayoutNodeStateView)stateView, start, end)); }
/// <summary> /// Creates a IxxxNodeSelection object. /// </summary> private protected override IFocusNodeSelection CreateNodeSelection(IFocusNodeStateView stateView) { ControllerTools.AssertNoOverride(this, Type.FromTypeof <LayoutControllerView>()); return(new LayoutNodeSelection((ILayoutNodeStateView)stateView)); }
/// <summary> /// Initializes a new instance of the <see cref="FocusColumn"/> class. /// </summary> /// <param name="stateView">The state view containing the tree with this cell.</param> /// <param name="parentCellView">The collection of cell views containing this view. Null for the root of the cell tree.</param> /// <param name="cellViewList">The list of child cell views.</param> /// <param name="frame">The frame that was used to create this cell. Can be null.</param> public FocusColumn(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView, FocusCellViewList cellViewList, IFocusFrame frame) : base(stateView, parentCellView, cellViewList, frame) { }
/// <summary> /// Creates a IxxxDiscreteContentSelection object. /// </summary> private protected override IFocusDiscreteContentSelection CreateDiscreteContentSelection(IFocusNodeStateView stateView, string propertyName) { ControllerTools.AssertNoOverride(this, Type.FromTypeof <LayoutControllerView>()); return(new LayoutDiscreteContentSelection((ILayoutNodeStateView)stateView, propertyName)); }
/// <summary></summary> protected virtual bool UpdateSelectorStackBlockState(List <FocusFrameSelectorList> selectorStack, IFocusBlockState blockState, IFocusInner inner, ref IFocusNodeStateView currentStateView) { Debug.Assert(ControllerView.TemplateSet.BlockTemplateTable.ContainsKey(blockState.ParentInner.BlockType)); IFocusBlockTemplate Template = ControllerView.TemplateSet.BlockTemplateTable[blockState.ParentInner.BlockType] as IFocusBlockTemplate; Debug.Assert(Template != null); IFocusNodeState ParentState = blockState.ParentInner.Owner; Debug.Assert(ParentState != null); currentStateView = (IFocusNodeStateView)ControllerView.StateViewTable[ParentState]; if (Template.FrameSelectorForProperty(inner.PropertyName, out IFocusFrameWithSelector Frame)) { if (Frame != null) { if (Frame.Selectors.Count > 0) { selectorStack.Insert(0, Frame.Selectors); } } } return(true); }
/// <summary> /// Initializes a new instance of the <see cref="FocusVisibleCellView"/> class. /// </summary> /// <param name="stateView">The state view containing the tree with this cell.</param> /// <param name="parentCellView">The collection of cell views containing this view. Null for the root of the cell tree.</param> /// <param name="frame">The frame that created this cell view.</param> public FocusVisibleCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView, IFocusFrame frame) : base(stateView, parentCellView, frame) { }
/// <summary> /// Creates a IxxxEmptyCellView object. /// </summary> private protected override IFocusEmptyCellView CreateEmptyCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView) { ControllerTools.AssertNoOverride(this, typeof(LayoutCharacterFrame)); return(new LayoutEmptyCellView((ILayoutNodeStateView)stateView, (ILayoutCellViewCollection)parentCellView)); }
/// <summary></summary> protected virtual bool UpdateSelectorStackNodeState(List <FocusFrameSelectorList> selectorStack, ref IFocusNodeStateView currentStateView) { IFocusInner ParentInner = currentStateView.State.ParentInner; IFocusNodeState ParentState = currentStateView.State.ParentState; if (ParentInner == null) { Debug.Assert(ParentState == null); return(false); } Debug.Assert(ParentState != null); currentStateView = (IFocusNodeStateView)ControllerView.StateViewTable[ParentState]; IFocusNodeTemplate Template = currentStateView.Template as IFocusNodeTemplate; Debug.Assert(Template != null); if (Template.FrameSelectorForProperty(ParentInner.PropertyName, out IFocusFrameWithSelector Frame)) { if (Frame != null) { if (Frame.Selectors.Count > 0) { selectorStack.Insert(0, Frame.Selectors); } } } return(true); }
/// <summary> /// Creates a IxxxEmptyCellView object. /// </summary> private protected override IFocusEmptyCellView CreateEmptyCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView) { ControllerTools.AssertNoOverride(this, Type.FromTypeof <LayoutDiscreteFrame>()); return(new LayoutEmptyCellView((ILayoutNodeStateView)stateView, (ILayoutCellViewCollection)parentCellView)); }
/// <summary> /// Creates a IxxxEmptyCellView object. /// </summary> private protected virtual IFocusEmptyCellView CreateEmptyCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView) { ControllerTools.AssertNoOverride(this, typeof(FocusCharacterFrame)); return(new FocusEmptyCellView(stateView, parentCellView)); }
/// <summary> /// Initializes a new instance of the <see cref="FocusBlockCellView"/> class. /// </summary> /// <param name="stateView">The state view containing the tree with this cell.</param> /// <param name="parentCellView">The collection of cell views containing this view.</param> /// <param name="blockStateView">The block state view of the state associated to this cell.</param> public FocusBlockCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView, FocusBlockStateView blockStateView) : base(stateView, parentCellView, blockStateView) { }
/// <summary> /// Initializes a new instance of the <see cref="FocusEmptyCellView"/> class. /// </summary> /// <param name="stateView">The state view containing the tree with this cell.</param> /// <param name="parentCellView">The collection of cell views containing this view. Null for the root of the cell tree.</param> public FocusEmptyCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView) : base(stateView, parentCellView) { }
/// <summary> /// Initializes a new instance of the <see cref="FocusCommentCellView"/> class. /// </summary> /// <param name="stateView">The state view containing the tree with this cell.</param> /// <param name="parentCellView">The collection of cell views containing this view. Null for the root of the cell tree.</param> /// <param name="frame">The frame that created this cell view.</param> /// <param name="documentation">The comment this cell is displaying.</param> public FocusCommentCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView, IFocusFrame frame, Document documentation) : base(stateView, parentCellView, frame, documentation) { }
bool IDictionary <IFocusNodeState, IFocusNodeStateView> .TryGetValue(IFocusNodeState key, out IFocusNodeStateView value) { bool Result = TryGetValue((ILayoutNodeState)key, out ILayoutNodeStateView Value); value = Value; return(Result); }
void IDictionary <IFocusNodeState, IFocusNodeStateView> .Add(IFocusNodeState key, IFocusNodeStateView value) { Add((ILayoutNodeState)key, (ILayoutNodeStateView)value); }