public RedlineSearcher(RedlineML.ObjectModel.RedlineDocument RedlineDoc, List<RedlineML.ISummaryItem> changeSummaryItems, string searchText, SearchStyle searchStyle, bool ignoreCase, RedlineTextBuilder rtb, SortedList<int, int> changePosMap) { this.m_RedlineDoc = RedlineDoc; this.m_changeSummaryItems = changeSummaryItems; this.m_searchText = searchText; this.m_searchStyle = searchStyle; m_rtb = rtb; m_ignoreCase = ignoreCase; m_changePosMap = changePosMap; }
public SummarySearchNode(RedlineML.ISummaryItem si, RedlineTextBuilder rtb, SortedList<int,int> changePositions) : base(si, rtb) { _changePositions = changePositions; StringBuilder bld = new StringBuilder(); foreach (DocObject dobj in si.Content) { if (dobj is HighlightedTextRun) { HighlightedTextRun htr = dobj as HighlightedTextRun; bld.Append(htr.Content); if (_charPos == -1) _charPos = htr.RedlineCharPos; } } _highlightedText = bld.ToString(); SummaryItem.UnreadCount = 1; }
private void Load(object redlineML, object oStatusXML, Dictionary<string, object> renderingOptions) { try { m_renderingOptions = new RenderingOptions(renderingOptions); m_rtb = new RedlineTextBuilder(m_renderingOptions); LoadChangeSummaryItems(redlineML); CountCharacters(); BuildNodeTrees(); if (oStatusXML != null) LoadChangeStatus(oStatusXML); } catch (Exception ex) { Logger.LogError(ex); if (AllChangesNode == null) CreateRootNodes(); AllChangesNode.ChildNodes.Add(new SummaryCategoryNode("The change summary could not be loaded.", ChangeCategory.AllChanges)); CategorizedChangesNode.ChildNodes.Add(new SummaryCategoryNode("The change summary could not be loaded.", ChangeCategory.CategorizedChanges)); } }
public RedlineHeadingNode(List<DocObject> redlineObjects, RedlineTextBuilder rtb) : base(new DummySummaryItem()) { m_rtb = rtb; m_redlineObjects = redlineObjects; }
internal SummaryChangeNode(RedlineML.ISummaryItem si, RedlineTextBuilder rtb) : base(si) { m_rtb = rtb; SummaryItem.UnreadCount = 1; }