Ejemplo n.º 1
0
        public Ribbon()
        {
            Label1 = new ElementWrapper(this);
            Label2 = new ElementWrapper(this);
            Label3 = new ElementWrapper(this);
            Label4 = new ElementWrapper(this);

            DirectAccept = new ElementWrapper(this);

            // only lower chars
            labels = new Dictionary <string[], ElementWrapper>()
            {
                { new [] { "label1", "label2", "label3", "label4" }, Label1 },
                { new [] { "label11", "label22", "label33", "label44" }, Label2 },
                { new [] { "label111", "label222", "label333", "label444" }, Label3 },
                { new [] { "label1111", "label2222", "label3333", "label4444" }, Label4 },
                { new [] { "directaccept1", "directaccept2", "directaccept3", "directaccept4" }, DirectAccept }
            };
        }
Ejemplo n.º 2
0
        public bool OnGetShowImage(Office.IRibbonControl ribbonUI)
        {
            ElementWrapper elem = GetElement(ribbonUI);

            return(elem != null && elem.Image != null);
        }
Ejemplo n.º 3
0
        public System.Drawing.Bitmap OnGetImage(Office.IRibbonControl ribbonUI)
        {
            ElementWrapper elem = GetElement(ribbonUI);

            return(elem.Image);
        }
Ejemplo n.º 4
0
        public bool OnGetVisible(Office.IRibbonControl ribbonUI)
        {
            ElementWrapper elem = GetElement(ribbonUI);

            return(elem != null ? elem.Visible: MeetingInfoMain.DEFAULT_STATE_VISIBLE);
        }
Ejemplo n.º 5
0
        public string OnGetSupertip(Office.IRibbonControl ribbonUI)
        {
            ElementWrapper elem = GetElement(ribbonUI);

            return(elem != null ? elem.Supertip : MeetingInfoMain.DEFAULT_TEXT_SUPERTEXT);
        }
Ejemplo n.º 6
0
        public string OnGetScreentip(Office.IRibbonControl ribbonUI)
        {
            ElementWrapper elem = GetElement(ribbonUI);

            return(elem != null ? elem.Screentip: MeetingInfoMain.DEFAULT_TEXT_SCREENTIP);
        }
Ejemplo n.º 7
0
        public string OnGetLabel(Office.IRibbonControl ribbonUI)
        {
            ElementWrapper elem = GetElement(ribbonUI);

            return(elem != null ? elem.Label: MeetingInfoMain.DEFAULT_TEXT_LABEL);
        }