/// <summary>
        /// Initialize a new instance of the ViewDrawRibbonGroupButtonText class.
        /// </summary>
        /// <param name="ribbon">Source ribbon control.</param>
        /// <param name="ribbonButton">Group cluster button to display title for.</param>
        public ViewDrawRibbonGroupClusterButtonText(KryptonRibbon ribbon,
                                                    KryptonRibbonGroupClusterButton ribbonButton)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(ribbonButton != null);

            _ribbon = ribbon;
            _ribbonButton = ribbonButton;

            // Use a class to convert from ribbon group to content interface
            _contentProvider = new RibbonGroupNormalDisabledTextToContent(ribbon.StateCommon.RibbonGeneral,
                                                                  ribbon.StateNormal.RibbonGroupButtonText,
                                                                  ribbon.StateDisabled.RibbonGroupButtonText);
        }
        /// <summary>
        /// Initialize a new instance of the ViewDrawRibbonGroupClusterColorButtonText class.
        /// </summary>
        /// <param name="ribbon">Source ribbon control.</param>
        /// <param name="ribbonColorButton">Group cluster color button to display title for.</param>
        public ViewDrawRibbonGroupClusterColorButtonText(KryptonRibbon ribbon,
                                                         KryptonRibbonGroupClusterColorButton ribbonColorButton)

        {
            Debug.Assert(ribbon != null);
            Debug.Assert(ribbonColorButton != null);

            _ribbon            = ribbon;
            _ribbonColorButton = ribbonColorButton;

            // Use a class to convert from ribbon group to content interface
            _contentProvider = new RibbonGroupNormalDisabledTextToContent(ribbon.StateCommon.RibbonGeneral,
                                                                          ribbon.StateNormal.RibbonGroupButtonText,
                                                                          ribbon.StateDisabled.RibbonGroupButtonText);
        }
Beispiel #3
0
        /// <summary>
        /// Initialize a new instance of the ViewDrawRibbonGroupCheckBoxText class.
        /// </summary>
        /// <param name="ribbon">Source ribbon control.</param>
        /// <param name="ribbonCheckBox">Group check box to display title for.</param>
        /// <param name="firstText">Should show the first button text.</param>
        public ViewDrawRibbonGroupCheckBoxText(KryptonRibbon ribbon,
                                               KryptonRibbonGroupCheckBox ribbonCheckBox,
                                               bool firstText)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(ribbonCheckBox != null);

            _ribbon         = ribbon;
            _ribbonCheckBox = ribbonCheckBox;
            _firstText      = firstText;

            // Use a class to convert from ribbon group to content interface
            _contentProvider = new RibbonGroupNormalDisabledTextToContent(ribbon.StateCommon.RibbonGeneral,
                                                                          ribbon.StateNormal.RibbonGroupCheckBoxText,
                                                                          ribbon.StateDisabled.RibbonGroupCheckBoxText);
        }
        /// <summary>
        /// Initialize a new instance of the ViewDrawRibbonGroupGalleryText class.
        /// </summary>
        /// <param name="ribbon">Source ribbon control.</param>
        /// <param name="ribbonGallery">Group gallery button to display title for.</param>
        /// <param name="firstText">Should show the first button text.</param>
        public ViewDrawRibbonGroupGalleryText(KryptonRibbon ribbon,
                                              KryptonRibbonGroupGallery ribbonGallery,
                                              bool firstText)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(ribbonGallery != null);

            _ribbon = ribbon;
            _ribbonGallery = ribbonGallery;
            _firstText = firstText;

            // Use a class to convert from ribbon group to content interface
            _contentProvider = new RibbonGroupNormalDisabledTextToContent(ribbon.StateCommon.RibbonGeneral,
                                                                          ribbon.StateNormal.RibbonGroupButtonText,
                                                                          ribbon.StateDisabled.RibbonGroupButtonText);
        }