Example #1
0
        protected void SelectionConvert()
        {
            if (Application.ActiveDocument == null)
            {
                return;
            }

            try
            {
                PubRangeDocument        doc = new PubRangeDocument(Application.ActiveDocument, OfficeTextDocument.ProcessingType.eWordByWord);
                OfficeDocumentProcessor aSelectionProcessor = GetDocumentProcessor((FontConverters)null, new SILConverterProcessorForm());

                doc.ProcessWordByWord(aSelectionProcessor);
            }
            catch (Exception ex)
            {
                DisplayException(ex);
            }
        }
Example #2
0
        void SelectionConvert_Click(Microsoft.Office.Core.CommandBarButton Ctrl, ref bool CancelDefault)
        {
            if (Application.ActiveDocument == null)
            {
                return;
            }

            try
            {
                PubRangeDocument        doc = new PubRangeDocument(Application.ActiveDocument, OfficeTextDocument.ProcessingType.eWordByWord);
                OfficeDocumentProcessor aSelectionProcessor = GetDocumentProcessor((FontConverters)null, new SILConverterProcessorForm());

                doc.ProcessWordByWord(aSelectionProcessor);
            }
            catch (Exception ex)
            {
                DisplayException(ex);
            }
        }
Example #3
0
		void SelectionConvert_Click(Microsoft.Office.Core.CommandBarButton Ctrl, ref bool CancelDefault)
		{
			if (Application.ActiveDocument == null)
				return;

			try
			{
				PubRangeDocument doc = new PubRangeDocument(Application.ActiveDocument, OfficeTextDocument.ProcessingType.eWordByWord);
				OfficeDocumentProcessor aSelectionProcessor = GetDocumentProcessor((FontConverters)null, new SILConverterProcessorForm());

				doc.ProcessWordByWord(aSelectionProcessor);
			}
			catch (Exception ex)
			{
				DisplayException(ex);
			}
		}