Summary description for HtmlControl.
Inheritance: XCore.XCoreUserControl
		public WebPageInteractor(HtmlControl htmlControl, Mediator mediator, FwTextBox tbWordForm)
		{
			m_htmlControl = htmlControl;
			m_mediator = mediator;
			m_cache = (FdoCache)m_mediator.PropertyTable.GetValue("cache");
			m_tbWordForm = tbWordForm;
			m_htmlControl.Browser.DomClick += HandleDomClick;
		}
Beispiel #2
0
		/// -----------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="HtmlViewer2"/> class.
		/// </summary>
		/// -----------------------------------------------------------------------------------
		public HtmlViewer()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();

			m_htmlControl = new HtmlControl();
			m_htmlControl.Dock = System.Windows.Forms.DockStyle.Fill;
			Controls.Add(m_htmlControl);

			base.AccNameDefault = "HtmlViewer";	// default accessibility name
		}
		public WebPageInteractor(HtmlControl htmlControl, Mediator mediator, FwTextBox tbWordForm)
		{
			m_htmlControl = htmlControl;
			m_mediator = mediator;
			m_cache = (FdoCache)m_mediator.PropertyTable.GetValue("cache");
			m_tbWordForm = tbWordForm;
#if __MonoCS__
			m_htmlControl.Browser.DomClick += HandleDomClick;
			m_htmlControl.Browser.DomMouseMove += HandleHtmlControlBrowserDomMouseMove;
#endif
		}
        private void InitHtmlControl()
        {
            m_htmlControl = new HtmlControl {Dock = DockStyle.Fill};
            m_htmlControl.HCBeforeNavigate += OnBeforeNavigate;

            ResetURLCount();
        }
Beispiel #5
0
		private void InitHtmlControl()
		{
			m_htmlControl = new HtmlControl
				{
					Location = new Point(0, m_resultsLabel.Bottom + 1),
					Size = new Size(m_resultsPanel.Width, m_resultsPanel.Height - (m_resultsLabel.Height + 1)),
					Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right
				};
			// Setting the Dock to fill doesn't work, as we lose the top of the HtmlControl to the
			// label control at the top of the panel.  See LT-7446 for the worst case scenario (120dpi).
			// So, set the location and size of the HTML control, and anchor it to all four sides of the
			// panel.
			m_resultsPanel.Controls.Add(m_htmlControl);
			m_htmlControl.URL = Path.Combine(TransformPath, "InitialDocument.htm");
		}
Beispiel #6
0
		private void InitHtmlControl()
		{
			m_htmlControl = new HtmlControl();
			m_htmlControl.Dock = System.Windows.Forms.DockStyle.Fill;
			m_htmlControl.HCBeforeNavigate += new HtmlControlEventHandler(OnBeforeNavigate);

			ResetURLCount();
		}
Beispiel #7
0
		/// <summary>
		/// Requires a language object
		/// </summary>
		/// <param name="lang"></param>
		public WebPageInteractor(HtmlControl htmlControl, ParserTrace parserTrace, Mediator mediator, SIL.FieldWorks.Common.Widgets.FwTextBox tbWordForm)
		{
			m_htmlControl = htmlControl;
			m_parserTrace = parserTrace;
			m_mediator = mediator;
			m_cache = (FdoCache)m_mediator.PropertyTable.GetValue("cache");
			m_tbWordForm = tbWordForm;
		}
Beispiel #8
0
		private void InitHtmlControl()
		{
			m_htmlControl = new HtmlControl();
			// Setting the Dock to fill doesn't work, as we lose the top of the HtmlControl to the
			// label control at the top of the panel.  See LT-7446 for the worst case scenario (120dpi).
			// So, set the location and size of the HTML control, and anchor it to all four sides of the
			// panel.
			m_htmlControl.Location = new Point(0, m_lblResults.Bottom + 1);
			m_htmlControl.Size = new Size(m_pnlResults.Width, m_pnlResults.Height - (m_lblResults.Height + 1));
			m_htmlControl.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right;
			m_pnlResults.Controls.Add(m_htmlControl);
			m_htmlControl.URL = Path.Combine(TransformPath, "InitialDocument.htm");

			m_htmlControl.Browser.ObjectForScripting = new WebPageInteractor(m_htmlControl, m_parserTrace, m_mediator, m_tbWordForm);
		}