C# Class ACPAddIn.ThisAddIn

Inheritance: Microsoft.Office.Tools.AddInBase
显示文件 Open project: autocompaste/AutoComPaste

Public Properties

Property Type Description
tourForm Tour
triggerSuggestionPopUpKey int
triggerSuggestionPopUpKeyMod1 String
triggerSuggestionPopUpKeyMod2 String

Public Methods

Method Description
getApplicationLocation ( ) : Point
getApplicationSize ( ) : Size
getCaretPosition ( ) : void
getNotificationForm ( ) : Notification
getRangeTextByWords ( int numOfWords ) : String
getWordsBeforeLastSentence ( ) : string
insertSuggestion ( Suggestion suggestion ) : void

Protected Methods

Method Description
CreateRibbonExtensibilityObject ( ) : Microsoft.Microsoft.Office.Core.Core.IRibbonExtensibility

Private Methods

Method Description
Application_WindowActivate ( Microsoft.Office.Interop.Word Doc, Microsoft.Office.Interop.Word Wn ) : void
Application_WindowDeactivate ( Microsoft.Office.Interop.Word Doc, Microsoft.Office.Interop.Word Wn ) : void
BeginInitialization ( ) : void
BindToData ( ) : void
CallNextHookEx ( int idHook, int nCode, IntPtr wParam, IntPtr lParam ) : int
ClearHook ( ) : void
ClientToScreen ( IntPtr hWnd, Point &position ) : bool
EndInitialization ( ) : void
FinishInitialization ( ) : void
GetActiveWindow ( ) : IntPtr
GetAsyncKeyState ( int vKey ) : ushort
GetForegroundWindow ( ) : IntPtr
GetGUIThreadInfo ( uint tId, GUITHREADINFO &threadInfo ) : bool
GetModuleHandle ( string lpModuleName ) : IntPtr
GetWindowText ( int hWnd, StringBuilder text, int count ) : int
Initialize ( ) : void
InitializeCachedData ( ) : void
InitializeComponents ( ) : void
InitializeControls ( ) : void
InitializeData ( ) : void
InitializeDataBindings ( ) : void
InternalStartup ( ) : void
IsCached ( string MemberName ) : bool
KeyboardHookProc ( int nCode, IntPtr wParam, IntPtr lParam ) : int
MouseHookProc ( int nCode, IntPtr wParam, IntPtr lParam ) : int
NeedsFill ( string MemberName ) : bool
OnConfigChange ( object sender, FileSystemEventArgs e ) : void
OnShutdown ( ) : void
OnWindowSizeChange ( Microsoft Doc, Microsoft Wn ) : void
SetActiveWindow ( IntPtr hWnd ) : IntPtr
SetKeyboardHook ( ) : void
SetMouseHook ( ) : void
SetWindowsHookEx ( int idHook, HookProc lpfn, IntPtr hInstance, int threadId ) : int
StartCaching ( string MemberName ) : void
StopCaching ( string MemberName ) : void
ThisAddIn ( global factory, global serviceProvider )
ThisAddIn_Shutdown ( object sender, System e ) : void
ThisAddIn_Startup ( object sender, System e ) : void
UnhookWindowsHookEx ( int idHook ) : bool
appendLogString ( int vkCode ) : void
appendReqSuggTimeString ( ) : void
appendSwitchWindowString ( ) : void
calculateSuggestionBoxPosition ( Point caretPosition ) : Point
callMainThreadDisplaySuggestion ( List suggestions, bool auto ) : void
checkEntityWords ( Entity entity ) : int
checkHotkeysModifiers ( String function ) : Boolean
checkKeyCombination ( KbDllHookStruct kbDllHookStruct ) : int
displayMessage ( string msg ) : void
displaySuggestionBox ( ) : void
evaluateCaretPosition ( ) : Point
extensionBgWork ( object sender, DoWorkEventArgs e ) : void
handleExtensionMode ( KbDllHookStruct kbDllHookStruct ) : bool
handleRequestSuggestionMode ( KbDllHookStruct kbDllHookStruct ) : bool
initConfiguration ( ) : bool
isCoordinateWithinForm ( int x, int y, Form form ) : bool
markServerDown ( ) : void
readConfiguration ( String filePath ) : void
reflectConfigurationChange ( String filePath ) : void
requestSuggestion ( bool auto ) : void
requestSuggestionAutomatic ( ) : void
requestSuggestionManual ( ) : void
setHotkeys ( IniData config ) : void
trackFile ( String filePath ) : void
triggerSuggestion ( bool auto ) : void
updateApplicationSizeDetail ( ) : void
writeToFile ( String content ) : void

Method Details

CreateRibbonExtensibilityObject() protected method

protected CreateRibbonExtensibilityObject ( ) : Microsoft.Microsoft.Office.Core.Core.IRibbonExtensibility
return Microsoft.Microsoft.Office.Core.Core.IRibbonExtensibility

getApplicationLocation() public method

public getApplicationLocation ( ) : Point
return Point

getApplicationSize() public method

public getApplicationSize ( ) : Size
return Size

getCaretPosition() public method

public getCaretPosition ( ) : void
return void

getNotificationForm() public method

public getNotificationForm ( ) : Notification
return Notification

getRangeTextByWords() public method

public getRangeTextByWords ( int numOfWords ) : String
numOfWords int
return String

getWordsBeforeLastSentence() public method

public getWordsBeforeLastSentence ( ) : string
return string

insertSuggestion() public method

public insertSuggestion ( Suggestion suggestion ) : void
suggestion Suggestion
return void

Property Details

tourForm public_oe static_oe property

public static Tour,ACPAddIn tourForm
return Tour

triggerSuggestionPopUpKey public_oe property

public int triggerSuggestionPopUpKey
return int

triggerSuggestionPopUpKeyMod1 public_oe property

public String triggerSuggestionPopUpKeyMod1
return String

triggerSuggestionPopUpKeyMod2 public_oe property

public String triggerSuggestionPopUpKeyMod2
return String