Exemplo n.º 1
0
        private void AddGroup(List<ISummaryItem> list)
        {
            List<DocObject> groupRedline = new List<DocObject>();
            foreach (Change ch in list[0].Changes)
                groupRedline.Add(ch);
            RedlineHeadingNode node = new RedlineHeadingNode(groupRedline, m_context.RTB);

            foreach (ISummaryItem si in list)
            {
                node.ChildNodes.Add(new SummaryChangeNode(si, m_context.RTB));
            }

            m_matchingChanges.ChildNodes.Add(node);
        }
Exemplo n.º 2
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);
        }