Browse Source

Move files, changed Exporters to return Typesafe Decorators

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1999 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Peter Forstmeier 19 years ago
parent
commit
7af8c67fd5
  1. 0
      src/AddIns/Misc/SharpReport/SharpReportCore/Exporter/Decorators/BaseStyleDecorator.cs
  2. 2
      src/AddIns/Misc/SharpReport/SharpReportCore/Exporter/ExportColumns/ExportContainer.cs
  3. 13
      src/AddIns/Misc/SharpReport/SharpReportCore/Exporter/ExportColumns/ExportGraphic.cs
  4. 4
      src/AddIns/Misc/SharpReport/SharpReportCore/Exporter/ExportColumns/ExportText.cs
  5. 8
      src/AddIns/Misc/SharpReport/SharpReportCore/Exporter/ExportColumns/IExportColumnBuilder .cs
  6. 2
      src/AddIns/Misc/SharpReport/SharpReportCore/SharpReportCore.csproj

0
src/AddIns/Misc/SharpReport/SharpReportCore/Exporter/BaseStyleDecorator.cs → src/AddIns/Misc/SharpReport/SharpReportCore/Exporter/Decorators/BaseStyleDecorator.cs

2
src/AddIns/Misc/SharpReport/SharpReportCore/Exporter/ExportColumns/ExportContainer.cs

@ -18,6 +18,7 @@ namespace SharpReportCore.Exporters @@ -18,6 +18,7 @@ namespace SharpReportCore.Exporters
{
ExporterCollection<BaseExportColumn> items;
public ExportContainer():base(){
base.IsContainer = true;
}
@ -41,6 +42,5 @@ namespace SharpReportCore.Exporters @@ -41,6 +42,5 @@ namespace SharpReportCore.Exporters
return items;
}
}
}
}

13
src/AddIns/Misc/SharpReport/SharpReportCore/Exporter/ExportColumns/ExportGraphic.cs

@ -33,14 +33,11 @@ namespace SharpReportCore.Exporters @@ -33,14 +33,11 @@ namespace SharpReportCore.Exporters
style.DisplayRectangle);
}
// public override BaseStyleDecorator StyleDecorator {
// get {
// return base.StyleDecorator as GraphicStyleDecorator;
// }
// set {
// base.StyleDecorator = value;
// }
// }
public new GraphicStyleDecorator StyleDecorator {
get{
return base.StyleDecorator as GraphicStyleDecorator;
}
}
}
}

4
src/AddIns/Misc/SharpReport/SharpReportCore/Exporter/ExportColumns/ExportText.cs

@ -33,9 +33,9 @@ namespace SharpReportCore.Exporters { @@ -33,9 +33,9 @@ namespace SharpReportCore.Exporters {
}
}
public override BaseStyleDecorator StyleDecorator {
public new TextStyleDecorator StyleDecorator {
get {
return base.StyleDecorator;
return base.StyleDecorator as TextStyleDecorator;
}
set {
base.StyleDecorator = value;

8
src/AddIns/Misc/SharpReport/SharpReportCore/Exporter/ExportColumns/IExportColumnBuilder .cs

@ -19,11 +19,5 @@ namespace SharpReportCore @@ -19,11 +19,5 @@ namespace SharpReportCore
public interface IExportColumnBuilder{
BaseExportColumn CreateExportColumn (Graphics graphics);
}
/*
public interface IPerformLine{
BaseStyleDecorator StyleDecorator {
get;set;
}
}
*/
}

2
src/AddIns/Misc/SharpReport/SharpReportCore/SharpReportCore.csproj

@ -139,7 +139,6 @@ @@ -139,7 +139,6 @@
<Compile Include="Printing\MeasurementService.cs" />
<Compile Include="Exporter\SinglePage.cs" />
<Compile Include="Exporter\PageBuilder.cs" />
<Compile Include="Exporter\BaseStyleDecorator.cs" />
<Compile Include="Exporter\ExportItemsConverter.cs" />
<Compile Include="Exceptions\MissingDataManagerException.cs" />
<Compile Include="Exporter\ExportColumns\BaseExportColumn.cs" />
@ -157,6 +156,7 @@ @@ -157,6 +156,7 @@
<Compile Include="Exporter\ExportColumns\ExportGraphic.cs" />
<Compile Include="Exporter\Decorators\TextStyleDecorator.cs" />
<Compile Include="Exporter\Decorators\GraphicStyleDecorator.cs" />
<Compile Include="Exporter\Decorators\BaseStyleDecorator.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="BaseItems" />

Loading…
Cancel
Save