Browse Source

Merge 3.0 to trunk.

I excluded Python from this merge (too many conflicts I don't know how to solve).
I also excluded SharpReport (will be ported to SD 4.0 later).

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5450 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Daniel Grunwald 16 years ago
parent
commit
5dfb771735
  1. 2
      doc/copyright.txt
  2. 7
      doc/readme.rtf
  3. 6
      samples/CodeConverter/Dependencies/Copy.bat
  4. 24
      samples/CodeConverter/Dependencies/CopyDependencies.build
  5. 2
      samples/CodeConverter/Source/CCSite/About.aspx.cs
  6. 49
      samples/CodeConverter/Source/CCSite/ConvertService.cs
  7. 6
      samples/CodeConverter/Source/CCSite/SnippetConverter.aspx
  8. 39
      samples/CodeConverter/Source/CCSite/SnippetConverter.aspx.cs
  9. 2
      samples/CodeConverter/Source/CCSite/SnippetConverter.aspx.designer.cs
  10. 63
      samples/CodeConverter/Source/ICSharpCode.CodeConversion/HelperFunctions.cs
  11. 12
      samples/CodeConverter/Source/ICSharpCode.CodeConversion/ICSharpCode.CodeConversion.csproj
  12. 26
      samples/CodeConverter/Source/ICSharpCode.CodeConversion/PythonHelpers.cs
  13. 26
      samples/CodeConverter/Source/ICSharpCode.CodeConversion/RubyHelpers.cs
  14. 38
      samples/CodeConverter/Source/ICSharpCode.CodeConversion/SnippetConversion.cs
  15. BIN
      samples/SharpDevelopReports/SampleReports/EventLogger/Error.png
  16. BIN
      samples/SharpDevelopReports/SampleReports/EventLogger/Info.png
  17. BIN
      samples/SharpDevelopReports/SampleReports/EventLogger/Warning.png
  18. 262
      samples/SharpDevelopReports/SampleReports/FormSheet/JCA.srd
  19. 285
      samples/SharpDevelopReports/SampleReports/Ilist/ContributorsList.srd
  20. BIN
      samples/SharpDevelopReports/SampleReports/Logos/Bannerbeige2.gif
  21. BIN
      samples/SharpDevelopReports/SampleReports/Logos/SDLogo_JPG.jpg
  22. 332
      samples/SharpDevelopReports/SampleReports/ProviderIndependent/NoConnectionReport.srd
  23. 332
      samples/SharpDevelopReports/SampleReports/PullModel/Parameter_Aggregate.srd
  24. 20
      samples/SharpDevelopReports/Web/BasicReport/Default.aspx
  25. 38
      samples/SharpDevelopReports/Web/BasicReport/Default.aspx.cs
  26. 247
      samples/SharpDevelopReports/Web/BasicReport/SalesByYear.srd
  27. 43
      samples/SharpDevelopReports/Web/BasicReport/Web.Config
  28. 166
      samples/SharpDevelopReports/Web/IListReport/ContributorList.srd
  29. 17
      samples/SharpDevelopReports/Web/IListReport/Default.aspx
  30. 113
      samples/SharpDevelopReports/Web/IListReport/Default.aspx.cs
  31. 44
      samples/SharpDevelopReports/Web/IListReport/Web.Config
  32. 3
      samples/SharpDevelopReports/doc/ReadMe.txt
  33. 31
      samples/SharpDevelopReports/src/AssemblyInfo.cs
  34. 21
      samples/SharpDevelopReports/src/ReportSamples.sln
  35. 88
      samples/SharpDevelopReports/src/SharpReportSamples/ContributorsList.cs
  36. 153
      samples/SharpDevelopReports/src/SharpReportSamples/MainForm.Designer.cs
  37. 252
      samples/SharpDevelopReports/src/SharpReportSamples/MainForm.cs
  38. 126
      samples/SharpDevelopReports/src/SharpReportSamples/MainForm.resx
  39. 31
      samples/SharpDevelopReports/src/SharpReportSamples/Program.cs
  40. 31
      samples/SharpDevelopReports/src/SharpReportSamples/Properties/AssemblyInfo.cs
  41. 77
      samples/SharpDevelopReports/src/SharpReportSamples/ReportViewerMessagesProvider.cs
  42. 77
      samples/SharpDevelopReports/src/SharpReportSamples/SharpReportSamples.csproj
  43. BIN
      src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.CodeDom.dll
  44. BIN
      src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.Compiler.dll
  45. BIN
      src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.Extensions.dll
  46. BIN
      src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.Interpreter.dll
  47. BIN
      src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.Parser.dll
  48. BIN
      src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.PatternMatching.dll
  49. BIN
      src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.Useful.dll
  50. BIN
      src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.dll
  51. BIN
      src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Microsoft.Build.Tasks.dll
  52. BIN
      src/AddIns/BackendBindings/Boo/RequiredLibraries/booc.exe
  53. 7
      src/AddIns/BackendBindings/Ruby/RubyBinding/Project/Src/RubyAstWalker.cs
  54. 39
      src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Parsing/ParseRequireFollowedByCommentTestFixture.cs
  55. 1
      src/AddIns/BackendBindings/Ruby/RubyBinding/Test/RubyBinding.Tests.csproj
  56. 13
      src/AddIns/BackendBindings/VBNetBinding/Project/Src/FormattingStrategy/VBNetFormattingStrategy.cs
  57. 175
      src/AddIns/BackendBindings/VBNetBinding/Test/FormattingStrategy/IndentationTests.cs
  58. 10
      src/AddIns/Misc/UnitTesting/Src/TestClass.cs
  59. 84
      src/AddIns/Misc/UnitTesting/Test/Project/OverriddenBaseTestMethodTestFixture.cs
  60. 1
      src/AddIns/Misc/UnitTesting/Test/UnitTesting.Tests.csproj
  61. 16
      src/AddIns/Misc/UnitTesting/Test/Utils/MockMethod.cs
  62. 4
      src/Libraries/ICSharpCode.TextEditor/Project/Resources/Boo.xshd
  63. 4
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/Parser.cs
  64. 2
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/VBNET.ATG
  65. 131
      src/Libraries/NRefactory/Project/Src/PrettyPrinter/VBNet/VBNetOutputVisitor.cs
  66. 17
      src/Libraries/NRefactory/Project/Src/Visitors/ToVBNetConvertVisitor.cs
  67. 45
      src/Libraries/NRefactory/Test/Output/VBNet/CSharpToVBNetConverterTest.cs
  68. 50
      src/Libraries/NRefactory/Test/Output/VBNet/VBNetOutputTest.cs
  69. 13
      src/Libraries/NRefactory/Test/Parser/Statements/IfElseStatementTests.cs
  70. 2
      src/Main/Base/Project/Resources/CommonAboutDialog.xfrm
  71. 9
      src/Main/Base/Project/Src/Services/ProjectService/ProjectService.cs
  72. 13
      src/Main/Base/Test/CodeConverterTests.cs
  73. 15
      src/Main/Base/Test/InnerClassesResolverTests.cs
  74. 10
      src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/NRefactoryResolver/CSharpToVBNetConvertVisitor.cs
  75. 2
      src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/ProjectContent/DefaultProjectContent.cs
  76. 43
      src/Main/ICSharpCode.SharpDevelop.Widgets/Project/ICSharpCode.SharpDevelop.Widgets.csproj
  77. 26
      src/Setup/Files.wxs
  78. 18
      src/Setup/Setup.wxs

2
doc/copyright.txt

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
Copyright 2002-2009 by
Copyright 2002-2010 by
AlphaSierraPapa, Christoph Wille
Vordernberger Strasse 27/8

7
doc/readme.rtf

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
{\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff31507\deff0\stshfdbch31505\stshfloch31506\stshfhich31506\stshfbi0\deflang1033\deflangfe1033\themelang1033\themelangfe0\themelangcs0{\fonttbl{\f0\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fbidi \fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;}
{\f34\fbidi \froman\fcharset0\fprq2{\*\panose 02040503050406030204}Cambria Math;}{\f39\fbidi \fswiss\fcharset0\fprq2{\*\panose 00000000000000000000}Bitstream Vera Sans;}
{\f1\fbidi \fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;}{\f39\fbidi \fswiss\fcharset0\fprq2{\*\panose 00000000000000000000}Bitstream Vera Sans;}
{\flomajor\f31500\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fdbmajor\f31501\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
{\fhimajor\f31502\fbidi \froman\fcharset0\fprq2{\*\panose 02040503050406030204}Cambria;}{\fbimajor\f31503\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
{\flominor\f31504\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fdbminor\f31505\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
@ -7332,8 +7332,9 @@ ger. In the course of the project, several contributors}{\rtlch\fcs1 \af0 \ltrch @@ -7332,8 +7332,9 @@ ger. In the course of the project, several contributors}{\rtlch\fcs1 \af0 \ltrch
\rtlch\fcs1 \ab\af1\afs32 \ltrch\fcs0 \b\f1\fs32\cf1\insrsid5386203 \hich\af1\dbch\af31505\loch\f1 Overview}{\rtlch\fcs1 \ab\af0\afs32 \ltrch\fcs0 \b\f0\fs32\cf1\insrsid5386203
\par }\pard\plain \ltrpar\qj \fi1\li360\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 \rtlch\fcs1 \af31507\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1033\loch\af39\hich\af39\dbch\af31505\cgrid\langnp1033\langfenp1033 {\rtlch\fcs1 \af0
\ltrch\fcs0 \f0\cf1\lang2057\langfe1033\langnp2057\insrsid5386203 \hich\af0\dbch\af31505\loch\f0 #develop (short for SharpDevelop) is a free Integrated Development Environment (IDE) for C#, VB.NET, Boo, }{\rtlch\fcs1 \af0 \ltrch\fcs0
\f0\cf1\lang2057\langfe1033\langnp2057\insrsid3302646 \hich\af0\dbch\af31505\loch\f0 Iron}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1033\langnp2057\insrsid5386203 \hich\af0\dbch\af31505\loch\f0
Python and F# projects on Microsoft's .NET platform. It is written (almost) entirely in C#, and comes with features you would expect in an IDE plus a few more.
\f0\cf1\lang2057\langfe1033\langnp2057\insrsid3302646 \hich\af0\dbch\af31505\loch\f0 Iron}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1033\langnp2057\insrsid5386203 \hich\af0\dbch\af31505\loch\f0 Python}{\rtlch\fcs1 \af0 \ltrch\fcs0
\f0\cf1\lang2057\langfe1033\langnp2057\insrsid7941341 \hich\af0\dbch\af31505\loch\f0 , IronRuby}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1033\langnp2057\insrsid5386203 \hich\af0\dbch\af31505\loch\f0
and F# projects on Microsoft's .NET platform. It is written (almost) entirely in C#, and comes with features you would expect in an IDE plus a few more.
\par }\pard\plain \ltrpar\s1\ql \li0\ri0\sb240\sa60\keepn\nowidctlpar\wrapdefault\faauto\outlinelevel0\rin0\lin0\itap0 \rtlch\fcs1 \af31507\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1033\loch\af39\hich\af39\dbch\af31505\cgrid\langnp1033\langfenp1033 {
\rtlch\fcs1 \ab\af1\afs32 \ltrch\fcs0 \b\f1\fs32\cf1\insrsid5386203 \hich\af1\dbch\af31505\loch\f1 Features
\par }\pard\plain \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 \rtlch\fcs1 \af31507\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1033\loch\af39\hich\af39\dbch\af31505\cgrid\langnp1033\langfenp1033 {\rtlch\fcs1 \af0 \ltrch\fcs0

6
samples/CodeConverter/Dependencies/Copy.bat

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
%windir%\microsoft.net\framework\v3.5\msbuild CopyDependencies.build
@IF %ERRORLEVEL% NEQ 0 GOTO err
@exit /B 0
:err
@PAUSE
@exit /B 1

24
samples/CodeConverter/Dependencies/CopyDependencies.build

@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTarget="Build">
<ItemGroup>
<GenericDeps Include="..\..\..\bin\ICSharpCode.NRefactory.dll"/>
<GenericDeps Include="..\..\..\bin\ICSharpCode.SharpDevelop.Dom.dll"/>
<GenericDeps Include="..\..\..\bin\ICSharpCode.TextEditor.dll"/>
<GenericDeps Include="..\..\..\bin\log4net.dll"/>
<BooDeps Include="..\..\..\AddIns\AddIns\BackendBindings\BooBinding\Boo.Lang.dll"/>
<BooDeps Include="..\..\..\AddIns\AddIns\BackendBindings\BooBinding\Boo.Lang.Compiler.dll"/>
<BooDeps Include="..\..\..\AddIns\AddIns\BackendBindings\BooBinding\NRefactoryToBooConverter.dll"/>
<PyDeps Include="..\..\..\AddIns\AddIns\BackendBindings\PythonBinding\PythonBinding.dll"/>
<IrDeps Include="..\..\..\AddIns\AddIns\BackendBindings\RubyBinding\RubyBinding.dll"/>
</ItemGroup>
<Target Name="Build">
<Copy SourceFiles="@(BooDeps)" DestinationFolder=".\" SkipUnchangedFiles="true"/>
<Copy SourceFiles="@(GenericDeps)" DestinationFolder=".\" SkipUnchangedFiles="true"/>
<Copy SourceFiles="@(PyDeps)" DestinationFolder=".\" SkipUnchangedFiles="true"/>
<Copy SourceFiles="@(IrDeps)" DestinationFolder=".\" SkipUnchangedFiles="true"/>
</Target>
</Project>

2
samples/CodeConverter/Source/CCSite/About.aspx.cs

@ -15,7 +15,7 @@ namespace CCSite @@ -15,7 +15,7 @@ namespace CCSite
{
protected void Page_Load(object sender, EventArgs e)
{
VersionLabel.Text = ICSharpCode.CodeConversion.HelperFunctions.GetNRefactoryVersion();
VersionLabel.Text = ICSharpCode.CodeConversion.CodeConversionHelpers.GetNRefactoryVersion();
}
}
}

49
samples/CodeConverter/Source/CCSite/ConvertService.cs

@ -14,7 +14,8 @@ using ICSharpCode.CodeConversion; @@ -14,7 +14,8 @@ using ICSharpCode.CodeConversion;
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class ConvertService : System.Web.Services.WebService {
public ConvertService () {
public ConvertService ()
{
//Uncomment the following line if using designed components
//InitializeComponent();
@ -37,50 +38,10 @@ public class ConvertService : System.Web.Services.WebService { @@ -37,50 +38,10 @@ public class ConvertService : System.Web.Services.WebService {
public bool ConvertSnippet(string TypeOfConversion, string SourceCode, out string ConvertedCode, out string ErrorMessage)
{
ErrorMessage = ConvertedCode = "";
string convertedSource = "", errorMessage = "";
bool bSuccessfulConversion = false;
IConvertCode currentConverter = null;
switch (TypeOfConversion)
{
case "cs2boo":
currentConverter = new ConvertCSharpToBoo();
break;
case "vbnet2boo":
currentConverter = new ConvertVbNetToBoo();
break;
case "cs2vbnet":
currentConverter = new ConvertCSharpSnippetToVbNet();
break;
case "vbnet2cs":
currentConverter = new ConvertVbNetSnippetToCSharp();
break;
default:
return false;
}
try
{
bSuccessfulConversion = currentConverter.Convert(SourceCode,
out convertedSource,
out errorMessage);
}
catch (Exception ex)
{
bSuccessfulConversion = false;
errorMessage = "Exception occured: " + ex.ToString() + "\r\n\r\nError Message:" + errorMessage;
}
if (bSuccessfulConversion)
{
ConvertedCode = convertedSource;
}
else
{
ErrorMessage = errorMessage;
}
return bSuccessfulConversion;
bool result = CodeConversionHelpers.ConvertSnippet(TypeOfConversion, SourceCode, out ConvertedCode, out ErrorMessage);
return result;
}
}

6
samples/CodeConverter/Source/CCSite/SnippetConverter.aspx

@ -7,11 +7,15 @@ @@ -7,11 +7,15 @@
<p class="page_title">Step 1: Choose source language and destination language for conversion</p>
<p>
<asp:RadioButtonList ID="languageChoice" runat="server" RepeatColumns="2">
<asp:RadioButtonList ID="languageChoice" runat="server" RepeatColumns="4">
<asp:ListItem Selected="True" Value="cs2vbnet">C# to VB.NET</asp:ListItem>
<asp:ListItem Value="vbnet2cs">VB.NET to C#</asp:ListItem>
<asp:ListItem Value="cs2boo">C# to Boo</asp:ListItem>
<asp:ListItem Value="vbnet2boo">VB.NET to Boo</asp:ListItem>
<asp:ListItem Value="cs2python">C# to Python</asp:ListItem>
<asp:ListItem Value="vbnet2python">VB.NET to Python</asp:ListItem>
<asp:ListItem Value="cs2ruby">C# to Ruby</asp:ListItem>
<asp:ListItem Value="vbnet2ruby">VB.NET to Ruby</asp:ListItem>
</asp:RadioButtonList>
<br />
</p>

39
samples/CodeConverter/Source/CCSite/SnippetConverter.aspx.cs

@ -2,6 +2,7 @@ using System; @@ -2,6 +2,7 @@ using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
@ -15,44 +16,18 @@ public partial class SnippetConverterPage : System.Web.UI.Page @@ -15,44 +16,18 @@ public partial class SnippetConverterPage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void convertCode_Click(object sender, EventArgs e)
{
string convertedSource = "", errorMessage = "";
bool bSuccessfulConversion = false;
IConvertCode currentConverter = null;
try
{
switch (languageChoice.SelectedValue)
{
case "cs2boo":
currentConverter = new ConvertCSharpToBoo();
break;
case "vbnet2boo":
currentConverter = new ConvertVbNetToBoo();
break;
case "cs2vbnet":
currentConverter = new ConvertCSharpSnippetToVbNet();
break;
case "vbnet2cs":
currentConverter = new ConvertVbNetSnippetToCSharp();
break;
}
string typeOfConversion = languageChoice.SelectedValue;
string sourceCode = inputTextBox.Text.Trim();
bSuccessfulConversion = currentConverter.Convert(inputTextBox.Text,
out convertedSource,
out errorMessage);
}
catch (Exception ex)
{
OutputLabel.Text = "Exception occured, please report in the bug reporting forum";
outputTextBox.Text = ex.ToString();
return;
}
bool result = CodeConversionHelpers.ConvertSnippet(typeOfConversion, sourceCode, out convertedSource, out errorMessage);
if (bSuccessfulConversion)
if (result)
{
OutputLabel.Text = "Converted Sourcecode";
outputTextBox.Text = convertedSource;

2
samples/CodeConverter/Source/CCSite/SnippetConverter.aspx.designer.cs generated

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1433
// Runtime Version:2.0.50727.4927
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.

63
samples/CodeConverter/Source/ICSharpCode.CodeConversion/HelperFunctions.cs

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
// Conversion general
using ICSharpCode.NRefactory.PrettyPrinter;
@ -6,9 +7,9 @@ using ICSharpCode.NRefactory.PrettyPrinter; @@ -6,9 +7,9 @@ using ICSharpCode.NRefactory.PrettyPrinter;
namespace ICSharpCode.CodeConversion
{
public class HelperFunctions
public class CodeConversionHelpers
{
private HelperFunctions() { }
private CodeConversionHelpers() { }
public static string GetNRefactoryVersion()
{
@ -20,5 +21,63 @@ namespace ICSharpCode.CodeConversion @@ -20,5 +21,63 @@ namespace ICSharpCode.CodeConversion
return s;
}
public static IConvertCode InferConverter(string typeOfConversion)
{
Dictionary<string, Type> converters = new Dictionary<string, Type>()
{
{ "cs2boo", typeof(ConvertCSharpToBoo) },
{ "vbnet2boo", typeof(ConvertVbNetToBoo) },
{ "cs2vbnet", typeof(ConvertCSharpSnippetToVbNet) },
{ "vbnet2cs", typeof(ConvertVbNetSnippetToCSharp) },
{ "vbnet2ruby", typeof(ConvertVbNetToRuby) },
{ "vbnet2python", typeof(ConvertVbNetToPython) },
{ "cs2ruby", typeof(ConvertCSharpToRuby) },
{ "cs2python", typeof(ConvertCSharpToPython) }
};
if (converters.ContainsKey(typeOfConversion))
{
Type t = converters[typeOfConversion];
object o = Activator.CreateInstance(t, null);
return (o as IConvertCode);
}
return null;
}
public static bool ConvertSnippet(string TypeOfConversion, string SourceCode, out string ConvertedCode, out string ErrorMessage)
{
ErrorMessage = ConvertedCode = "";
string convertedSource = "", errorMessage = "";
bool bSuccessfulConversion = false;
IConvertCode currentConverter = InferConverter(TypeOfConversion);
if (null == currentConverter) return false;
try
{
bSuccessfulConversion = currentConverter.Convert(SourceCode,
out convertedSource,
out errorMessage);
}
catch (Exception ex)
{
bSuccessfulConversion = false;
errorMessage = "Exception occured: " + ex.ToString() + "\r\n\r\nError Message:" + errorMessage;
}
if (bSuccessfulConversion)
{
ConvertedCode = convertedSource;
}
else
{
ErrorMessage = errorMessage;
}
return bSuccessfulConversion;
}
}
}

12
samples/CodeConverter/Source/ICSharpCode.CodeConversion/ICSharpCode.CodeConversion.csproj

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{BF122CB4-E896-40CA-BF0A-AB44906AB87D}</ProjectGuid>
<OutputType>Library</OutputType>
@ -51,6 +51,14 @@ @@ -51,6 +51,14 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Dependencies\NRefactoryToBooConverter.dll</HintPath>
</Reference>
<Reference Include="PythonBinding, Version=3.2.0.5362, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Dependencies\PythonBinding.dll</HintPath>
</Reference>
<Reference Include="RubyBinding, Version=3.2.0.5362, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Dependencies\RubyBinding.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
@ -69,7 +77,9 @@ @@ -69,7 +77,9 @@
<Compile Include="HelperFunctions.cs" />
<Compile Include="IConvertCode.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="PythonHelpers.cs" />
<Compile Include="ReferencedContentsSingleton.cs" />
<Compile Include="RubyHelpers.cs" />
<Compile Include="SnippetConversion.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

26
samples/CodeConverter/Source/ICSharpCode.CodeConversion/PythonHelpers.cs

@ -0,0 +1,26 @@ @@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSharpCode.NRefactory;
using ICSharpCode.PythonBinding;
namespace ICSharpCode.CodeConversion
{
public class PythonHelpers
{
public static bool Convert(SupportedLanguage inputLanguage, string ProvidedSource, out string ConvertedSource, out string ErrorMessage)
{
NRefactoryToPythonConverter converter = new
NRefactoryToPythonConverter(inputLanguage);
string convertedCode = converter.Convert(ProvidedSource);
ConvertedSource = convertedCode;
ErrorMessage = "";
return true;
}
}
}

26
samples/CodeConverter/Source/ICSharpCode.CodeConversion/RubyHelpers.cs

@ -0,0 +1,26 @@ @@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSharpCode.NRefactory;
using ICSharpCode.RubyBinding;
namespace ICSharpCode.CodeConversion
{
public class RubyHelpers
{
public static bool Convert(SupportedLanguage inputLanguage, string ProvidedSource, out string ConvertedSource, out string ErrorMessage)
{
NRefactoryToRubyConverter converter = new
NRefactoryToRubyConverter(inputLanguage);
string convertedCode = converter.Convert(ProvidedSource);
ConvertedSource = convertedCode;
ErrorMessage = "";
return true;
}
}
}

38
samples/CodeConverter/Source/ICSharpCode.CodeConversion/SnippetConversion.cs

@ -1,10 +1,12 @@ @@ -1,10 +1,12 @@
using System;
using System.Collections.Generic;
using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.SharpDevelop.Dom.NRefactoryResolver;
using System.IO;
using System.Runtime.InteropServices;
using ICSharpCode.NRefactory;
using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.SharpDevelop.Dom.NRefactoryResolver;
namespace ICSharpCode.CodeConversion
{
public class ConvertCSharpSnippetToVbNet : IConvertCode
@ -52,4 +54,36 @@ namespace ICSharpCode.CodeConversion @@ -52,4 +54,36 @@ namespace ICSharpCode.CodeConversion
return bSuccessfulConversion;
}
}
public class ConvertCSharpToPython : IConvertCode
{
public bool Convert(string ProvidedSource, out string ConvertedSource, out string ErrorMessage)
{
return PythonHelpers.Convert(SupportedLanguage.CSharp, ProvidedSource, out ConvertedSource, out ErrorMessage);
}
}
public class ConvertCSharpToRuby : IConvertCode
{
public bool Convert(string ProvidedSource, out string ConvertedSource, out string ErrorMessage)
{
return RubyHelpers.Convert(SupportedLanguage.CSharp, ProvidedSource, out ConvertedSource, out ErrorMessage);
}
}
public class ConvertVbNetToPython : IConvertCode
{
public bool Convert(string ProvidedSource, out string ConvertedSource, out string ErrorMessage)
{
return PythonHelpers.Convert(SupportedLanguage.VBNet, ProvidedSource, out ConvertedSource, out ErrorMessage);
}
}
public class ConvertVbNetToRuby : IConvertCode
{
public bool Convert(string ProvidedSource, out string ConvertedSource, out string ErrorMessage)
{
return RubyHelpers.Convert(SupportedLanguage.VBNet, ProvidedSource, out ConvertedSource, out ErrorMessage);
}
}
}

BIN
samples/SharpDevelopReports/SampleReports/EventLogger/Error.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

BIN
samples/SharpDevelopReports/SampleReports/EventLogger/Info.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
samples/SharpDevelopReports/SampleReports/EventLogger/Warning.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

262
samples/SharpDevelopReports/SampleReports/FormSheet/JCA.srd

@ -0,0 +1,262 @@ @@ -0,0 +1,262 @@
<?xml version="1.0" encoding="utf-8"?>
<ReportModel>
<ReportSettings>
<ReportSettings>
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont>
<DataModel>FormSheet</DataModel>
<FileName>Report1.srd</FileName>
<RightMargin>50</RightMargin>
<UseStandardPrinter>True</UseStandardPrinter>
<SortColumnCollection />
<AvailableFieldsCollection />
<NoDataMessage>No Data for this Report</NoDataMessage>
<LeftMargin>50</LeftMargin>
<PageSize>827, 1169</PageSize>
<Padding>5, 5, 5, 5</Padding>
<BottomMargin>50</BottomMargin>
<CommandType>Text</CommandType>
<ParameterCollection />
<Landscape>False</Landscape>
<ReportName>Report1</ReportName>
<TopMargin>50</TopMargin>
<GroupColumnsCollection />
<GraphicsUnit>Millimeter</GraphicsUnit>
<CommandText />
<ReportType>FormSheet</ReportType>
<ConnectionString />
</ReportSettings>
</ReportSettings>
<SectionCollection>
<BaseSection>
<Size>718, 85</Size>
<Name>ReportHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items>
<BaseImageItem>
<ImageSource>File</ImageSource>
<Location>103, 24</Location>
<Name>ReportImageControl</Name>
<Size>582, 50</Size>
<ScaleImageToSize>False</ScaleImageToSize>
<BackColor>Window</BackColor>
<RelativeFileName>D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</RelativeFileName>
<ImageFileName>D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</ImageFileName>
</BaseImageItem>
</Items>
<Location>50, 50</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>718, 95</Size>
<Name>ReportPageHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>#develop Open Source Project
Joint Copyright Assignment by Contributor To AlphaSierraPapa</Text>
<Location>92, 10</Location>
<ContentAlignment>TopCenter</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 14pt, style=Bold</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>597, 57</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseLineItem>
<StartLineCap>Flat</StartLineCap>
<FromPoint>10, 5</FromPoint>
<Location>92, 82</Location>
<Name>reportLineControl1</Name>
<Size>597, 9</Size>
<EndLineCap>Flat</EndLineCap>
<DashStyle>Solid</DashStyle>
<BackColor>White</BackColor>
<DashLineCap>Flat</DashLineCap>
<ForeColor>ControlText</ForeColor>
<ToPoint>40, 5</ToPoint>
<Thickness>1</Thickness>
</BaseLineItem>
</Items>
<Location>50, 150</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>718, 723</Size>
<Name>ReportDetail</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>Contact Information:
Full Name:_________________________________ (the "Contributor")
Mailing Address_________________________ e-mail :_________________________
______________________________________ Telephone :_________________________
Country:_______________________________ Facsimile :_________________________</Text>
<Location>50, 8</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>True</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>622, 135</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>1. Contributor owns, and has sufficient rights to contribute, all source code and related material intended
to be compiled or integrated with the source code for the #develop open source product (the
"Contribution") which Contributor has ever delivered, and AlphaSierraPapa has accepted, for
incorporation into the technology made available under the #develop open source project.</Text>
<Location>50, 171</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>True</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem2</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>675, 67</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>2. Contributor hereby assigns to AlphaSierraPapa joint ownership in all worldwide common law and
statutory rights associated with the copyrights, copyright application, copyright registration and moral
rights in the Contribution to the extent allowable under applicable local laws and copyright
conventions. Contributor agrees that this assignment may be submitted by AlphaSierraPapa to register
a copyright in the Contribution. Contributor retains the right to use the Contribution for Contributor's
own purposes. This Joint Copyright Assignment supersedes and replaces all prior copyright
assignments made by Contributor to AlphaSierraPapa under the #develop project.</Text>
<Location>50, 257</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>True</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem3</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>695, 113</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>3. Contributor is legally entitled to grant the above assignment and agrees not to provide any
Contribution that violates any law or breaches any contract.</Text>
<Location>50, 380</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem4</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>696, 37</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>Signed:________________________________________ Date_______________
Printed Name:__________________________________
Please send a signed copy of this assignment by facsimile to AlphaSierraPapa at:</Text>
<Location>50, 443</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>True</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem5</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>695, 80</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>+43-3842-22620
or mail it to:
AlphaSierraPapa
Christoph Wille
Vordernbergerstrasse 27/8
8700 Leoben
AUSTRIA</Text>
<Location>50, 551</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem6</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>213, 139</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 260</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>718, 50</Size>
<Name>ReportPageFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items />
<Location>50, 998</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>718, 50</Size>
<Name>ReportFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items />
<Location>50, 1063</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
</SectionCollection>
</ReportModel>

285
samples/SharpDevelopReports/SampleReports/Ilist/ContributorsList.srd

@ -0,0 +1,285 @@ @@ -0,0 +1,285 @@
<?xml version="1.0" encoding="utf-8"?>
<ReportModel>
<ReportSettings>
<ReportSettings>
<GridSize>8, 8</GridSize>
<PageSize>827, 1169</PageSize>
<CommandText />
<Landscape>False</Landscape>
<GroupColumnsCollection />
<RightMargin>50</RightMargin>
<NoDataMessage>No Data for this Report</NoDataMessage>
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont>
<ReportType>DataReport</ReportType>
<UseStandardPrinter>True</UseStandardPrinter>
<CommandType>Text</CommandType>
<GraphicsUnit>Millimeter</GraphicsUnit>
<TopMargin>50</TopMargin>
<ConnectionString />
<Padding>5, 5, 5, 5</Padding>
<LeftMargin>50</LeftMargin>
<SortColumnCollection />
<DataModel>PushData</DataModel>
<BottomMargin>50</BottomMargin>
<AvailableFieldsCollection />
<ReportName>Report1</ReportName>
<ParameterCollection />
</ReportSettings>
</ReportSettings>
<SectionCollection>
<BaseSection>
<Size>786, 35</Size>
<Name>ReportHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items />
<Location>50, 50</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>786, 108</Size>
<Name>ReportPageHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>Job</Text>
<Location>429, 63</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Job</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>Lastname</Text>
<Location>234, 63</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Lastname</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseImageItem>
<ImageSource>File</ImageSource>
<Location>47, 6</Location>
<Name>ReportImageControl</Name>
<Size>661, 42</Size>
<ScaleImageToSize>False</ScaleImageToSize>
<BackColor>Window</BackColor>
<RelativeFileName>D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</RelativeFileName>
<ImageFileName>D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</ImageFileName>
</BaseImageItem>
<BaseLineItem>
<StartLineCap>Flat</StartLineCap>
<FromPoint>0, 3</FromPoint>
<Location>47, 87</Location>
<Name />
<Size>661, 18</Size>
<EndLineCap>Flat</EndLineCap>
<DashStyle>Solid</DashStyle>
<BackColor>White</BackColor>
<DashLineCap>Flat</DashLineCap>
<ForeColor>ControlText</ForeColor>
<ToPoint>614, 3</ToPoint>
<Thickness>2</Thickness>
</BaseLineItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Firstname</Text>
<Location>46, 63</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>109, 20</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 100</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>750, 51</Size>
<Name>ReportDetail</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items>
<BaseRowItem>
<AlternateBackColor />
<FrameColor>WindowFrame</FrameColor>
<Name>Row</Name>
<Location>3, 10</Location>
<Visible>True</Visible>
<Size>699, 40</Size>
<Padding>5, 5, 5, 5</Padding>
<Items>
<BaseDataItem>
<DataType>System.String</DataType>
<Text>First</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>43, 12</Location>
<CanGrow>False</CanGrow>
<ForeColor>ControlText</ForeColor>
<StringTrimming>EllipsisCharacter</StringTrimming>
<ColumnName>First</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>unbound1</Name>
<Visible>True</Visible>
<Size>147, 25</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseDataItem>
<DataType>System.String</DataType>
<Text>last</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>231, 12</Location>
<CanGrow>False</CanGrow>
<ForeColor>ControlText</ForeColor>
<StringTrimming>EllipsisCharacter</StringTrimming>
<ColumnName>last</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>unbound2</Name>
<Visible>True</Visible>
<Size>139, 25</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseDataItem>
<DataType>System.String</DataType>
<Text>Job</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>426, 10</Location>
<CanGrow>False</CanGrow>
<ForeColor>ControlText</ForeColor>
<StringTrimming>EllipsisCharacter</StringTrimming>
<ColumnName>Job</ColumnName>
<DrawBorder>False</DrawBorder>
<NullValue>--------------</NullValue>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>unbound3</Name>
<Visible>True</Visible>
<Size>216, 25</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
</Items>
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<BackColor>White</BackColor>
<DrawBorder>False</DrawBorder>
<ForeColor>ControlText</ForeColor>
</BaseRowItem>
</Items>
<Location>50, 223</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>750, 49</Size>
<Name>ReportPageFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>=Globals!ReportFolder</Text>
<Location>45, 24</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 8.25pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>=Globals!ReportFolder</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>483, 20</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseLineItem>
<StartLineCap>Flat</StartLineCap>
<FromPoint>0, 0</FromPoint>
<Location>45, 3</Location>
<Name>object_177a5444_b8e0_4202_87d2_05cdc7cd1194</Name>
<Size>663, 15</Size>
<EndLineCap>Flat</EndLineCap>
<DashStyle>Solid</DashStyle>
<BackColor>White</BackColor>
<DashLineCap>Flat</DashLineCap>
<ForeColor>ControlText</ForeColor>
<ToPoint>656, 0</ToPoint>
<Thickness>2</Thickness>
</BaseLineItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>='Page ' + Globals!PageNumber</Text>
<Location>602, 24</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 8.25pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>='Page ' + Globals!PageNumber</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 289</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>750, 55</Size>
<Name>ReportFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items />
<Location>50, 353</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
</SectionCollection>
</ReportModel>

BIN
samples/SharpDevelopReports/SampleReports/Logos/Bannerbeige2.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
samples/SharpDevelopReports/SampleReports/Logos/SDLogo_JPG.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

332
samples/SharpDevelopReports/SampleReports/ProviderIndependent/NoConnectionReport.srd

@ -0,0 +1,332 @@ @@ -0,0 +1,332 @@
<?xml version="1.0" encoding="utf-8"?>
<ReportModel>
<ReportSettings>
<ReportSettings>
<GridSize>8, 8</GridSize>
<PageSize>827, 1169</PageSize>
<CommandText>SELECT * FROM Kategorien</CommandText>
<Landscape>False</Landscape>
<GroupColumnsCollection />
<RightMargin>50</RightMargin>
<NoDataMessage>No Data for this Report</NoDataMessage>
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont>
<ReportType>DataReport</ReportType>
<UseStandardPrinter>True</UseStandardPrinter>
<CommandType>Text</CommandType>
<GraphicsUnit>Millimeter</GraphicsUnit>
<TopMargin>50</TopMargin>
<ConnectionString />
<Padding>5, 5, 5, 5</Padding>
<LeftMargin>50</LeftMargin>
<SortColumnCollection />
<DataModel>PullData</DataModel>
<BottomMargin>50</BottomMargin>
<AvailableFieldsCollection>
<AbstractColumn>
<ColumnName>Kategorie-Nr</ColumnName>
<DataTypeName>System.Int32</DataTypeName>
</AbstractColumn>
<AbstractColumn>
<ColumnName>Kategoriename</ColumnName>
<DataTypeName>System.String</DataTypeName>
</AbstractColumn>
<AbstractColumn>
<ColumnName>Beschreibung</ColumnName>
<DataTypeName>System.String</DataTypeName>
</AbstractColumn>
<AbstractColumn>
<ColumnName>Abbildung</ColumnName>
<DataTypeName>System.Byte[]</DataTypeName>
</AbstractColumn>
</AvailableFieldsCollection>
<ReportName>Report1</ReportName>
<ParameterCollection>
<BasicParameter>
<ParameterName>p1</ParameterName>
<ParameterValue>aaaaa</ParameterValue>
</BasicParameter>
</ParameterCollection>
</ReportSettings>
</ReportSettings>
<SectionCollection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>='Im a ' + p1 + ' Report'</Text>
<Location>194, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Report1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>279, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 50</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportPageHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseRowItem>
<AlternateBackColor />
<FrameColor>WindowFrame</FrameColor>
<Name>AbstractItem</Name>
<Location>5, 5</Location>
<Visible>True</Visible>
<Size>717, 50</Size>
<Padding>0, 0, 0, 0</Padding>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Kategorie-Nr</Text>
<Location>5, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Kategorie-Nr1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Kategoriename</Text>
<Location>184, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Kategoriename2</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Beschreibung</Text>
<Location>363, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Beschreibung3</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Abbildung</Text>
<Location>542, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Abbildung4</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<BackColor>White</BackColor>
<DrawBorder>False</DrawBorder>
<ForeColor>Black</ForeColor>
</BaseRowItem>
</Items>
<Location>50, 125</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportDetail</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseRowItem>
<AlternateBackColor />
<FrameColor>WindowFrame</FrameColor>
<Name>AbstractItem</Name>
<Location>5, 5</Location>
<Visible>True</Visible>
<Size>717, 50</Size>
<Padding>0, 0, 0, 0</Padding>
<Items>
<BaseDataItem>
<DataType>System.Int32</DataType>
<Text>Kategorie-Nr</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>10, 10</Location>
<BaseTableName>Table</BaseTableName>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Kategorie-Nr</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>Kategorie-Nr</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseDataItem>
<DataType>System.String</DataType>
<Text>Kategoriename</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>189, 10</Location>
<BaseTableName>Table</BaseTableName>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Kategoriename</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>Kategoriename</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseDataItem>
<DataType>System.String</DataType>
<Text>Beschreibung</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>368, 10</Location>
<BaseTableName>Table</BaseTableName>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Beschreibung</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>Beschreibung</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseImageItem>
<ImageSource>Database</ImageSource>
<Location>547, 10</Location>
<Name>Abbildung</Name>
<BaseTableName>Table</BaseTableName>
<Size>100, 20</Size>
<ScaleImageToSize>False</ScaleImageToSize>
<BackColor>White</BackColor>
<ColumnName>Abbildung</ColumnName>
</BaseImageItem>
</Items>
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<BackColor>White</BackColor>
<DrawBorder>False</DrawBorder>
<ForeColor>Black</ForeColor>
</BaseRowItem>
</Items>
<Location>50, 200</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportPageFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>=Globals!PageNumber</Text>
<Location>622, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>PageNumber1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 275</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>Gainsboro</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>'This Report contains : ' + count() + ' DataRows'</Text>
<Location>5, 4</Location>
<ContentAlignment>MiddleCenter</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>AbstractItem</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>620, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 350</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
</SectionCollection>
</ReportModel>

332
samples/SharpDevelopReports/SampleReports/PullModel/Parameter_Aggregate.srd

@ -0,0 +1,332 @@ @@ -0,0 +1,332 @@
<?xml version="1.0" encoding="utf-8"?>
<ReportModel>
<ReportSettings>
<ReportSettings>
<GridSize>8, 8</GridSize>
<PageSize>827, 1169</PageSize>
<CommandText>SELECT * FROM Kategorien</CommandText>
<Landscape>False</Landscape>
<GroupColumnsCollection />
<RightMargin>50</RightMargin>
<NoDataMessage>No Data for this Report</NoDataMessage>
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont>
<ReportType>DataReport</ReportType>
<UseStandardPrinter>True</UseStandardPrinter>
<CommandType>Text</CommandType>
<GraphicsUnit>Millimeter</GraphicsUnit>
<TopMargin>50</TopMargin>
<ConnectionString>Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SharpReport_TestReports\TestReports\Nordwind.mdb;Persist Security Info=False</ConnectionString>
<Padding>5, 5, 5, 5</Padding>
<LeftMargin>50</LeftMargin>
<SortColumnCollection />
<DataModel>PullData</DataModel>
<BottomMargin>50</BottomMargin>
<AvailableFieldsCollection>
<AbstractColumn>
<ColumnName>Kategorie-Nr</ColumnName>
<DataTypeName>System.Int32</DataTypeName>
</AbstractColumn>
<AbstractColumn>
<ColumnName>Kategoriename</ColumnName>
<DataTypeName>System.String</DataTypeName>
</AbstractColumn>
<AbstractColumn>
<ColumnName>Beschreibung</ColumnName>
<DataTypeName>System.String</DataTypeName>
</AbstractColumn>
<AbstractColumn>
<ColumnName>Abbildung</ColumnName>
<DataTypeName>System.Byte[]</DataTypeName>
</AbstractColumn>
</AvailableFieldsCollection>
<ReportName>Report1</ReportName>
<ParameterCollection>
<BasicParameter>
<ParameterName>p1</ParameterName>
<ParameterValue>aaaaa</ParameterValue>
</BasicParameter>
</ParameterCollection>
</ReportSettings>
</ReportSettings>
<SectionCollection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>='Report with Parameter : ' + p1</Text>
<Location>235, 19</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Report1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>249, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 50</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportPageHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseRowItem>
<AlternateBackColor />
<FrameColor>WindowFrame</FrameColor>
<Name>AbstractItem</Name>
<Location>5, 5</Location>
<Visible>True</Visible>
<Size>717, 50</Size>
<Padding>0, 0, 0, 0</Padding>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Kategorie-Nr</Text>
<Location>5, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Kategorie-Nr1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Kategoriename</Text>
<Location>184, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Kategoriename2</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Beschreibung</Text>
<Location>363, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Beschreibung3</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Abbildung</Text>
<Location>542, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Abbildung4</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<BackColor>White</BackColor>
<DrawBorder>False</DrawBorder>
<ForeColor>Black</ForeColor>
</BaseRowItem>
</Items>
<Location>50, 125</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportDetail</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseRowItem>
<AlternateBackColor />
<FrameColor>WindowFrame</FrameColor>
<Name>AbstractItem</Name>
<Location>5, 5</Location>
<Visible>True</Visible>
<Size>717, 50</Size>
<Padding>0, 0, 0, 0</Padding>
<Items>
<BaseDataItem>
<DataType>System.Int32</DataType>
<Text>Kategorie-Nr</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>10, 10</Location>
<BaseTableName>Table</BaseTableName>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Kategorie-Nr</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>Kategorie-Nr</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseDataItem>
<DataType>System.String</DataType>
<Text>Kategoriename</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>189, 10</Location>
<BaseTableName>Table</BaseTableName>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Kategoriename</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>Kategoriename</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseDataItem>
<DataType>System.String</DataType>
<Text>Beschreibung</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>368, 10</Location>
<BaseTableName>Table</BaseTableName>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Beschreibung</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>Silver</BackColor>
<FormatString />
<Name>Beschreibung</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseImageItem>
<ImageSource>Database</ImageSource>
<Location>547, 10</Location>
<Name>Abbildung</Name>
<BaseTableName>Table</BaseTableName>
<Size>100, 20</Size>
<ScaleImageToSize>False</ScaleImageToSize>
<BackColor>White</BackColor>
<ColumnName>Abbildung</ColumnName>
</BaseImageItem>
</Items>
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<BackColor>White</BackColor>
<DrawBorder>False</DrawBorder>
<ForeColor>Black</ForeColor>
</BaseRowItem>
</Items>
<Location>50, 200</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportPageFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>=Globals!PageNumber</Text>
<Location>622, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>PageNumber1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 275</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>Gainsboro</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>='This Report contains : ' + count() + ' DataRows'</Text>
<Location>15, 3</Location>
<ContentAlignment>MiddleCenter</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>AbstractItem</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>620, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 350</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
</SectionCollection>
</ReportModel>

20
samples/SharpDevelopReports/Web/BasicReport/Default.aspx

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Basic Report</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Please click the "Create Report" Button to create the report.<br />
<br />
Requirements: SQL Server 2005 or SQL Server 2005 Express Edition with instance (local)\SQLEXPRESS<br />
<a href="http://www.microsoft.com/downloads/details.aspx?familyid=06616212-0356-46a0-8da2-eebc53a68034&displaylang=en" target="_blank">Northwind Sample Database</a> installed.<br />
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Create Report" /></div>
</form>
</body>
</html>

38
samples/SharpDevelopReports/Web/BasicReport/Default.aspx.cs

@ -0,0 +1,38 @@ @@ -0,0 +1,38 @@
using System;
using System.Web.UI;
// usings for SharpDevelop Reports for .NET
using ICSharpCode.Reports.Core;
using ICSharpCode.Reports.Core.Exporter;
using ICSharpCode.Reports.Core.Exporter.ExportRenderer;
public partial class _Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
// instance reporting engine
// assign parameters
ReportEngine engine = new ReportEngine();
string reportPath = Server.MapPath("SalesByYear.srd");
PageBuilder pageBuilder = engine.CreatePageBuilder(reportPath);
pageBuilder.BuildExportList();
string outputPath = Server.MapPath("SalesByYear.Pdf");
// render report
PdfRenderer pdfRenderer =
PdfRenderer.CreateInstance(pageBuilder.Pages, outputPath, false);
pdfRenderer.Start();
pdfRenderer.RenderOutput();
pdfRenderer.End();
// send report to the client
Response.ContentType = "Application/pdf";
Response.WriteFile(outputPath);
Response.End();
}
}

247
samples/SharpDevelopReports/Web/BasicReport/SalesByYear.srd

@ -0,0 +1,247 @@ @@ -0,0 +1,247 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Report>
<section name="ICSharpCode.Reports.Core.ReportSettings">
<AvailableColumns>
<column>
<ColumnName value="CategoryName" />
<DataType value="" />
</column>
<column>
<ColumnName value="ProductName" />
<DataType value="" />
</column>
<column>
<ColumnName value="ProductSales" />
<DataType value="" />
</column>
</AvailableColumns>
<ReportType value="DataReport" />
<ConnectionString value="Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind;Data Source=(local)\SQLEXPRESS" />
<CommandText value="SELECT [Product Sales for 1997].CategoryName, [Product Sales for 1997].ProductName, [Product Sales for 1997].ProductSales FROM [Product Sales for 1997]" />
<CommandType value="Text" />
<DataModel value="PullData" />
<NoDataMessage value="No Data for this Report" />
<DefaultFont value="Microsoft Sans Serif, 10pt" />
<ReportName value="SalesByYear" />
<DefaultMargins value="50, 50, 50, 50" />
<GridSize value="{Width=8, Height=8}" />
<Padding value="{Left=5,Top=5,Right=5,Bottom=5}" />
</section>
<section name="ReportHeader">
<BackColor value="Color [Window]" />
<Size value="{Width=803, Height=40}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportHeader" />
<Location value="{X=0,Y=0}" />
<controls />
</section>
<section name="ReportPageHeader">
<BackColor value="Color [Window]" />
<Size value="{Width=803, Height=80}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportPageHeader" />
<Location value="{X=0,Y=0}" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportTextItem" basetype="ICSharpCode.Reports.Core.BaseTextItem">
<Location value="{X=50,Y=0}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="SalesByYear" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportTextItem1" />
<Size value="{Width=242, Height=26}" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportTextItem" basetype="ICSharpCode.Reports.Core.BaseTextItem">
<Location value="{X=55,Y=40}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="CategoryName" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportTextItem2" />
<Size value="{Width=237, Height=25}" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportTextItem" basetype="ICSharpCode.Reports.Core.BaseTextItem">
<Location value="{X=297,Y=40}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="ProductName" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportTextItem3" />
<Size value="{Width=237, Height=25}" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportTextItem" basetype="ICSharpCode.Reports.Core.BaseTextItem">
<Location value="{X=539,Y=40}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="ProductSales" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportTextItem4" />
<Size value="{Width=237, Height=25}" />
<BackColor value="Color [White]" />
</control>
</controls>
</section>
<section name="ReportDetail">
<BackColor value="Color [Window]" />
<Size value="{Width=803, Height=40}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportDetail" />
<Location value="{X=0,Y=0}" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportRowItem" basetype="ICSharpCode.Reports.Core.RowItem">
<Size value="{Width=727, Height=35}" />
<Location value="{X=55,Y=0}" />
<Font value="Microsoft Sans Serif, 10pt" />
<AlternateBackColor value="Color [Empty]" />
<ChangeBackColorEveryNRow value="0" />
<Padding value="{Left=5,Top=5,Right=5,Bottom=5}" />
<Items value="ICSharpCode.Reports.Core.ReportItemCollection" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="row1" />
<BackColor value="Color [White]" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportDataItem" basetype="ICSharpCode.Reports.Core.BaseDataItem">
<Size value="{Width=237, Height=25}" />
<Location value="{X=5,Y=5}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="CategoryName" />
<ColumnName value="CategoryName" />
<DataType value="System.String" />
<BaseTableName value="Table" />
<NullValue value="" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportDbTextItem1" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportDataItem" basetype="ICSharpCode.Reports.Core.BaseDataItem">
<Size value="{Width=237, Height=25}" />
<Location value="{X=247,Y=5}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="ProductName" />
<ColumnName value="ProductName" />
<DataType value="System.String" />
<BaseTableName value="Table" />
<NullValue value="" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportDbTextItem2" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportDataItem" basetype="ICSharpCode.Reports.Core.BaseDataItem">
<Size value="{Width=237, Height=25}" />
<Location value="{X=489,Y=5}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="ProductSales" />
<ColumnName value="ProductSales" />
<DataType value="System.Decimal" />
<BaseTableName value="Table" />
<NullValue value="" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportDbTextItem3" />
<BackColor value="Color [White]" />
</control>
</controls>
</control>
</controls>
</section>
<section name="ReportPageFooter">
<BackColor value="Color [Window]" />
<Size value="{Width=803, Height=40}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportPageFooter" />
<Location value="{X=0,Y=0}" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.Functions.PageNumber" basetype="ICSharpCode.Reports.Core.BasePageNumber">
<Size value="{Width=242, Height=25}" />
<Location value="{X=50,Y=0}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="Seiten Nummer" />
<LocalizedName value="SharpReport.Toolbar.Functions.PageNumber" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="pageNumber1" />
<BackColor value="Color [White]" />
</control>
</controls>
</section>
<section name="ReportFooter">
<BackColor value="Color [Window]" />
<Size value="{Width=803, Height=40}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportFooter" />
<Location value="{X=0,Y=0}" />
<controls />
</section>
</Report>

43
samples/SharpDevelopReports/Web/BasicReport/Web.Config

@ -0,0 +1,43 @@ @@ -0,0 +1,43 @@
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>

166
samples/SharpDevelopReports/Web/IListReport/ContributorList.srd

@ -0,0 +1,166 @@ @@ -0,0 +1,166 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Report>
<section name="ICSharpCode.Reports.Core.ReportSettings">
<ReportType value="DataReport" />
<CommandText value="" />
<CommandType value="0" />
<DataModel value="PushData" />
<NoDataMessage value="No Data for this Report" />
<DefaultFont value="Microsoft Sans Serif, 10pt" />
<ReportName value="SharpReport1" />
<DefaultMargins value="50, 50, 50, 50" />
<GridSize value="{Width=8, Height=8}" />
<Padding value="{Left=5,Top=5,Right=5,Bottom=5}" />
</section>
<section name="ReportHeader">
<BackColor value="Color [Window]" />
<Size value="{Width=704, Height=78}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportHeader" />
<Location value="{X=0,Y=0}" />
<controls />
</section>
<section name="ReportPageHeader">
<BackColor value="Color [Window]" />
<Size value="{Width=704, Height=63}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportPageHeader" />
<Location value="{X=0,Y=0}" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportTextItem" basetype="ICSharpCode.Reports.Core.BaseTextItem">
<Location value="{X=82,Y=10}" />
<Font value="Microsoft Sans Serif, 20pt, style=Bold" />
<Text value="Some Members of the SharpDevelop Team" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleCenter" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportTextItem1" />
<Size value="{Width=633, Height=39}" />
<BackColor value="Color [Silver]" />
</control>
</controls>
</section>
<section name="ReportDetail">
<BackColor value="Color [Window]" />
<Size value="{Width=704, Height=51}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportDetail" />
<Location value="{X=0,Y=0}" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportRowItem" basetype="ICSharpCode.Reports.Core.RowItem">
<Size value="{Width=650, Height=30}" />
<Location value="{X=77,Y=3}" />
<Font value="Microsoft Sans Serif, 10pt" />
<AlternateBackColor value="Color [Empty]" />
<ChangeBackColorEveryNRow value="0" />
<Padding value="{Left=0,Top=0,Right=0,Bottom=0}" />
<Items value="ICSharpCode.Reports.Core.ReportItemCollection" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="row1" />
<BackColor value="Color [White]" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportDataItem" basetype="ICSharpCode.Reports.Core.BaseDataItem">
<Size value="{Width=176, Height=22}" />
<Location value="{X=5,Y=5}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="First" />
<ColumnName value="First" />
<DataType value="System.String" />
<BaseTableName value="" />
<NullValue value="" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportDbTextItem1" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportDataItem" basetype="ICSharpCode.Reports.Core.BaseDataItem">
<Size value="{Width=180, Height=20}" />
<Location value="{X=190,Y=5}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="Last" />
<ColumnName value="Last" />
<DataType value="System.String" />
<BaseTableName value="" />
<NullValue value="" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportDbTextItem2" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportDataItem" basetype="ICSharpCode.Reports.Core.BaseDataItem">
<Size value="{Width=100, Height=20}" />
<Location value="{X=400,Y=5}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="Job" />
<ColumnName value="Job" />
<DataType value="System.String" />
<BaseTableName value="" />
<NullValue value="" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportDbTextItem3" />
<BackColor value="Color [White]" />
</control>
</controls>
</control>
</controls>
</section>
<section name="ReportPageFooter">
<BackColor value="Color [Window]" />
<Size value="{Width=704, Height=47}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportPageFooter" />
<Location value="{X=0,Y=0}" />
<controls />
</section>
<section name="ReportFooter">
<BackColor value="Color [Window]" />
<Size value="{Width=704, Height=55}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportFooter" />
<Location value="{X=0,Y=0}" />
<controls />
</section>
</Report>

17
samples/SharpDevelopReports/Web/IListReport/Default.aspx

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Basic Report</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Please click the "Create Report" Button to create the report.<br />
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Create Report" /></div>
</form>
</body>
</html>

113
samples/SharpDevelopReports/Web/IListReport/Default.aspx.cs

@ -0,0 +1,113 @@ @@ -0,0 +1,113 @@
using System;
using System.Collections.Generic;
using System.Web.UI;
// usings for SharpDevelop Reports for .NET
using ICSharpCode.Reports.Core;
using ICSharpCode.Reports.Core.Exporter;
using ICSharpCode.Reports.Core.Exporter.ExportRenderer;
public partial class _Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
contributors = CreateTestList();
// instance reporting engine
// assign parameters
ReportEngine engine = new ReportEngine();
string reportPath = Server.MapPath("ContributorList.srd");
ReportModel reportModel = ReportEngine.LoadReportModel(reportPath);
PageBuilder pageBuilder = engine.CreatePageBuilder(reportModel, contributors);
pageBuilder.BuildExportList();
string outputPath = Server.MapPath("ContributorList.pdf");
// render report
PdfRenderer pdfRenderer =
PdfRenderer.CreateInstance(pageBuilder.Pages, outputPath, false);
pdfRenderer.Start();
pdfRenderer.RenderOutput();
pdfRenderer.End();
// send report to the client
Response.ContentType = "Application/pdf";
Response.WriteFile(outputPath);
Response.End();
}
private TestList contributors;
public TestList Contributors
{
get { return contributors; }
}
private TestList CreateTestList()
{
TestList list = new TestList();
list.Add(new LastFirst("Christoph", "Wille", "Senior Project Wrangler"));
list.Add(new LastFirst("Bernhard", "Spuida", "Senior Project Wrangler"));
list.Add(new LastFirst("Daniel", "Grunwald", "Technical Lead"));
list.Add(new LastFirst("Matt", "Ward", "NUnit"));
list.Add(new LastFirst("David", "Srbecky", "Debugger"));
list.Add(new LastFirst("Peter", "Forstmeier", "SharpReport"));
list.Add(new LastFirst("Markus", "Palme", "Prg."));
list.Add(new LastFirst("Georg", "Brandl", "Prg."));
list.Add(new LastFirst("Roman", "Taranchenko", ""));
list.Add(new LastFirst("Denis", "Erchoff", ""));
list.Add(new LastFirst("Ifko", "Kovacka", ""));
list.Add(new LastFirst("Nathan", "Allen", ""));
list.Add(new LastFirst("Dickon", "Field", "DBTools"));
list.Add(new LastFirst("Troy", "Simpson", "Prg."));
list.Add(new LastFirst("David", "Alpert", "Prg."));
return list;
}
public class LastFirst
{
private string last;
private string first;
private string job;
public LastFirst(string last, string first, string job)
{
this.last = last;
this.first = first;
this.job = job;
}
public string Last
{
get { return last; }
}
public string First
{
get { return first; }
}
public string Job
{
get { return job; }
}
}
public class TestList : List<LastFirst>
{
}
}

44
samples/SharpDevelopReports/Web/IListReport/Web.Config

@ -0,0 +1,44 @@ @@ -0,0 +1,44 @@
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>

3
samples/SharpDevelopReports/doc/ReadMe.txt

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
The Getting Started Guide is located here:
http://sharpdevelopreports.net/FeatureTour.ashx

31
samples/SharpDevelopReports/src/AssemblyInfo.cs

@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Information about this assembly is defined by the following
// attributes.
//
// change them to the information which is associated with the assembly
// you compile.
[assembly: AssemblyTitle("SharpReportSamples")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SharpReportSamples")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]
// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all values by your own or you can build default build and revision
// numbers with the '*' character (the default):
[assembly: AssemblyVersion("1.0.*")]

21
samples/SharpDevelopReports/src/ReportSamples.sln

@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
# SharpDevelop 3.2.0.5405
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpReportSamples", "SharpReportSamples\SharpReportSamples.csproj", "{BB5D34DA-3561-48B1-894A-46765C2A18C1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BB5D34DA-3561-48B1-894A-46765C2A18C1}.Debug|Any CPU.Build.0 = Debug|x86
{BB5D34DA-3561-48B1-894A-46765C2A18C1}.Debug|Any CPU.ActiveCfg = Debug|x86
{BB5D34DA-3561-48B1-894A-46765C2A18C1}.Release|Any CPU.Build.0 = Release|x86
{BB5D34DA-3561-48B1-894A-46765C2A18C1}.Release|Any CPU.ActiveCfg = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

88
samples/SharpDevelopReports/src/SharpReportSamples/ContributorsList.cs

@ -0,0 +1,88 @@ @@ -0,0 +1,88 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: Peter Forstmeier
* Datum: 07.01.2010
* Zeit: 19:46
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections.Generic;
using ICSharpCode.Reports.Core;
namespace SharpReportSamples
{
/// <summary>
/// Description of ContributorsList.
/// </summary>
public class ContributorsReportData
{
/*
This list is by no means exhaustive:
Siegfried Pammer
*/
public static ContributorCollection CreateContributorsList () {
ContributorCollection list = new ContributorCollection();
list.Add(new Contributor("Christoph","Wille","Senior Project Wrangler"));
list.Add(new Contributor("Bernhard","Spuida","Senior Project Wrangler"));
list.Add(new Contributor("Daniel","Grunwald","Technical Lead"));
list.Add(new Contributor("Matt","Ward","NUnit"));
list.Add(new Contributor("David","Srbecky","Debugger"));
list.Add(new Contributor("Peter","Forstmeier","SharpDevelop.Reports"));
list.Add(new Contributor("Markus","Palme","Prg."));
list.Add(new Contributor("Itai","Bar-Haim","Prg."));
list.Add(new Contributor("Russel","Wilkins","Prg."));
list.Add(new Contributor("Justin","Dearing","Prg."));
list.Add(new Contributor("Christian","Hornung","Prg."));
list.Add(new Contributor("Siegfried","Pammer","Prg."));
list.Add(new Contributor("Georg","Brandl","Prg."));
list.Add(new Contributor("Roman","Taranchenko",""));
list.Add(new Contributor("Denis","Erchoff",""));
list.Add(new Contributor("Ifko","Kovacka",""));
list.Add(new Contributor("Nathan","Allen",""));
list.Add(new Contributor("Troy","Simpson","Prg."));
list.Add(new Contributor("David","Alpert","Prg."));
return list;
}
}
public class Contributor {
string last;
string first;
string job;
public Contributor(string last, string first,string job)
{
this.last = last;
this.first = first;
this.job = job;
}
public string Last {
get {
return last;
}
}
public string First {
get {
return first;
}
}
public string Job {
get {
return job;
}
}
}
public class ContributorCollection: List<Contributor>{
}
}

153
samples/SharpDevelopReports/src/SharpReportSamples/MainForm.Designer.cs generated

@ -0,0 +1,153 @@ @@ -0,0 +1,153 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: Peter Forstmeier
* Datum: 03.01.2010
* Zeit: 17:43
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
namespace SharpReportSamples
{
partial class MainForm
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("FormSheet");
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("PullModel");
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("PushModel-IList");
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("Provider Independent");
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("Sample Reports", new System.Windows.Forms.TreeNode[] {
treeNode1,
treeNode2,
treeNode3,
treeNode4});
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.treeView1 = new System.Windows.Forms.TreeView();
this.label1 = new System.Windows.Forms.Label();
this.previewControl1 = new ICSharpCode.Reports.Core.ReportViewer.PreviewControl();
this.menuStrip2 = new System.Windows.Forms.MenuStrip();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.SuspendLayout();
//
// splitContainer1
//
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 24);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.treeView1);
this.splitContainer1.Panel1.Padding = new System.Windows.Forms.Padding(10);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.label1);
this.splitContainer1.Panel2.Controls.Add(this.previewControl1);
this.splitContainer1.Panel2.Padding = new System.Windows.Forms.Padding(10, 10, 10, 5);
this.splitContainer1.Size = new System.Drawing.Size(841, 464);
this.splitContainer1.SplitterDistance = 168;
this.splitContainer1.TabIndex = 0;
//
// treeView1
//
this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.treeView1.Location = new System.Drawing.Point(10, 10);
this.treeView1.Margin = new System.Windows.Forms.Padding(5);
this.treeView1.Name = "treeView1";
treeNode1.Name = "FormSheetItem";
treeNode1.Text = "FormSheet";
treeNode2.Name = "PullModelItem";
treeNode2.Text = "PullModel";
treeNode3.Name = "iListNode";
treeNode3.Text = "PushModel-IList";
treeNode4.Name = "Knoten0";
treeNode4.Text = "Provider Independent";
treeNode5.Name = "Knoten0";
treeNode5.Text = "Sample Reports";
this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
treeNode5});
this.treeView1.Size = new System.Drawing.Size(148, 444);
this.treeView1.TabIndex = 0;
this.treeView1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.TreeView1MouseDoubleClick);
//
// label1
//
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label1.Location = new System.Drawing.Point(10, 436);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(649, 23);
this.label1.TabIndex = 3;
this.label1.Text = "label1";
//
// previewControl1
//
this.previewControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.previewControl1.BackColor = System.Drawing.SystemColors.GradientActiveCaption;
this.previewControl1.Location = new System.Drawing.Point(10, 10);
this.previewControl1.Margin = new System.Windows.Forms.Padding(3, 3, 30, 3);
this.previewControl1.Messages = null;
this.previewControl1.Name = "previewControl1";
this.previewControl1.Padding = new System.Windows.Forms.Padding(5);
this.previewControl1.Size = new System.Drawing.Size(649, 414);
this.previewControl1.TabIndex = 2;
//
// menuStrip2
//
this.menuStrip2.Location = new System.Drawing.Point(0, 0);
this.menuStrip2.Name = "menuStrip2";
this.menuStrip2.Size = new System.Drawing.Size(841, 24);
this.menuStrip2.TabIndex = 1;
this.menuStrip2.Text = "menuStrip2";
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(841, 488);
this.Controls.Add(this.splitContainer1);
this.Controls.Add(this.menuStrip2);
this.Name = "MainForm";
this.Text = "SharpReportSamples";
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
this.splitContainer1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
private System.Windows.Forms.Label label1;
private System.Windows.Forms.MenuStrip menuStrip2;
private ICSharpCode.Reports.Core.ReportViewer.PreviewControl previewControl1;
private System.Windows.Forms.TreeView treeView1;
private System.Windows.Forms.SplitContainer splitContainer1;
}
}

