Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Breaking Change, change 'BaseGroupedRow' to 'GroupHeader'. Reports ca…

…n be modified very easy with an TextEditor. Just replace <BaseGroupedRow>' with <GroupHeader>, don't forgott about the closing tag's.
  • Loading branch information...
commit 957509f6a110f30690bf326ac5206dbec450d57c 1 parent 809cd67
@PeterForstmeier PeterForstmeier authored
View
2  src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/ReportItems/BaseGroupFooter.cs
@@ -13,7 +13,7 @@ namespace ICSharpCode.Reports.Addin
/// <summary>
/// Description of BaseGroupFooter.
/// </summary>
- public class GroupFooter:BaseGroupedRow
+ public class GroupFooter:GroupHeader
{
public GroupFooter()
{
View
6 src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/ReportItems/BaseGroupeHeader.cs
@@ -15,11 +15,11 @@ namespace ICSharpCode.Reports.Addin
/// Description of GroupedRow.
/// </summary>
[Designer(typeof(ICSharpCode.Reports.Addin.Designer.GroupedRowDesigner))]
- public class BaseGroupedRow:BaseRowItem
+ public class GroupHeader:BaseRowItem
{
- public BaseGroupedRow()
+ public GroupHeader()
{
- TypeDescriptor.AddProvider(new GroupedRowTypeProvider(), typeof(BaseGroupedRow));
+ TypeDescriptor.AddProvider(new GroupedRowTypeProvider(), typeof(GroupHeader));
}
View
4 src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/ReportWizard/ReportLayout/AbstractLayout.cs
@@ -161,7 +161,7 @@ protected static int CalculateControlWidth(ISimpleContainer row, ReportItemColle
#region Grouping
- protected ICSharpCode.Reports.Core.BaseGroupedRow CreateGroupHeader(Point headerLocation)
+ protected ICSharpCode.Reports.Core.GroupHeader CreateGroupHeader(Point headerLocation)
{
ICSharpCode.Reports.Core.BaseDataItem dataItem = new ICSharpCode.Reports.Core.BaseDataItem();
@@ -172,7 +172,7 @@ protected ICSharpCode.Reports.Core.BaseGroupedRow CreateGroupHeader(Point header
dataItem.Size = new Size (150,20);
dataItem.Text = ReportModel.ReportSettings.GroupColumnsCollection[0].ColumnName;
- ICSharpCode.Reports.Core.BaseGroupedRow groupHeader = new ICSharpCode.Reports.Core.BaseGroupedRow();
+ ICSharpCode.Reports.Core.GroupHeader groupHeader = new ICSharpCode.Reports.Core.GroupHeader();
groupHeader.Location = headerLocation;
groupHeader.Size = new Size (300,dataItem.Size.Height + GlobalValues.ControlMargins.Top + GlobalValues.ControlMargins.Bottom);
groupHeader.Items.Add(dataItem);
View
2  src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/Toolbox/ToolboxProvider.cs
@@ -69,7 +69,7 @@ private static SideTab CreateReportingSidetab ()
//GroupHeader
- tb = new ToolboxItem(typeof(ICSharpCode.Reports.Addin.BaseGroupedRow));
+ tb = new ToolboxItem(typeof(ICSharpCode.Reports.Addin.GroupHeader));
tb.Bitmap = WinFormsResourceService.GetBitmap("Icons.16x16.SharpQuery.Table");
tb.DisplayName = "GroupHeader";
sideTab.Items.Add(new SideTabItemDesigner(tb));
View
2  src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Test/Wizard/Generators/GenerateListWithGroupFixture.cs
@@ -29,7 +29,7 @@ public void PageDetail_Should_Contains_GroupedHeader()
ICSharpCode.Reports.Core.BaseSection section = this.reportModel.DetailSection;
//GroupHeader
- var c = new Collection<ICSharpCode.Reports.Core.BaseGroupedRow>(section.Items.OfType<ICSharpCode.Reports.Core.BaseGroupedRow>().ToList());
+ var c = new Collection<ICSharpCode.Reports.Core.GroupHeader>(section.Items.OfType<ICSharpCode.Reports.Core.GroupHeader>().ToList());
Assert.That(c.Count,Is.GreaterThanOrEqualTo(1));
}
View
2  src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Test/Wizard/Generators/GenerateTableWithGrouping.cs
@@ -29,7 +29,7 @@ public void Table_Should_Contains_GroupedHeader()
{
ICSharpCode.Reports.Core.BaseTableItem table = CreateContainer();
//GroupHeader
- var c = new Collection<ICSharpCode.Reports.Core.BaseGroupedRow>(table.Items.OfType<ICSharpCode.Reports.Core.BaseGroupedRow>().ToList());
+ var c = new Collection<ICSharpCode.Reports.Core.GroupHeader>(table.Items.OfType<ICSharpCode.Reports.Core.GroupHeader>().ToList());
Assert.That(c.Count,Is.GreaterThanOrEqualTo(1));
}
View
2  src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/BaseItems/BaseGroupeFooter.cs
@@ -13,7 +13,7 @@ namespace ICSharpCode.Reports.Core
/// <summary>
/// Description of BaseGroupeFooter.
/// </summary>
- public class GroupFooter:BaseGroupedRow
+ public class GroupFooter:GroupHeader
{
public GroupFooter()
View
4 src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/BaseItems/BaseGroupedRow.cs
@@ -8,9 +8,9 @@ namespace ICSharpCode.Reports.Core
/// <summary>
/// Description of BaseGroupeRow.
/// </summary>
- public class BaseGroupedRow:BaseRowItem
+ public class GroupHeader:BaseRowItem
{
- public BaseGroupedRow():base()
+ public GroupHeader():base()
{
}
View
2  src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Collections/Collections.cs
@@ -152,7 +152,7 @@ protected override void RemoveItem(int index)
public bool IsGrouped
{
get {
- return (this[0] is BaseGroupedRow)|| (this[0] is BaseGroupItem) ;
+ return (this[0] is GroupHeader)|| (this[0] is BaseGroupItem) ;
//return CreateGroupedList().Count > 0;
}
}
View
4 src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Events/SectionRenderEventArgs.cs
@@ -24,12 +24,12 @@ public GroupFooterEventArgs (GroupFooter groupFooter)
public class GroupHeaderEventArgs: EventArgs
{
- public GroupHeaderEventArgs (BaseGroupedRow groupHeader)
+ public GroupHeaderEventArgs (GroupHeader groupHeader)
{
GroupHeader = groupHeader;
}
- public BaseGroupedRow GroupHeader {get; private set;}
+ public GroupHeader GroupHeader {get; private set;}
}
View
6 src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Exporter/Converters/BaseConverter.cs
@@ -83,7 +83,7 @@ protected void FireRowRendering (ISimpleContainer detailRow,IDataNavigator curre
}
- protected void FireGroupHeaderRendering (BaseGroupedRow groupHeader)
+ protected void FireGroupHeaderRendering (GroupHeader groupHeader)
{
GroupHeaderEventArgs ghea = new GroupHeaderEventArgs(groupHeader);
EventHelper.Raise<GroupHeaderEventArgs>(GroupHeaderRendering,this,ghea);
@@ -179,9 +179,9 @@ private static bool CheckPageBreakAfterGroupChange(ISimpleContainer container)
}
- protected static Collection<BaseGroupedRow> FindGroupHeader (ISimpleContainer container)
+ protected static Collection<GroupHeader> FindGroupHeader (ISimpleContainer container)
{
- return new Collection<BaseGroupedRow>(container.Items.OfType<BaseGroupedRow>().ToList());
+ return new Collection<GroupHeader>(container.Items.OfType<GroupHeader>().ToList());
}
View
4 src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Exporter/Converters/GroupedTableConverter.cs
@@ -78,7 +78,7 @@ private ExporterCollection ConvertInternal(ExporterCollection exporterCollection
base.CurrentPosition = ConvertContainer(exporterCollection,headerRow,base.DefaultLeftPosition,base.CurrentPosition);
}
- BaseGroupedRow row = table.Items[1] as BaseGroupedRow;
+ GroupHeader row = table.Items[1] as GroupHeader;
if (row != null) {
@@ -187,7 +187,7 @@ private Point ConvertGroupHeader(ExporterCollection exportList,BaseSection secti
var rowSize = Size.Empty;
ReportItemCollection groupCollection = null;
- var groupedRow = new Collection<BaseGroupedRow>(table.Items.OfType<BaseGroupedRow>().ToList());
+ var groupedRow = new Collection<GroupHeader>(table.Items.OfType<GroupHeader>().ToList());
if (groupedRow.Count == 0) {
Please sign in to comment.
Something went wrong with that request. Please try again.