/// <summary> /// Link navigator used for navigating to links from within /// an editing session /// </summary> /// <param name="editorControl">presentation editor context</param> public EditorLinkNavigator(HtmlEditorControl editorControl, IMainFrameWindow editorFrame, IStatusBar statusBar, IMshtmlDocumentEvents events) { // save references _htmlEditorContext = editorControl as IHtmlEditorComponentContext; _htmlEditorControl = editorControl; _editorFrame = editorFrame; _statusBar = statusBar; _documentEvents = events; // sign up for editor events _editorFrame.Deactivate += new EventHandler(_editorFrame_Deactivate); _htmlEditorContext.PreHandleEvent += new HtmlEditDesignerEventHandler(presentationEditor_PreHandleEvent); _htmlEditorContext.TranslateAccelerator += new HtmlEditDesignerEventHandler(presentationEditor_TranslateAccelerator); _documentEvents.LostFocus += new EventHandler(_documentEvents_LostFocus); }