252
samples/SharpDevelopReports/src/SharpReportSamples/MainForm.cs

@ -0,0 +1,252 @@ @@ -0,0 +1,252 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: Peter Forstmeier
* Datum: 03.01.2010
* Zeit: 17:43
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using ICSharpCode.Reports.Core;
namespace SharpReportSamples
{
/// <summary>
/// Description of MainForm.
/// </summary>
public partial class MainForm : Form
{
private TreeNode formNode;
private TreeNode pullNode;
private TreeNode iListNode;
private TreeNode providerIndependent;
public MainForm()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
InitTree();
UpdateStatusbar (Application.StartupPath);
this.previewControl1.Messages = new ReportViewerMessagesProvider();
/*
EventLog ev = new EventLog();
ev.Log = "System";
ev.MachineName = "."; // Lokale Maschine
ArrayList ar = new ArrayList();
ar.AddRange(ev.Entries);
*/
}
private void InitTree ()
{
string formSheetDir = @"\FormSheet\JCA.srd";
string startupPath = Application.StartupPath;
string samplesDir = @"SharpDevelopReports\";
int y = startupPath.IndexOf(samplesDir);
string startPath = startupPath.Substring(0,y + samplesDir.Length) + @"SampleReports\";
//D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports
string pathToFormSheet = startPath + formSheetDir;
this.formNode = this.treeView1.Nodes[0].Nodes[0];
this.pullNode = this.treeView1.Nodes[0].Nodes[1];
this.iListNode = this.treeView1.Nodes[0].Nodes[2];
this.providerIndependent = this.treeView1.Nodes[0].Nodes[3];
AddNodesToTree (this.formNode,startPath + @"FormSheet\" );
AddNodesToTree (this.pullNode,startPath + @"PullModel\" );
AddNodesToTree (this.iListNode,startPath + @"IList\" );
AddNodesToTree (this.providerIndependent,startPath + @"ProviderIndependent\" );
}
private void AddNodesToTree (TreeNode parent,string path)
{
if (!Directory.Exists(path)) {
return;
}
string[] filePaths = Directory.GetFiles(path, "*.srd");
TreeNode reportNode = null;
foreach (string fullPath in filePaths){
string fileName = Path.GetFileNameWithoutExtension(fullPath);
reportNode = new TreeNode(fileName);
reportNode.Tag = fullPath;
parent.Nodes.Add(reportNode);
}
}
private void UpdateStatusbar (string text)
{
this.label1.Text = text;
}
private void RunStandardReport(string reportName)
{
string s = Path.GetFileNameWithoutExtension(reportName);
if (s == "ContributorsList" ) {
this.RunContributors(reportName);
} else if (s == "NoConnectionReport") {
this.RunProviderIndependent(reportName);
}
else {
ReportParameters parameters = ReportEngine.LoadParameters(reportName);
if ((parameters != null)&& (parameters.SqlParameters.Count > 0)){
parameters.SqlParameters[0].ParameterValue = "I'm the Parameter";
}
this.previewControl1.SetupAsynchron(reportName,parameters);
}
}
#region ProviderIndependent
private void RunProviderIndependent (string reportName)
{
string conOleDbString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SharpReport_TestReports\TestReports\Nordwind.mdb;Persist Security Info=False";
ReportParameters parameters = ReportEngine.LoadParameters(reportName);
ConnectionObject con = ConnectionObject.CreateInstance(conOleDbString,
System.Data.Common.DbProviderFactories.GetFactory("System.Data.OleDb") );
parameters.ConnectionObject = con;
parameters.SqlParameters[0].ParameterValue = "Provider Independent";
this.previewControl1.SetupAsynchron(reportName,parameters);
}
#endregion
#region Contributors
//
/// <summary>
/// Some values in the Datastructure are not set (means they are null), you can handle this values by setting
/// the NullValue in the properties of this Item, or, you can use the SectionRenderingEvent as shown
/// below
/// </summary>
/// <param name="fileName"></param>
private void RunContributors (string fileName)
{
ReportModel model = ReportEngine.LoadReportModel(fileName);
// Both variable declarations are valid
ContributorCollection list = ContributorsReportData.CreateContributorsList();
IDataManager dm = DataManager.CreateInstance(list,model.ReportSettings);
// List<Contributor> list = ContributorsReportData.CreateContributorsList();
// IDataManager dm = DataManager.CreateInstance(list,model.ReportSettings);
// this.previewControl1.SectionRendering += new EventHandler<SectionRenderEventArgs>(PushPrinting);
this.previewControl1.SetupAsynchron(model,dm);
}
//Try this to react to SectionrenderEvent,
/*
private void PushPrinting (object sender,SectionRenderEventArgs e)
{
switch (e.CurrentSection) {
case GlobalEnums.ReportSection.ReportHeader:
break;
case GlobalEnums.ReportSection.ReportPageHeader:
break;
case GlobalEnums.ReportSection.ReportDetail:
BaseRowItem ri = e.Section.Items[0] as BaseRowItem;
if (ri != null) {
BaseDataItem r = (BaseDataItem)ri.Items.Find("unbound3");
if (r != null) {
r.DBValue = "xxxxxxx";
}
}
break;
case GlobalEnums.ReportSection.ReportPageFooter:
break;
case GlobalEnums.ReportSection.ReportFooter:
break;
default:
break;
}
}
*/
#endregion
void TreeView1MouseDoubleClick(object sender, MouseEventArgs e)
{
TreeNode selectedNode = this.treeView1.SelectedNode;
if (selectedNode != null) {
RunStandardReport(selectedNode.Tag.ToString());
}
}
/*
void Button2Click(object sender, EventArgs e)
{
// get Filename to save *.pdf
string saveTo = this.SelectFilename();
// Create connectionobject
parameters = ReportEngine.LoadParameters(reportName);
ConnectionObject con = ConnectionObject.CreateInstance(this.conOleDbString,
System.Data.Common.DbProviderFactories.GetFactory("System.Data.OleDb") );
parameters.ConnectionObject = con;
// create a Pagebuilder
pageBuilder = ReportEngine.CreatePageBuilder(reportName,parameters);
pageBuilder.BuildExportList();
using (PdfRenderer pdfRenderer = PdfRenderer.CreateInstance(pageBuilder,saveTo,true)){
pdfRenderer.Start();
pdfRenderer.RenderOutput();
pdfRenderer.End();
}
}
private string SelectFilename()
{
using (SaveFileDialog saveDialog = new SaveFileDialog()){
saveDialog.FileName = "_pdf";
saveDialog.DefaultExt = "PDF";
saveDialog.ValidateNames = true;
if(saveDialog.ShowDialog() == DialogResult.OK){
return saveDialog.FileName;
} else {
return String.Empty;
}
}
}
*/
}
}

126
samples/SharpDevelopReports/src/SharpReportSamples/MainForm.resx

@ -0,0 +1,126 @@ @@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="menuStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>237, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>25</value>
</metadata>
</root>

31
samples/SharpDevelopReports/src/SharpReportSamples/Program.cs

@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: Peter Forstmeier
* Datum: 03.01.2010
* Zeit: 17:43
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Windows.Forms;
namespace SharpReportSamples
{
/// <summary>
/// Class with program entry point.
/// </summary>
internal sealed class Program
{
/// <summary>
/// Program entry point.
/// </summary>
[STAThread]
private static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
}
}

31
samples/SharpDevelopReports/src/SharpReportSamples/Properties/AssemblyInfo.cs

@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
#region Using directives
using System;
using System.Reflection;
using System.Runtime.InteropServices;
#endregion
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SharpReportSamples")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SharpReportSamples")]
[assembly: AssemblyCopyright("Copyright 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]
// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]

77
samples/SharpDevelopReports/src/SharpReportSamples/ReportViewerMessagesProvider.cs

@ -0,0 +1,77 @@ @@ -0,0 +1,77 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: Peter Forstmeier
* Datum: 14.01.2010
* Zeit: 20:08
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
namespace SharpReportSamples
{
/// <summary>
/// Description of ReportViewerMessagesProvider.
/// </summary>
public class ReportViewerMessagesProvider:ICSharpCode.Reports.Core.ReportViewer.IReportViewerMessages
{
public ReportViewerMessagesProvider(){
}
public string BackButtonText {
get {
return "Back";
}
}
public string NextButtonMessage {
get {
return "Forward";
}
}
public string PrintButtonMessage {
get {
return "Printer";
}
}
public string CancelButtonMessage {
get {
return "Stop";
}
}
public string ZoomMessage {
get {
return "Zoom";
}
}
public string PagesCreatedMessage {
get{
return "Pages created";
}
}
public string PdfFileMessage {
get{
return "Create PdfFile";
}
}
public string FirstPageMessage {
get {
return "FirstPage";
}
}
public string LastPageMessage {
get {
return "LastPage";
}
}
}
}

77
samples/SharpDevelopReports/src/SharpReportSamples/SharpReportSamples.csproj

@ -0,0 +1,77 @@ @@ -0,0 +1,77 @@
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{BB5D34DA-3561-48B1-894A-46765C2A18C1}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<OutputType>Exe</OutputType>
<RootNamespace>SharpReportSamples</RootNamespace>
<AssemblyName>SharpReportSamples</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<AppDesignerFolder>Properties</AppDesignerFolder>
<SourceAnalysisOverrideSettingsFile>C:\Users\Peter Forstmeier\AppData\Roaming\ICSharpCode/SharpDevelop3.0\Settings.SourceAnalysis</SourceAnalysisOverrideSettingsFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'x86' ">
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>bin\Debug\</OutputPath>
<DebugSymbols>True</DebugSymbols>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>bin\Release\</OutputPath>
<DebugSymbols>False</DebugSymbols>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
<ItemGroup>
<Reference Include="ICSharpCode.Reports.Core">
<HintPath>..\..\..\..\AddIns\AddIns\Misc\SharpDevelopReports\ICSharpCode.Reports.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="ContributorsList.cs" />
<Compile Include="MainForm.cs" />
<Compile Include="MainForm.Designer.cs">
<DependentUpon>MainForm.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ReportViewerMessagesProvider.cs" />
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="..\..\SampleReports\EventLogger\Error.png">
<Link>Resources\Error.png</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\..\SampleReports\EventLogger\Info.png">
<Link>Resources\Info.png</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\..\SampleReports\EventLogger\Warning.png">
<Link>Resources\Warning.png</Link>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Folder Include="Resources" />
</ItemGroup>
</Project>

BIN
src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.CodeDom.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.Compiler.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.Extensions.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.Interpreter.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.Parser.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.PatternMatching.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.Useful.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Lang.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Boo/RequiredLibraries/Boo.Microsoft.Build.Tasks.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Boo/RequiredLibraries/booc.exe

Binary file not shown.

7
src/AddIns/BackendBindings/Ruby/RubyBinding/Project/Src/RubyAstWalker.cs

@ -45,7 +45,7 @@ namespace ICSharpCode.RubyBinding @@ -45,7 +45,7 @@ namespace ICSharpCode.RubyBinding
protected override void Walk(MethodCall node)
{
if (node.MethodName == "require") {
if (!node.Arguments.IsEmpty) {
if (HasArguments(node)) {
string requireString = GetRequireString(node.Arguments.Expressions);
if (requireString != null) {
AddUsing(requireString);
@ -55,6 +55,11 @@ namespace ICSharpCode.RubyBinding @@ -55,6 +55,11 @@ namespace ICSharpCode.RubyBinding
base.Walk(node);
}
bool HasArguments(MethodCall node)
{
return (node.Arguments != null) && (!node.Arguments.IsEmpty);
}
string GetRequireString(Expression[] expressions)
{
foreach (Expression expression in expressions) {

39
src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Parsing/ParseRequireFollowedByCommentTestFixture.cs

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Collections.Generic;
using ICSharpCode.RubyBinding;
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor;
using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.TextEditor.Document;
using NUnit.Framework;
using RubyBinding.Tests;
namespace RubyBinding.Tests.Parsing
{
/// <summary>
/// A string of the form "require #" would cause a null reference exception since the ruby ast walker tries
/// to use the MethodCall's Argument which is null.
/// </summary>
[TestFixture]
public class ParseRequireFollowedByCommentTestFixture
{
[Test]
public void ParseDoesNotThrowNullReferenceException()
{
string ruby = "require #";
DefaultProjectContent projectContent = new DefaultProjectContent();
RubyParser parser = new RubyParser();
ICompilationUnit unit = null;
Assert.DoesNotThrow(delegate { unit = parser.Parse(projectContent, @"C:\test.rb", ruby); });
Assert.IsNotNull(unit);
}
}
}

1
src/AddIns/BackendBindings/Ruby/RubyBinding/Test/RubyBinding.Tests.csproj

@ -323,6 +323,7 @@ @@ -323,6 +323,7 @@
<Compile Include="Parsing\ParseClassWithCtorTestFixture.cs" />
<Compile Include="Parsing\ParseInvalidRubyCodeTestFixture.cs" />
<Compile Include="Parsing\ParseMethodsWithNoClassTestFixture.cs" />
<Compile Include="Parsing\ParseRequireFollowedByCommentTestFixture.cs" />
<Compile Include="Parsing\ParseRequireTestFixture.cs" />
<Compile Include="Parsing\ParseSingleClassTestFixture.cs" />
<Compile Include="RubyAddInOptionsTestFixture.cs" />

13
src/AddIns/BackendBindings/VBNetBinding/Project/Src/FormattingStrategy/VBNetFormattingStrategy.cs

@ -576,15 +576,6 @@ namespace VBNetBinding @@ -576,15 +576,6 @@ namespace VBNetBinding
if (currentToken.Kind == Tokens.EOL)
isDelegate = isDeclare = isMustOverride = false;
if (IsSpecialCase(currentToken, prevToken)) {
ApplyToRange(editor, indentation, oldLine, currentToken.Location.Line, begin, end);
Unindent(indentation);
ApplyToRange(editor, indentation, currentToken.Location.Line, currentToken.Location.Line, begin, end);
Indent(editor, indentation);
oldLine = currentToken.Location.Line + 1;
}
if (IsBlockEnd(currentToken, prevToken)) {
ApplyToRange(editor, indentation, oldLine, currentToken.Location.Line, begin, end);
@ -720,7 +711,7 @@ namespace VBNetBinding @@ -720,7 +711,7 @@ namespace VBNetBinding
return true;
}
return false;
return IsSpecialCase(current, prev);
}
bool IsBlockEnd(Token current, Token prev)
@ -742,7 +733,7 @@ namespace VBNetBinding @@ -742,7 +733,7 @@ namespace VBNetBinding
return false;
}
return false;
return IsSpecialCase(current, prev);
}
bool IsSpecialCase(Token current, Token prev)

175
src/AddIns/BackendBindings/VBNetBinding/Test/FormattingStrategy/IndentationTests.cs

@ -134,6 +134,181 @@ End Class"; @@ -134,6 +134,181 @@ End Class";
RunFormatTest(code, expected);
}
[Test]
[Ignore("Test started failing after merge to SD 4.0")]
public void ElseIfMultiLineContinuationTest()
{
string expected = @"Public Class Test
Private Sub Tester()
If True Then
'CODE HERE
Else If False And _
False Then
'CODE HERE1
End If
End Sub
End Class";
string code = @"Public Class Test
Private Sub Tester()
If True Then
'CODE HERE
Else If False And _
False Then
'CODE HERE1
End If
End Sub
End Class";
RunFormatTest(code, expected);
}
[Test]
public void SelectCaseTest()
{
string expected = @"Public Class Test
Private Sub Tester()
Select Case a
Case 0
DoSomething()
' TEST CASE 0
Case 1
'TEST CASE 1
Case 2
'TEST CASE 2
Case Else
DoElse()
End Select
End Sub
End Class";
string code = @"Public Class Test
Private Sub Tester()
Select Case a
Case 0
DoSomething()
' TEST CASE 0
Case 1
'TEST CASE 1
Case 2
'TEST CASE 2
Case Else
DoElse()
End Select
End Sub
End Class";
RunFormatTest(code, expected);
}
[Test]
public void SelectCaseTest2()
{
string expected = @"Public Class Test
Private Sub Tester()
Select Case a
Case 0
DoSomething()
Case 1
Case 2
Case Else
DoElse()
End Select
End Sub
End Class";
string code = @"Public Class Test
Private Sub Tester()
Select Case a
Case 0
DoSomething()
Case 1
Case 2
Case Else
DoElse()
End Select
End Sub
End Class";
RunFormatTest(code, expected);
}
[Test]
public void WithTest()
{
string expected = @"Public Class Test
Private Sub Tester()
With a
If True Then
' Test
ElseIf False Then
' Test3
Else
' Test2
End If
End With
End Sub
End Class";
string code = @"Public Class Test
Private Sub Tester()
With a
If True Then
' Test
ElseIf False Then
' Test3
Else
' Test2
End If
End With
End Sub
End Class";
RunFormatTest(code, expected);
}
[Test]
public void WithTest2()
{
string expected = @"Public Class Test
Private Sub Tester()
With a
If True Then
' Test
ElseIf False Then
' Test3
Else
Try
DoSomething()
Catch ex As Exception
'Handle
End Try
End If
End With
End Sub
End Class";
string code = @"Public Class Test
Private Sub Tester()
With a
If True Then
' Test
ElseIf False Then
' Test3
Else
Try
DoSomething()
Catch ex As Exception
'Handle
End Try
End If
End With
End Sub
End Class";
RunFormatTest(code, expected);
}
void RunFormatTest(string code, string expectedCode)
{
AvalonEditTextEditorAdapter editor = new AvalonEditTextEditorAdapter(new TextEditor());

10
src/AddIns/Misc/UnitTesting/Src/TestClass.cs

@ -329,8 +329,14 @@ namespace ICSharpCode.UnitTesting @@ -329,8 +329,14 @@ namespace ICSharpCode.UnitTesting
if (TestMethod.IsTestMethod(method)) {
BaseTestMethod baseTestMethod = new BaseTestMethod(declaringType, method);
TestMethod testMethod = new TestMethod(c.BaseClass.Name, baseTestMethod);
if (!testMethods.Contains(testMethod.Name)) {
testMethods.Add(testMethod);
if (method.IsVirtual) {
if (!testMethods.Contains(method.Name)) {
testMethods.Add(testMethod);
}
} else {
if (!testMethods.Contains(testMethod.Name)) {
testMethods.Add(testMethod);
}
}
}
}

84
src/AddIns/Misc/UnitTesting/Test/Project/OverriddenBaseTestMethodTestFixture.cs

@ -0,0 +1,84 @@ @@ -0,0 +1,84 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
// <version>$Revision$</version>
// </file>
using System;
using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.UnitTesting;
using NUnit.Framework;
using UnitTesting.Tests.Utils;
namespace UnitTesting.Tests.Project
{
[TestFixture]
public class OverriddenBaseTestMethodTestFixture
{
TestClass testClass;
MockClass c;
[SetUp]
public void SetUp()
{
MockProjectContent projectContent = new MockProjectContent();
projectContent.Language = LanguageProperties.None;
// Create the base test class.
MockClass baseClass = new MockClass("ICSharpCode.Tests.BaseClass");
baseClass.ProjectContent = projectContent;
// Add a virtual method to base class.
MockMethod baseMethod = new MockMethod("VirtualTestMethod");
baseMethod.Attributes.Add(new MockAttribute("Test"));
baseMethod.DeclaringType = baseClass;
baseMethod.IsVirtual = true;
baseClass.Methods.Add(baseMethod);
// Add a second method that is virtual but will not be overriden.
baseMethod = new MockMethod("VirtualNonOverriddenTestMethod");
baseMethod.Attributes.Add(new MockAttribute("Test"));
baseMethod.DeclaringType = baseClass;
baseMethod.IsVirtual = true;
baseClass.Methods.Add(baseMethod);
// Create the derived test class.
c = new MockClass("ICSharpCode.Tests.DerivedClass");
c.Attributes.Add(new MockAttribute("TestFixture"));
c.ProjectContent = projectContent;
projectContent.Classes.Add(c);
// Create a new test method that overrides one of the base class methods.
MockMethod method = new MockMethod("VirtualTestMethod");
method.Attributes.Add(new MockAttribute("Test"));
method.DeclaringType = c;
method.IsOverride = true;
c.Methods.Add(method);
// Set derived class's base class.
c.BaseClass = baseClass;
// Create TestClass.
testClass = new TestClass(c);
}
[Test]
public void NonOverriddenVirtualBaseMethodExists()
{
Assert.IsTrue(testClass.TestMethods.Contains("BaseClass.VirtualNonOverriddenTestMethod"));
}
[Test]
public void VirtualBaseMethodDoesNotExistSinceItIsOverriddenInDerivedClass()
{
Assert.IsFalse(testClass.TestMethods.Contains("BaseClass.VirtualTestMethod"));
}
[Test]
public void DerivedClassTestMethodExists()
{
Assert.IsTrue(testClass.TestMethods.Contains("VirtualTestMethod"));
}
}
}

1
src/AddIns/Misc/UnitTesting/Test/UnitTesting.Tests.csproj

@ -69,6 +69,7 @@ @@ -69,6 +69,7 @@
<Compile Include="Project\InnerClassTestFixture.cs" />
<Compile Include="Project\InnerClassTestFixtureAttributeRemovedTestFixture.cs" />
<Compile Include="Project\InnerClassTestFixtureBase.cs" />
<Compile Include="Project\OverriddenBaseTestMethodTestFixture.cs" />
<Compile Include="Project\RemovedClassesTestFixture.cs" />
<Compile Include="Project\TwoBaseClassesWithTestMethodsTestFixture.cs" />
<Compile Include="TestableConditionTests.cs" />

16
src/AddIns/Misc/UnitTesting/Test/Utils/MockMethod.cs

@ -21,6 +21,8 @@ namespace UnitTesting.Tests.Utils @@ -21,6 +21,8 @@ namespace UnitTesting.Tests.Utils
string name = String.Empty;
IList<IParameter> parameters = new List<IParameter>();
IReturnType returnType;
bool isVirtual;
bool isOverride;
public MockMethod() : this(String.Empty)
{
@ -196,10 +198,9 @@ namespace UnitTesting.Tests.Utils @@ -196,10 +198,9 @@ namespace UnitTesting.Tests.Utils
}
}
public bool IsVirtual {
get {
throw new NotImplementedException();
}
public bool IsVirtual {
get { return isVirtual; }
set { isVirtual = value; }
}
public bool IsPublic {
@ -244,10 +245,9 @@ namespace UnitTesting.Tests.Utils @@ -244,10 +245,9 @@ namespace UnitTesting.Tests.Utils
}
}
public bool IsOverride {
get {
throw new NotImplementedException();
}
public bool IsOverride {
get { return isOverride; }
set { isOverride = value; }
}
public bool IsOverridable {

4
src/Libraries/ICSharpCode.TextEditor/Project/Resources/Boo.xshd

@ -104,8 +104,8 @@ @@ -104,8 +104,8 @@
<Key word="else"/>
<Key word="elif"/>
<Key word="if"/>
<Key word="given"/>
<Key word="when"/>
<Key word="match"/>
<Key word="case"/>
<Key word="unless"/>
<Key word="otherwise"/>
</KeyWords>

4
src/Libraries/NRefactory/Project/Src/Parser/VBNet/Parser.cs

@ -6313,7 +6313,9 @@ out block); @@ -6313,7 +6313,9 @@ out block);
}
if (la.kind == 98) {
lexer.NextToken();
EndOfStmt();
if (la.kind == 1 || la.kind == 11) {
EndOfStmt();
}
Block(
#line 2955 "VBNET.ATG"
out embeddedStatement);

2
src/Libraries/NRefactory/Project/Src/Parser/VBNet/VBNET.ATG

@ -2951,7 +2951,7 @@ EmbeddedStatement<out Statement statement> @@ -2951,7 +2951,7 @@ EmbeddedStatement<out Statement statement>
.)
}
[
"Else" EndOfStmt
"Else" [EndOfStmt]
Block<out embeddedStatement>
(.
ifStatement.FalseStatement.Add(embeddedStatement);

131
src/Libraries/NRefactory/Project/Src/PrettyPrinter/VBNet/VBNetOutputVisitor.cs

@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
// </file>
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
@ -293,6 +294,8 @@ namespace ICSharpCode.NRefactory.PrettyPrinter @@ -293,6 +294,8 @@ namespace ICSharpCode.NRefactory.PrettyPrinter
return Tokens.Interface;
case ClassType.Struct:
return Tokens.Structure;
case ClassType.Module:
return Tokens.Module;
default:
return Tokens.Class;
}
@ -459,18 +462,18 @@ namespace ICSharpCode.NRefactory.PrettyPrinter @@ -459,18 +462,18 @@ namespace ICSharpCode.NRefactory.PrettyPrinter
switch (optionDeclaration.OptionType) {
case OptionType.Strict:
outputFormatter.PrintToken(Tokens.Strict);
if (!optionDeclaration.OptionValue) {
outputFormatter.Space();
outputFormatter.PrintToken(Tokens.Off);
}
outputFormatter.Space();
outputFormatter.PrintToken(optionDeclaration.OptionValue ? Tokens.On : Tokens.Off);
break;
case OptionType.Explicit:
outputFormatter.PrintToken(Tokens.Explicit);
outputFormatter.Space();
if (!optionDeclaration.OptionValue) {
outputFormatter.Space();
outputFormatter.PrintToken(Tokens.Off);
}
outputFormatter.PrintToken(optionDeclaration.OptionValue ? Tokens.On : Tokens.Off);
break;
case OptionType.Infer:
outputFormatter.PrintToken(Tokens.Infer);
outputFormatter.Space();
outputFormatter.PrintToken(optionDeclaration.OptionValue ? Tokens.On : Tokens.Off);
break;
case OptionType.CompareBinary:
outputFormatter.PrintToken(Tokens.Compare);
@ -658,11 +661,13 @@ namespace ICSharpCode.NRefactory.PrettyPrinter @@ -658,11 +661,13 @@ namespace ICSharpCode.NRefactory.PrettyPrinter
this.AppendCommaSeparatedList(eventDeclaration.Parameters);
outputFormatter.PrintToken(Tokens.CloseParenthesis);
}
outputFormatter.Space();
outputFormatter.PrintToken(Tokens.As);
outputFormatter.Space();
VisitReturnTypeAttributes(eventDeclaration.Attributes, data);
TrackedVisit(eventDeclaration.TypeReference, data);
if (!eventDeclaration.TypeReference.IsNull) {
outputFormatter.Space();
outputFormatter.PrintToken(Tokens.As);
outputFormatter.Space();
VisitReturnTypeAttributes(eventDeclaration.Attributes, data);
TrackedVisit(eventDeclaration.TypeReference, data);
}
PrintInterfaceImplementations(eventDeclaration.InterfaceImplementations);
@ -811,11 +816,19 @@ namespace ICSharpCode.NRefactory.PrettyPrinter @@ -811,11 +816,19 @@ namespace ICSharpCode.NRefactory.PrettyPrinter
printAttributeSectionInline = false;
OutputModifier(parameterDeclarationExpression.ParamModifier, parameterDeclarationExpression.StartLocation);
outputFormatter.PrintIdentifier(parameterDeclarationExpression.ParameterName);
outputFormatter.Space();
outputFormatter.PrintToken(Tokens.As);
outputFormatter.Space();
VisitReturnTypeAttributes(parameterDeclarationExpression.Attributes, data);
TrackedVisit(parameterDeclarationExpression.TypeReference, data);
if (!parameterDeclarationExpression.TypeReference.IsNull) {
outputFormatter.Space();
outputFormatter.PrintToken(Tokens.As);
outputFormatter.Space();
VisitReturnTypeAttributes(parameterDeclarationExpression.Attributes, data);
TrackedVisit(parameterDeclarationExpression.TypeReference, data);
}
if (!parameterDeclarationExpression.DefaultValue.IsNull) {
outputFormatter.Space();
outputFormatter.PrintToken(Tokens.Assign);
outputFormatter.Space();
TrackedVisit(parameterDeclarationExpression.DefaultValue, data);
}
return null;
}
@ -1737,10 +1750,12 @@ namespace ICSharpCode.NRefactory.PrettyPrinter @@ -1737,10 +1750,12 @@ namespace ICSharpCode.NRefactory.PrettyPrinter
// loop control variable
outputFormatter.PrintIdentifier(foreachStatement.VariableName);
outputFormatter.Space();
outputFormatter.PrintToken(Tokens.As);
outputFormatter.Space();
TrackedVisit(foreachStatement.TypeReference, data);
if (!foreachStatement.TypeReference.IsNull) {
outputFormatter.Space();
outputFormatter.PrintToken(Tokens.As);
outputFormatter.Space();
TrackedVisit(foreachStatement.TypeReference, data);
}
outputFormatter.Space();
outputFormatter.PrintToken(Tokens.In);
@ -2650,11 +2665,13 @@ namespace ICSharpCode.NRefactory.PrettyPrinter @@ -2650,11 +2665,13 @@ namespace ICSharpCode.NRefactory.PrettyPrinter
public override object TrackedVisitObjectCreateExpression(ObjectCreateExpression objectCreateExpression, object data)
{
outputFormatter.PrintToken(Tokens.New);
outputFormatter.Space();
TrackedVisit(objectCreateExpression.CreateType, data);
outputFormatter.PrintToken(Tokens.OpenParenthesis);
AppendCommaSeparatedList(objectCreateExpression.Parameters);
outputFormatter.PrintToken(Tokens.CloseParenthesis);
if (!objectCreateExpression.IsAnonymousType) {
outputFormatter.Space();
TrackedVisit(objectCreateExpression.CreateType, data);
outputFormatter.PrintToken(Tokens.OpenParenthesis);
AppendCommaSeparatedList(objectCreateExpression.Parameters);
outputFormatter.PrintToken(Tokens.CloseParenthesis);
}
CollectionInitializerExpression initializer = objectCreateExpression.ObjectInitializer;
if (!initializer.IsNull) {
outputFormatter.Space();
@ -2668,6 +2685,7 @@ namespace ICSharpCode.NRefactory.PrettyPrinter @@ -2668,6 +2685,7 @@ namespace ICSharpCode.NRefactory.PrettyPrinter
outputFormatter.PrintToken(Tokens.Comma);
outputFormatter.PrintLineContinuation();
outputFormatter.Indent();
//outputFormatter.PrintText("Key "); TODO "Key" cannot be represented in AST
NamedArgumentExpression nae = expr as NamedArgumentExpression;
if (nae != null) {
outputFormatter.PrintToken(Tokens.Dot);
@ -2676,6 +2694,8 @@ namespace ICSharpCode.NRefactory.PrettyPrinter @@ -2676,6 +2694,8 @@ namespace ICSharpCode.NRefactory.PrettyPrinter
outputFormatter.PrintToken(Tokens.Assign);
outputFormatter.Space();
TrackedVisit(nae.Expression, data);
} else {
TrackedVisit(expr, data);
}
}
outputFormatter.IndentationLevel--;
@ -2724,7 +2744,13 @@ namespace ICSharpCode.NRefactory.PrettyPrinter @@ -2724,7 +2744,13 @@ namespace ICSharpCode.NRefactory.PrettyPrinter
{
TrackedVisit(memberReferenceExpression.TargetObject, data);
outputFormatter.PrintToken(Tokens.Dot);
outputFormatter.PrintIdentifier(memberReferenceExpression.MemberName);
if (string.Equals(memberReferenceExpression.MemberName, "New", StringComparison.OrdinalIgnoreCase)
&& (memberReferenceExpression.TargetObject is BaseReferenceExpression || memberReferenceExpression.TargetObject is ThisReferenceExpression || memberReferenceExpression.TargetObject is ClassReferenceExpression))
{
outputFormatter.PrintToken(Tokens.New);
} else {
outputFormatter.PrintIdentifier(memberReferenceExpression.MemberName);
}
PrintTypeArguments(memberReferenceExpression.TypeArguments);
return null;
}
@ -2758,34 +2784,23 @@ namespace ICSharpCode.NRefactory.PrettyPrinter @@ -2758,34 +2784,23 @@ namespace ICSharpCode.NRefactory.PrettyPrinter
void OutputModifier(ParameterModifiers modifier, Location position)
{
switch (modifier) {
case ParameterModifiers.None:
case ParameterModifiers.In:
if (prettyPrintOptions.OutputByValModifier) {
outputFormatter.PrintToken(Tokens.ByVal);
outputFormatter.Space();
}
break;
case ParameterModifiers.Out:
//Error("Out parameter converted to ByRef", position);
outputFormatter.PrintToken(Tokens.ByRef);
outputFormatter.Space();
break;
case ParameterModifiers.Params:
outputFormatter.PrintToken(Tokens.ParamArray);
outputFormatter.Space();
break;
case ParameterModifiers.Ref:
outputFormatter.PrintToken(Tokens.ByRef);
outputFormatter.Space();
break;
case ParameterModifiers.Optional:
outputFormatter.PrintToken(Tokens.Optional);
outputFormatter.Space();
break;
default:
Error(String.Format("Unsupported modifier : {0}", modifier), position);
break;
if ((modifier & ParameterModifiers.Optional) == ParameterModifiers.Optional) {
outputFormatter.PrintToken(Tokens.Optional);
outputFormatter.Space();
}
if ((modifier & ParameterModifiers.Ref) == ParameterModifiers.Ref) {
outputFormatter.PrintToken(Tokens.ByRef);
outputFormatter.Space();
}
if ((modifier & ParameterModifiers.Params) == ParameterModifiers.Params) {
outputFormatter.PrintToken(Tokens.ParamArray);
outputFormatter.Space();
}
if (prettyPrintOptions.OutputByValModifier &&
(modifier & (ParameterModifiers.Params | ParameterModifiers.Ref)) == ParameterModifiers.None)
{
outputFormatter.PrintToken(Tokens.ByVal);
outputFormatter.Space();
}
}
@ -2827,9 +2842,11 @@ namespace ICSharpCode.NRefactory.PrettyPrinter @@ -2827,9 +2842,11 @@ namespace ICSharpCode.NRefactory.PrettyPrinter
outputFormatter.PrintToken(forTypeDecl ? Tokens.MustInherit : Tokens.MustOverride);
outputFormatter.Space();
}
if ((modifier & Modifiers.Override) == Modifiers.Override) {
if ((modifier & Modifiers.Overloads) == Modifiers.Overloads) {
outputFormatter.PrintToken(Tokens.Overloads);
outputFormatter.Space();
}
if ((modifier & Modifiers.Override) == Modifiers.Override) {
outputFormatter.PrintToken(Tokens.Overrides);
outputFormatter.Space();
}

17
src/Libraries/NRefactory/Project/Src/Visitors/ToVBNetConvertVisitor.cs

@ -29,6 +29,8 @@ namespace ICSharpCode.NRefactory.Visitors @@ -29,6 +29,8 @@ namespace ICSharpCode.NRefactory.Visitors
// Parenthesis around Cast expressions remove - these are syntax errors in VB.NET
// Decrease array creation size - VB specifies upper bound instead of array length
// Automatic properties are converted to explicit implementation
// base[index] - VB requires MyBase.Item
// var i = 0; -> Dim i = 0 (remove typereference for 'var')
List<INode> nodesToMoveToCompilationUnit = new List<INode>();
@ -379,5 +381,20 @@ namespace ICSharpCode.NRefactory.Visitors @@ -379,5 +381,20 @@ namespace ICSharpCode.NRefactory.Visitors
ReplaceCurrentNode(defaultValue);
return null;
}
public override object VisitBaseReferenceExpression(BaseReferenceExpression baseReferenceExpression, object data)
{
base.VisitBaseReferenceExpression(baseReferenceExpression, data);
if (baseReferenceExpression.Parent is IndexerExpression)
ReplaceCurrentNode(new MemberReferenceExpression(baseReferenceExpression, "Item"));
return null;
}
public override object VisitLocalVariableDeclaration(LocalVariableDeclaration localVariableDeclaration, object data)
{
if (localVariableDeclaration.TypeReference.Type == "var")
localVariableDeclaration.TypeReference = TypeReference.Null;;
return base.VisitLocalVariableDeclaration(localVariableDeclaration, data);
}
}
}

45
src/Libraries/NRefactory/Test/Output/VBNet/CSharpToVBNetConverterTest.cs

@ -582,5 +582,50 @@ Private m_Name As String"); @@ -582,5 +582,50 @@ Private m_Name As String");
TestStatement(@"object x = default(int);",
@"Dim x As Object = 0");
}
[Test]
public void BaseIndexerAccess()
{
TestStatement("object a = base[0];", "Dim a As Object = MyBase.Item(0)");
}
[Test]
public void TestMemberHiding()
{
TestMember("public new void Remove() {}", "Public Shadows Sub Remove()\nEnd Sub");
}
[Test]
public void TestImplicitlyTypedVariable()
{
TestStatement("var i = 0;", "Dim i = 0");
}
[Test]
public void TestAnonymousType()
{
// TODO test is strictly incorrect, the converter should add "Key"
TestStatement("var x = new { i = 0, abc, abc.Test };",
"Dim x = New With { _\n" +
" .i = 0, _\n" +
" abc, _\n" +
" abc.Test _\n" +
"}");
}
[Test]
[Ignore]
public void CollectionAndObjectInitializer()
{
TestStatement("List<X> l = new List<X> { new X { A = 1 }, new X { A = 2 } };",
"Dim l As New List(Of X)() From { _\n" +
" New X() With { _\n" +
" .A = 1 _\n" +
" }, _\n" +
" New X() With { _\n" +
" .A = 2 _\n" +
" } _\n" +
"}");
}
}
}

