C# Класс SIL.FieldWorks.XWorks.MockSelection

This class mocks the (unfortunately huge) IVwSelection. Only the first couple of methods are actually used by MacroListener, others are left unimplemented. Enhance JohnT: this would be better done with some sort of dynamic mock, so that changes to parts of the interface we don't care about won't have to be made here. But we haven't settled on a mock framework for FLEx.
Наследование: IVwSelection
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AnchorHvo int
AnchorIch int
AnchorTag int
AnchorWs int
EndHvo int
EndIch int
EndTag int
EndWs int
TypeToReturn VwSelType

Открытые методы

Метод Описание
AllSelEndInfo ( bool fEndPoint, int &_ihvoRoot, int cvlsi, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgvsli, int &_tagTextProp, int &_cpropPrevious, int &_ich, int &_ws, bool &_fAssocPrev, ITsTextProps &_pttp ) : void
AllTextSelInfo ( int &_ihvoRoot, int cvlsi, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgvsli, int &_tagTextProp, int &_cpropPrevious, int &_ichAnchor, int &_ichEnd, int &_ws, bool &_fAssocPrev, int &_ihvoEnd, ITsTextProps &_pttp ) : void
CLevels ( bool fEndPoint ) : int
CompleteEdits ( VwChangeInfo &_ci ) : bool
EndPoint ( bool fEndPoint ) : IVwSelection
ExtendToStringBoundaries ( ) : void
GetFirstParaString ( ITsString &_ptss, string bstrSep, bool &_fGotItAll ) : void
GetHardAndSoftCharProps ( int cttpMax, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpttpSel, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpvpsSoft, int &_cttp ) : void
GetHardAndSoftParaProps ( int cttpMax, ITsTextProps _rgpttpPara, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpttpHard, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpvpsSoft, int &_cttp ) : void
GetParaLocation ( Rect &_rdLoc ) : void
GetParaProps ( int cttpMax, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpvps, int &_cttp ) : void
GetSelectionProps ( int cttpMax, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpttp, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpvps, int &_cttp ) : void
GetSelectionString ( ITsString &_ptss, string bstrSep ) : void
GrowToWord ( ) : IVwSelection
Install ( ) : void
Location ( IVwGraphics _vg, Rect rcSrc, Rect rcDst, Rect &_rdPrimary, Rect &_rdSecondary, bool &_fSplit, bool &_fEndBeforeAnchor ) : void
PropInfo ( bool fEndPoint, int ilev, int &_hvoObj, int &_tag, int &_ihvo, int &_cpropPrevious, IVwPropertyStore &_pvps ) : void
ReplaceWithTsString ( ITsString _tss ) : void
SetIPLocation ( bool fTopLine, int xdPos ) : void
SetSelectionProps ( int cttp, ITsTextProps _rgpttp ) : void
SetTypingProps ( ITsTextProps _ttp ) : void
TextSelInfo ( bool fEndPoint, ITsString &ptss, int &ich, bool &fAssocPrev, int &hvoObj, int &tag, int &ws ) : void
get_BoxCount ( bool fEndPoint, int iLevel ) : int
get_BoxDepth ( bool fEndPoint ) : int
get_BoxIndex ( bool fEndPoint, int iLevel ) : int
get_BoxType ( bool fEndPoint, int iLevel ) : VwBoxType
get_Follows ( IVwSelection _sel ) : bool
get_ParagraphOffset ( bool fEndPoint ) : int

Описание методов

AllSelEndInfo() публичный Метод

public AllSelEndInfo ( bool fEndPoint, int &_ihvoRoot, int cvlsi, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgvsli, int &_tagTextProp, int &_cpropPrevious, int &_ich, int &_ws, bool &_fAssocPrev, ITsTextProps &_pttp ) : void
fEndPoint bool
_ihvoRoot int
cvlsi int
_rgvsli SIL.FieldWorks.Common.COMInterfaces.ArrayPtr
_tagTextProp int
_cpropPrevious int
_ich int
_ws int
_fAssocPrev bool
_pttp ITsTextProps
Результат void

AllTextSelInfo() публичный Метод

public AllTextSelInfo ( int &_ihvoRoot, int cvlsi, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgvsli, int &_tagTextProp, int &_cpropPrevious, int &_ichAnchor, int &_ichEnd, int &_ws, bool &_fAssocPrev, int &_ihvoEnd, ITsTextProps &_pttp ) : void
_ihvoRoot int
cvlsi int
_rgvsli SIL.FieldWorks.Common.COMInterfaces.ArrayPtr
_tagTextProp int
_cpropPrevious int
_ichAnchor int
_ichEnd int
_ws int
_fAssocPrev bool
_ihvoEnd int
_pttp ITsTextProps
Результат void

CLevels() публичный Метод

public CLevels ( bool fEndPoint ) : int
fEndPoint bool
Результат int

CompleteEdits() публичный Метод

public CompleteEdits ( VwChangeInfo &_ci ) : bool
_ci VwChangeInfo
Результат bool

EndPoint() публичный Метод

public EndPoint ( bool fEndPoint ) : IVwSelection
fEndPoint bool
Результат IVwSelection

ExtendToStringBoundaries() публичный Метод

public ExtendToStringBoundaries ( ) : void
Результат void

GetFirstParaString() публичный Метод

public GetFirstParaString ( ITsString &_ptss, string bstrSep, bool &_fGotItAll ) : void
_ptss ITsString
bstrSep string
_fGotItAll bool
Результат void

