C# 클래스 ACAT.Lib.Extension.AppAgents.MSWord.MSWordAgentBase

Base class for the Agent for Microsoft Word
상속: ACAT.Lib.Core.AgentManagement.AgentBase
파일 보기 프로젝트 열기: brlima94/acat-localization

보호된 프로퍼티들

프로퍼티 타입 설명
autoSwitchScanners bool
isWordInstalled bool
supportedFeatures String[]

공개 메소드들

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

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

MSWordAgentBase ( ) : System

Initializes a new instance of the class.

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

Displays the contextual menu

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

Invoked when the foreground window focus changes. Displays the scanner depending on the context. Also, if this is a new window that has come into focus, adds its contents to the word prediction temporary batch model for more contextual prediction of words

OnFocusLost ( ) : void

Focus shifted to another app. This agent is getting deactivated.

OnRunCommand ( String command, object commandArg, bool &handled ) : void

Executes the specified command

보호된 메소드들

메소드 설명
OnDispose ( ) : void

Dispose allocated resources

createMSWordTextInterface ( ) : void

Creates the text control interface for MS Word

isRecentDocuments ( AutomationElement focusedElement ) : bool

Returns if the currently focused element is the "Recent Documents" window

launchLectureManager ( String fileName, String text ) : void

Launches lecture manager with text from the MS Word window. This function returns only after lecture manager has exited

비공개 메소드들

메소드 설명
_textInterface_EvtTextChanged ( object sender, ACAT.Lib.Core.AgentManagement.TextInterface.TextChangedEventArgs e ) : void

Event handler for when text or caret position in the MS Word window has changed

disposeTextInterface ( ) : void

Disposes off the text interface

loadWordPredictionContext ( ) : void

Loads the text from the active word document to the word prediction engine as temporary context for better word prediction results, that are more relevant to the active document

unloadWordPredictionContext ( ) : void

Unloaded previously loaded context from the word predictor

메소드 상세

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

MSWordAgentBase() 공개 메소드

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

OnContextMenuRequest() 공개 메소드

Displays the contextual menu
public OnContextMenuRequest ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo Foreground window info
리턴 void

OnDispose() 보호된 메소드

Dispose allocated resources
protected OnDispose ( ) : void
리턴 void

OnFocusChanged() 공개 메소드

Invoked when the foreground window focus changes. Displays the scanner depending on the context. Also, if this is a new window that has come into focus, adds its contents to the word prediction temporary batch model for more contextual prediction of words
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 another app. This agent is getting deactivated.
public OnFocusLost ( ) : void
리턴 void

OnRunCommand() 공개 메소드

Executes the specified command
public OnRunCommand ( String command, object commandArg, bool &handled ) : void
command String The command to execute
commandArg object Optional arguments for the command
handled bool set this to true if handled
리턴 void

createMSWordTextInterface() 보호된 메소드

Creates the text control interface for MS Word
protected createMSWordTextInterface ( ) : void
리턴 void

isRecentDocuments() 보호된 메소드

Returns if the currently focused element is the "Recent Documents" window
protected isRecentDocuments ( AutomationElement focusedElement ) : bool
focusedElement System.Windows.Automation.AutomationElement focused element
리턴 bool

launchLectureManager() 보호된 메소드

Launches lecture manager with text from the MS Word window. This function returns only after lecture manager has exited
protected launchLectureManager ( String fileName, String text ) : void
fileName String
text String
리턴 void

프로퍼티 상세

autoSwitchScanners 보호되어 있는 프로퍼티

If set to true, the agent will autoswitch the scanners depending on which element has focus. Eg: Alphabet scanner if an edit text window has focus, the contextual menu if the main document has focus
protected bool autoSwitchScanners
리턴 bool

isWordInstalled 보호되어 있는 프로퍼티

Is word installed on this computer?
protected bool isWordInstalled
리턴 bool

supportedFeatures 보호되어 있는 프로퍼티

List of features supported by this agent. These widgets will be enabled in the scanners.
protected String[] supportedFeatures
리턴 String[]