/// <summary>
 /// Sets the inheritence parent.
 /// </summary>
 public virtual void SetInherit(PaletteRibbonRedirect inherit)
 {
     _ribbonGroupCheckBoxText.SetInherit(inherit.RibbonGroupCheckBoxText);
     _ribbonGroupButtonText.SetInherit(inherit.RibbonGroupButtonText);
     _ribbonGroupLabelText.SetInherit(inherit.RibbonGroupLabelText);
     _ribbonGroupRadioButtonText.SetInherit(inherit.RibbonGroupCheckBoxText);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initialize a new instance of the PaletteRibbonGroupAreaTab class.
 /// </summary>
 /// <param name="inherit">Source for inheriting values.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public PaletteRibbonGroupAreaTab(PaletteRibbonRedirect inherit,
                                  NeedPaintHandler needPaint)
     : base(inherit, needPaint)
 {
     // Create storage that maps onto the inherit instances
     _ribbonGroupArea = new PaletteRibbonBack(inherit.RibbonGroupArea, needPaint);
 }
 /// <summary>
 /// Sets the inheritence parent.
 /// </summary>
 public override void SetInherit(PaletteRibbonRedirect inherit)
 {
     base.SetInherit(inherit);
     _ribbonGroupCheckBoxText.SetInherit(inherit.RibbonGroupCheckBoxText);
     _ribbonGroupButtonText.SetInherit(inherit.RibbonGroupButtonText);
     _ribbonGroupLabelText.SetInherit(inherit.RibbonGroupLabelText);
     _ribbonGroupRadioButtonText.SetInherit(inherit.RibbonGroupRadioButtonText);
 }
 /// <summary>
 /// Initialize a new instance of the PaletteRibbonDisabled class.
 /// </summary>
 /// <param name="inherit">Source for inheriting values.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public PaletteRibbonDisabled(PaletteRibbonRedirect inherit,
                              NeedPaintHandler needPaint)
 {
     // Create storage that maps onto the inherit instances
     _ribbonGroupCheckBoxText    = new PaletteRibbonText(inherit.RibbonGroupCheckBoxText, needPaint);
     _ribbonGroupButtonText      = new PaletteRibbonText(inherit.RibbonGroupButtonText, needPaint);
     _ribbonGroupLabelText       = new PaletteRibbonText(inherit.RibbonGroupLabelText, needPaint);
     _ribbonGroupRadioButtonText = new PaletteRibbonText(inherit.RibbonGroupRadioButtonText, needPaint);
 }
 /// <summary>
 /// Sets the inheritence parent.
 /// </summary>
 public virtual void SetInherit(PaletteRibbonRedirect inherit)
 {
     _ribbonAppButton.SetInherit(inherit.RibbonAppButton);
     _ribbonGroupCollapsedBorder.SetInherit(inherit.RibbonGroupCollapsedBorder);
     _ribbonGroupCollapsedBack.SetInherit(inherit.RibbonGroupCollapsedBack);
     _ribbonGroupCollapsedFrameBorder.SetInherit(inherit.RibbonGroupCollapsedFrameBorder);
     _ribbonGroupCollapsedFrameBack.SetInherit(inherit.RibbonGroupCollapsedFrameBack);
     _ribbonGroupCollapsedText.SetInherit(inherit.RibbonGroupCollapsedText);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Sets the inheritence parent.
 /// </summary>
 public virtual void SetInherit(PaletteRibbonRedirect inherit)
 {
     _ribbonGroupNormalBorder.SetInherit(inherit.RibbonGroupNormalBorder);
     _ribbonGroupNormalTitle.SetInherit(inherit.RibbonGroupNormalTitle, inherit.RibbonGroupNormalTitle);
     _ribbonGroupCollapsedBorder.SetInherit(inherit.RibbonGroupCollapsedBorder);
     _ribbonGroupCollapsedBack.SetInherit(inherit.RibbonGroupCollapsedBack);
     _ribbonGroupCollapsedFrameBorder.SetInherit(inherit.RibbonGroupCollapsedFrameBorder);
     _ribbonGroupCollapsedFrameBack.SetInherit(inherit.RibbonGroupCollapsedFrameBack);
     _ribbonGroupCollapsedText.SetInherit(inherit.RibbonGroupCollapsedText);
 }
Exemplo n.º 7
0
        /// <summary>
        /// Initialize a new instance of the PaletteRibbonJustTab class.
        /// </summary>
        /// <param name="inherit">Source for inheriting values.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteRibbonJustTab(PaletteRibbonRedirect inherit,
                                    NeedPaintHandler needPaint)
        {
            Debug.Assert(inherit != null);

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Create storage that maps onto the inherit instances
            _ribbonTab = new PaletteRibbonDouble(inherit.RibbonTab, inherit.RibbonTab, needPaint);
        }
 /// <summary>
 /// Sets the inheritence parent.
 /// </summary>
 public override void SetInherit(PaletteRibbonRedirect inherit)
 {
     base.SetInherit(inherit);
     _ribbonAppButton.SetInherit(inherit.RibbonAppButton);
     _ribbonGroupNormalBorder.SetInherit(inherit.RibbonGroupNormalBorder);
     _ribbonGroupNormalTitle.SetInherit(inherit.RibbonGroupNormalTitle, inherit.RibbonGroupNormalTitle);
     _ribbonGroupCollapsedBorder.SetInherit(inherit.RibbonGroupCollapsedBorder);
     _ribbonGroupCollapsedBack.SetInherit(inherit.RibbonGroupCollapsedBack);
     _ribbonGroupCollapsedFrameBorder.SetInherit(inherit.RibbonGroupCollapsedFrameBorder);
     _ribbonGroupCollapsedFrameBack.SetInherit(inherit.RibbonGroupCollapsedFrameBack);
     _ribbonGroupCollapsedText.SetInherit(inherit.RibbonGroupCollapsedText);
 }