GetHardAndSoftCharProps() публичный Метод

public GetHardAndSoftCharProps ( int cttpMax, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpttpSel, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpvpsSoft, int &_cttp ) : void
cttpMax int
_rgpttpSel SIL.FieldWorks.Common.COMInterfaces.ArrayPtr
_rgpvpsSoft SIL.FieldWorks.Common.COMInterfaces.ArrayPtr
_cttp int
Результат void

GetHardAndSoftParaProps() публичный Метод

public GetHardAndSoftParaProps ( int cttpMax, ITsTextProps _rgpttpPara, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpttpHard, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpvpsSoft, int &_cttp ) : void
cttpMax int
_rgpttpPara ITsTextProps
_rgpttpHard SIL.FieldWorks.Common.COMInterfaces.ArrayPtr
_rgpvpsSoft SIL.FieldWorks.Common.COMInterfaces.ArrayPtr
_cttp int
Результат void

GetParaLocation() публичный Метод

public GetParaLocation ( Rect &_rdLoc ) : void
_rdLoc SIL.Utils.Rect
Результат void

GetParaProps() публичный Метод

public GetParaProps ( int cttpMax, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpvps, int &_cttp ) : void
cttpMax int
_rgpvps SIL.FieldWorks.Common.COMInterfaces.ArrayPtr
_cttp int
Результат void

GetSelectionProps() публичный Метод

public GetSelectionProps ( int cttpMax, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpttp, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgpvps, int &_cttp ) : void
cttpMax int
_rgpttp SIL.FieldWorks.Common.COMInterfaces.ArrayPtr
_rgpvps SIL.FieldWorks.Common.COMInterfaces.ArrayPtr
_cttp int
Результат void

GetSelectionString() публичный Метод

public GetSelectionString ( ITsString &_ptss, string bstrSep ) : void
_ptss ITsString
bstrSep string
Результат void

GrowToWord() публичный Метод

public GrowToWord ( ) : IVwSelection
Результат IVwSelection

Install() публичный Метод

public Install ( ) : void
Результат void

Location() публичный Метод

public Location ( IVwGraphics _vg, Rect rcSrc, Rect rcDst, Rect &_rdPrimary, Rect &_rdSecondary, bool &_fSplit, bool &_fEndBeforeAnchor ) : void
_vg IVwGraphics
rcSrc SIL.Utils.Rect
rcDst SIL.Utils.Rect
_rdPrimary SIL.Utils.Rect
_rdSecondary SIL.Utils.Rect
_fSplit bool
_fEndBeforeAnchor bool
Результат void

PropInfo() публичный Метод

public PropInfo ( bool fEndPoint, int ilev, int &_hvoObj, int &_tag, int &_ihvo, int &_cpropPrevious, IVwPropertyStore &_pvps ) : void
fEndPoint bool
ilev int
_hvoObj int
_tag int
_ihvo int
_cpropPrevious int
_pvps IVwPropertyStore
Результат void

ReplaceWithTsString() публичный Метод

public ReplaceWithTsString ( ITsString _tss ) : void
_tss ITsString
Результат void

SetIPLocation() публичный Метод

public SetIPLocation ( bool fTopLine, int xdPos ) : void
fTopLine bool
xdPos int
Результат void

SetSelectionProps() публичный Метод

public SetSelectionProps ( int cttp, ITsTextProps _rgpttp ) : void
cttp int
_rgpttp ITsTextProps
Результат void

SetTypingProps() публичный Метод

public SetTypingProps ( ITsTextProps _ttp ) : void
_ttp ITsTextProps
Результат void

TextSelInfo() публичный Метод

public TextSelInfo ( bool fEndPoint, ITsString &ptss, int &ich, bool &fAssocPrev, int &hvoObj, int &tag, int &ws ) : void
fEndPoint bool
ptss ITsString
ich int
fAssocPrev bool
hvoObj int
tag int
ws int
Результат void

get_BoxCount() публичный Метод

public get_BoxCount ( bool fEndPoint, int iLevel ) : int
fEndPoint bool
iLevel int
Результат int

get_BoxDepth() публичный Метод

public get_BoxDepth ( bool fEndPoint ) : int
fEndPoint bool
Результат int

get_BoxIndex() публичный Метод

public get_BoxIndex ( bool fEndPoint, int iLevel ) : int
fEndPoint bool
iLevel int
Результат int

get_BoxType() публичный Метод

public get_BoxType ( bool fEndPoint, int iLevel ) : VwBoxType
fEndPoint bool
iLevel int
Результат VwBoxType

get_Follows() публичный Метод

public get_Follows ( IVwSelection _sel ) : bool
_sel IVwSelection
Результат bool

get_ParagraphOffset() публичный Метод

public get_ParagraphOffset ( bool fEndPoint ) : int
fEndPoint bool
Результат int

Описание свойств

AnchorHvo публичное свойство

public int AnchorHvo
Результат int

AnchorIch публичное свойство

public int AnchorIch
Результат int

AnchorTag публичное свойство

public int AnchorTag
Результат int

AnchorWs публичное свойство

public int AnchorWs
Результат int

EndHvo публичное свойство

public int EndHvo
Результат int

EndIch публичное свойство

public int EndIch
Результат int

EndTag публичное свойство

public int EndTag
Результат int

EndWs публичное свойство

public int EndWs
Результат int

TypeToReturn публичное свойство

public VwSelType TypeToReturn
Результат VwSelType