Browse Source

Changing the Location ReportItems by moving the right or left border of FocusRectangle

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1555 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Peter Forstmeier 19 years ago
parent
commit
e173a376f3
  1. 1
      src/AddIns/Misc/SharpReport/SharpReport/ReportItems/Functions/MiscFunctions/PageNumber.cs
  2. 1
      src/AddIns/Misc/SharpReport/SharpReport/ReportItems/Functions/MiscFunctions/Today.cs
  3. 1
      src/AddIns/Misc/SharpReport/SharpReport/ReportItems/GraphicBased/ReportCircleItem.cs
  4. 1
      src/AddIns/Misc/SharpReport/SharpReport/ReportItems/GraphicBased/ReportImageItem.cs
  5. 1
      src/AddIns/Misc/SharpReport/SharpReport/ReportItems/GraphicBased/ReportLineItem.cs
  6. 1
      src/AddIns/Misc/SharpReport/SharpReport/ReportItems/GraphicBased/ReportRectangleItem.cs
  7. 7
      src/AddIns/Misc/SharpReport/SharpReport/ReportItems/TextBased/ItemsHelper.cs
  8. 1
      src/AddIns/Misc/SharpReport/SharpReport/ReportItems/TextBased/ReportDataItem.cs
  9. 1
      src/AddIns/Misc/SharpReport/SharpReport/ReportItems/TextBased/ReportRowItem.cs
  10. 11
      src/AddIns/Misc/SharpReport/SharpReport/ReportItems/TextBased/ReportTextItem.cs

1
src/AddIns/Misc/SharpReport/SharpReport/ReportItems/Functions/MiscFunctions/PageNumber.cs

