コード例 #1
0
ファイル: RedlineSearcher.cs プロジェクト: killbug2004/WSProf
 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;
 }
コード例 #2
0
        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;

        }
コード例 #3
0
ファイル: SummaryTree.cs プロジェクト: killbug2004/WSProf
		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));
			}
		}
コード例 #4
0
 public RedlineHeadingNode(List<DocObject> redlineObjects, RedlineTextBuilder rtb) : base(new DummySummaryItem())
 {
     m_rtb = rtb;
     m_redlineObjects = redlineObjects;
 }
コード例 #5
0
 internal SummaryChangeNode(RedlineML.ISummaryItem si, RedlineTextBuilder rtb) : base(si)
 {
     m_rtb = rtb;
     SummaryItem.UnreadCount = 1;
 }