当前位置: 首页>>代码示例>>C#>>正文


C# IVwViewConstructor类代码示例

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


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


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