Example #1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Insert end of paragraph marks if needed.
 /// </summary>
 /// <param name="vwenv"></param>
 /// <param name="paraHvo"></param>
 /// ------------------------------------------------------------------------------------
 protected override void InsertEndOfParaMarks(IVwEnv vwenv, int paraHvo)
 {
     if (Options.ShowFormatMarksSetting && m_target == LayoutViewTarget.targetDraft)
     {
         IStPara para = m_cache.ServiceLocator.GetInstance <IStParaRepository>().GetObject(paraHvo);
         // If this is the last paragraph of a section then insert an
         // end of section mark, otherwise insert a paragraph mark.
         VwBoundaryMark boundaryMark = (para.IsFinalParaInText) ?
                                       VwBoundaryMark.endOfSection : VwBoundaryMark.endOfParagraph;
         vwenv.SetParagraphMark(boundaryMark);
         int flid = m_cache.ServiceLocator.GetInstance <Virtuals>().StParaIsFinalParaInText;
         vwenv.NoteDependency(new [] { paraHvo }, new [] { flid }, 1);
     }
 }
Example #2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Member SetParagraphMark
		/// </summary>
		/// <param name="boundaryMark">enumeration value used to represent the paragraph or section
		/// boundary and whether it is highlighted or not: endOfParagraph,	endOfSection,
		/// endOfParagraphHighlighted, or endofSectionHighlighted
		/// </param>
		/// ------------------------------------------------------------------------------------
		public virtual void SetParagraphMark(VwBoundaryMark boundaryMark)
		{
		}
Example #3
0
 /// <summary>
 /// Setting a Unicode character that indicates a boundary (e.g. for a paragraph or section).
 /// </summary>
 /// <param name="boundaryMark"/>
 public void SetParagraphMark(VwBoundaryMark boundaryMark)
 {
     throw new NotImplementedException();
 }
		public void SetParagraphMark(VwBoundaryMark boundaryMark)
		{
			throw new NotImplementedException();
		}