/// <summary> /// Renders the list hashtable within the RTF header. /// </summary> private void RenderListTable() { if (this.listList.Count == 0) { return; } rtfWriter.StartContent(); rtfWriter.WriteControlWithStar("listtable"); foreach (object obj in this.listList) { ListInfo lst = (ListInfo)obj; ListInfoRenderer lir = new ListInfoRenderer(lst, this); lir.Render(); } rtfWriter.EndContent(); rtfWriter.StartContent(); rtfWriter.WriteControlWithStar("listoverridetable"); foreach (object obj in this.listList) { ListInfo lst = (ListInfo)obj; ListInfoOverrideRenderer lir = new ListInfoOverrideRenderer(lst, this); lir.Render(); } rtfWriter.EndContent(); }
/// <summary> /// Prepares this renderer by collecting Information for font and color table. /// </summary> private void Prepare() { this.fontList.Clear(); //Fonts this.fontList.Add("Symbol"); this.fontList.Add("Wingdings"); this.fontList.Add("Courier New"); this.colorList.Clear(); this.colorList.Add(Colors.Black);//!!necessary for borders!! this.listList.Clear(); ListInfoRenderer.Clear(); ListInfoOverrideRenderer.Clear(); CollectTables(this.document); }
/// <summary> /// Renders a ListInfo to RTF for the \listoverridetable. /// </summary> internal override void Render() { int id = ListInfoRenderer.GetListID(_listInfo); if (id > -1) { _rtfWriter.StartContent(); _rtfWriter.WriteControl("listoverride"); _rtfWriter.WriteControl("listid", id); _rtfWriter.WriteControl("listoverridecount", 0); _rtfWriter.WriteControl("ls", _listNumber); _rtfWriter.EndContent(); _numberList.Add(_listInfo, _listNumber); ++_listNumber; } }
/// <summary> /// Renders the list hashtable within the RTF header. /// </summary> private void RenderListTable() { if (this.listList.Count == 0) return; rtfWriter.StartContent(); rtfWriter.WriteControlWithStar("listtable"); foreach (object obj in this.listList) { ListInfo lst = (ListInfo)obj; ListInfoRenderer lir = new ListInfoRenderer(lst, this); lir.Render(); } rtfWriter.EndContent(); rtfWriter.StartContent(); rtfWriter.WriteControlWithStar("listoverridetable"); foreach (object obj in this.listList) { ListInfo lst = (ListInfo)obj; ListInfoOverrideRenderer lir = new ListInfoOverrideRenderer(lst, this); lir.Render(); } rtfWriter.EndContent(); }