本文整理汇总了C#中ILgWritingSystemFactory类的典型用法代码示例。如果您正苦于以下问题:C# ILgWritingSystemFactory类的具体用法?C# ILgWritingSystemFactory怎么用?C# ILgWritingSystemFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ILgWritingSystemFactory类属于命名空间,在下文中一共展示了ILgWritingSystemFactory类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: XmlNoteCategory
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="XmlNoteCategory"/> class based on the
/// specified category.
/// </summary>
/// ------------------------------------------------------------------------------------
public XmlNoteCategory(ICmPossibility category, ILgWritingSystemFactory lgwsf)
{
List<CategoryNode> categoryList = GetCategoryHierarchyList(category);
m_categoryPath = category.NameHierarchyString;
InitializeCategory(categoryList, lgwsf);
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:13,代码来源:XmlNoteCategory.cs
示例2: SimpleMatchDlg
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="T:SimpleMatchDlg"/> class.
/// </summary>
/// <param name="wsf">The WSF.</param>
/// <param name="ws">The ws.</param>
/// <param name="ss">The ss.</param>
/// ------------------------------------------------------------------------------------
public SimpleMatchDlg(ILgWritingSystemFactory wsf, int ws, IVwStylesheet ss)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
// We do this outside the designer-controlled code because it does funny things
// to FwTextBoxes, owing to the need for a writing system factory, and some
// properties it should not persist but I can't persuade it not to.
this.m_textBox = new FwTextBox();
this.m_textBox.WritingSystemFactory = wsf; // set ASAP.
this.m_textBox.WritingSystemCode = ws;
this.m_textBox.StyleSheet = ss; // before setting text, otherwise it gets confused about height needed.
this.m_textBox.Location = new System.Drawing.Point(8, 24);
this.m_textBox.Name = "m_textBox";
this.m_textBox.Size = new System.Drawing.Size(450, 32);
this.m_textBox.TabIndex = 0;
this.m_textBox.Text = "";
this.Controls.Add(this.m_textBox);
regexContextMenu = new RegexHelperMenu(m_textBox, FwApp.App);
m_ivwpattern = VwPatternClass.Create();
helpProvider = new System.Windows.Forms.HelpProvider();
helpProvider.HelpNamespace = FwApp.App.HelpFile;
helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0));
helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic);
}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:38,代码来源:SimpleMatchDlg.cs
示例3: AddBulletFontInfoToBldr
/// ------------------------------------------------------------------------------------
/// <summary>
/// Adds the bullet font information to the specified props builder.
/// </summary>
/// <param name="bldr">The props builder.</param>
/// <param name="bulFontInfo">The bullet font information XML.</param>
/// <param name="lgwsf">The writing system factory.</param>
/// ------------------------------------------------------------------------------------
private static void AddBulletFontInfoToBldr(ITsPropsBldr bldr, XElement bulFontInfo,
ILgWritingSystemFactory lgwsf)
{
int intValue, type, var;
string strValue;
ITsPropsBldr fontProps = GetPropAttributesForElement(bulFontInfo, lgwsf);
// Add the integer properties to the bullet props string
StringBuilder bulletProps = new StringBuilder(fontProps.IntPropCount * 3 + fontProps.StrPropCount * 20);
for (int i = 0; i < fontProps.IntPropCount; i++)
{
fontProps.GetIntProp(i, out type, out var, out intValue);
bulletProps.Append((char)type);
WriteIntToStrBuilder(bulletProps, intValue);
}
// Add the string properties to the bullet props string
for (int i = 0; i < fontProps.StrPropCount; i++)
{
fontProps.GetStrProp(i, out type, out strValue);
bulletProps.Append((char)type);
bulletProps.Append(strValue);
bulletProps.Append('\u0000');
}
bldr.SetStrPropValue((int)FwTextPropType.ktptBulNumFontInfo, bulletProps.ToString());
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:35,代码来源:TsPropsSerializer.cs
示例4: XmlNotePara
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="XmlNotePara"/> class based on the given
/// StTxtPara.
/// </summary>
/// <param name="stTxtPara">The FDO paragraph.</param>
/// <param name="wsDefault">The default (analysis) writing system.</param>
/// <param name="lgwsf">The writing system factory.</param>
/// ------------------------------------------------------------------------------------
public XmlNotePara(IStTxtPara stTxtPara, int wsDefault, ILgWritingSystemFactory lgwsf)
{
// REVIEW: Ask TomB about this. The only paragraph style allowed in
// TE for notes is "Remark" so is it necessary to write it to the XML?
// It causes a problem for the OXES validator.
//StyleName = stTxtPara.StyleName;
ITsString tssParaContents = stTxtPara.Contents;
if (tssParaContents.RunCount == 0)
return;
int dummy;
int wsFirstRun = tssParaContents.get_Properties(0).GetIntPropValues(
(int)FwTextPropType.ktptWs, out dummy);
//if (wsFirstRun != wsDefault)
IcuLocale = lgwsf.GetStrFromWs(wsFirstRun);
for (int iRun = 0; iRun < tssParaContents.RunCount; iRun++)
{
ITsTextProps props = tssParaContents.get_Properties(iRun);
string text = tssParaContents.get_RunText(iRun);
if (TsStringUtils.IsHyperlink(props))
Runs.Add(new XmlHyperlinkRun(wsFirstRun, lgwsf, text, props));
else
Runs.Add(new XmlTextRun(wsFirstRun, lgwsf, text, props));
}
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:37,代码来源:XmlNotePara.cs
示例5: FdoParaToLfPara
/// <summary>
/// Make an LfParagraph object from an FDO StTxtPara.
/// </summary>
/// <returns>The LFParagraph.</returns>
/// <param name="fdoPara">FDO StTxtPara object to convert.</param>
public static LfParagraph FdoParaToLfPara(IStTxtPara fdoPara, ILgWritingSystemFactory wsf)
{
var lfPara = new LfParagraph();
lfPara.Guid = fdoPara.Guid;
lfPara.StyleName = fdoPara.StyleName;
lfPara.Content = ConvertFdoToMongoTsStrings.TextFromTsString(fdoPara.Contents, wsf);
return lfPara;
}
开发者ID:ermshiperete,项目名称:LfMerge,代码行数:13,代码来源:ConvertUtilities.cs
示例6: GetAdjustedTsString
/// -------------------------------------------------------------------------------------
/// <summary>
/// Make sure that all runs of the given ts string will fit within the given height.
/// </summary>
/// <param name="tss">(Potentially) unadjusted TsString -- may have some pre-existing
/// adjustments, but if it does, we (probably) ignore those and recheck every run</param>
/// <param name="dympMaxHeight">The maximum height (in millipoints) of the Ts String.</param>
/// <param name="styleSheet"></param>
/// <param name="writingSystemFactory"></param>
/// -------------------------------------------------------------------------------------
public static ITsString GetAdjustedTsString(ITsString tss, int dympMaxHeight,
IVwStylesheet styleSheet, ILgWritingSystemFactory writingSystemFactory)
{
if (dympMaxHeight == 0)
return tss;
ITsStrBldr bldr = null;
int runCount = tss.RunCount;
for (int irun = 0; irun < runCount; irun++)
{
ITsTextProps props = tss.get_Properties(irun);
int var;
int wsTmp = props.GetIntPropValues((int)FwTextPropType.ktptWs,
out var);
string styleName =
props.GetStrPropValue((int)FwTextStringProp.kstpNamedStyle);
int height;
string name;
float sizeInPoints;
using (Font f = GetFontForStyle(styleName, styleSheet, wsTmp, writingSystemFactory))
{
height = GetFontHeight(f);
name = f.Name;
sizeInPoints = f.SizeInPoints;
}
int curHeight = height;
// incrementally reduce the size of the font until the text can fit
while (curHeight > dympMaxHeight)
{
using (var f = new Font(name, sizeInPoints - 0.25f))
{
curHeight = GetFontHeight(f);
name = f.Name;
sizeInPoints = f.SizeInPoints;
}
}
if (curHeight != height)
{
// apply formatting to the problem run
if (bldr == null)
bldr = tss.GetBldr();
int iStart = tss.get_MinOfRun(irun);
int iEnd = tss.get_LimOfRun(irun);
bldr.SetIntPropValues(iStart, iEnd,
(int)FwTextPropType.ktptFontSize,
(int)FwTextPropVar.ktpvMilliPoint, (int)(sizeInPoints * 1000.0f));
}
}
if (bldr != null)
return bldr.GetString();
else
return tss;
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:68,代码来源:FontHeightAdjuster.cs
示例7: GetXmlRep
/// ------------------------------------------------------------------------------------
/// <summary>
/// Get an XML representation of the given ITsTextProps.
/// </summary>
/// <param name="ttp">The TTP.</param>
/// <param name="wsf">The WSF.</param>
/// <returns></returns>
/// ------------------------------------------------------------------------------------
public static string GetXmlRep(ITsTextProps ttp, ILgWritingSystemFactory wsf)
{
using (var writer = new StringWriter())
{
var stream = new TextWriterStream(writer);
ttp.WriteAsXml(stream, wsf, 0);
return writer.ToString();
}
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:17,代码来源:TsStringUtils.cs
示例8: ConvertFdoToMongoOptionList
/// <summary>
/// Initializes a new instance of the <see cref="LfMerge.DataConverters.ConvertFdoToMongoOptionList"/> class.
/// </summary>
/// <param name="lfOptionList">Lf option list.</param>
/// <param name="wsForKeys">Ws for keys.</param>
/// <param name="listCode">List code.</param>
/// <param name="logger">Logger.</param>
public ConvertFdoToMongoOptionList(LfOptionList lfOptionList, int wsForKeys, string listCode, ILogger logger, ILgWritingSystemFactory wsf)
{
_logger = logger;
_wsf = wsf;
_wsForKeys = wsForKeys;
if (lfOptionList == null)
lfOptionList = MakeEmptyOptionList(listCode);
_lfOptionList = lfOptionList;
UpdateOptionListItemDictionaries(_lfOptionList);
}
开发者ID:ermshiperete,项目名称:LfMerge,代码行数:17,代码来源:ConvertFdoToMongoOptionList.cs
示例9: WordMaker
public WordMaker(ITsString tss, ILgWritingSystemFactory encf)
{
m_tss = tss;
m_ich = 0;
m_st = tss.get_Text();
if (m_st == null)
m_st = "";
m_cch = m_st.Length;
// Get a character property engine from the wsf.
m_cpe = encf.get_UnicodeCharProps();
Debug.Assert(m_cpe != null, "encf.get_UnicodeCharProps() returned null");
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:12,代码来源:WordMaker.cs
示例10: DeserializeTsStringFromXml
/// ------------------------------------------------------------------------------------
/// <summary>
/// Deserializes a TsString from the XML node.
/// </summary>
/// <param name="xml">The XML node.</param>
/// <param name="lgwsf">The writing system factory.</param>
/// <returns>The created TsString. Will never be <c>null</c> because an exception is
/// thrown if anything is invalid.</returns>
/// ------------------------------------------------------------------------------------
public static ITsString DeserializeTsStringFromXml(XElement xml, ILgWritingSystemFactory lgwsf)
{
if (xml != null)
{
switch (xml.Name.LocalName)
{
case "AStr":
case "Str":
return HandleSimpleString(xml, lgwsf) ?? HandleComplexString(xml, lgwsf);
default:
throw new XmlSchemaException("TsString XML must contain a <Str> or <AStr> root element");
}
}
return null;
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:24,代码来源:TsStringSerializer.cs
示例11: DomainDataByFlid
/// <summary>
/// Constructor. Called by service locator factory (by reflection).
/// </summary>
/// <remarks>
/// The hvo values are true 'handles' in that they are valid for one session,
/// but may not be the same integer for another session for the 'same' object.
/// Therefore, one should not use them for multi-session identity.
/// CmObject identity can only be guaranteed by using their Guids (or using '==' in code).
/// </remarks>
internal DomainDataByFlid(ICmObjectRepository cmObjectRepository, IStTextRepository stTxtRepository,
IFwMetaDataCacheManaged mdc, ISilDataAccessHelperInternal uowService,
ITsStrFactory tsf, ILgWritingSystemFactory wsf)
{
if (cmObjectRepository == null) throw new ArgumentNullException("cmObjectRepository");
if (stTxtRepository == null) throw new ArgumentNullException("stTxtRepository");
if (mdc == null) throw new ArgumentNullException("mdc");
if (uowService == null) throw new ArgumentNullException("uowService");
if (tsf == null) throw new ArgumentNullException("tsf");
if (wsf == null) throw new ArgumentNullException("wsf");
m_cmObjectRepository = cmObjectRepository;
m_stTxtRepository = stTxtRepository;
m_mdc = mdc;
m_uowService = uowService;
m_tsf = tsf;
m_wsf = wsf;
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:27,代码来源:DomainDataByFlid.cs
示例12: HandleComplexString
/// ------------------------------------------------------------------------------------
/// <summary>
/// Handles a complex string that contains multiple runs with optional multiple
/// text props applied.
/// </summary>
/// <param name="xml">The XML.</param>
/// <param name="lgwsf">The writing system factory.</param>
/// <returns>The created TsString</returns>
/// ------------------------------------------------------------------------------------
private static ITsString HandleComplexString(XElement xml, ILgWritingSystemFactory lgwsf)
{
var runs = xml.Elements("Run");
if (runs.Count() == 0)
{
if (xml.Name.LocalName == "AStr" && xml.Attributes().Count() == 1)
{
// This duplicates a little bit of code from HandleSimpleRun, but I wanted to keep that really simple
// and fast, and this case hardly ever happens...maybe not at all in real life.
XAttribute wsAttribute = xml.Attributes().First();
if (wsAttribute.Name.LocalName != "ws")
return null; // we handle only single runs with only the ws attribute.
// Make sure the text is in the decomposed form (FWR-148)
string runText = Icu.Normalize(xml.Value, Icu.UNormalizationMode.UNORM_NFD);
return s_strFactory.MakeString(runText, GetWsForId(wsAttribute.Value, lgwsf));
}
return null; // If we don't have any runs, we don't have a string!
}
var strBldr = TsIncStrBldrClass.Create();
foreach (XElement runElement in runs)
{
if (runElement == null)
throw new XmlSchemaException("TsString XML must contain a <Run> element contained in a <" + xml.Name.LocalName + "> element");
string runText = runElement.Value;
if (runElement.Attribute("ws") == null && (runText.Length == 0 || runText[0] > 13))
throw new XmlSchemaException("Run element must contain a ws attribute. Run text: " + runElement.Value);
// Make sure the text is in the decomposed form (FWR-148)
runText = Icu.Normalize(runText, Icu.UNormalizationMode.UNORM_NFD);
bool isOrcNeeded = TsPropsSerializer.GetPropAttributesForElement(runElement, lgwsf, strBldr);
// Add an ORC character, if needed, for the run
if (runText.Length == 0 && isOrcNeeded)
runText = StringUtils.kszObject;
// Add the text with the properties to the builder
strBldr.Append(runText);
}
return strBldr.GetString();
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:52,代码来源:TsStringSerializer.cs
示例13: InitializeCategory
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializes categories in the hierarchy.
/// </summary>
/// <param name="categoryList">The list of categories for a Scripture note.</param>
/// <param name="lgwsf">The language writing system factory.</param>
/// <exception cref="ArgumentOutOfRangeException">thrown when the category list is empty.
/// </exception>
/// ------------------------------------------------------------------------------------
private void InitializeCategory(List<CategoryNode> categoryList, ILgWritingSystemFactory lgwsf)
{
XmlNoteCategory curCategory = this;
CategoryNode node = null;
for (int i = 0; i < categoryList.Count; i++)
{
node = categoryList[i];
curCategory.CategoryName = node.CategoryName;
curCategory.IcuLocale = lgwsf.GetStrFromWs(node.Ws);
if (categoryList.Count > i + 1)
{
curCategory.SubCategory = new XmlNoteCategory();
curCategory = curCategory.SubCategory;
}
else
{
curCategory.SubCategory = null;
}
}
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:29,代码来源:XmlNoteCategory.cs
示例14: DeserializePropsFromXml
/// ------------------------------------------------------------------------------------
/// <summary>
/// Deserializes text properties from the specified XML node.
/// </summary>
/// <param name="xml">The XML node.</param>
/// <param name="lgwsf">The writing system factory.</param>
/// <returns>The created TsTextProps. Will never be <c>null</c> because an exception is
/// thrown if anything is invalid.</returns>
/// ------------------------------------------------------------------------------------
public static ITsTextProps DeserializePropsFromXml(XElement xml, ILgWritingSystemFactory lgwsf)
{
ITsPropsBldr propsBldr = GetPropAttributesForElement(xml, lgwsf);
foreach (XElement element in xml.Elements())
{
switch (element.Name.LocalName)
{
case "BulNumFontInfo":
AddBulletFontInfoToBldr(propsBldr, element, lgwsf);
break;
case "WsStyles9999":
AddWsStyleInfoToBldr(propsBldr, element, lgwsf);
break;
default:
throw new XmlSchemaException("Illegal element in <Props> element: " + element.Name.LocalName);
}
}
return propsBldr.GetTextProps();
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:30,代码来源:TsPropsSerializer.cs
示例15: CpeTracker
/// <summary>
/// make the compiler happy.
/// </summary>
public CpeTracker(ILgWritingSystemFactory wsf, ITsString tss)
{
m_wsf = wsf;
m_tssText = tss;
m_ichLimCpe = 0;
// ensures first request will fail.
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:10,代码来源:TsStringUtils.cs
示例16: FindTextInString
/// ------------------------------------------------------------------------------------
/// <summary>
/// Determine if the specified text exists in the string
/// </summary>
/// <param name="wordFormTss">text to look for</param>
/// <param name="sourceTss">text to search in</param>
/// <param name="wsf">source of char prop engines</param>
/// <param name="fMatchWholeWord">True to match a whole word, false otherwise</param>
/// <param name="ichMin">The start of the string where the text was found (undefined if
/// this method returns false)</param>
/// <param name="ichLim">The limit (one character position past the end) of the string
/// where the text was found (undefined if this method returns false)</param>
/// <returns><c>true</c> if the text is matched exactly (matching case)
/// </returns>
/// <remarks>
/// TODO: Add a parameter to make it possible to do a case-insensitive match?</remarks>
/// ------------------------------------------------------------------------------------
public static bool FindTextInString(ITsString wordFormTss, ITsString sourceTss, ILgWritingSystemFactory wsf, bool fMatchWholeWord, out int ichMin, out int ichLim)
{
ichMin = ichLim = 0;
if (wordFormTss == null || sourceTss == null || wordFormTss.Length == 0 || sourceTss.Length == 0)
{
// Nothing we can really do
return false;
}
int ichWordForm = 0;
bool fMatchInProgress = false;
CpeTracker sourceTracker = new CpeTracker(wsf, sourceTss);
CpeTracker wordTracker = new CpeTracker(wsf, wordFormTss);
string wordForm = wordFormTss.Text;
string sourceText = sourceTss.Text;
bool fWordFormAndSrcAreBothNormalized = wordForm.IsNormalized() && sourceText.IsNormalized();
bool fPrevCharWasWordForming = false;
// Must use local temp variable because some callers pass same variable as both
// ichMin and ichLim.
int ichLimT;
for (int ichSrc = 0; ichSrc < sourceText.Length; ichSrc = ichLimT)
{
ichLimT = ichSrc + 1;
bool fWordForming = sourceTracker.CharPropEngine(ichSrc).get_IsWordForming(sourceText[ichSrc]);
if (!fMatchInProgress && fPrevCharWasWordForming && fWordForming && fMatchWholeWord)
continue;
fPrevCharWasWordForming = fWordForming;
if (!fMatchInProgress && !fWordForming)
continue;
bool fMatch = (wordForm[ichWordForm] == sourceText[ichSrc]);
if (fMatch)
{
ichWordForm++;
}
else
{
if (sourceText[ichSrc] == StringUtils.kChObject)
fMatch = true;
else if (!fWordFormAndSrcAreBothNormalized)
{
int ichWfCharLim = ichWordForm + 1;
while (ichWfCharLim < wordForm.Length && !wordTracker.CharPropEngine(ichWfCharLim).get_IsLetter(wordForm[ichWfCharLim]) && wordTracker.CharPropEngine(ichWfCharLim).get_IsWordForming(wordForm[ichWfCharLim]))
{
ichWfCharLim++;
}
while (ichLimT < sourceText.Length && !sourceTracker.CharPropEngine(ichLimT).get_IsLetter(sourceText[ichLimT]) && sourceTracker.CharPropEngine(ichLimT).get_IsWordForming(sourceText[ichLimT]))
{
ichLimT++;
}
if (wordForm.Substring(ichWordForm, ichWfCharLim - ichWordForm).Normalize() == sourceText.Substring(ichSrc, ichLimT - ichSrc).Normalize())
{
ichWordForm = ichWfCharLim;
fMatch = true;
}
}
}
if (fMatch)
{
// If this character is the start of a match but the previous character was
// word-forming, then this is a bogus match, so we keep looking.
if (!fMatchInProgress)
{
if (ichSrc == 0 || !sourceTracker.CharPropEngine(ichSrc - 1).get_IsWordForming(sourceText[ichSrc - 1]) || !fMatchWholeWord)
{
ichMin = ichSrc;
fMatchInProgress = true;
}
else
ichWordForm = 0;
}
if (fMatchInProgress && ichWordForm == wordForm.Length)
{
//.........这里部分代码省略.........
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:101,代码来源:TsStringUtils.cs
示例17: FindWordFormInString
/// ------------------------------------------------------------------------------------
/// <summary>
/// Determine if the word form exists in the string, matching the whole word or
/// sequence of words.
/// </summary>
/// <param name="wordFormTss">text of word form to look for</param>
/// <param name="sourceTss">text to search in</param>
/// <param name="wsf">source of char prop engines</param>
/// <param name="ichMin">The start of the string where the text was found (undefined if
/// this method returns false)</param>
/// <param name="ichLim">The limit (one character position past the end) of the string
/// where the text was found (undefined if this method returns false)</param>
/// <returns><c>true</c> if word form is matched exactly (whole word found and matching
/// case)
/// </returns>
/// <remarks>
/// TODO: Add a parameter to make it possible to do a case-insensitive match?</remarks>
/// ------------------------------------------------------------------------------------
public static bool FindWordFormInString(ITsString wordFormTss, ITsString sourceTss, ILgWritingSystemFactory wsf, out int ichMin, out int ichLim)
{
return FindTextInString(wordFormTss, sourceTss, wsf, true, out ichMin, out ichLim);
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:22,代码来源:TsStringUtils.cs
示例18: SimpleDataParser
public SimpleDataParser(IFwMetaDataCache mdc, IVwCacheDa cda)
{
m_mdc = mdc;
m_cda = cda;
m_sda = cda as ISilDataAccess;
m_wsf = m_sda.WritingSystemFactory;
}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:7,代码来源:SimpleDataParser.cs
示例19: FixtureTeardown
/// <summary>
/// Clear out test data.
/// </summary>
public override void FixtureTeardown()
{
m_wsf = null;
m_styleSheet = null;
base.FixtureTeardown();
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:10,代码来源:FwStyleSheetTests.cs
示例20: FixtureSetup
public override void FixtureSetup()
{
base.FixtureSetup();
m_flidContainingTexts = ScrBookTags.kflidFootnotes;
m_wsf = Cache.WritingSystemFactory;
m_wsEng = m_wsf.GetWsFromStr("en");
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:8,代码来源:RootsiteBasicViewTestsBase.cs
注:本文中的ILgWritingSystemFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论