A GroupHookup subclass is used for any hookup that can be a parent of other hookups. For example, a SequenceHookup has a child hookup for each item in the sequence; an ItemHookup has children which are the hookups for the various properties displayed. It keeps track of its children in order. It also knows a containing box in which its parts are placed.
Inheritance: Hookup
Beispiel #1
0
 void IHookupInternal.SetParentHookup(GroupHookup parent)
 {
     ParentHookup = parent;
 }
Beispiel #2
0
		public bool GetParagraphOps(out IParagraphOperations paragraphOps, out GroupHookup parentHookup, out int index)
		{
			paragraphOps = null;
			ItemHookup itemHookup = null;
			parentHookup = null;
			foreach (var hookup in Hookup.Parents)
			{
				var isoHookup = hookup as IHaveParagagraphOperations;
				if (isoHookup != null && isoHookup.GetParagraphOperations() != null)
				{
					parentHookup = hookup;
					paragraphOps = isoHookup.GetParagraphOperations();
					break;
				}
				itemHookup = hookup as ItemHookup;
			}
			if (paragraphOps == null || itemHookup == null)
			{
				index = -1;
				return false;
			}
			index = parentHookup.Children.IndexOf(itemHookup);
			return true;
		}
Beispiel #3
0
		void IHookupInternal.SetParentHookup(GroupHookup parent)
		{
			ParentHookup = parent;
		}