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
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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