本文整理汇总了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;
}
示例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);
}
示例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();
}
示例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>();
}
示例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;
}
示例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();
}
示例7: GetRootObject
public void GetRootObject(out int _hvo, out IVwViewConstructor _pvwvc, out int _frag,
out IVwStylesheet _pss)
{
throw new NotImplementedException();
}
示例8: SetRootVariant
public void SetRootVariant(object v, IVwStylesheet _ss, IVwViewConstructor _vwvc, int frag)
{
throw new NotImplementedException();
}
示例9: SetRootObjects
public void SetRootObjects(int[] _rghvo, IVwViewConstructor[] _rgpvwvc, int[] _rgfrag,
IVwStylesheet _ss, int chvo)
{
throw new NotImplementedException();
}
示例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);
}
示例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);
}
示例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);
}
}
示例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();
}
}
示例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);
}
示例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();
}