50
src/Libraries/NRefactory/Test/Output/VBNet/VBNetOutputTest.cs

@ -474,6 +474,20 @@ End Using"); @@ -474,6 +474,20 @@ End Using");
TestExpression("AddressOf Abc");
}
[Test]
public void ChainedConstructorCall()
{
TestExpression("MyBase.New()");
TestExpression("Me.New()");
TestExpression("MyClass.New()");
}
[Test]
public void NewMethodCall()
{
TestExpression("something.[New]()");
}
[Test]
public void ObjectInitializer()
{
@ -482,5 +496,41 @@ End Using"); @@ -482,5 +496,41 @@ End Using");
" .Encoding = Encoding.UTF8 _\n" +
"}");
}
[Test]
public void EventDefinition()
{
TestTypeMember("Public Event MyEvent(ByVal sender As Object)");
}
[Test]
public void Options()
{
TestProgram("Option Strict On\n" +
"Option Explicit On\n" +
"Option Infer On\n" +
"Option Compare Text");
}
[Test]
public void UntypedForeach()
{
TestStatement("For Each x In myGuidArray\nNext");
}
[Test]
public void MethodDefinitionWithOptionalParameter()
{
TestTypeMember("Sub M(Optional ByVal msg As String = Nothing, Optional ByRef output As String = Nothing)\nEnd Sub");
}
[Test]
public void Module()
{
TestProgram("Module Test\n" +
" Sub M()\n" +
" End Sub\n" +
"End Module");
}
}
}

