Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/reports@6437 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61pull/1/head
19 changed files with 163 additions and 90 deletions
@ -0,0 +1,55 @@ |
|||||||
|
/* |
||||||
|
* Created by SharpDevelop. |
||||||
|
* User: Peter Forstmeier |
||||||
|
* Date: 22.08.2010 |
||||||
|
* Time: 13:37 |
||||||
|
* |
||||||
|
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
||||||
|
*/ |
||||||
|
using System; |
||||||
|
using System.ComponentModel; |
||||||
|
using System.ComponentModel.Design; |
||||||
|
using System.Drawing.Design; |
||||||
|
|
||||||
|
namespace ICSharpCode.Reports.Core.Dialogs |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of SortingCollectionEditor.
|
||||||
|
/// </summary>
|
||||||
|
public class GroupingCollectionEditor:CollectionEditor |
||||||
|
{ |
||||||
|
private Type[] types; |
||||||
|
|
||||||
|
public GroupingCollectionEditor(Type type):base(type) |
||||||
|
{ |
||||||
|
types = new Type[] {typeof(GroupColumn)}; |
||||||
|
} |
||||||
|
|
||||||
|
protected override Type[] CreateNewItemTypes() |
||||||
|
{ |
||||||
|
return types; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
protected override object CreateInstance(Type itemType) |
||||||
|
{ |
||||||
|
// if (itemType == typeof(SqlParameter)) {
|
||||||
|
// return new SqlParameter();
|
||||||
|
// }
|
||||||
|
return base.CreateInstance(typeof(GroupColumn)); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) |
||||||
|
{ |
||||||
|
return base.EditValue(context, provider, value); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
public override System.Drawing.Design.UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) |
||||||
|
{ |
||||||
|
return UITypeEditorEditStyle.Modal; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,53 @@ |
|||||||
|
/* |
||||||
|
* Created by SharpDevelop. |
||||||
|
* User: Peter Forstmeier |
||||||
|
* Date: 22.08.2010 |
||||||
|
* Time: 13:25 |
||||||
|
* |
||||||
|
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
||||||
|
*/ |
||||||
|
using System; |
||||||
|
using System.ComponentModel; |
||||||
|
using System.ComponentModel.Design; |
||||||
|
using System.Drawing.Design; |
||||||
|
|
||||||
|
namespace ICSharpCode.Reports.Core.Dialogs |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of SortingCollectionEditor.
|
||||||
|
/// </summary>
|
||||||
|
public class SortingCollectionEditor:CollectionEditor |
||||||
|
{ |
||||||
|
private Type[] types; |
||||||
|
|
||||||
|
public SortingCollectionEditor(Type type):base(type) |
||||||
|
{ |
||||||
|
types = new Type[] {typeof(SortColumn)}; |
||||||
|
} |
||||||
|
|
||||||
|
protected override Type[] CreateNewItemTypes() |
||||||
|
{ |
||||||
|
return types; |
||||||
|
} |
||||||
|
protected override object CreateInstance(Type itemType) |
||||||
|
{ |
||||||
|
// if (itemType == typeof(SqlParameter)) {
|
||||||
|
// return new SqlParameter();
|
||||||
|
// }
|
||||||
|
return base.CreateInstance(typeof(SortColumn)); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) |
||||||
|
{ |
||||||
|
return base.EditValue(context, provider, value); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
public override System.Drawing.Design.UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) |
||||||
|
{ |
||||||
|
return UITypeEditorEditStyle.Modal; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -1,48 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="Peter Forstmeier" email="peter.forstmeier@t-online.de"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
using System.Drawing; |
|
||||||
using ICSharpCode.Reports.Core.BaseClasses.Printing; |
|
||||||
using ICSharpCode.Reports.Core.Interfaces; |
|
||||||
|
|
||||||
namespace ICSharpCode.Reports.Core.Exporter |
|
||||||
{ |
|
||||||
/* |
|
||||||
public class ExportItemsConverter:IExportItemsConverter |
|
||||||
{ |
|
||||||
|
|
||||||
public ExportItemsConverter () |
|
||||||
{ |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
public static ExportContainer ConvertToContainer (BaseReportItem parent,ISimpleContainer item,Point offset) |
|
||||||
{ |
|
||||||
if (item == null) { |
|
||||||
throw new ArgumentNullException("item"); |
|
||||||
} |
|
||||||
IExportColumnBuilder lineBuilder = item as IExportColumnBuilder; |
|
||||||
|
|
||||||
if (lineBuilder != null) { |
|
||||||
ExportContainer lineItem = (ExportContainer)lineBuilder.CreateExportColumn(); |
|
||||||
|
|
||||||
lineItem.StyleDecorator.Location = new Point (offset.X + lineItem.StyleDecorator.Location.X, |
|
||||||
offset.Y); |
|
||||||
|
|
||||||
lineItem.StyleDecorator.DisplayRectangle = new Rectangle(lineItem.StyleDecorator.Location, |
|
||||||
lineItem.StyleDecorator.Size); |
|
||||||
|
|
||||||
return lineItem; |
|
||||||
} |
|
||||||
return null; |
|
||||||
} |
|
||||||
|
|
||||||
//public Rectangle ParentRectangle {get;set;}
|
|
||||||
} |
|
||||||
*/ |
|
||||||
} |
|
Loading…
Reference in new issue