Exemplo n.º 9
0
 /// <summary>
 /// Initialize a new instance of the PaletteRibbonGroupTab class.
 /// </summary>
 /// <param name="inherit">Source for inheriting values.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public PaletteRibbonGroupTab(PaletteRibbonRedirect inherit,
                              NeedPaintHandler needPaint)
     : base(inherit, needPaint)
 {
     // Create storage that maps onto the inherit instances
     _ribbonGroupNormalBorder         = new PaletteRibbonBack(inherit.RibbonGroupNormalBorder, needPaint);
     _ribbonGroupNormalTitle          = new PaletteRibbonDouble(inherit.RibbonGroupNormalTitle, inherit.RibbonGroupNormalTitle, needPaint);
     _ribbonGroupCollapsedBorder      = new PaletteRibbonBack(inherit.RibbonGroupCollapsedBorder, needPaint);
     _ribbonGroupCollapsedBack        = new PaletteRibbonBack(inherit.RibbonGroupCollapsedBack, needPaint);
     _ribbonGroupCollapsedFrameBorder = new PaletteRibbonBack(inherit.RibbonGroupCollapsedFrameBorder, needPaint);
     _ribbonGroupCollapsedFrameBack   = new PaletteRibbonBack(inherit.RibbonGroupCollapsedFrameBack, needPaint);
     _ribbonGroupCollapsedText        = new PaletteRibbonText(inherit.RibbonGroupCollapsedText, needPaint);
 }
        /// <summary>
        /// Initialize a new instance of the PaletteRibbonAppButton class.
        /// </summary>
        /// <param name="inherit">Source for inheriting values.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteRibbonAppButton(PaletteRibbonRedirect inherit,
                                      NeedPaintHandler needPaint)
        {
            Debug.Assert(inherit != null);

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Create storage that maps onto the inherit instances
            _ribbonAppButton                 = new PaletteRibbonBack(inherit.RibbonAppButton, needPaint);
            _ribbonGroupCollapsedBorder      = new PaletteRibbonBack(inherit.RibbonGroupCollapsedBorder, needPaint);
            _ribbonGroupCollapsedBack        = new PaletteRibbonBack(inherit.RibbonGroupCollapsedBack, needPaint);
            _ribbonGroupCollapsedFrameBorder = new PaletteRibbonBack(inherit.RibbonGroupCollapsedFrameBorder, needPaint);
            _ribbonGroupCollapsedFrameBack   = new PaletteRibbonBack(inherit.RibbonGroupCollapsedFrameBack, needPaint);
            _ribbonGroupCollapsedText        = new PaletteRibbonText(inherit.RibbonGroupCollapsedText, needPaint);
        }
Exemplo n.º 11
0
 /// <summary>
 /// Sets the inheritence parent.
 /// </summary>
 public override void SetInherit(PaletteRibbonRedirect inherit)
 {
     base.SetInherit(inherit);
     _ribbonGroupArea.SetInherit(inherit.RibbonGroupArea);
 }
Exemplo n.º 12
0
 /// <summary>
 /// Sets the inheritence parent.
 /// </summary>
 public virtual void SetInherit(PaletteRibbonRedirect inherit)
 {
     _ribbonTab.SetInherit(inherit.RibbonTab, inherit.RibbonTab);
 }