Пример #1
0
        private void AddMissingChangeItems(SummaryNode parentNode, SearchResult sr)
        {
            if (m_missingChanges == null)
            {
                m_missingChanges = SummaryCategoryNode.Create("Suggested Changes", ChangeCategory.MissingChanges);
                m_missingChanges.ToolTipText = "Changes that a reviewer might have neglected to make. This category highlights places where a matching replacement or deletion has not been applied consistently accross the whole document." +
                " Suggest changes are only flagged where the number of unchanged instances found is less than half the number of changed instances.";
            }

            SummaryNode headingNode = new RedlineHeadingNode((parentNode as RedlineHeadingNode).RedlineObjects, m_context.RTB);
            SearchSummaryItemBuilder ssib = new SearchSummaryItemBuilder(sr, Utils.IsInOriginalDocument);
            foreach (ISummaryItem isi in ssib.Execute())
            {
                headingNode.ChildNodes.Add(new SummarySearchNode(isi, m_context.RTB, m_context.ChangePositionMap));
            }
            m_missingChanges.ChildNodes.Add(headingNode);
        }
 public SearchSummaryItemBuilder(FastSearch.SearchResult searchResult, Predicate<ChangeType> changeTypeSelector)
 {
    this.m_searchResult = searchResult;
     m_changeTypeSelector = changeTypeSelector;
 }