Beispiel #1
0
 /// <inheritdoc/>
 public override void UpdateUIStyle()
 {
     base.UpdateUIStyle();
     FToolbar.Style      = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle);
     mnuContext.Style    = FToolbar.Style;
     FSplitter.BackColor = UIStyleUtils.GetControlColor(Designer.UIStyle);
 }
Beispiel #2
0
 public TableMenuBase(Designer designer) : base()
 {
     FDesigner      = designer;
     Style          = UIStyleUtils.GetDotNetBarStyle(designer.UIStyle);
     mnuContextRoot = new ButtonItem();
     base.Items.Add(mnuContextRoot);
 }
Beispiel #3
0
        public void UpdateUIStyle()
        {
            FControlContainer.ColorSchemeStyle     = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle);
            FControlContainer.Office2007ColorTable = UIStyleUtils.GetOffice2007ColorScheme(Designer.UIStyle);
            Color color = UIStyleUtils.GetControlColor(Designer.UIStyle);

            FStructure.BackColor = color;
            FHorzRuler.BackColor = color;
            FVertRuler.BackColor = color;
            FWorkspace.BackColor = UIStyleUtils.GetAppWorkspaceColor(Designer.UIStyle);
            BackColor            = color;
        }
Beispiel #4
0
        /// <inheritdoc/>
        public override void UpdateUIStyle()
        {
            base.UpdateUIStyle();
            FToolbar.Style   = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle);
            cbxObjects.Style = FToolbar.Style;
            Color color = UIStyleUtils.GetControlColor(Designer.UIStyle);

            Grid.BackColor          = color;
            Grid.LineColor          = color;
            Grid.HelpBackColor      = color;
            ParentControl.BackColor = color;
            cbxObjects.IsStandalone = Designer.UIStyle != UIStyle.VisualStudio2005 && Designer.UIStyle != UIStyle.Office2003;
        }
Beispiel #5
0
        /// <summary>
        /// Initializes a new instance of the <b>ComponentMenuBase</b> class with default settings.
        /// </summary>
        /// <param name="designer">The reference to a report designer.</param>
        public ComponentMenuBase(Designer designer) : base()
        {
            FDesigner      = designer;
            Style          = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle);
            mnuContextRoot = new ButtonItem();
            base.Items.Add(mnuContextRoot);

            miName                    = CreateMenuItem("");
            miEdit                    = CreateMenuItem(Res.Get("ComponentMenu,Component,Edit"), Designer.cmdEdit.Invoke);
            miEdit.BeginGroup         = true;
            miCut                     = CreateMenuItem(Res.GetImage(5), Res.Get("Designer,Menu,Edit,Cut"), Designer.cmdCut.Invoke);
            miCut.BeginGroup          = true;
            miCopy                    = CreateMenuItem(Res.GetImage(6), Res.Get("Designer,Menu,Edit,Copy"), Designer.cmdCopy.Invoke);
            miPaste                   = CreateMenuItem(Res.GetImage(7), Res.Get("Designer,Menu,Edit,Paste"), Designer.cmdPaste.Invoke);
            miDelete                  = CreateMenuItem(Res.GetImage(51), Res.Get("Designer,Menu,Edit,Delete"), Designer.cmdDelete.Invoke);
            miBringToFront            = CreateMenuItem(Res.GetImage(14), Res.Get("Designer,Toolbar,Layout,BringToFront"), Designer.cmdBringToFront.Invoke);
            miBringToFront.BeginGroup = true;
            miSendToBack              = CreateMenuItem(Res.GetImage(15), Res.Get("Designer,Toolbar,Layout,SendToBack"), Designer.cmdSendToBack.Invoke);

            miEdit.Visible         = Designer.cmdEdit.Enabled;
            miCut.Enabled          = Designer.cmdCut.Enabled;
            miCopy.Enabled         = Designer.cmdCopy.Enabled;
            miPaste.Enabled        = Designer.cmdPaste.Enabled;
            miDelete.Enabled       = Designer.cmdDelete.Enabled;
            miBringToFront.Enabled = Designer.cmdBringToFront.Enabled;
            miSendToBack.Enabled   = Designer.cmdSendToBack.Enabled;

            SelectedObjectCollection selection = Designer.SelectedObjects;

            miName.Text = (selection.Count == 1 ?
                           selection[0].Name :
                           String.Format(Res.Get("Designer,ToolWindow,Properties,NObjectsSelected"), selection.Count)) + ":";
            miName.FontBold    = true;
            miName.HotFontBold = true;

            Items.AddRange(new BaseItem[] {
                miName,
                miEdit,
                miCut, miCopy, miPaste, miDelete,
                miBringToFront, miSendToBack
            });
        }
Beispiel #6
0
        private void UpdateUIStyle()
        {
            eDotNetBarStyle style = UIStyleUtils.GetDotNetBarStyle(UIStyle);

            toolBar.Style = style;

            // Do this to paint slider control correctly if style is not Office 2007
            if (UIStyle == UIStyle.VisualStudio2005)
            {
                UIStyleUtils.GetDotNetBarStyle(UIStyle.Office2007Silver);
            }
            else if (UIStyle == UIStyle.Office2003)
            {
                UIStyleUtils.GetDotNetBarStyle(UIStyle.Office2007Blue);
            }
            statusBar.Style = style;

            tabControl.Style     = UIStyleUtils.GetTabStripStyle(UIStyle);
            outlineControl.Style = UIStyle;
            foreach (PreviewTab tab in FDocuments)
            {
                tab.Style = UIStyle;
            }
        }
Beispiel #7
0
 /// <inheritdoc/>
 public void UpdateUIStyle()
 {
     Style = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle);
 }