Method | Description | |
---|---|---|
AddInterlinearTextToLangProj ( string name ) : IText |
Adds an interlinear text to the language projectin the mocked fdocache
|
|
AddInterlinearTextToLangProj ( string name, bool fCreateContents ) : IText |
Adds an interlinear text to the language projectin the mocked fdocache
|
|
AddParaToInterlinearTextContents ( IText itext, string paraText ) : IStTxtPara |
Adds a paragraph with the specified text to the given interlinear text
|
|
AddRunToMockedPara ( IStTxtPara para, string runText, int ws ) : void |
Adds a run of text to the specified paragraph
|
|
AddRunToMockedPara ( IStTxtPara para, string runText, string runStyleName ) : void |
Adds a run of text to the specified paragraph
|
|
AddStyle ( IFdoOwningCollection |
Create a new style on the specified style list.
|
|
AddTestStyle ( string name, ContextValues context, StructureValues structure, FunctionValues function, bool isCharStyle, IFdoOwningCollection |
Create a new style and add it to the Language Project stylesheet.
|
|
AddTestStyle ( string name, ContextValues context, StructureValues structure, FunctionValues function, bool isCharStyle, int userLevel, IFdoOwningCollection |
Create a new style and add it to the Language Project stylesheet.
|
|
AppendRunToBt ( IStTxtPara para, int ws, string runText ) : void |
Append a run of text to a back translation of a paragraph.
|
|
TestSetup ( ) : void |
Override to start an undoable UOW.
|
|
TestTearDown ( ) : void |
Override to end the undoable UOW, Undo everything, and 'commit', which will essentially clear out the Redo stack.
|
Method | Description | |
---|---|---|
AddBtToMockedParagraph ( IStTxtPara owner, int wsTrans ) : ICmTranslation |
Add an empty back translation to the paragraph, or return the existing one.
|
|
AddParaToMockedText ( IStText owner, string paraStyleName ) : IStTxtPara |
Add an empty but properly initialized (with WS) content paragraph to the specified StText in the mock fdocache
|
|
AddRunToMockedTrans ( ICmTranslation trans, int btWS, int runWS, string runText, string runStyleName ) : void |
Adds a run of text to the specified translation
|
|
AddRunToMockedTrans ( ICmTranslation trans, int btWS, string runText, string runStyleName ) : void |
Adds a run of text to the specified translation
|
|
AddRunToSegmentFt ( IStTxtPara para, int iSeg, string freeTrans, string styleName ) : void |
Adds a run to the free translation of the specified segment of the specified paragraph having the specified style in the default analysis writing system.
|
|
AddSegmentFt ( IStTxtPara para, int iSeg, string freeTrans ) : void |
Adds a free translation to the specified segment of the specified paragraph for the specified writing systems.
|
|
ChangeDefaultAnalWs ( IWritingSystem ws ) : void |
Change the default analysis writing system. (This removes any previous "current" analysis writing system(s) from the list.) This also ensures that the given WS is in the list of all analysis WSs.
|
|
CreateTestData ( ) : void |
Creates the test data.
|
|
UndoAll ( ) : void |
End the undoable UOW and Undo everything.
|
protected AddBtToMockedParagraph ( IStTxtPara owner, int wsTrans ) : ICmTranslation | ||
owner | IStTxtPara | the owning paragraph |
wsTrans | int | |
return | ICmTranslation |
public AddInterlinearTextToLangProj ( string name ) : IText | ||
name | string | The name (in English). |
return | IText |
public AddInterlinearTextToLangProj ( string name, bool fCreateContents ) : IText | ||
name | string | The name (in English). |
fCreateContents | bool | if set to |
return | IText |
public AddParaToInterlinearTextContents ( IText itext, string paraText ) : IStTxtPara | ||
itext | IText | The itext. |
paraText | string | Paragraph contents. |
return | IStTxtPara |
protected AddParaToMockedText ( IStText owner, string paraStyleName ) : IStTxtPara | ||
owner | IStText | the hvo of the StText |
paraStyleName | string | the paragraph style name |
return | IStTxtPara |
public AddRunToMockedPara ( IStTxtPara para, string runText, int ws ) : void | ||
para | IStTxtPara | |
runText | string | |
ws | int | |
return | void |
public AddRunToMockedPara ( IStTxtPara para, string runText, string runStyleName ) : void | ||
para | IStTxtPara | |
runText | string | |
runStyleName | string | |
return | void |
protected AddRunToMockedTrans ( ICmTranslation trans, int btWS, int runWS, string runText, string runStyleName ) : void | ||
trans | ICmTranslation | The translation where the run of text will be appended. |
btWS | int | The writing system of the back translation |
runWS | int | The writing system of the run |
runText | string | The run text. |
runStyleName | string | Name of the run style. |
return | void |
protected AddRunToMockedTrans ( ICmTranslation trans, int btWS, string runText, string runStyleName ) : void | ||
trans | ICmTranslation | |
btWS | int | |
runText | string | |
runStyleName | string | |
return | void |
protected AddRunToSegmentFt ( IStTxtPara para, int iSeg, string freeTrans, string styleName ) : void | ||
para | IStTxtPara | The paragraph. |
iSeg | int | The index of the segment. |
freeTrans | string | The text of the translation. |
styleName | string | The name of the style. |
return | void |
protected static AddSegmentFt ( IStTxtPara para, int iSeg, string freeTrans ) : void | ||
para | IStTxtPara | The paragraph. |
iSeg | int | The index of the segment. |
freeTrans | string | The text of the translation. |
return | void |
public AddStyle ( IFdoOwningCollection |
||
styleList | IFdoOwningCollection |
The style list to add the style to |
name | string | style name |
context | ContextValues | style context |
structure | StructureValues | style structure |
function | FunctionValues | style function |
isCharStyle | bool | true if character style, otherwise false |
userLevel | int | User level |
isBuiltIn | bool | true if style is a bult-in style |
return | IStStyle |
public AddTestStyle ( string name, ContextValues context, StructureValues structure, FunctionValues function, bool isCharStyle, IFdoOwningCollection |
||
name | string | style name |
context | ContextValues | style context |
structure | StructureValues | style structure |
function | FunctionValues | style function |
isCharStyle | bool | true if character style, otherwise false |
styleCollection | IFdoOwningCollection |
The style collection. |
return | IStStyle |
public AddTestStyle ( string name, ContextValues context, StructureValues structure, FunctionValues function, bool isCharStyle, int userLevel, IFdoOwningCollection |
||
name | string | style name |
context | ContextValues | style context |
structure | StructureValues | style structure |
function | FunctionValues | style function |
isCharStyle | bool | true if character style, otherwise false |
userLevel | int | The user level. |
styleCollection | IFdoOwningCollection |
The style collection. |
return | IStStyle |
public AppendRunToBt ( IStTxtPara para, int ws, string runText ) : void | ||
para | IStTxtPara | given paragraph |
ws | int | given writing system for the back translation |
runText | string | given text to append to back translation |
return | void |
protected ChangeDefaultAnalWs ( IWritingSystem ws ) : void | ||
ws | IWritingSystem | the writing system to set as the default analysis WS |
return | void |