13
src/Libraries/NRefactory/Test/Parser/Statements/IfElseStatementTests.cs

@ -171,6 +171,19 @@ namespace ICSharpCode.NRefactory.Tests.Ast @@ -171,6 +171,19 @@ namespace ICSharpCode.NRefactory.Tests.Ast
Assert.AreEqual(2, ifElseStatement.TrueStatement.Count, "true count");
Assert.AreEqual(0, ifElseStatement.FalseStatement.Count, "false count");
}
[Test]
public void VBNetIfWithSingleLineElse()
{
// This isn't legal according to the VB spec, but the MS VB compiler seems to allow it.
IfElseStatement ifElseStatement = ParseUtilVBNet.ParseStatement<IfElseStatement>("If True THEN\n" +
" x()\n" +
"Else y()\n" +
"End If");
Assert.IsFalse(ifElseStatement.Condition.IsNull);
Assert.AreEqual(1, ifElseStatement.TrueStatement.Count, "true count");
Assert.AreEqual(1, ifElseStatement.FalseStatement.Count, "false count");
}
#endregion
}
}

2
src/Main/Base/Project/Resources/CommonAboutDialog.xfrm

@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
<!-- The copyright label -->
<System.Windows.Forms.Label>
<Text value = "(c) 2000-2009 by icsharpcode.net"/>
<Text value = "(c) 2000-2010 by icsharpcode.net"/>
<Width value = "400"/>
<Height value = "20"/>
<Location value = "{X=8, Y=234}"/>

