public RoundTripCheckWordProcessor(FontConverters aFCs)
			: base(aFCs, new RoundTripProcessorForm())
		{
		}
示例#2
0
		public PubDocumentProcessor(FontConverters aFCs, BaseConverterForm form)
			: base(aFCs, form)
		{
		}
示例#3
0
		protected FontConverter QueryUserForFontScan(string strFontName)
		{
			if ((strFontName == null) || (strFontName.Length == 0))
				return null;

			// make sure our collection exists
			if (m_mapFontsEncountered == null)
				m_mapFontsEncountered = new FontConverters();

			if (!m_mapFontsEncountered.ContainsKey(strFontName))
			{
				DialogResult res = MessageBox.Show(String.Format("Do you want to convert words in the {0} font?", strFontName), Connect.cstrCaption, MessageBoxButtons.YesNoCancel);

				FontConverter aFC = null;
				if (res == DialogResult.Cancel)
					throw new ApplicationException(Connect.cstrAbortMessage);
				if (res == DialogResult.Yes)
				{
					aFC = QueryForFontConvert(strFontName);
					/*
					FontConvertersPicker aFontConverterPicker = new FontConvertersPicker(strFontName);
					if( aFontConverterPicker.ShowDialog() == DialogResult.OK )
						aFC = aFontConverterPicker.SelectedFontConverters[strFontName];
					*/
					// aFC = new FontConverter(strFontName);
				}

				m_mapFontsEncountered.Add(strFontName, aFC);
			}

			return m_mapFontsEncountered[strFontName];
		}
示例#4
0
		protected OfficeDocumentProcessor GetDocumentProcessor(FontConverters aFCs, BaseConverterForm form)
		{
			return (Application.Version == "11.0") ?
					new OfficeDocumentProcessor(aFCs, form) :
					new PubDocumentProcessor(aFCs, form);
		}
示例#5
0
		/// <summary>
		/// This constructor is for when you have a collection of Font to Converter mappings AND a form
		/// to use to display the differences.
		/// </summary>
		/// <param name="aFCs"></param>
		/// <param name="form"></param>
		public OfficeDocumentProcessor(FontConverters aFCs, BaseConverterForm form)
		{
			m_aFCs = aFCs;
			Form = form;
			Process = CompareInputOutputProcess;    // good default
		}