C# 클래스 SIL.FieldWorks.XWorks.MacroListener

상속: IxCoreColleague
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AssignMacrosToSlots IFlexMacro[]
DoDisplayMacro bool
DoMacro bool
GetMacro IFlexMacro
GetMacroIndex int
GetSelection IVwSelection
SafeToDoMacro bool

공개 메소드들

메소드 설명
GetMessageTargets ( ) : IxCoreColleague[]

Standard member for IXCoreColleague. The only object known to this colleague to handle messages is itself.

Init ( XCore.Mediator mediator, XmlNode configurationParameters ) : void

Standard member for IXCoreColleague. The configurationParameters are not currently used.

OnDisplayMacro ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

Invoked by reflection when displaying the appropriate menu item. Which one is indicated by the paramters node. This method is responsible to decide whether to display the command, whether to enable it, and what the text of the menu item should be.

OnMacro ( object commandObject ) : bool

Invoked by reflection when the appropriate menu command is executed. Which one is indicated by the paramters node.

비공개 메소드들

메소드 설명
AssignMacrosToSlots ( List macroImplementors ) : IFlexMacro[]
DoDisplayMacro ( object commandObject, XCore.UIItemDisplayProperties display, IVwSelection sel ) : bool
DoMacro ( object commandObject, IVwSelection sel ) : bool
GetMacro ( object commandObject ) : IFlexMacro
GetMacroIndex ( Keys key ) : int
GetSelection ( ) : IVwSelection

Get the active selection in the mediator's main window. This determines what we will apply the command to.

SafeToDoMacro ( IVwSelection sel, ICmObject &obj, int &flid, int &ws, int &start, int &length ) : bool

메소드 상세

GetMessageTargets() 공개 메소드

Standard member for IXCoreColleague. The only object known to this colleague to handle messages is itself.
public GetMessageTargets ( ) : IxCoreColleague[]
리턴 IxCoreColleague[]

Init() 공개 메소드

Standard member for IXCoreColleague. The configurationParameters are not currently used.
public Init ( XCore.Mediator mediator, XmlNode configurationParameters ) : void
mediator XCore.Mediator
configurationParameters System.Xml.XmlNode
리턴 void

OnDisplayMacro() 공개 메소드

Invoked by reflection when displaying the appropriate menu item. Which one is indicated by the paramters node. This method is responsible to decide whether to display the command, whether to enable it, and what the text of the menu item should be.
public OnDisplayMacro ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnMacro() 공개 메소드

Invoked by reflection when the appropriate menu command is executed. Which one is indicated by the paramters node.
public OnMacro ( object commandObject ) : bool
commandObject object
리턴 bool