public void InsertKey(string key, string prevKey, string nextKey, CDVAtom cellContent) { CDVDocumentCell cell = new CDVDocumentCell(); cell.Key = key; cell.NextKey = nextKey; cell.PrevKey = prevKey; cell.Item = cellContent; cellContent.Parent = this; }
public CDVWord(CDVAtom owner, params object[] args) : base(owner) { ContentRect = Rectangle.Empty; foreach (object obj in args) { if (obj is CDVTextStyle) { this.TextStyle = (CDVTextStyle)obj; } else if (obj is CDVParaStyle) { this.ParaStyle = (CDVParaStyle)obj; } else if (obj is CDVSpan) { this.SpanWidth = (CDVSpan)obj; } else if (obj is string) { this.Text = (string)obj; } } }
public CDVPara(CDVAtom owner, params object[] args) : base(owner) { foreach (object obj in args) { if (obj is CDVParaStyle) { this.ParaStyle = (CDVParaStyle)obj; } else if (obj is CDVOrientation) { this.Orientation = (CDVOrientation)obj; } else if (obj is CDVTextStyle) { this.TextStyle = (CDVTextStyle)obj; } else if (obj is CDVSpan) { this.SpanWidth = (CDVSpan)obj; } else if (obj is CDVAtom) { CDVAtom atom = (CDVAtom)obj; atom.Parent = this; Words.Add(atom); } else if (obj is CDVAtom[]) { foreach (CDVAtom atom in (CDVAtom[])obj) { atom.Parent = this; Words.Add(atom); } } } }
public CDVAtom(CDVAtom parent) { Parent = parent; }
public CDVWord(CDVAtom owner) : base(owner) { ContentRect = Rectangle.Empty; }
public CDVPara(CDVAtom owner) : base(owner) { }
public void Add(CDVAtom atom) { atom.Parent = this; Words.Add(atom); }
public CDVRuler(CDVAtom parent, int width): base(parent) { Value = 0; Width = Width; }
public CDVRuler(CDVAtom parent): base(parent) { Value = 0; Width = 6; }