프로퍼티 | 타입 | 설명 | |
---|---|---|---|
s_cwsMulti | int | ||
s_fMultiFirst | bool | ||
s_qwsCurrent | IWritingSystem | ||
s_sMultiSep | string |
메소드 | 설명 | |
---|---|---|
AlphaCompNumberString ( int val ) : string |
Return a string such that ICU alphabetic comparison of the strings will produce the same results as numberic comparison of the values. For positive integers the string is a recognizeable representation of the number (with extra leading zeros); for negative, it is not recognizeable but works.
|
|
AlphaCompPosNumString ( int val ) : string |
Alphas the comp pos num string.
|
|
Assemble ( string items ) : string[] |
Return the concatenation of all the input strings as a single string.
|
|
CollectBrowseItems ( int hvo, |
Given one of the original list items, and the spec of the column we want to sort by, add to collector whatever ManyOnePathSortItems are appropriate.
|
|
CopyReplacingParamDefault ( |
Copies the replacing param default.
|
|
CopyWithParamDefaults ( |
If any attributes of input (or its children) are of the form "$param=default", generate a complete copy of input in which "$param=default" is replaced with "default", and return it. Otherwise just return input.
|
|
CorrespondingItems ( List |
Answer a list containing, for each node in selectNodes, the item in sourceNodes that has the same value for the attribute attName.
|
|
DateTimeCompString ( System.DateTime dt ) : string |
Return a string such that ICU alphabetic comparison of the strings will produce the same results as DateTime.Compare of the values.
|
|
FindIndexOfAttrVal ( List |
Find the index of the node in nodes that has value attVal for attribute attName. Return -1 if not found.
|
|
FindIndexOfMatchingNode ( IEnumerable |
Find the index of the node in nodes that 'matches' the target node. Return -1 if not found.
|
|
FindNodeWithAttrVal ( List |
Finds the node with attr val.
|
|
FindParams ( |
Finds the params.
|
|
FindWsParam ( |
Search the node for an element with an attribute that has a value that looks like "$ws=..." and return the "...".
|
|
GetDisplayCommandForColumn ( IManyOnePathSortItem bvi, |
This returns a NodeDisplayCommand containing thd node for GetNodeToUseForColumn. However, it distinguishes whether to display the children of this node or the node itself by returning the appropriate kind of NodeDisplayCommand.
|
|
GetGuidForUnspecifiedComplexFormType ( ) : System.Guid |
Returns a 'fake' Guid used to filter unspecified Complex Form types in XmlVc. Setup in configuration files by XmlDocConfigureDlg.
|
|
GetGuidForUnspecifiedVariantType ( ) : System.Guid |
Returns a 'fake' Guid used to filter unspecified Variant types in XmlVc. Setup in configuration files by XmlDocConfigureDlg.
|
|
GetNodeToUseForColumn ( IManyOnePathSortItem bvi, |
We want to display the object bvi.KeyObject, or one of its pathobjects, in a column specified by colSpec. Determine the hvo and XmlNode that we should use as the root for the cell. By default, we display the first object in the path, using the base node derived from the colSpec. However, if the colSpec begins with a path compatible with bvi.PathFlid(0), we can use bvi.PathObject(1) and the appropriate derived node. If all flids match we can use bvi.KeyObject itself. If collectOuterStructParts is non-null, it accumulates containing parts that are structural, like para, span, div.
|
|
GetWsFromString ( string wsParam, SIL.FieldWorks.FDO.FdoCache cache ) : int |
Convert the string found for a writing system to the appropriate integer code (hvo).
|
|
GetWsRequiresObject ( |
Return true if the specified fragment requires an hvo (and possibly flid) for its interpretation. Currently this assumes just the "ws" attribute, since smartws is obsolete.
|
|
GetWsRequiresObject ( string wsSpec ) : bool |
Return true if the specified fragment requires an hvo (and possibly flid) for its interpretation. Currently this assumes just the "ws" attribute, since smartws is obsolete.
|
|
HasParam ( |
Find the value of the first parameter-like attribute value "$param=default"
|
|
StringsFor ( SIL.FieldWorks.FDO.FdoCache fdoCache, ISilDataAccess sda, |
Returns an array of string values (keys) for the objects under this layout node.
|
|
TryFindPluralFormFromClassId ( IFwMetaDataCache mdc, SIL.Utils.StringTable tbl, int clsId, string &titleStr ) : bool |
|
|
TryFindPluralFormFromFlid ( IFwMetaDataCache mdc, SIL.Utils.StringTable tbl, int owningFlid, string &titleStr ) : bool |
looks up plural form alternative first for given flid, secondly for its destination class.
|
|
TryFindString ( SIL.Utils.StringTable tbl, string group, string key, string &result ) : bool |
|
|
TryMatchExistingAttributes ( |
go through possible attributes to match, and return true when the ones that exist match the same attributes in another node.
|
메소드 | 설명 | |
---|---|---|
AddMultipleAlternatives ( SIL.FieldWorks.FDO.FdoCache cache, ISilDataAccess sda, IEnumerable |
||
AddSeparator ( string &item, int ichInsert, |
||
AddStringFromOtherObj ( |
||
AppendInt ( int sofar, int add ) : int[] | ||
AssembleChildKeys ( SIL.FieldWorks.FDO.FdoCache fdoCache, ISilDataAccess sda, |
||
ChildKeys ( SIL.FieldWorks.FDO.FdoCache fdoCache, ISilDataAccess sda, |
Returns an array of string values (keys) for the objects under the layout child nodes.
|
|
CollectBrowseItems ( int hvo, |
Main (recursive) part of CollectBrowseItems. Given that hvo is to be displayed using node, figure what objects to put in the list.
|
|
Concatenate ( string first, string second ) : string[] | ||
DisplayMultiSep ( |
||
DisplayWsLabel ( IWritingSystem ws, SIL.FieldWorks.FDO.FdoCache cache ) : string | ||
FindMainChild ( |
Finds the main child.
|
|
FoundStringTableString ( string key, string result ) : bool |
determine if string table query gave a significant result (i.e. not *{key}* format).
|
|
GetArrayLength ( string items ) : int | ||
GetDisplayCommandForColumn1 ( IManyOnePathSortItem bvi, |
Recursive implementation method for GetDisplayCommandForColumn.
|
|
GetFlid ( ISilDataAccess sda, |
This is a simplified version of XmlVc.GetFlid. It does not look for a flid attr, nor try to cache the result. It looks for a "field" property, and optionally a "class" one, and uses them (or the class of hvo, if "class" is missing) to figure the flid. Virtual properties are assumed already created.
|
|
GetLayoutNodeForChild ( ISilDataAccess sda, int hvoTarget, int flid, string targetLayoutName, |
||
GetNodeForRelatedObject ( int hvoDst, |
The node argument is an "obj" or "seq" element, and caller (if not null) is a part element that invoked the node and may override its "layout" attribute. Apply the same logic used by XmlVc to determine the node that will be used to display the destination object hvoDst
|
|
ProcessMultiLingualChildren ( SIL.FieldWorks.FDO.FdoCache fdoCache, ISilDataAccess sda, |
Process a fragment's children against multiple writing systems.
|
|
XmlViewsUtils ( ) : System |
public static AlphaCompNumberString ( int val ) : string | ||
val | int | |
리턴 | string |
public static AlphaCompPosNumString ( int val ) : string | ||
val | int | The val. |
리턴 | string |
public static CollectBrowseItems ( int hvo, |
||
hvo | int | The hvo. |
colSpec | The col spec. | |
collector | The collector. | |
mdc | IFwMetaDataCache | The MDC. |
sda | ISilDataAccess | The sda. |
layouts | The layouts. | |
리턴 | void |
public static CopyReplacingParamDefault ( |
||
input | The input. | |
paramId | string | The param id. |
val | string | The val. |
리턴 |
public static CopyWithParamDefaults ( |
||
input | ||
리턴 |
public static CorrespondingItems ( List |
||
sourceNodes | List |
|
selectNodes | List |
|
attName | string | |
리턴 | List |
public static DateTimeCompString ( System.DateTime dt ) : string | ||
dt | System.DateTime | |
리턴 | string |
public static FindIndexOfAttrVal ( List |
||
nodes | List |
The nodes. |
attName | string | Name of the att. |
attVal | string | The att val. |
tbl | SIL.Utils.StringTable | The TBL. |
리턴 | int |
public static FindIndexOfMatchingNode ( IEnumerable |
||
nodes | IEnumerable |
The nodes. |
target | The target. | |
리턴 | int |
public static FindNodeWithAttrVal ( List |
||
nodes | List |
The nodes. |
attName | string | Name of the att. |
attVal | string | The att val. |
tbl | SIL.Utils.StringTable | The TBL. |
리턴 |
public static FindParams ( |
||
input | The input. | |
리턴 | string[] |
public static FindWsParam ( |
||
node | ||
리턴 | string |
public static GetDisplayCommandForColumn ( IManyOnePathSortItem bvi, |
||
bvi | IManyOnePathSortItem | |
colSpec | ||
mdc | IFwMetaDataCache | |
sda | ISilDataAccess | |
layouts | ||
hvo | int | |
collectOuterStructParts | List |
|
리턴 | NodeDisplayCommand |
public static GetGuidForUnspecifiedComplexFormType ( ) : System.Guid | ||
리턴 | System.Guid |
public static GetGuidForUnspecifiedVariantType ( ) : System.Guid | ||
리턴 | System.Guid |
public static GetNodeToUseForColumn ( IManyOnePathSortItem bvi, |
||
bvi | IManyOnePathSortItem | The bvi. |
colSpec | The col spec. | |
mdc | IFwMetaDataCache | The MDC. |
sda | ISilDataAccess | The sda. |
layouts | The layouts. | |
hvo | int | The hvo. |
collectOuterStructParts | List |
The collect outer struct parts. |
리턴 |
public static GetWsFromString ( string wsParam, SIL.FieldWorks.FDO.FdoCache cache ) : int | ||
wsParam | string | |
cache | SIL.FieldWorks.FDO.FdoCache | |
리턴 | int |
public static GetWsRequiresObject ( |
||
frag | ||
리턴 | bool |
public static GetWsRequiresObject ( string wsSpec ) : bool | ||
wsSpec | string | |
리턴 | bool |
public static HasParam ( |
||
input | ||
리턴 | bool |
static public StringsFor ( SIL.FieldWorks.FDO.FdoCache fdoCache, ISilDataAccess sda, |
||
fdoCache | SIL.FieldWorks.FDO.FdoCache | The fdo cache. |
sda | ISilDataAccess | The sda. |
layout | The layout. | |
hvo | int | The hvo. |
layoutCache | The layout cache. | |
caller | where layout is a component of a 'part' element, caller /// is the 'part ref' that invoked it. | |
stringTbl | SIL.Utils.StringTable | The string TBL. |
wsForce | int | if non-zero, "string" elements are forced to use that writing system for multistrings. |
리턴 | string[] |
public static TryFindPluralFormFromClassId ( IFwMetaDataCache mdc, SIL.Utils.StringTable tbl, int clsId, string &titleStr ) : bool | ||
mdc | IFwMetaDataCache | |
tbl | SIL.Utils.StringTable | |
clsId | int | |
titleStr | string | *{dstClass}* if couldn't find result. |
리턴 | bool |
public static TryFindPluralFormFromFlid ( IFwMetaDataCache mdc, SIL.Utils.StringTable tbl, int owningFlid, string &titleStr ) : bool | ||
mdc | IFwMetaDataCache | |
tbl | SIL.Utils.StringTable | |
owningFlid | int | |
titleStr | string | *{dstClass}* if couldn't find result. |
리턴 | bool |
public static TryFindString ( SIL.Utils.StringTable tbl, string group, string key, string &result ) : bool | ||
tbl | SIL.Utils.StringTable | |
group | string | |
key | string | |
result | string | |
리턴 | bool |
public static TryMatchExistingAttributes ( |
||
colSpec1 | ||
colSpec2 | ||
possibleAttributesToMatch | Queue |
the attributes to try to match, in the order we try to match them.
/// if this routine returns |
리턴 | bool |