9
src/Main/Base/Project/Src/Services/ProjectService/ProjectService.cs

@ -9,10 +9,11 @@ using System; @@ -9,10 +9,11 @@ using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Input;
using System.Xml;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Gui;
using System.Windows.Input;
namespace ICSharpCode.SharpDevelop.Project
{
@ -274,11 +275,13 @@ namespace ICSharpCode.SharpDevelop.Project @@ -274,11 +275,13 @@ namespace ICSharpCode.SharpDevelop.Project
AbstractProject.filesToOpenAfterSolutionLoad.Clear();
try {
string file = GetPreferenceFileName(openSolution.FileName);
Properties properties;
if (FileUtility.IsValidPath(file) && File.Exists(file)) {
(openSolution.Preferences as IMementoCapable).SetMemento(Properties.Load(file));
properties = Properties.Load(file);
} else {
(openSolution.Preferences as IMementoCapable).SetMemento(new Properties());
properties = new Properties();
}
(openSolution.Preferences as IMementoCapable).SetMemento(properties);
} catch (Exception ex) {
MessageService.ShowException(ex);
}

13
src/Main/Base/Test/CodeConverterTests.cs

@ -750,5 +750,18 @@ namespace ICSharpCode.SharpDevelop.Tests @@ -750,5 +750,18 @@ namespace ICSharpCode.SharpDevelop.Tests
"End Class");
}
#endregion
[Test]
public void OverloadMembersInBaseClass()
{
TestProgramCS2VB("class Test : System.Collections.Generic.List<int> {" +
" public void RemoveAt(string strangeIndex) {}" +
"}",
"Class Test\n" +
" Inherits System.Collections.Generic.List(Of Integer)\n" +
" Public Overloads Sub RemoveAt(strangeIndex As String)\n" +
" End Sub\n" +
"End Class");
}
}
}

