Mostly a parameter object for passing CChart cell/sentence info to the AdvancedMTDialog and its attendant Logic. Also used to return responses to CChartLogic for it to process.
예제 #1
0
        internal AdvancedMTDialog(LcmCache cache, bool fPrepose, CChartSentenceElements ccSentElem, IHelpTopicProvider helpTopicProvidor)
        {
            InitializeComponent();

            SuspendLayout();

            m_helpTopicProvider = helpTopicProvidor;
            if (m_helpTopicProvider != null)
            {
                helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile;
                helpProvider.SetHelpNavigator(this, HelpNavigator.Topic);
                helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic));
                helpProvider.SetShowHelp(this, true);
            }
            m_AMTDLogic = new AdvancedMTDialogLogic(cache, fPrepose, ccSentElem);
            m_bottomStuff.SuspendLayout();
            m_bottomStuff.Controls.AddRange(new Control[] { m_AMTDLogic.DlgRibbon });

            m_bottomStuff.ResumeLayout();

            // Setup localized dialog
            SetCaption(fPrepose ? DiscourseStrings.ksAdvDlgPreposeCaption : DiscourseStrings.ksAdvDlgPostposeCaption);
            SetMainText(fPrepose ? DiscourseStrings.ksAdvDlgMainPreText : DiscourseStrings.ksAdvDlgMainPostText);
            SetPartialText(fPrepose ? DiscourseStrings.ksAdvDlgPartialPre : DiscourseStrings.ksAdvDlgPartialPost);

            ResumeLayout();

            InitLogicAndDialog();
        }
예제 #2
0
		internal AdvancedMTDialog(FdoCache cache, bool fPrepose, CChartSentenceElements ccSentElem, IHelpTopicProvider helpTopicProvidor)
		{
			InitializeComponent();

			SuspendLayout();

			m_helpTopicProvider = helpTopicProvidor;
			if (m_helpTopicProvider != null)
			{
				helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile;
				helpProvider.SetHelpNavigator(this, HelpNavigator.Topic);
				helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic));
				helpProvider.SetShowHelp(this, true);
			}
			m_AMTDLogic = new AdvancedMTDialogLogic(cache, fPrepose, ccSentElem);
			m_bottomStuff.SuspendLayout();
			m_bottomStuff.Controls.AddRange(new Control[] { m_AMTDLogic.DlgRibbon });

			m_bottomStuff.ResumeLayout();

			// Setup localized dialog
			SetCaption(fPrepose ? DiscourseStrings.ksAdvDlgPreposeCaption : DiscourseStrings.ksAdvDlgPostposeCaption);
			SetMainText(fPrepose ? DiscourseStrings.ksAdvDlgMainPreText : DiscourseStrings.ksAdvDlgMainPostText);
			SetPartialText(fPrepose ? DiscourseStrings.ksAdvDlgPartialPre : DiscourseStrings.ksAdvDlgPartialPost);

			ResumeLayout();

			InitLogicAndDialog();
		}
		public override void Exit()
		{
			m_origCell = null;
			m_sentElem = null;
			m_chart = null;
			m_cclogic = null;

			base.Exit();
		}
예제 #4
0
        public override void Exit()
        {
            m_origCell = null;
            m_sentElem = null;
            m_chart    = null;
            m_cclogic  = null;

            base.Exit();
        }
예제 #5
0
        public AdvancedMTDialogLogic(FdoCache cache, bool fPrepose, CChartSentenceElements ccSentElem)
        {
            m_cache      = cache;
            m_fPrepose   = fPrepose;
            m_ccSentElem = ccSentElem;

            m_ribbon      = new DialogInterlinRibbon(Cache);
            m_ribbon.Dock = DockStyle.Fill;             // fills the 'bottom stuff' panel
        }
예제 #6
0
        public AdvancedMTDialogLogic(LcmCache cache, bool fPrepose, CChartSentenceElements ccSentElem)
        {
            m_cache      = cache;
            m_fPrepose   = fPrepose;
            m_ccSentElem = ccSentElem;

            m_ribbon = new DialogInterlinRibbon(Cache)
            {
                Dock = DockStyle.Fill
            };
        }
		protected override void CreateTestData()
		{
			base.CreateTestData();
			m_cclogic = new TestCCLogic(Cache, m_chart, m_stText);
			m_cclogic.Ribbon = m_mockRibbon = new MockRibbon(Cache, m_stText.Hvo);
			m_helper.Logic = m_cclogic;
			m_template = m_helper.MakeTemplate(out m_allColumns);
			// Note: do this AFTER creating the template, which may also create the DiscourseData object.
			m_chart = m_helper.SetupAChart();
			m_origCell = null;
			// Test must fill in the ClickedCell in the CChartSentenceElements object
			m_eligCols = m_allColumns.ToArray();
			// CChartSentenceElements always starts with all columns
			m_eligRows = null;
			// Test must fill in EligibleRows in the CChartSentenceElements object
			m_sentElem = new CChartSentenceElements(m_origCell, m_eligRows, m_eligCols);
			m_dlgLogicPrepose = new AdvancedMTDialogLogic(Cache, true, m_sentElem);
			m_dlgLogicPostpose = new AdvancedMTDialogLogic(Cache, false, m_sentElem);
			// create one each direction; test both
		}
