11 changed files with 140 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
using System; |
||||||
|
using System.Drawing.Drawing2D; |
||||||
|
|
||||||
|
namespace ICSharpCode.Reporting.Items |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of BaseGraphics.
|
||||||
|
/// </summary>
|
||||||
|
public class BaseGraphics:PrintableItem |
||||||
|
{ |
||||||
|
public BaseGraphics() |
||||||
|
{ |
||||||
|
this.Thickness = 1; |
||||||
|
DashStyle = DashStyle.Solid; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
public virtual int Thickness {get;set;} |
||||||
|
|
||||||
|
public virtual DashStyle DashStyle {get;set;} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,30 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
using System; |
||||||
|
using ICSharpCode.Reporting.Interfaces.Export; |
||||||
|
using ICSharpCode.Reporting.PageBuilder.ExportColumns; |
||||||
|
|
||||||
|
namespace ICSharpCode.Reporting.Items{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of BaseLineItem.
|
||||||
|
/// </summary>
|
||||||
|
public class BaseLineItem:BaseGraphics |
||||||
|
{ |
||||||
|
public BaseLineItem() |
||||||
|
{ |
||||||
|
} |
||||||
|
|
||||||
|
public override IExportColumn CreateExportColumn() |
||||||
|
{ |
||||||
|
var ex = new ExportGraphics(); |
||||||
|
ex.Location = Location; |
||||||
|
ex.ForeColor = ForeColor; |
||||||
|
ex.BackColor = BackColor; |
||||||
|
ex.Size = Size; |
||||||
|
ex.DesiredSize = Size; |
||||||
|
ex.Thickness = Thickness; |
||||||
|
ex.DashStyle = DashStyle; |
||||||
|
return ex; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,43 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
using System; |
||||||
|
using System.Drawing.Drawing2D; |
||||||
|
using ICSharpCode.Reporting.Exporter.Visitors; |
||||||
|
using ICSharpCode.Reporting.Interfaces.Export; |
||||||
|
|
||||||
|
namespace ICSharpCode.Reporting.PageBuilder.ExportColumns |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of ExportGraphics.
|
||||||
|
/// </summary>
|
||||||
|
///
|
||||||
|
public interface IExportGraphics:IExportColumn { |
||||||
|
int Thickness {get;set;} |
||||||
|
DashStyle DashStyle {get;set;} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
public class ExportGraphics:ExportColumn,IExportGraphics,IAcceptor |
||||||
|
{ |
||||||
|
public ExportGraphics() |
||||||
|
{ |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
public void Accept(IVisitor visitor) |
||||||
|
{ |
||||||
|
visitor.Visit(this); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
public override ICSharpCode.Reporting.Arrange.IMeasurementStrategy MeasurementStrategy() |
||||||
|
{ |
||||||
|
throw new NotImplementedException(); |
||||||
|
} |
||||||
|
|
||||||
|
public int Thickness {get;set;} |
||||||
|
|
||||||
|
public DashStyle DashStyle {get;set;} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue