Пример #1
0
 public Guides(ReportPageDesigner pd)
 {
     FPageDesigner   = pd;
     FVirtualVGuides = new SortedList <float, ComponentBase>();
     FVirtualHGuides = new SortedList <float, ComponentBase>();
     FVirtualGuides  = new List <RectangleF>();
     FGuideLinks     = new List <LinkInfo>();
 }
Пример #2
0
        public RulerPanel(ReportPageDesigner pd) : base()
        {
            FPageDesigner = pd;
            FPage         = pd.Page as ReportPage;
            FWorkspace    = new ReportWorkspace(FPageDesigner);
            FWorkspace.LocationChanged += new EventHandler(Workspace_LocationChanged);

            FHorzRuler        = new HorzRuler(pd);
            FHorzRuler.Height = 24;
            FHorzRuler.Dock   = DockStyle.Top;
            FVertRuler        = new VertRuler(pd);
            FVertRuler.Dock   = DockStyle.Left;
            FVertRuler.Width  = 24;

            btnSwitchView           = new Button();
            btnSwitchView.Location  = new Point(4, 4);
            btnSwitchView.Size      = new Size(16, 16);
            btnSwitchView.FlatStyle = FlatStyle.Flat;
            btnSwitchView.FlatAppearance.BorderColor = SystemColors.ButtonFace;
            btnSwitchView.FlatAppearance.BorderSize  = 0;
            btnSwitchView.Cursor = Cursors.Hand;
            btnSwitchView.Image  = Res.GetImage(81);
            btnSwitchView.Click += new EventHandler(btnSwitchView_Click);
            FHorzRuler.Controls.Add(btnSwitchView);

            FStructure      = new BandStructure(FPageDesigner);
            FStructure.Dock = DockStyle.Fill;

            FControlContainer      = new ControlContainer(FWorkspace);
            FControlContainer.Dock = DockStyle.Fill;

            Panel1.Controls.Add(FStructure);
            Panel2.Controls.AddRange(new Control[] { FControlContainer, FVertRuler, FHorzRuler });
            Panel1MinSize    = 20;
            FixedPanel       = FixedPanel.Panel1;
            SplitterDistance = 120;
            SplitterMoved   += new SplitterEventHandler(RulerPanel_SplitterMoved);

            AdjustOffset();
        }
Пример #3
0
        public BandStructure(ReportPageDesigner pd)
        {
            FPageDesigner = pd;
            FRoot         = new BandStructureNode();

            btnConfigure           = new Button();
            btnConfigure.Height    = 24;
            btnConfigure.Dock      = DockStyle.Top;
            btnConfigure.FlatStyle = FlatStyle.Flat;
            btnConfigure.FlatAppearance.BorderColor = SystemColors.ButtonFace;
            btnConfigure.FlatAppearance.BorderSize  = 0;
            btnConfigure.Font      = DrawUtils.Default96Font;
            btnConfigure.TextAlign = ContentAlignment.MiddleLeft;
            btnConfigure.Cursor    = Cursors.Hand;
            btnConfigure.Click    += new EventHandler(btnConfigure_Click);
            Controls.Add(btnConfigure);
            Localize();

            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
        }
Пример #4
0
 public VertRuler(ReportPageDesigner pd) : base(pd)
 {
     FActiveGuide = -1;
 }
Пример #5
0
 public RulerBase(ReportPageDesigner pd) : base()
 {
     FPageDesigner = pd;
     SetStyle(ControlStyles.AllPaintingInWmPaint, true);
     SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
 }