Example #1
0
 private void buttonShowDocumentDetail_Click(object sender, RibbonControlEventArgs e)
 {
     if (global::SWB4Word2010.Globals.ThisAddIn.Application.ActiveDocument != null)
     {
         Word2010OfficeDocument document = new Word2010OfficeDocument(global::SWB4Word2010.Globals.ThisAddIn.Application.ActiveDocument);
         document.showDocumentDetail();
     }
 }
Example #2
0
 private void buttonAddLinkDo_Click(object sender, RibbonControlEventArgs e)
 {
     if (global::SWB4Word2010.Globals.ThisAddIn.Application.ActiveDocument != null)
     {
         Word2010OfficeDocument document = new Word2010OfficeDocument(global::SWB4Word2010.Globals.ThisAddIn.Application.ActiveDocument);
         document.InsertLinkToDoc();
     }
 }
Example #3
0
 private void buttonCleanPropeties_Click(object sender, RibbonControlEventArgs e)
 {
     if (global::SWB4Word2010.Globals.ThisAddIn.Application.ActiveDocument != null)
     {
         Word2010OfficeDocument document = new Word2010OfficeDocument(global::SWB4Word2010.Globals.ThisAddIn.Application.ActiveDocument);
         document.DeleteAsociation();
     }
 }