Esempio n. 1
0
        public SummaryItemInfoExtractor(ISummaryItem isi)
        {
            m_isi = isi;

            StringBuilder bldOrig = new StringBuilder();
            StringBuilder bldMod = new StringBuilder();
            foreach (Change ch in isi.Changes)
            {
                if (Utils.IsInOriginalDocument(ch.Type))
                    ch.GetInnerText(bldOrig);
                if (Utils.IsInModifiedDocument(ch.Type))
                    ch.GetInnerText(bldMod);
            }

            bldBefore = new StringBuilder();
            bldAfter = new StringBuilder();

            SurroundingTextExtractor txtex = new SurroundingTextExtractor();
            txtex.Execute(isi.Content, this);

            TextBeforeChange = bldBefore.ToString();
            TextAfterChange = bldAfter.ToString();

            OriginalText = bldOrig.ToString();
            ModifiedText = bldMod.ToString();
        }
Esempio n. 2
0
        private List<Inline> ExecuteImpl(IEnumerable<DocObject> items)
        {
            lock (m_lock)
            {
                m_result = new List<Inline>();
                SurroundingTextExtractor ste = new SurroundingTextExtractor();
                ste.Execute(items, this);

                return m_result;
            }
        }