波佐見弁利をVSTOでワードアドインにしてみた。

Setup用のレジストリ設定は以下のサイトが参考になりました。
http://blogs.msdn.com/b/tsmatsuz/archive/2008/03/31/vsto-v3-windows-installer.aspx

VSTOの情報ってなかなかないですね。(;´Д`A ```

ソースのかけらを置いておきます。

        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            波佐見弁利ワードアドイン.Globals.ThisAddIn.Application.WindowBeforeDoubleClick += this.Application_WindowBeforeDoubleClick;
        }

        private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
        {
        }

        void Application_WindowBeforeDoubleClick(Microsoft.Office.Interop.Word.Selection Sel, ref bool Cancel)
        {
            Microsoft.Office.Interop.Word.Selection obj =Sel;
            this.my_softkbd_4_form_click(obj, null);
            Cancel = true;
        }
        private void DecrementText4Form()
        {
            if (textControl != null)
            {
                string text = textControl.Text;
                int len = text.Length;
                if (len > 0)
                {
                    text = text.Substring(0, len - 1);
                    textControl.Delete();
                    textControl.InsertAfter(text);
                }
            }
        }

        protected override void sendWord(string word)
        {
            this.textControl.InsertAfter(word);
        }