Example #1
0
 public HRESULT OnUninitDocumentMgr(ITfDocumentMgr pdim)
 {
     return(new HRESULT()
     {
         Code = 0
     });
 }
Example #2
0
        public HRESULT OnSetFocus(ITfDocumentMgr pdimFocus, ITfDocumentMgr pdimPrevFocus)
        {
            _compositionManager.Switch(pdimFocus, pdimPrevFocus);
            _candidateManager.SetDocumentMgr(pdimFocus);

            return(new HRESULT()
            {
                Code = 0
            });
        }
        //------------------------------------------------------
        //
        //  public Events
        //
        //------------------------------------------------------

        //------------------------------------------------------
        //
        //  Private Methods
        //
        //------------------------------------------------------

        private void SetFocusOnDim(ITfDocumentMgr dim)
        {
            ITfThreadMgrEx threadmgr = ThreadManager;

            if (threadmgr != null)
            {
                ITfDocumentMgr prevDocMgr;
                threadmgr.AssociateFocus(InputMethod.WindowHandle, dim, out prevDocMgr);
            }
        }
Example #4
0
 HRESULT ITfThreadMgrEventSink.OnSetFocus(ITfDocumentMgr pdimFocus, ITfDocumentMgr pdimPrevFocus)
 {
     throw new NotImplementedException();
 }
Example #5
0
 HRESULT ITfThreadMgrEventSink.OnUninitDocumentMgr(ITfDocumentMgr pdim)
 {
     throw new NotImplementedException();
 }
Example #6
0
 public void SetDocumentMgr(ITfDocumentMgr pdimFocus)
 {
     throw new NotImplementedException();
 }
Example #7
0
 public HRESULT GetDocumentMgr(out ITfDocumentMgr ppdim)
 {
     throw new NotImplementedException();
 }
Example #8
0
 public void Switch(ITfDocumentMgr pdimFocus, ITfDocumentMgr tfDocumentMgr)
 {
     throw new NotImplementedException();
 }
Example #9
0
 /// <summary>
 /// Init a text edit sink on the topmost context of the document.
 /// Always release any previous sink.
 /// </summary>
 /// <param name="pDocMgr"></param>
 /// <returns></returns>
 private bool _InitTextEditSink(ITfDocumentMgr pDocMgr)
 {
     throw new NotImplementedException();
 }