15
src/Main/Base/Test/InnerClassesResolverTests.cs

@ -463,5 +463,20 @@ class Test { @@ -463,5 +463,20 @@ class Test {
rr = Resolve<MemberResolveResult>(program, "z2", 3);
Assert.AreEqual(0, rr.ResolvedType.GetUnderlyingClass().TypeParameters.Count);
}
[Test]
public void SimpleInnerClassInStruct()
{
string program = @"struct A {
void Test() {
}
class B { }
}
";
ResolveResult result = Resolve(program, "B", 3);
Assert.IsTrue(result is TypeResolveResult);
Assert.AreEqual("A.B", result.ResolvedType.FullyQualifiedName);
}
}
}

10
src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/NRefactoryResolver/CSharpToVBNetConvertVisitor.cs

@ -112,6 +112,7 @@ namespace ICSharpCode.SharpDevelop.Dom.NRefactoryResolver @@ -112,6 +112,7 @@ namespace ICSharpCode.SharpDevelop.Dom.NRefactoryResolver
}
IMethod currentMethod = resolver.CallingMember as IMethod;
CreateInterfaceImplementations(currentMethod, methodDeclaration, methodDeclaration.InterfaceImplementations);
// Make "Main" public
if (currentMethod != null && currentMethod.Name == "Main") {
if (currentMethod.DeclaringType.FullyQualifiedName == StartupObjectToMakePublic) {
if (currentMethod.IsStatic && currentMethod.IsPrivate) {
@ -120,6 +121,15 @@ namespace ICSharpCode.SharpDevelop.Dom.NRefactoryResolver @@ -120,6 +121,15 @@ namespace ICSharpCode.SharpDevelop.Dom.NRefactoryResolver
}
}
}
if (resolver.CallingClass != null && resolver.CallingClass.BaseType != null) {
// methods with the same name as a method in a base class must have 'Overloads'
if ((methodDeclaration.Modifier & (Modifiers.Override | Modifiers.New)) == Modifiers.None) {
if (resolver.CallingClass.BaseType.GetMethods()
.Any(m => string.Equals(m.Name, methodDeclaration.Name, StringComparison.OrdinalIgnoreCase))) {
methodDeclaration.Modifier |= Modifiers.Overloads;
}
}
}
return base.VisitMethodDeclaration(methodDeclaration, data);
}

