• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IVwViewConstructor类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IVwViewConstructor的典型用法代码示例。如果您正苦于以下问题:C# IVwViewConstructor类的具体用法?C# IVwViewConstructor怎么用?C# IVwViewConstructor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IVwViewConstructor类属于命名空间,在下文中一共展示了IVwViewConstructor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: PrintRootSite

		/// ------------------------------------------------------------------------------------
		/// <summary>
		///
		/// </summary>
		/// <param name="sda"></param>
		/// <param name="hvo"></param>
		/// <param name="vc"></param>
		/// <param name="frags"></param>
		/// <param name="styleSheet"></param>
		/// ------------------------------------------------------------------------------------
		public PrintRootSite(ISilDataAccess sda, int hvo, IVwViewConstructor vc, int frags,
			IVwStylesheet styleSheet)
		{
			m_sda = sda;
			m_hvo = hvo;
			m_vc = vc;
			m_frags = frags;
			m_styleSheet = styleSheet;
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:19,代码来源:PrintRootSite.cs


示例2: DiscourseExporter

		int m_wsLineNumber; // ws to use for line numbers.

		public DiscourseExporter(FdoCache cache, XmlWriter writer, int hvoRoot, IVwViewConstructor vc,
			int wsLineNumber)
			: base(null, cache.MainCacheAccessor, hvoRoot)
		{
			m_cache = cache;
			m_writer = writer;
			m_vc = vc;
			m_wsLineNumber = wsLineNumber;
			m_chart = DsConstChart.CreateFromDBObject(cache, hvoRoot);
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:12,代码来源:DiscourseExporter.cs


示例3: FindReplaceCollectorEnvBase

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="T:FindReplaceCollectorEnvBase"/> class.
		/// </summary>
		/// <param name="vc">The view constructor.</param>
		/// <param name="sda">Date access to get prop values etc.</param>
		/// <param name="hvoRoot">The root object to display.</param>
		/// <param name="frag">The fragment.</param>
		/// <param name="vwPattern">The find/replace pattern.</param>
		/// <param name="searchKiller">Used to interrupt a find/replace</param>
		/// <remarks>If the base environment is not null, it is used for various things,
		/// such as obtaining 'outer object' information.</remarks>
		/// ------------------------------------------------------------------------------------
		public FindReplaceCollectorEnvBase(IVwViewConstructor vc, ISilDataAccess sda,
			int hvoRoot, int frag, IVwPattern vwPattern, IVwSearchKiller searchKiller)
			: base(null, sda, hvoRoot)
		{
			m_vc = vc;
			m_frag = frag;
			m_Pattern = vwPattern;
			m_searchKiller = searchKiller;
			m_textSourceInit = VwMappedTxtSrcClass.Create();
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:23,代码来源:FindReplaceCollectorEnv.cs


示例4: DiscourseExporter

		private readonly int m_wsLineNumber; // ws to use for line numbers.

		public DiscourseExporter(FdoCache cache, XmlWriter writer, int hvoRoot, IVwViewConstructor vc,
			int wsLineNumber)
			: base(null, cache.MainCacheAccessor, hvoRoot)
		{
			m_cache = cache;
			m_writer = writer;
			m_vc = vc;
			m_wsLineNumber = wsLineNumber;
			m_chart = m_cache.ServiceLocator.GetInstance<IDsConstChartRepository>().GetObject(hvoRoot);
			m_rowRepo = m_cache.ServiceLocator.GetInstance<IConstChartRowRepository>();
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:13,代码来源:DiscourseExporter.cs


示例5: DiscourseExportDialog

		public DiscourseExportDialog(Mediator mediator, int hvoRoot, IVwViewConstructor vc,
			int wsLineNumber) : base(mediator)
		{
			m_hvoRoot = hvoRoot;
			m_vc = vc;

			m_helpTopic = "khtpExportDiscourse";
			columnHeader1.Text = DiscourseStrings.ksFormat;
			columnHeader2.Text = DiscourseStrings.ksExtension;
			Text = DiscourseStrings.ksExportDiscourse;
			m_wsLineNumber = wsLineNumber;
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:12,代码来源:DiscourseExportDialog.cs


示例6: AddObjVec

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Adds the obj vec.
		/// </summary>
		/// <param name="tag">The tag.</param>
		/// <param name="vc">The vc.</param>
		/// <param name="frag">The frag.</param>
		/// ------------------------------------------------------------------------------------
		public virtual void AddObjVec(int tag, IVwViewConstructor vc, int frag)
		{
			OpenProp(tag);
			vc.DisplayVec(this, m_hvoCurr, tag, frag);
			CloseProp();
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:14,代码来源:CollectorEnv.cs


示例7: GetRootObject

		public void GetRootObject(out int _hvo, out IVwViewConstructor _pvwvc, out int _frag,
			out IVwStylesheet _pss)
		{
			throw new NotImplementedException();
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:5,代码来源:IbusRootSiteEventHandlerTests.cs


示例8: SetRootVariant

		public void SetRootVariant(object v, IVwStylesheet _ss, IVwViewConstructor _vwvc, int frag)
		{
			throw new NotImplementedException();
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:4,代码来源:IbusRootSiteEventHandlerTests.cs


示例9: SetRootObjects

		public void SetRootObjects(int[] _rghvo, IVwViewConstructor[] _rgpvwvc, int[] _rgfrag,
			IVwStylesheet _ss, int chvo)
		{
			throw new NotImplementedException();
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:5,代码来源:IbusRootSiteEventHandlerTests.cs


示例10: AddSubordinateStream

		/// -------------------------------------------------------------------------------------
		/// <summary>
		/// Configurer should call this method for each subordinate stream (such as foootnotes)
		/// after creating the main stream.
		/// </summary>
		/// <param name="hvoRoot">Top-level object to be displayed in this stream.</param>
		/// <param name="frag">The id of the top-level fragment for this stream</param>
		/// <param name="vc">The view constructor to be used for laying out this stream</param>
		/// <param name="subStreamDelegate">Implements view-specific callback methods</param>
		/// -------------------------------------------------------------------------------------
		public void AddSubordinateStream(int hvoRoot, int frag, IVwViewConstructor vc,
			ISubordinateStreamDelegate subStreamDelegate)
		{
			CheckDisposed();

			SubordinateStream subStream;
			subStream.m_fShared = false;
			subStream.m_vc = vc;
			subStream.m_delegate = subStreamDelegate;
			subStream.m_stream = VwLayoutStreamClass.Create();
			PublicationControl.SetAccessibleStreamName(subStream.m_stream,
				Publication.AccessibleName + "_SubordinateStream");

			subStream.m_stream.SetManager(this);
			IVwRootBox rootbox = (IVwRootBox)subStream.m_stream;
			rootbox.SetSite(Publication);
			rootbox.DataAccess = m_configurer.DataAccess;
			rootbox.SetRootObject(hvoRoot, vc, frag, m_configurer.StyleSheet);
			m_subStreams.Add(subStream);
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:30,代码来源:DivisionLayoutMgr.cs


示例11: AddObj

		public override void AddObj(int hvoItem, IVwViewConstructor vc, int frag)
		{
			m_frags.Add(frag);
			base.AddObj (hvoItem, vc, frag);
			m_frags.RemoveAt(m_frags.Count - 1);
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:6,代码来源:DiscourseExporter.cs


示例12: AddStringAltMember

		public override void AddStringAltMember(int tag, int ws, IVwViewConstructor _vwvc)
		{
			if (tag == (int)WfiWordform.WfiWordformTags.kflidForm)
			{
				if(m_frags.Contains(ConstChartVc.kfragCcaMoved))
					WriteStringProp(tag, "word", ws, "moved", "true");
				else
					WriteStringProp(tag, "word", ws);
			}
			else if (tag == (int)WfiGloss.WfiGlossTags.kflidForm)
			{
				m_wsGloss = ws;
				string val = m_sda.get_MultiStringAlt(m_hvoCurr, tag, ws).Text;
				if (val == null)
					val = "";
				m_glossesInCellCollector.Add(val);
			}
			else if (tag == (int) CmAnnotation.CmAnnotationTags.kflidComment)
			{
				switch (m_frags[m_frags.Count - 1])
				{
					case ConstChartVc.kfragCca:
						if (m_cache.GetVectorSize(m_hvoCurr,
								(int)CmIndirectAnnotation.CmIndirectAnnotationTags.kflidAppliesTo) == 0)
						{
							WriteStringProp(tag, "lit", ws); // missing marker.
							break;
						}
						int hvoTarget = m_cache.GetVectorItem(m_hvoCurr,
								(int)CmIndirectAnnotation.CmIndirectAnnotationTags.kflidAppliesTo, 0); // the cca we refer to
						if (ConstituentChartLogic.HasPreviousMovedItemOnLine(m_chart, hvoTarget))
							WriteStringProp(tag, "moveMkr", ws, "targetFirstOnLine", "false");
						else
							WriteStringProp(tag, "moveMkr", ws);
						break;
					case ConstChartVc.kfragComment:
						WriteStringProp(tag, "clauseMkr", ws, "target", m_sda.get_MultiStringAlt(m_hvoCurr, tag, ws).Text);
						break;
					case ConstChartVc.kfragChartRow:
						WriteStringProp(tag, "rownum", ws);
						break;
				}
			}
			else if (tag == (int)CmPossibility.CmPossibilityTags.kflidAbbreviation)
			{
				// That makes it a list reference
				WriteStringProp(tag, "listRef", ws);
			}
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:49,代码来源:DiscourseExporter.cs


示例13: AddObjProp

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Adds the obj prop.
		/// </summary>
		/// <param name="tag">The tag.</param>
		/// <param name="vc">The vc.</param>
		/// <param name="frag">The frag.</param>
		/// ------------------------------------------------------------------------------------
		public virtual void AddObjProp(int tag, IVwViewConstructor vc, int frag)
		{
			if (Finished)
				return;
			int hvoItem = m_sda.get_ObjectProp(m_hvoCurr, tag);
			if (hvoItem != 0)
			{
				OpenProp(tag);
				OpenTheObject(hvoItem, 0);
				vc.Display(this, hvoItem, frag);
				CloseTheObject();
				CloseProp();
			}
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:22,代码来源:CollectorEnv.cs


示例14: AddLazyVecItems

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// For our purpose, laziness is not relevant. Equivalent to the non-lazy version.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public void AddLazyVecItems(int tag, IVwViewConstructor vc, int frag)
		{
			AddObjVecItems(tag, vc, frag);
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:9,代码来源:CollectorEnv.cs


示例15: AddStringAltMember

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Member AddStringAltMember
		/// </summary>
		/// <param name="tag">tag</param>
		/// <param name="ws">ws</param>
		/// <param name="_vwvc">_vwvc</param>
		/// ------------------------------------------------------------------------------------
		public virtual void AddStringAltMember(int tag, int ws, IVwViewConstructor _vwvc)
		{
			if (Finished)
				return;
			OpenProp(tag);
			AddTsString(m_sda.get_MultiStringAlt(m_hvoCurr, tag, ws));
			CloseProp();
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:16,代码来源:CollectorEnv.cs


示例16: AddStringProp

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Member AddStringProp
		/// </summary>
		/// <param name="tag">tag</param>
		/// <param name="_vwvc">_vwvc</param>
		/// ------------------------------------------------------------------------------------
		public virtual void AddStringProp(int tag, IVwViewConstructor _vwvc)
		{
			if (Finished)
				return;
			OpenProp(tag);
			AddTsString(m_sda.get_StringProp(m_hvoCurr, tag));
			CloseProp();
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:15,代码来源:CollectorEnv.cs


示例17: CreateHeaderOrFooter

		/// -------------------------------------------------------------------------------------
		/// <summary>
		/// Create a header or footer stream
		/// </summary>
		/// <param name="vc">The view constructor used to lay out the header or footer stream
		/// </param>
		/// <param name="hvoRoot">The ID of the CmPubHeader object which will supply the layout
		/// details to the view contructor</param>
		/// <param name="xpLeftMargin">Left margin in printer pixels (we could recalc this, but
		/// since the caller already has it, it's faster to just pass it)</param>
		/// <param name="dympMaxHeight">Maximum height allowed for the header or footer stream,
		/// in millipoints</param>
		/// <param name="dypHeight">Height of the laid out data (limited by dypMaxHeight)</param>
		/// <returns></returns>
		/// -------------------------------------------------------------------------------------
		protected IVwLayoutStream CreateHeaderOrFooter(IVwViewConstructor vc, int hvoRoot,
			int xpLeftMargin, int dympMaxHeight, out int dypHeight)
		{
			IVwLayoutStream stream = VwLayoutStreamClass.Create();
			stream.SetManager(this);

			IVwRootBox rootbox = (IVwRootBox)stream;
			rootbox.SetSite(Publication);
			rootbox.DataAccess = m_configurer.DataAccess;
			rootbox.SetRootObject(hvoRoot, vc, HeaderFooterVc.kfragPageHeaderFooter,
				m_configurer.StyleSheet);

			// Layout the stream
			IVwGraphics vg = Publication.PrinterGraphics;
			try
			{
				rootbox.Layout(vg, AvailablePageWidthInPrinterPixels);
			}
			finally
			{
				Publication.ReleaseGraphics(vg);
			}

			// Limit the height to no more than the given maximum
			dypHeight = Math.Min(rootbox.Height,
				(int)(dympMaxHeight * Publication.DpiYPrinter / MiscUtils.kdzmpInch));

			return stream;
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:44,代码来源:DivisionLayoutMgr.cs


示例18: AddObjProp

		public override void AddObjProp(int tag, IVwViewConstructor vc, int frag)
		{
			m_frags.Add(frag);
			switch (frag)
			{
				default:
					break;
			}
			base.AddObjProp(tag, vc, frag);
			switch (frag)
			{
				default:
					break;
			}
			m_frags.RemoveAt(m_frags.Count - 1);
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:16,代码来源:DiscourseExporter.cs


示例19: AddSharedSubordinateStream

		/// -------------------------------------------------------------------------------------
		/// <summary>
		/// Configurer should call this method for each shared subordinate stream (such as
		/// foootnotes) after creating the main stream.
		/// </summary>
		/// <param name="stream">The shared subordinate stream.</param>
		/// <param name="vc">The view constructor to be used for laying out this stream</param>
		/// <param name="subStreamDelegate">Implements view-specific callback methods</param>
		/// -------------------------------------------------------------------------------------
		public void AddSharedSubordinateStream(IVwLayoutStream stream, IVwViewConstructor vc,
			ISubordinateStreamDelegate subStreamDelegate)
		{
			CheckDisposed();

			SubordinateStream subStream;
			subStream.m_fShared = true;
			subStream.m_vc = vc;
			subStream.m_delegate = subStreamDelegate;
			subStream.m_stream = stream;
			// We're not always the manager for the shared stream, but sometimes, and it is
			// better to have a valid object as manager then to get a crash :-)
			subStream.m_stream.SetManager(this);
			m_subStreams.Add(subStream);
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:24,代码来源:DivisionLayoutMgr.cs


示例20: AddObjVecItems

		/// <summary>
		/// overridden to maintain the frags array.
		/// </summary>
		/// <param name="tag"></param>
		/// <param name="vc"></param>
		/// <param name="frag"></param>
		public override void AddObjVecItems(int tag, IVwViewConstructor vc, int frag)
		{
			m_frags.Add(frag);
			base.AddObjVecItems (tag, vc, frag);
			m_frags.RemoveAt(m_frags.Count - 1);
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:12,代码来源:DiscourseExporter.cs



注:本文中的IVwViewConstructor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IWaitIndicator类代码示例发布时间:2022-05-24
下一篇:
C# IVwStylesheet类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap