Example #1
0
        /// <summary>
        /// Use the hash function of each object to see if the passed in marker
        /// is different from the current dlg values.
        /// </summary>
        /// <returns></returns>
        public bool IFMChanged()
        {
            CheckDisposed();

            Sfm2Xml.ClsInFieldMarker current = IFM();
            return(current.GetHashCode() == m_inlineMarker.GetHashCode());
        }
Example #2
0
        private LexImportWizardCharMarkerDlg()
        {
            isValidEndMarker   = false;
            isValidBeginMarker = false;
            //isValidElementName = false;
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            AccessibleName = GetType().Name;

            m_inlineMarker = new Sfm2Xml.ClsInFieldMarker();
            HideOKBtn();                // see if it needs to be visible or not
        }
		private LexImportWizardCharMarkerDlg()
		{
			isValidEndMarker = false;
			isValidBeginMarker = false;
			//isValidElementName = false;
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
			AccessibleName = GetType().Name;

			m_inlineMarker = new Sfm2Xml.ClsInFieldMarker();
			HideOKBtn();	// see if it needs to be visible or not

		}
		public LexImportWizardCharMarkerDlg()
		{
			isValidEndMarker = false;
			isValidBeginMarker = false;
			//isValidElementName = false;
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			m_inlineMarker = new Sfm2Xml.ClsInFieldMarker();
			HideOKBtn();	// see if it needs to be visible or not

			this.helpProvider = new System.Windows.Forms.HelpProvider();
			this.helpProvider.HelpNamespace = FwApp.App.HelpFile;
			this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic);
			this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0));
			this.helpProvider.SetShowHelp(this, true);
		}
Example #5
0
        public LexImportWizardCharMarkerDlg()
        {
            isValidEndMarker   = false;
            isValidBeginMarker = false;
            //isValidElementName = false;
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            m_inlineMarker = new Sfm2Xml.ClsInFieldMarker();
            HideOKBtn();                // see if it needs to be visible or not

            this.helpProvider = new System.Windows.Forms.HelpProvider();
            this.helpProvider.HelpNamespace = FwApp.App.HelpFile;
            this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic);
            this.helpProvider.SetHelpKeyword(this, FwApp.App.GetHelpString(s_helpTopic, 0));
            this.helpProvider.SetShowHelp(this, true);
        }
Example #6
0
        public void Init(Sfm2Xml.ClsInFieldMarker ifm, Hashtable uiLangsHT, LcmCache cache)
        {
            CheckDisposed();

            if (ifm == null)
            {
                ifm = new Sfm2Xml.ClsInFieldMarker();
            }

            m_inlineMarker = ifm;
            m_uiLangs      = uiLangsHT;
            m_cache        = cache;

            // ====================================================================
            // Set the language descriptor combo box.  This is a DropList so that
            // the entered text can't be different from the contents of the list.
            // If the user wants a new language descriptor they have to add one.

            cbLangDesc.Items.Add(NoChange);
            cbLangDesc.SelectedItem = NoChange;

            foreach (DictionaryEntry lang in m_uiLangs)
            {
                Sfm2Xml.LanguageInfoUI langInfo = lang.Value as Sfm2Xml.LanguageInfoUI;
                // make sure there is only one entry for each writing system (especially 'ignore')
                if (cbLangDesc.FindStringExact(langInfo.ToString()) < 0)
                {
                    cbLangDesc.Items.Add(langInfo);
                    if (langInfo.FwName == m_inlineMarker.Language)
                    {
                        cbLangDesc.SelectedItem = langInfo;
                    }
                }
            }

            InitializeStylesComboBox();

            HideOKBtn();                // see if it needs to be visible or not
        }
		public void Init(Sfm2Xml.ClsInFieldMarker ifm, Hashtable uiLangsHT, FdoCache cache)
		{
			CheckDisposed();

			if (ifm == null)
				ifm = new Sfm2Xml.ClsInFieldMarker();

			m_inlineMarker = ifm;
			m_uiLangs = uiLangsHT;
			m_cache = cache;

			// ====================================================================
			// Set the language descriptor combo box.  This is a DropList so that
			// the entered text can't be different from the contents of the list.
			// If the user wants a new language descriptor they have to add one.

			cbLangDesc.Items.Add(NoChange);
			cbLangDesc.SelectedItem = NoChange;

			foreach (DictionaryEntry lang in m_uiLangs)
			{
				Sfm2Xml.LanguageInfoUI langInfo = lang.Value as Sfm2Xml.LanguageInfoUI;
				// make sure there is only one entry for each writing system (especially 'ignore')
				if (cbLangDesc.FindStringExact(langInfo.ToString()) < 0)
				{
					cbLangDesc.Items.Add(langInfo);
					if (langInfo.FwName == m_inlineMarker.Language)
						cbLangDesc.SelectedItem = langInfo;
				}
			}

			InitializeStylesComboBox();

			HideOKBtn();	// see if it needs to be visible or not
		}
		private void InitWithIFM( Sfm2Xml.ClsInFieldMarker ifm)
		{
			HideOKBtn();	// see if it needs to be visible or not
			m_inlineMarker = ifm;
		}
Example #9
0
 private void InitWithIFM(Sfm2Xml.ClsInFieldMarker ifm)
 {
     HideOKBtn();                // see if it needs to be visible or not
     m_inlineMarker = ifm;
 }