예제 #8
0
		internal AdvancedMTDialog(FdoCache cache, bool fPrepose, CChartSentenceElements ccSentElem)
		{
			InitializeComponent();

			this.SuspendLayout();

			m_AMTDLogic = new AdvancedMTDialogLogic(cache, fPrepose, ccSentElem);
			m_bottomStuff.SuspendLayout();
			m_bottomStuff.Controls.AddRange(new Control[] { m_AMTDLogic.DlgRibbon });
			m_bottomStuff.ResumeLayout();

			// Setup localized dialog
			SetCaption(fPrepose ? DiscourseStrings.ksAdvDlgPreposeCaption : DiscourseStrings.ksAdvDlgPostposeCaption);
			SetMainText(fPrepose ? DiscourseStrings.ksAdvDlgMainPreText : DiscourseStrings.ksAdvDlgMainPostText);
			SetPartialText(fPrepose ? DiscourseStrings.ksAdvDlgPartialPre : DiscourseStrings.ksAdvDlgPartialPost);

			this.ResumeLayout();

			InitLogicAndDialog();
		}
예제 #9
0
 protected override void CreateTestData()
 {
     base.CreateTestData();
     m_cclogic        = new TestCCLogic(Cache, m_chart, m_stText);
     m_cclogic.Ribbon = m_mockRibbon = new MockRibbon(Cache, m_stText.Hvo);
     m_helper.Logic   = m_cclogic;
     m_template       = m_helper.MakeTemplate(out m_allColumns);
     // Note: do this AFTER creating the template, which may also create the DiscourseData object.
     m_chart    = m_helper.SetupAChart();
     m_origCell = null;
     // Test must fill in the ClickedCell in the CChartSentenceElements object
     m_eligCols = m_allColumns.ToArray();
     // CChartSentenceElements always starts with all columns
     m_eligRows = null;
     // Test must fill in EligibleRows in the CChartSentenceElements object
     m_sentElem         = new CChartSentenceElements(m_origCell, m_eligRows, m_eligCols);
     m_dlgLogicPrepose  = new AdvancedMTDialogLogic(Cache, true, m_sentElem);
     m_dlgLogicPostpose = new AdvancedMTDialogLogic(Cache, false, m_sentElem);
     // create one each direction; test both
 }
예제 #10
0
        internal AdvancedMTDialog(FdoCache cache, bool fPrepose, CChartSentenceElements ccSentElem)
        {
            InitializeComponent();

            this.SuspendLayout();

            m_AMTDLogic = new AdvancedMTDialogLogic(cache, fPrepose, ccSentElem);
            m_bottomStuff.SuspendLayout();
            m_bottomStuff.Controls.AddRange(new Control[] { m_AMTDLogic.DlgRibbon });
            m_bottomStuff.ResumeLayout();

            // Setup localized dialog
            SetCaption(fPrepose ? DiscourseStrings.ksAdvDlgPreposeCaption : DiscourseStrings.ksAdvDlgPostposeCaption);
            SetMainText(fPrepose ? DiscourseStrings.ksAdvDlgMainPreText : DiscourseStrings.ksAdvDlgMainPostText);
            SetPartialText(fPrepose ? DiscourseStrings.ksAdvDlgPartialPre : DiscourseStrings.ksAdvDlgPartialPost);

            this.ResumeLayout();

            InitLogicAndDialog();
        }
예제 #11
0
		public AdvancedMTDialogLogic(FdoCache cache, bool fPrepose, CChartSentenceElements ccSentElem)
		{
			m_cache = cache;
			m_fPrepose = fPrepose;
			m_ccSentElem = ccSentElem;

			m_ribbon = new DialogInterlinRibbon(Cache);
			m_ribbon.Dock = DockStyle.Fill; // fills the 'bottom stuff' panel
		}
예제 #12
0
		public AdvancedMTDialogLogic(FdoCache cache, bool fPrepose, CChartSentenceElements ccSentElem)
		{
			m_cache = cache;
			m_fPrepose = fPrepose;
			m_ccSentElem = ccSentElem;

			m_ribbon = new DialogInterlinRibbon(Cache) {Dock = DockStyle.Fill};
		}