Ejemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Method to create the view when needed
        /// </summary>
        /// <param name="host">The control that will host (or "wrap") the view (can be
        /// <c>null</c>)</param>
        /// <returns>The created view</returns>
        /// ------------------------------------------------------------------------------------
        public override Control CreateView(Control host)
        {
            DraftStyleBar styleBar = new DraftStyleBar(m_mainWnd.Cache, m_forFootnotes,
                                                       m_mainWnd.Handle.ToInt32());

            styleBar.Name           = m_name;
            styleBar.AccessibleName = styleBar.Name;
            return(styleBar);
        }
Ejemplo n.º 2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Method to create the view when needed
		/// </summary>
		/// <param name="host">The control that will host (or "wrap") the view (can be
		/// <c>null</c>)</param>
		/// <returns>The created view</returns>
		/// ------------------------------------------------------------------------------------
		public override Control CreateView(Control host)
		{
			DraftStyleBar styleBar = new DraftStyleBar(m_mainWnd.Cache, m_forFootnotes,
				m_mainWnd.Handle.ToInt32());
			styleBar.Name = m_name;
			styleBar.AccessibleName = styleBar.Name;
			return styleBar;
		}
Ejemplo n.º 3
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Creates the draft style bar.
		/// </summary>
		/// <param name="createInfo">The create info.</param>
		/// <returns></returns>
		/// ------------------------------------------------------------------------------------
		private Control CreateDraftStyleBar(object createInfo)
		{
			StylebarCreateInfo sbInfo = (StylebarCreateInfo)createInfo;
			DraftStyleBar styleBar = new DraftStyleBar(m_cache, sbInfo.IsForFootnotes, Handle.ToInt32());
			styleBar.Name = sbInfo.Name + "StyleBar";
			styleBar.AccessibleName = styleBar.Name;
			return styleBar;
		}