@ -38,6 +38,7 @@ namespace SharpReport.ReportItems.Functions { @@ -38,6 +38,7 @@ namespace SharpReport.ReportItems.Functions {
this.visualControl.Click += new EventHandler(OnControlSelect);
this.visualControl.VisualControlChanged += new EventHandler (OnControlChanged);
this.visualControl.LocationChanged += new EventHandler (OnControlChanged);
this.visualControl.BackColorChanged += new EventHandler (OnControlChanged);
this.visualControl.FontChanged += new EventHandler (OnControlChanged);
this.visualControl.ForeColorChanged += new EventHandler (OnControlChanged);

1
src/AddIns/Misc/SharpReport/SharpReport/ReportItems/Functions/MiscFunctions/Today.cs

@ -44,6 +44,7 @@ namespace SharpReport.ReportItems.Functions { @@ -44,6 +44,7 @@ namespace SharpReport.ReportItems.Functions {
this.visualControl.Click += new EventHandler(OnControlSelect);
this.visualControl.VisualControlChanged += new EventHandler (OnControlChanged);
this.visualControl.LocationChanged += new EventHandler (OnControlChanged);
this.visualControl.BackColorChanged += new EventHandler (OnControlChanged);
this.visualControl.FontChanged += new EventHandler (OnControlChanged);
this.visualControl.ForeColorChanged += new EventHandler (OnControlChanged);

1
src/AddIns/Misc/SharpReport/SharpReport/ReportItems/GraphicBased/ReportCircleItem.cs

@ -38,6 +38,7 @@ namespace SharpReport.ReportItems{ @@ -38,6 +38,7 @@ namespace SharpReport.ReportItems{
this.visualControl.Click += new EventHandler(OnControlSelect);
this.visualControl.VisualControlChanged += new EventHandler (OnControlChanged);
this.visualControl.LocationChanged += new EventHandler (OnControlChanged);
this.visualControl.BackColorChanged += new EventHandler (OnControlChanged);
this.visualControl.FontChanged += new EventHandler (OnControlChanged);
this.visualControl.ForeColorChanged += new EventHandler (OnControlChanged);

1
src/AddIns/Misc/SharpReport/SharpReport/ReportItems/GraphicBased/ReportImageItem.cs

@ -37,6 +37,7 @@ namespace SharpReport.ReportItems { @@ -37,6 +37,7 @@ namespace SharpReport.ReportItems {
this.visualControl.Click += new EventHandler(OnControlSelect);
this.visualControl.VisualControlChanged += new EventHandler (OnControlChanged);
this.visualControl.BackColorChanged += new EventHandler (OnControlChanged);
this.visualControl.LocationChanged += new EventHandler (OnControlChanged);
this.visualControl.FontChanged += new EventHandler (OnControlChanged);
this.visualControl.ForeColorChanged += new EventHandler (OnControlChanged);
base.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler (BasePropertyChange);

1
src/AddIns/Misc/SharpReport/SharpReport/ReportItems/GraphicBased/ReportLineItem.cs

@ -37,6 +37,7 @@ namespace SharpReport.ReportItems{ @@ -37,6 +37,7 @@ namespace SharpReport.ReportItems{
this.visualControl.Click += new EventHandler(OnControlSelect);
this.visualControl.VisualControlChanged += new EventHandler (OnControlChanged);
this.visualControl.LocationChanged += new EventHandler (OnControlChanged);
this.visualControl.BackColorChanged += new EventHandler (OnControlChanged);
this.visualControl.FontChanged += new EventHandler (OnControlChanged);
this.visualControl.ForeColorChanged += new EventHandler (OnControlChanged);

1
src/AddIns/Misc/SharpReport/SharpReport/ReportItems/GraphicBased/ReportRectangleItem.cs

@ -39,6 +39,7 @@ namespace SharpReport.ReportItems{ @@ -39,6 +39,7 @@ namespace SharpReport.ReportItems{
this.visualControl.Click += new EventHandler(OnControlSelect);
this.visualControl.VisualControlChanged += new EventHandler (OnControlChanged);
this.visualControl.LocationChanged += new EventHandler (OnControlChanged);
this.visualControl.BackColorChanged += new EventHandler (OnControlChanged);
this.visualControl.FontChanged += new EventHandler (OnControlChanged);
this.visualControl.ForeColorChanged += new EventHandler (OnControlChanged);

7
src/AddIns/Misc/SharpReport/SharpReport/ReportItems/TextBased/ItemsHelper.cs

@ -25,14 +25,13 @@ namespace SharpReport { @@ -25,14 +25,13 @@ namespace SharpReport {
internal static void UpdateBaseFromTextControl (ReportObjectControlBase control,
BaseReportItem item) {
item.Size = control.Size;
item.Location = control.Location;
item.Location = new System.Drawing.Point (control.Location.X,control.Location.Y);
item.Name = control.Name;
item.BackColor = control.BackColor;
item.ForeColor = control.ForeColor;
item.Font = control.Font;
}
internal static void UpdateBaseFromGraphicControl (AbstractGraphicControl control,
@ -63,5 +62,7 @@ namespace SharpReport { @@ -63,5 +62,7 @@ namespace SharpReport {
control.DashStyle = item.DashStyle;
control.Thickness = item.Thickness;
}
}
}

1
src/AddIns/Misc/SharpReport/SharpReport/ReportItems/TextBased/ReportDataItem.cs

@ -48,6 +48,7 @@ namespace SharpReport.ReportItems{ @@ -48,6 +48,7 @@ namespace SharpReport.ReportItems{
this.visualControl.Click += new EventHandler(OnControlSelect);
this.visualControl.VisualControlChanged += new EventHandler (OnControlChanged);
this.visualControl.LocationChanged += new EventHandler (OnControlChanged);
this.visualControl.BackColorChanged += new EventHandler (OnControlChanged);
this.visualControl.FontChanged += new EventHandler (OnControlChanged);
this.visualControl.ForeColorChanged += new EventHandler (OnControlChanged);

1
src/AddIns/Misc/SharpReport/SharpReport/ReportItems/TextBased/ReportRowItem.cs

@ -42,6 +42,7 @@ namespace SharpReport.ReportItems @@ -42,6 +42,7 @@ namespace SharpReport.ReportItems
this.visualControl.Click += new EventHandler(OnControlSelect);
this.visualControl.VisualControlChanged += new EventHandler (OnControlChanged);
this.visualControl.LocationChanged += new EventHandler (OnControlChanged);
this.visualControl.FontChanged += new EventHandler (OnControlChanged);
this.visualControl.ForeColorChanged += new EventHandler (OnControlChanged);
this.visualControl.BackColorChanged += new EventHandler (OnAppereanceChanged);

11
src/AddIns/Misc/SharpReport/SharpReport/ReportItems/TextBased/ReportTextItem.cs

@ -38,7 +38,10 @@ namespace SharpReport.ReportItems { @@ -38,7 +38,10 @@ namespace SharpReport.ReportItems {
ItemsHelper.UpdateBaseFromTextControl (this.visualControl,this);
this.visualControl.LocationChanged += new EventHandler (OnControlChanged);
this.visualControl.Click += new EventHandler(OnControlSelect);
this.visualControl.LocationChanged += new EventHandler (OnControlChanged);
this.visualControl.VisualControlChanged += new EventHandler (OnControlChanged);
this.visualControl.BackColorChanged += new EventHandler (OnControlChanged);
this.visualControl.FontChanged += new EventHandler (OnControlChanged);
@ -49,11 +52,10 @@ namespace SharpReport.ReportItems { @@ -49,11 +52,10 @@ namespace SharpReport.ReportItems {
base.PropertyChanged += new PropertyChangedEventHandler (BasePropertyChange);
}
#endregion
#region events
//Tracker
@ -67,7 +69,6 @@ namespace SharpReport.ReportItems { @@ -67,7 +69,6 @@ namespace SharpReport.ReportItems {
this.visualControl.ContentAlignment = base.ContentAlignment;
this.visualControl.StringTrimming = base.StringTrimming;
this.visualControl.DrawBorder = base.DrawBorder;
this.HandlePropertyChanged(e.PropertyName);
}
@ -76,7 +77,7 @@ namespace SharpReport.ReportItems { @@ -76,7 +77,7 @@ namespace SharpReport.ReportItems {
base.SuspendLayout();
ItemsHelper.UpdateBaseFromTextControl (this.visualControl,this);
base.ResumeLayout();
this.HandlePropertyChanged("OnControlSelected");
this.HandlePropertyChanged("OnControlChanged");
}
@ -113,7 +114,7 @@ namespace SharpReport.ReportItems { @@ -113,7 +114,7 @@ namespace SharpReport.ReportItems {
this.HandlePropertyChanged("Location");
}
}
public override Font Font {
get {
return base.Font;

Loading…
Cancel
Save