C# 클래스 ACAT.Lib.Extension.AppAgents.TalkWindow.TalkWindowAgentBase

The agent for the Talk Window. Handles Talkwindow contextual menu functions such as zoomin, zoomout, websearch, wikipedia search,
상속: ACAT.Lib.Core.AgentManagement.AgentBase
파일 보기 프로젝트 열기: brlima94/acat-localization

공개 메소드들

메소드 설명
CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : void

Invoked to set the 'enabled' state of a widget. This will depend on the current context.

OnContextMenuRequest ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void

Request for a contextual menu came in. If talk window is visible display the contextual menu for it.

OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo, bool &handled ) : void

Invoked when the foreground window focus changes. If the foreground window is the talk window, create the Text control agent for it and display the Alphabet scanner

OnFocusLost ( ) : void

Focus shifted to an app not supported by this agent. Release resources

TalkWindowAgentBase ( ) : System

Initializes a new instance of the class.

보호된 메소드들

메소드 설명
OnDispose ( ) : void

Invoked on disposal. Cleanup

getTalkWindowSelectedTextOrPara ( ) : String

Returns the text from the talk window. The text is either one that is currently selected, or the current paragraph

비공개 메소드들

메소드 설명
AppTalkWindowManager_EvtTalkWindowClosed ( object sender, EventArgs e ) : void

Talk window was closed

AppTalkWindowManager_EvtTalkWindowVisibilityChanged ( object sender, ACAT.Lib.Core.TalkWindowManagement.TalkWindowVisibilityChangedEventArgs e ) : void

Visibility of talk window changed.

OnRunCommand ( String command, object commandArg, bool &handled ) : void
_textInterface_EvtTextChanged ( object sender, ACAT.Lib.Core.AgentManagement.TextInterface.TextChangedEventArgs e ) : void

Event handler for when text or caret position in the text window changes

createTalkWindowTextInterface ( IntPtr handle, AutomationElement automationElement ) : void

Creates the text interface for the Talk window

disposeTextInterface ( ) : void

Disposes text interface

getTalkTextWinAutomationElement ( ) : AutomationElement

Gets the automation element of the talk text window

메소드 상세

CheckWidgetEnabled() 공개 메소드

Invoked to set the 'enabled' state of a widget. This will depend on the current context.
public CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : void
arg ACAT.Lib.Core.AgentManagement.CheckEnabledArgs contains info about the widget
리턴 void

OnContextMenuRequest() 공개 메소드

Request for a contextual menu came in. If talk window is visible display the contextual menu for it.
public OnContextMenuRequest ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo Foreground window info
리턴 void

OnDispose() 보호된 메소드

Invoked on disposal. Cleanup
protected OnDispose ( ) : void
리턴 void

OnFocusChanged() 공개 메소드

Invoked when the foreground window focus changes. If the foreground window is the talk window, create the Text control agent for it and display the Alphabet scanner
public OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo, bool &handled ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo Foreground window info
handled bool set to true if handled
리턴 void

OnFocusLost() 공개 메소드

Focus shifted to an app not supported by this agent. Release resources
public OnFocusLost ( ) : void
리턴 void

TalkWindowAgentBase() 공개 메소드

Initializes a new instance of the class.
public TalkWindowAgentBase ( ) : System
리턴 System

getTalkWindowSelectedTextOrPara() 보호된 메소드

Returns the text from the talk window. The text is either one that is currently selected, or the current paragraph
protected getTalkWindowSelectedTextOrPara ( ) : String
리턴 String