2
src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/ProjectContent/DefaultProjectContent.cs

@ -823,7 +823,7 @@ namespace ICSharpCode.SharpDevelop.Dom @@ -823,7 +823,7 @@ namespace ICSharpCode.SharpDevelop.Dom
// Try inner classes (in full inheritance tree)
// Don't use loop with cur = cur.BaseType because of inheritance cycles
foreach (IClass baseClass in outerClass.ClassInheritanceTree) {
if (baseClass.ClassType == ClassType.Class) {
if (baseClass.ClassType == ClassType.Class || baseClass.ClassType == ClassType.Struct || baseClass.ClassType == ClassType.Module) {
foreach (IClass innerClass in baseClass.InnerClasses) {
if (language.NameComparer.Equals(innerClass.Name, name)) {
result = new SearchTypeResult(innerClass);

43
src/Main/ICSharpCode.SharpDevelop.Widgets/Project/ICSharpCode.SharpDevelop.Widgets.csproj

@ -59,34 +59,45 @@ @@ -59,34 +59,45 @@
<Compile Include="MouseWheelHandler.cs" />
<Compile Include="Resources\BitmapResources.cs" />
<Compile Include="TreeGrid\CollectionWithEvents.cs" />
<Compile Include="TreeGrid\DynamicList.cs" />
<Compile Include="TreeGrid\DynamicList.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="TreeGrid\DynamicListColumn.cs" />
<Compile Include="TreeGrid\DynamicListItem.cs" />
<Compile Include="TreeGrid\DynamicListRow.cs" />
<Compile Include="TreeGrid\DynamicTreeRow.cs" />
<Compile Include="TreeGrid\ScrollButton.cs" />
<Compile Include="TreeGrid\VerticalScrollContainer.cs" />
<Compile Include="TreeGrid\ScrollButton.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="TreeGrid\VerticalScrollContainer.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="DesignHelper.cs" />
<Compile Include="AutoHide\AutoHideContainer.cs" />
<Compile Include="AutoHide\AutoHideMenuStripContainer.cs" />
<Compile Include="AutoHide\AutoHideStatusStripContainer.cs" />
<Compile Include="SideBar\SideBar.cs" />
<Compile Include="AutoHide\AutoHideContainer.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="AutoHide\AutoHideMenuStripContainer.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="AutoHide\AutoHideStatusStripContainer.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="SideBar\SideBar.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="SideBar\SideTab.cs" />
<Compile Include="SideBar\SideTabItem.cs" />
<Compile Include="SpinnerControl.cs" />
<Compile Include="SpinnerControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="DesignTimeSupport\DropDownEditor.cs" />
<Compile Include="DesignTimeSupport\DropDownEditorListBox.cs" />
<Compile Include="DesignTimeSupport\DropDownEditorListBox.cs">
<SubType>Component</SubType>
</Compile>
<EmbeddedResource Include="Resources\Icons.16x16.SortAscending.png" />
<EmbeddedResource Include="Resources\Icons.16x16.SortDescending.png" />
</ItemGroup>
<ItemGroup>
<Folder Include="Configuration" />
<Folder Include="ListViewSorting" />
<Folder Include="Resources" />
<Folder Include="TreeGrid" />
<Folder Include="AutoHide" />
<Folder Include="SideBar" />
<Folder Include="DesignTimeSupport" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
</Project>

26
src/Setup/Files.wxs

@ -1694,6 +1694,32 @@ @@ -1694,6 +1694,32 @@
<File Source="..\..\AddIns\AddIns\Misc\UsageDataCollector\UsageDataCollector.xml" Name="UsageDataCollector.xml" Id="UsageDataCollector.xml" />
</Component>
</Directory>
<!--<Directory Id="SharpDevelopReports" Name="SharpDevelopReports">
<Component Guid="F5963875-6D36-4789-8129-7224EA7434E0" Id="SharpDevelopReportsEmptyReportFileTemplate" DiskId="1">
<File Source="..\..\AddIns\AddIns\Misc\SharpDevelopReports\EmptyReport.xft" Name="EmptyReport.xft" Id="SharpDevelopReportsEmptyReport.xft" KeyPath="yes" />
</Component>
<Component Guid="428E9B37-E8B7-4A23-99A8-0212AB51B201" Id="ICSharpCodeReportDesignerAddin" DiskId="1">
<File Source="..\..\AddIns\AddIns\Misc\SharpDevelopReports\ICSharpCode.ReportDesigner.addin" Name="ICSharpCode.ReportDesigner.addin" Id="ICSharpCode.ReportDesigner.addin" KeyPath="yes" />
</Component>
<Component Guid="8C6177C2-455B-407C-9628-C286AF042100" Id="ICSharpCodeReportsAddinDll" DiskId="1">
<File Source="..\..\AddIns\AddIns\Misc\SharpDevelopReports\ICSharpCode.Reports.Addin.dll" Name="ICSharpCode.Reports.Addin.dll" Id="ICSharpCode.Reports.Addin.dll" KeyPath="yes" Assembly=".net" AssemblyApplication="ICSharpCode.Reports.Addin.dll" AssemblyManifest="ICSharpCode.Reports.Addin.dll" />
</Component>
<Component Guid="3F3BA5B0-7C06-4DEA-9D61-9AA3FB70CA3C" Id="ICSharpCodeReportsCoreDll" DiskId="1">
<File Source="..\..\AddIns\AddIns\Misc\SharpDevelopReports\ICSharpCode.Reports.Core.dll" Name="ICSharpCode.Reports.Core.dll" Id="ICSharpCode.Reports.Core.dll" KeyPath="yes" Assembly=".net" AssemblyApplication="ICSharpCode.Reports.Core.dll" AssemblyManifest="ICSharpCode.Reports.Core.dll" />
</Component>
<Component Guid="1A9CDE4B-0A0D-4B1F-9947-365FC93A1956" Id="InteropAdodbDll" DiskId="1">
<File Source="..\..\AddIns\AddIns\Misc\SharpDevelopReports\Interop.ADODB.dll" Name="Interop.ADODB.dll" Id="Interop.ADODB.dll" KeyPath="yes" Assembly=".net" AssemblyApplication="Interop.ADODB.dll" AssemblyManifest="Interop.ADODB.dll" />
</Component>
<Component Guid="6C7B83C6-F3CB-4CDE-99FF-84986FB8539B" Id="InteropMsdascDll" DiskId="1">
<File Source="..\..\AddIns\AddIns\Misc\SharpDevelopReports\Interop.MSDASC.dll" Name="Interop.MSDASC.dll" Id="Interop.MSDASC.dll" KeyPath="yes" Assembly=".net" AssemblyApplication="Interop.MSDASC.dll" AssemblyManifest="Interop.MSDASC.dll" />
</Component>
<Component Guid="6A8AA4D2-6CC6-4A03-9705-91FC39818A29" Id="IronyDll" DiskId="1">
<File Source="..\..\AddIns\AddIns\Misc\SharpDevelopReports\Irony.dll" Name="Irony.dll" Id="Irony.dll" KeyPath="yes" />
</Component>
<Component Guid="CF7C7E01-B229-4E72-92CA-66B9935DE79A" Id="ITextSharpDll" DiskId="1">
<File Source="..\..\AddIns\AddIns\Misc\SharpDevelopReports\itextsharp.dll" Name="itextsharp.dll" Id="itextsharp.dll" KeyPath="yes" />
</Component>
</Directory>-->
</Directory>
</Directory>
</Directory>

18
src/Setup/Setup.wxs

@ -366,14 +366,7 @@ @@ -366,14 +366,7 @@
<ComponentRef Id="RegExToolkitFiles"/>
<ComponentRef Id="ResourceToolkitFiles"/>
<ComponentRef Id="SearchAndReplaceFiles"/>
<!--
<ComponentRef Id="SharpQueryDll"/>
<ComponentRef Id="SharpQueryInteropMSDASCDll"/>
<ComponentRef Id="SharpDevelopReportsCoreDll"/>
<ComponentRef Id="SharpDevelopReportsAddInDll"/>
<ComponentRef Id="PdfSharpDll"/>
<ComponentRef Id="PdfSharpDeResources"/>
-->
<ComponentRef Id="StartPageAddInFiles"/>
<ComponentRef Id="SubversionAddInDll"/>
<ComponentRef Id="UnitTestingAddInFiles"/>
@ -490,6 +483,15 @@ @@ -490,6 +483,15 @@
<ComponentRef Id="UDCSystemDataSQLiteDll"/>
<ComponentRef Id="UsageDataCollectorAddin"/>
<ComponentRef Id="UsageDataCollectorDll"/>
<!--<ComponentRef Id="SharpDevelopReportsEmptyReportFileTemplate"/>
<ComponentRef Id="ICSharpCodeReportDesignerAddin"/>
<ComponentRef Id="ICSharpCodeReportsAddinDll"/>
<ComponentRef Id="ICSharpCodeReportsCoreDll"/>
<ComponentRef Id="InteropMsdascDll"/>
<ComponentRef Id="InteropAdodbDll"/>
<ComponentRef Id="IronyDll"/>
<ComponentRef Id="ITextSharpDll"/>-->
</Feature>
<Feature Id="SharpDevelopFileAssociations"
Level="2"

Loading…
Cancel
Save