diff --git a/SharpDevelop.Tests.sln b/SharpDevelop.Tests.sln
index 95241db5bd..4f12187384 100644
--- a/SharpDevelop.Tests.sln
+++ b/SharpDevelop.Tests.sln
@@ -1,7 +1,9 @@
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
# SharpDevelop 5.0
+VisualStudioVersion = 12.0.20827.3
+MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Main", "Main", "{256F5C28-532C-44C0-8AB8-D8EC5E492E01}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.BuildWorker35", "src\Main\ICSharpCode.SharpDevelop.BuildWorker35\ICSharpCode.SharpDevelop.BuildWorker35.csproj", "{B5F54272-49F0-40DB-845A-8D837875D3BA}"
@@ -148,6 +150,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Reports.Core.Te
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Irony", "src\AddIns\Misc\Reports\Irony\Irony.csproj", "{D81F5C91-D7DB-46E5-BC99-49488FB6814C}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Reporting", "src\AddIns\Misc\Reporting\ICSharpCode.Reporting\ICSharpCode.Reporting.csproj", "{40CA84D4-ACFC-4646-9CDD-B87262D34093}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Reporting.Test", "src\AddIns\Misc\Reporting\ICSharpCode.Reporting\Test\ICSharpCode.Reporting.Test\ICSharpCode.Reporting.Test.csproj", "{97CA9CE5-B966-48DF-BB59-F00FFC534B1F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Reporting.Addin", "src\AddIns\Misc\Reporting\ICSharpCode.Reporting.Addin\ICSharpCode.Reporting.Addin.csproj", "{0502FCF7-72F4-4587-936B-D0238CD0E072}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Display Bindings", "Display Bindings", "{11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AvalonEdit.AddIn", "src\AddIns\DisplayBindings\AvalonEdit.AddIn\AvalonEdit.AddIn.csproj", "{0162E499-42D0-409B-AA25-EED21F75336B}"
@@ -490,6 +498,18 @@ Global
{D81F5C91-D7DB-46E5-BC99-49488FB6814C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D81F5C91-D7DB-46E5-BC99-49488FB6814C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D81F5C91-D7DB-46E5-BC99-49488FB6814C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {40CA84D4-ACFC-4646-9CDD-B87262D34093}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {40CA84D4-ACFC-4646-9CDD-B87262D34093}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {40CA84D4-ACFC-4646-9CDD-B87262D34093}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {40CA84D4-ACFC-4646-9CDD-B87262D34093}.Release|Any CPU.Build.0 = Release|Any CPU
+ {97CA9CE5-B966-48DF-BB59-F00FFC534B1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {97CA9CE5-B966-48DF-BB59-F00FFC534B1F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {97CA9CE5-B966-48DF-BB59-F00FFC534B1F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {97CA9CE5-B966-48DF-BB59-F00FFC534B1F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0502FCF7-72F4-4587-936B-D0238CD0E072}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0502FCF7-72F4-4587-936B-D0238CD0E072}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0502FCF7-72F4-4587-936B-D0238CD0E072}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0502FCF7-72F4-4587-936B-D0238CD0E072}.Release|Any CPU.Build.0 = Release|Any CPU
{0162E499-42D0-409B-AA25-EED21F75336B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0162E499-42D0-409B-AA25-EED21F75336B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0162E499-42D0-409B-AA25-EED21F75336B}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -717,6 +737,9 @@ Global
{4B2239FF-8FD6-431D-9D22-1B8049BA6917} = {FEDD3FD9-0480-43CC-913C-4E0876DDA852}
{E16B73CA-3603-47EE-915E-6F8B2A07304B} = {FEDD3FD9-0480-43CC-913C-4E0876DDA852}
{D81F5C91-D7DB-46E5-BC99-49488FB6814C} = {FEDD3FD9-0480-43CC-913C-4E0876DDA852}
+ {40CA84D4-ACFC-4646-9CDD-B87262D34093} = {FEDD3FD9-0480-43CC-913C-4E0876DDA852}
+ {97CA9CE5-B966-48DF-BB59-F00FFC534B1F} = {FEDD3FD9-0480-43CC-913C-4E0876DDA852}
+ {0502FCF7-72F4-4587-936B-D0238CD0E072} = {FEDD3FD9-0480-43CC-913C-4E0876DDA852}
{11BF9245-88A3-4A0A-9A8A-EC9D98036B0F} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
{0162E499-42D0-409B-AA25-EED21F75336B} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{E618A9CD-A39F-4925-A538-E8A3FEF24E54} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
diff --git a/SharpDevelop.sln b/SharpDevelop.sln
index e4a9a90f01..61cb69ef74 100644
--- a/SharpDevelop.sln
+++ b/SharpDevelop.sln
@@ -1,7 +1,9 @@
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
# SharpDevelop 5.0
+VisualStudioVersion = 12.0.20827.3
+MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Main", "Main", "{256F5C28-532C-44C0-8AB8-D8EC5E492E01}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.BuildWorker35", "src\Main\ICSharpCode.SharpDevelop.BuildWorker35\ICSharpCode.SharpDevelop.BuildWorker35.csproj", "{B5F54272-49F0-40DB-845A-8D837875D3BA}"
@@ -117,6 +119,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Reports.Core",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Irony", "src\AddIns\Misc\Reports\Irony\Irony.csproj", "{D81F5C91-D7DB-46E5-BC99-49488FB6814C}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Reporting", "src\AddIns\Misc\Reporting\ICSharpCode.Reporting\ICSharpCode.Reporting.csproj", "{40CA84D4-ACFC-4646-9CDD-B87262D34093}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Reporting.Addin", "src\AddIns\Misc\Reporting\ICSharpCode.Reporting.Addin\ICSharpCode.Reporting.Addin.csproj", "{0502FCF7-72F4-4587-936B-D0238CD0E072}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Display Bindings", "Display Bindings", "{11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AvalonEdit.AddIn", "src\AddIns\DisplayBindings\AvalonEdit.AddIn\AvalonEdit.AddIn.csproj", "{0162E499-42D0-409B-AA25-EED21F75336B}"
@@ -381,6 +387,10 @@ Global
{D81F5C91-D7DB-46E5-BC99-49488FB6814C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D81F5C91-D7DB-46E5-BC99-49488FB6814C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D81F5C91-D7DB-46E5-BC99-49488FB6814C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {40CA84D4-ACFC-4646-9CDD-B87262D34093}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {40CA84D4-ACFC-4646-9CDD-B87262D34093}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {40CA84D4-ACFC-4646-9CDD-B87262D34093}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {40CA84D4-ACFC-4646-9CDD-B87262D34093}.Release|Any CPU.Build.0 = Release|Any CPU
{0162E499-42D0-409B-AA25-EED21F75336B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0162E499-42D0-409B-AA25-EED21F75336B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0162E499-42D0-409B-AA25-EED21F75336B}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -505,6 +515,10 @@ Global
{3DF4060F-5EE0-41CF-8096-F27355FD5511}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3DF4060F-5EE0-41CF-8096-F27355FD5511}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3DF4060F-5EE0-41CF-8096-F27355FD5511}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0502FCF7-72F4-4587-936B-D0238CD0E072}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0502FCF7-72F4-4587-936B-D0238CD0E072}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0502FCF7-72F4-4587-936B-D0238CD0E072}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0502FCF7-72F4-4587-936B-D0238CD0E072}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -563,6 +577,8 @@ Global
{35D002D7-C78B-44FB-92AA-104BEB431678} = {4ABB8D1E-3439-44C8-ACCE-1FA678ABBFB3}
{4B2239FF-8FD6-431D-9D22-1B8049BA6917} = {4ABB8D1E-3439-44C8-ACCE-1FA678ABBFB3}
{D81F5C91-D7DB-46E5-BC99-49488FB6814C} = {4ABB8D1E-3439-44C8-ACCE-1FA678ABBFB3}
+ {40CA84D4-ACFC-4646-9CDD-B87262D34093} = {4ABB8D1E-3439-44C8-ACCE-1FA678ABBFB3}
+ {0502FCF7-72F4-4587-936B-D0238CD0E072} = {4ABB8D1E-3439-44C8-ACCE-1FA678ABBFB3}
{11BF9245-88A3-4A0A-9A8A-EC9D98036B0F} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
{0162E499-42D0-409B-AA25-EED21F75336B} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{E618A9CD-A39F-4925-A538-E8A3FEF24E54} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
diff --git a/src/AddIns/Analysis/CodeQuality/CodeQuality.addin b/src/AddIns/Analysis/CodeQuality/CodeQuality.addin
index 0945fa92dd..c63ccf1bd9 100644
--- a/src/AddIns/Analysis/CodeQuality/CodeQuality.addin
+++ b/src/AddIns/Analysis/CodeQuality/CodeQuality.addin
@@ -6,7 +6,7 @@
-
+
diff --git a/src/AddIns/Analysis/CodeQuality/CodeQuality.csproj b/src/AddIns/Analysis/CodeQuality/CodeQuality.csproj
index 30689a7bd5..6f26ee88e3 100644
--- a/src/AddIns/Analysis/CodeQuality/CodeQuality.csproj
+++ b/src/AddIns/Analysis/CodeQuality/CodeQuality.csproj
@@ -111,6 +111,7 @@
Never
+
@@ -172,10 +173,9 @@
ICSharpCode.SharpDevelop.Widgets
False
-
- {7C3579BC-2A64-4108-82B5-3D07ADA079E7}
- ICSharpCode.Reports.Core
- False
+
+ {40CA84D4-ACFC-4646-9CDD-B87262D34093}
+ ICSharpCode.Reporting
diff --git a/src/AddIns/Analysis/CodeQuality/Gui/MainView.xaml b/src/AddIns/Analysis/CodeQuality/Gui/MainView.xaml
index 9508b9a7f6..5417c973ae 100644
--- a/src/AddIns/Analysis/CodeQuality/Gui/MainView.xaml
+++ b/src/AddIns/Analysis/CodeQuality/Gui/MainView.xaml
@@ -4,8 +4,8 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:gui="clr-namespace:ICSharpCode.CodeQuality.Gui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:rep="clr-namespace:ICSharpCode.Reports.Core.WpfReportViewer;assembly=ICSharpCode.Reports.Core">
-
+ xmlns:reporting="clr-namespace:ICSharpCode.Reporting.WpfReportViewer;assembly=ICSharpCode.Reporting">
+
@@ -40,8 +40,7 @@
x:Name="reportTab"
Visibility="Hidden">
-
+
diff --git a/src/AddIns/Analysis/CodeQuality/Gui/MainView.xaml.cs b/src/AddIns/Analysis/CodeQuality/Gui/MainView.xaml.cs
index 2a6a9c967f..cb57e1cc98 100644
--- a/src/AddIns/Analysis/CodeQuality/Gui/MainView.xaml.cs
+++ b/src/AddIns/Analysis/CodeQuality/Gui/MainView.xaml.cs
@@ -19,18 +19,13 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
-using System.Text;
using System.Windows;
using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
+using ICSharpCode.Reporting.WpfReportViewer;
using ICSharpCode.CodeQuality.Engine;
using ICSharpCode.CodeQuality.Engine.Dom;
using ICSharpCode.CodeQuality.Reporting;
-using ICSharpCode.Reports.Core.WpfReportViewer;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Project;
using Microsoft.Win32;
@@ -125,6 +120,7 @@ namespace ICSharpCode.CodeQuality.Gui
var previewViewModel = new PreviewViewModel(dependencyReport.ReportSettings,reportCreator.Pages);
viewer.SetBinding(previewViewModel);
ActivateReportTab();
+
}
void ActivateReportTab()
diff --git a/src/AddIns/Analysis/CodeQuality/Reporting/BaseReport.cs b/src/AddIns/Analysis/CodeQuality/Reporting/BaseReport.cs
index caaf9d16bb..00c55cadd0 100644
--- a/src/AddIns/Analysis/CodeQuality/Reporting/BaseReport.cs
+++ b/src/AddIns/Analysis/CodeQuality/Reporting/BaseReport.cs
@@ -18,10 +18,8 @@
using System;
using System.Collections.Generic;
-using System.IO;
-using System.Reflection;
+using ICSharpCode.Reporting.Items;
-using ICSharpCode.Reports.Core;
namespace ICSharpCode.CodeQuality.Reporting
{
diff --git a/src/AddIns/Analysis/CodeQuality/Reporting/DependencyReport - Kopie.srd b/src/AddIns/Analysis/CodeQuality/Reporting/DependencyReport - Kopie.srd
new file mode 100644
index 0000000000..1a92920d07
--- /dev/null
+++ b/src/AddIns/Analysis/CodeQuality/Reporting/DependencyReport - Kopie.srd
@@ -0,0 +1,308 @@
+
+
+
+
+ DependencyReport
+ FormSheet
+ 50
+ 50
+ 50
+ 50
+ 827, 1169
+ False
+ Millimeter
+ 5, 5, 5, 5
+
+
+
+
+ Ascending
+ False
+ Name
+ System.String
+
+
+
+
+
+
+ Text
+ FormSheet
+ No Data for this Report
+ Microsoft Sans Serif, 10pt
+ True
+
+
+
+
+ 50, 50
+ 727, 60
+ White
+ 0
+ 0
+ False
+ False
+
+
+ 157, 3
+ 414, 40
+ White
+ Segoe UI, 18pt, style=Bold
+ None
+ TopLeft
+ False
+ False
+ No
+ SharpDevelop CodeQuality Analysis
+ False
+ Black
+ Black
+ BaseTextItem2147483637
+
+
+ Black
+ ReportHeader
+
+
+ 50, 125
+ 727, 69
+ White
+ 0
+ 0
+ False
+ False
+
+
+ 22, 47
+ 660, 10
+ White
+ Black
+ 10, 5
+ 647, 5
+ Flat
+ Flat
+ Flat
+ Solid
+ 4
+ BaseLineItem1
+
+
+ 222, 3
+ 257, 26
+ White
+ Microsoft Sans Serif, 15.75pt
+ None
+ TopLeft
+ False
+ False
+ System.String
+ No
+ Analysis Overview Report
+ False
+ Black
+ Black
+ Overview
+
+
+ 563, 3
+ 100, 26
+ White
+ Segoe UI, 15.75pt
+ None
+ TopLeft
+ False
+ False
+ No
+ =Today()
+ False
+ Black
+ ControlText
+ BaseTextItem2147483638
+
+
+ Black
+ ReportPageHeader
+
+
+ 50, 209
+ 727, 115
+ White
+ 0
+ 0
+ False
+ False
+
+
+ 31, 72
+ 641, 30
+ White
+ False
+ Black
+ Black
+
+
+ 443, 4
+ 71, 20
+ White
+ Segoe UI, 9pt
+ None
+ MiddleRight
+ False
+ False
+ No
+ BaseDataItem2147483646
+ False
+ Black
+ Black
+ ReferenceCount
+ BaseDataItem2147483646
+
+
+ 254, 4
+ 156, 20
+ White
+ Microsoft Sans Serif, 10pt
+ None
+ TopLeft
+ False
+ False
+ No
+ References
+ False
+ Black
+ Black
+ References
+ BaseDataItem2
+
+
+
+ 0
+ BaseRowItem1
+
+
+ 31, 22
+ 641, 30
+ LightGray
+ False
+ Black
+ Black
+
+
+ 414, 7
+ 100, 20
+ White
+ Segoe UI, 9.75pt
+ None
+ MiddleRight
+ False
+ False
+ No
+ # of References
+ False
+ Black
+ Black
+ BaseTextItem2147483646
+
+
+ 254, 2
+ 100, 20
+ White
+ Microsoft Sans Serif, 10pt
+ None
+ TopLeft
+ False
+ False
+ No
+ References
+ False
+ Black
+ Black
+ BaseTextItem2147483636
+
+
+ 12, 3
+ 211, 20
+ White
+ Microsoft Sans Serif, 10pt
+ None
+ TopLeft
+ False
+ False
+ No
+ BaseDataItem1
+ False
+ Black
+ Black
+ Name
+ BaseDataItem1
+
+
+
+ 0
+ False
+ GroupHeader1
+
+
+ Black
+ ReportDetail
+
+
+ 50, 339
+ 727, 36
+ White
+ 0
+ 0
+ False
+ False
+
+
+ 31, 5
+ 555, 20
+ White
+ Segoe UI, 9.75pt
+ None
+ TopLeft
+ False
+ False
+ No
+ = Globals!ReportFolder + Globals!ReportName
+ False
+ Black
+ ControlText
+ BaseTextItem2147483641
+
+
+ 624, 5
+ 100, 20
+ White
+ Microsoft Sans Serif, 10pt
+ None
+ TopLeft
+ False
+ False
+ System.String
+ No
+ = 'Page : ' + Globals!PageNumber
+ False
+ Black
+ Black
+ PageNumber1
+
+
+ Black
+ ReportPageFooter
+
+
+ 50, 390
+ 727, 60
+ White
+ 0
+ 0
+ False
+ False
+
+ Black
+ ReportFooter
+
+
+
\ No newline at end of file
diff --git a/src/AddIns/Analysis/CodeQuality/Reporting/DependencyReport.cs b/src/AddIns/Analysis/CodeQuality/Reporting/DependencyReport.cs
index 769857069c..700e44ac4b 100644
--- a/src/AddIns/Analysis/CodeQuality/Reporting/DependencyReport.cs
+++ b/src/AddIns/Analysis/CodeQuality/Reporting/DependencyReport.cs
@@ -19,10 +19,13 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
+using System.ComponentModel;
using System.Reflection;
+using ICSharpCode.Reporting;
+using ICSharpCode.Reporting.Interfaces;
+using ICSharpCode.Reporting.Items;
using ICSharpCode.CodeQuality.Engine.Dom;
-using ICSharpCode.Reports.Core;
namespace ICSharpCode.CodeQuality.Reporting
{
@@ -31,43 +34,45 @@ namespace ICSharpCode.CodeQuality.Reporting
///
public class DependencyReport:BaseReport
{
- private const string overviewReport = "DependencyReport.srd";
+ const string overviewReport = "DependencyReport.srd";
public DependencyReport(List fileNames):base(fileNames)
{
}
public IReportCreator Run(ReadOnlyCollection list)
- {
- System.Reflection.Assembly asm = Assembly.GetExecutingAssembly();
- System.IO.Stream stream = asm.GetManifestResourceStream("ICSharpCode.CodeQuality.Reporting.DependencyReport.srd");
- var model = ReportEngine.LoadReportModel(stream);
- ReportSettings = model.ReportSettings;
+ {
var newList = MakeList (list);
-
- IReportCreator creator = ReportEngine.CreatePageBuilder(model,newList,null);
- creator.BuildExportList();
- return creator;
+ var asm = Assembly.GetExecutingAssembly();
+ var stream = asm.GetManifestResourceStream("ICSharpCode.CodeQuality.Reporting.DependencyReport.srd");
+ var reportingFactory = new ReportingFactory();
+ var reportCreator = reportingFactory.ReportCreator (stream,newList);
+ ReportSettings = reportingFactory.ReportModel.ReportSettings;
+ var groupColumn = (GroupColumn)ReportSettings.GroupColumnsCollection[0];
+ groupColumn.GroupSortColumn = new SortColumn() {
+ ColumnName = "ReferenceCount",
+ SortDirection = ListSortDirection.Ascending
+ };
+ reportCreator.BuildExportList();
+ return reportCreator;
}
+
-
- private List MakeList (ReadOnlyCollection list)
+ List MakeList (ReadOnlyCollection list)
{
var newList = new List();
foreach (var baseNode in list) {
foreach (var element in list) {
if (baseNode.Name != element.Name) {
-
-
- var referenceCount = baseNode.GetUses(element);
- if (referenceCount > 0) {
- newList.Add(new DependencyViewModel()
- {
- Node = baseNode,
- References = element.Name,
- ReferenceCount = referenceCount
- });
- }
+ var referenceCount = baseNode.GetUses(element);
+ if (referenceCount > 0) {
+ newList.Add(new DependencyViewModel()
+ {
+ Node = baseNode,
+ References = element.Name,
+ ReferenceCount = referenceCount
+ });
+ }
}
}
}
@@ -76,7 +81,7 @@ namespace ICSharpCode.CodeQuality.Reporting
}
- internal class DependencyViewModel:ReportViewModel
+ class DependencyViewModel:ReportViewModel
{
public DependencyViewModel()
{
diff --git a/src/AddIns/Analysis/CodeQuality/Reporting/DependencyReport.srd b/src/AddIns/Analysis/CodeQuality/Reporting/DependencyReport.srd
index f48751f89d..6bdfacaf4b 100644
--- a/src/AddIns/Analysis/CodeQuality/Reporting/DependencyReport.srd
+++ b/src/AddIns/Analysis/CodeQuality/Reporting/DependencyReport.srd
@@ -17,6 +17,7 @@
Ascending
+ False
Name
System.String
@@ -37,7 +38,6 @@
50, 50
727, 60
White
- False
0
0
False
@@ -47,7 +47,6 @@
157, 3
414, 40
White
- True
Segoe UI, 18pt, style=Bold
None
TopLeft
@@ -68,7 +67,6 @@
50, 125
727, 69
White
- False
0
0
False
@@ -78,7 +76,6 @@
22, 47
660, 10
White
- True
Black
10, 5
647, 5
@@ -93,7 +90,6 @@
222, 3
257, 26
White
- True
Microsoft Sans Serif, 15.75pt
None
TopLeft
@@ -111,14 +107,15 @@
563, 3
100, 26
White
- True
Segoe UI, 15.75pt
+ dd/MM/yyyy
None
TopLeft
False
False
+ System.DateTime
No
- =Today()
+ =Today
False
Black
ControlText
@@ -132,67 +129,49 @@
50, 209
727, 115
White
- False
0
0
False
False
-
- 31, 72
- 641, 30
+
+ 445, 72
+ 71, 20
White
- True
+ Segoe UI, 9pt
+ None
+ MiddleRight
+ False
+ False
+ No
+ BaseDataItem2147483646
False
+ Black
Black
+ ReferenceCount
+ BaseDataItem2147483646
+
+
+ 256, 72
+ 156, 20
+ White
+ Microsoft Sans Serif, 10pt
+ None
+ TopLeft
+ False
+ False
+ No
+ References
+ False
Black
-
-
- 443, 4
- 71, 20
- White
- True
- Segoe UI, 9pt
- None
- MiddleRight
- False
- False
- No
- BaseDataItem2147483646
- False
- Black
- Black
- ReferenceCount
- BaseDataItem2147483646
-
-
- 254, 4
- 156, 20
- White
- True
- Microsoft Sans Serif, 10pt
- None
- TopLeft
- False
- False
- No
- References
- False
- Black
- Black
- References
- BaseDataItem2
-
-
-
- 0
- BaseRowItem1
-
+ Black
+ References
+ BaseDataItem2
+
31, 22
641, 30
LightGray
- True
False
Black
Black
@@ -201,7 +180,6 @@
414, 7
100, 20
White
- True
Segoe UI, 9.75pt
None
MiddleRight
@@ -218,7 +196,6 @@
254, 2
100, 20
White
- True
Microsoft Sans Serif, 10pt
None
TopLeft
@@ -235,7 +212,6 @@
12, 3
211, 20
White
- True
Microsoft Sans Serif, 10pt
None
TopLeft
@@ -263,7 +239,6 @@
50, 339
727, 36
White
- False
0
0
False
@@ -271,9 +246,8 @@
31, 5
- 555, 20
+ 365, 20
White
- True
Segoe UI, 9.75pt
None
TopLeft
@@ -287,10 +261,9 @@
BaseTextItem2147483641
- 624, 5
- 100, 20
+ 526, 5
+ 198, 20
White
- True
Microsoft Sans Serif, 10pt
None
TopLeft
@@ -312,7 +285,6 @@
50, 390
727, 60
White
- False
0
0
False
diff --git a/src/AddIns/Analysis/CodeQuality/Reporting/OverviewReport.cs b/src/AddIns/Analysis/CodeQuality/Reporting/OverviewReport.cs
index 155ff6bbde..f066ae6c70 100644
--- a/src/AddIns/Analysis/CodeQuality/Reporting/OverviewReport.cs
+++ b/src/AddIns/Analysis/CodeQuality/Reporting/OverviewReport.cs
@@ -23,9 +23,11 @@ using System.IO;
using System.Linq;
using System.Reflection;
-using ICSharpCode.CodeQuality.Engine.Dom;
using ICSharpCode.NRefactory.Utils;
-using ICSharpCode.Reports.Core;
+using ICSharpCode.Reporting;
+using ICSharpCode.Reporting.Interfaces;
+using ICSharpCode.Reporting.Items;
+using ICSharpCode.CodeQuality.Engine.Dom;
namespace ICSharpCode.CodeQuality.Reporting
{
@@ -35,6 +37,7 @@ namespace ICSharpCode.CodeQuality.Reporting
public class OverviewReport:BaseReport
{
private const string overviewReport = "OverviewReport.srd";
+ ReadOnlyCollection list;
public OverviewReport(List fileNames):base(fileNames)
{
@@ -42,27 +45,69 @@ namespace ICSharpCode.CodeQuality.Reporting
public IReportCreator Run(ReadOnlyCollection list)
{
- System.Reflection.Assembly asm = Assembly.GetExecutingAssembly();
- System.IO.Stream stream = asm.GetManifestResourceStream("ICSharpCode.CodeQuality.Reporting.Overviewreport.srd");
- var model = ReportEngine.LoadReportModel(stream);
- ReportSettings = model.ReportSettings;
-
- var r = from c in list
- select new OverviewViewModel { Node = c};
+ this.list = list;
+ var asm = Assembly.GetExecutingAssembly();
+ var stream = asm.GetManifestResourceStream("ICSharpCode.CodeQuality.Reporting.Overviewreport.srd");
- var p = new ReportParameters();
- p.Parameters.Add(new BasicParameter ("param1",base.FileNames[0]));
- p.Parameters.Add(new BasicParameter ("param2",list.Count.ToString()));
+ var viewModelList = CreateViewModel(list);
- IReportCreator creator = ReportEngine.CreatePageBuilder(model,r.ToList(),p);
- creator.BuildExportList();
- return creator;
+ var reportingFactory = new ReportingFactory();
+ var reportCreator = reportingFactory.ReportCreator (stream,viewModelList);
+ ReportSettings = reportingFactory.ReportModel.ReportSettings;
+// var reportParameters = new ParameterCollection();
+// reportParameters.Add(new BasicParameter ("param1",base.FileNames[0]));
+// reportParameters.Add(new BasicParameter ("param2",list.Count.ToString()));
+//
+// ReportSettings.ParameterCollection.AddRange(reportParameters);
+ reportCreator.SectionRendering += HandleSectionEvents;
+ reportCreator.BuildExportList();
+ return reportCreator;
+ }
+
+
+ static IEnumerable CreateViewModel(ReadOnlyCollection list)
+ {
+ var newList = from c in list
+ select new OverviewViewModel {
+ Node = c
+ };
+ return newList;
}
+
+ void HandleSectionEvents(object sender, SectionEventArgs e)
+ {
+ var sectionName = e.Section.Name;
+ if (sectionName == ReportSectionNames.ReportHeader) {
+
+ var param1 = (BaseTextItem)e.Section.Items.FirstOrDefault(n => n.Name == "Param1");
+// FileInfo fi =new FileInfo(FileNames[0]);
+// var s = fi..Directory + fi.Name;
+ param1.Text = FileNames[0];
+ var param2 = (BaseTextItem)e.Section.Items.FirstOrDefault(n => n.Name == "Param2");
+ param2.Text = list.Count.ToString();
+ }
+
+ else if (sectionName == ReportSectionNames.ReportPageHeader) {
+ Console.WriteLine("PushPrinting :" +ReportSectionNames .ReportPageHeader);
+ }
+
+ else if (sectionName == ReportSectionNames.ReportDetail){
+// Console.WriteLine("PushPrinting :" + ReportSectionNames.ReportDetail);
+ }
+
+ else if (sectionName == ReportSectionNames.ReportPageFooter){
+// Console.WriteLine("PushPrinting :" + ReportSectionNames.ReportPageFooter);
+ }
+
+ else if (sectionName == ReportSectionNames.ReportFooter){
+// Console.WriteLine("PushPrinting :" + ReportSectionNames.ReportFooter);
+ }
+ }
}
- internal class OverviewViewModel:ReportViewModel
+ class OverviewViewModel:ReportViewModel
{
public OverviewViewModel ()
{
diff --git a/src/AddIns/Analysis/CodeQuality/Reporting/Overviewreport.srd b/src/AddIns/Analysis/CodeQuality/Reporting/Overviewreport.srd
index 47025247ea..bd125d8502 100644
--- a/src/AddIns/Analysis/CodeQuality/Reporting/Overviewreport.srd
+++ b/src/AddIns/Analysis/CodeQuality/Reporting/Overviewreport.srd
@@ -15,15 +15,7 @@
-
-
- param1
- System.String
-
-
- param2
-
-
+
@@ -39,7 +31,6 @@
50, 50
727, 168
White
- False
0
0
False
@@ -49,7 +40,6 @@
122, 13
414, 40
White
- True
Segoe UI, 18pt, style=Bold
None
TopLeft
@@ -64,16 +54,17 @@
601, 59
- 100, 26
+ 100, 34
White
- True
Segoe UI, 15.75pt
+ dd/MM/yyyy
None
TopLeft
False
False
+ System.DateTime
No
- =Today()
+ =Today
False
Black
ControlText
@@ -83,7 +74,6 @@
12, 145
680, 10
White
- True
ControlText
10, 5
669, 6
@@ -98,24 +88,22 @@
139, 118
108, 20
White
- True
Segoe UI, 9pt
None
TopLeft
False
False
No
- =Parameters!param2
+ Parameters!param2
False
Black
ControlText
- BaseTextItem2147483639
+ Param2
27, 118
106, 20
White
- True
Segoe UI, 9pt
None
TopLeft
@@ -130,16 +118,15 @@
139, 91
- 438, 20
+ 377, 20
White
- True
Segoe UI, 9pt
None
TopLeft
- False
+ True
False
No
- =Parameters!param1
+ Parameters!param1
False
Black
ControlText
@@ -149,7 +136,6 @@
27, 91
106, 20
White
- True
Segoe UI, 9pt
None
TopLeft
@@ -166,7 +152,6 @@
195, 59
257, 26
White
- True
Microsoft Sans Serif, 15.75pt
None
TopLeft
@@ -188,7 +173,6 @@
50, 233
727, 60
White
- False
0
0
False
@@ -198,7 +182,6 @@
14, 16
658, 30
LightGray
- True
False
ControlText
Black
@@ -207,7 +190,6 @@
571, 7
41, 20
White
- True
Segoe UI, 9pt
None
MiddleRight
@@ -224,7 +206,6 @@
501, 7
53, 20
White
- True
Segoe UI, 9pt
None
MiddleRight
@@ -241,7 +222,6 @@
425, 7
55, 20
White
- True
Segoe UI, 9pt
None
MiddleRight
@@ -258,7 +238,6 @@
347, 7
52, 20
White
- True
Segoe UI, 9pt
None
MiddleRight
@@ -275,7 +254,6 @@
267, 7
55, 20
White
- True
Segoe UI, 9pt
None
MiddleRight
@@ -292,7 +270,6 @@
4, 7
100, 20
White
- True
Segoe UI, 9pt
None
TopLeft
@@ -318,7 +295,6 @@
50, 308
727, 60
White
- False
0
0
False
@@ -328,7 +304,6 @@
14, 14
658, 30
White
- True
False
Black
Black
@@ -337,7 +312,6 @@
571, 3
41, 20
White
- True
Segoe UI, 9pt
None
MiddleRight
@@ -355,7 +329,6 @@
501, 3
53, 20
White
- True
Segoe UI, 9pt
None
MiddleRight
@@ -373,7 +346,6 @@
425, 3
55, 20
White
- True
Segoe UI, 9pt
None
MiddleRight
@@ -391,7 +363,6 @@
347, 3
52, 20
White
- True
Segoe UI, 9pt
None
MiddleRight
@@ -409,7 +380,6 @@
268, 3
54, 20
White
- True
Segoe UI, 9pt
0
None
@@ -429,7 +399,6 @@
4, 3
258, 20
White
- True
Microsoft Sans Serif, 10pt
None
TopLeft
@@ -456,7 +425,6 @@
50, 383
727, 37
White
- False
0
0
False
@@ -466,7 +434,6 @@
14, 3
573, 20
White
- True
Segoe UI, 9.75pt
None
TopLeft
@@ -483,7 +450,6 @@
614, 3
100, 20
White
- True
Microsoft Sans Serif, 10pt
None
TopLeft
@@ -505,7 +471,6 @@
50, 435
727, 60
White
- False
0
0
False
diff --git a/src/AddIns/DisplayBindings/Data/ICSharpCode.Data.SQLServer/SQLServerDatabaseDriver.cs b/src/AddIns/DisplayBindings/Data/ICSharpCode.Data.SQLServer/SQLServerDatabaseDriver.cs
index 1477ffda1a..c8121bfa9f 100644
--- a/src/AddIns/DisplayBindings/Data/ICSharpCode.Data.SQLServer/SQLServerDatabaseDriver.cs
+++ b/src/AddIns/DisplayBindings/Data/ICSharpCode.Data.SQLServer/SQLServerDatabaseDriver.cs
@@ -154,7 +154,9 @@ namespace ICSharpCode.Data.Core.DatabaseDrivers.SQLServer
public override string ODBCProviderName
{
- get { return "SQLNCLI10.1"; }
+ // SqlServer 2012
+ get { return "SQLNCLI10.1"; }
+// get { return "SQLNCLI11.0"; }
}
public override void PopulateDatasources()
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/Commands/ViewCommands.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/Commands/ViewCommands.cs
new file mode 100644
index 0000000000..d4911867ec
--- /dev/null
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/Commands/ViewCommands.cs
@@ -0,0 +1,36 @@
+/*
+ * Created by SharpDevelop.
+ * User: Peter Forstmeier
+ * Date: 17.02.2014
+ * Time: 20:07
+ *
+ * To change this template use Tools | Options | Coding | Edit Standard Headers.
+ */
+using System;
+using ICSharpCode.Core;
+using ICSharpCode.SharpDevelop.Workbench;
+
+namespace ICSharpCode.Reporting.Addin.Commands
+{
+ ///
+ /// Description of ViewCommands.
+ ///
+ public class CreateDesignerCommand : AbstractMenuCommand
+ {
+ readonly OpenedFile openedFile;
+
+ public CreateDesignerCommand (OpenedFile openedFile) {
+ if (openedFile == null)
+ throw new ArgumentNullException("openedFile");
+ this.openedFile = openedFile;
+ }
+
+ public override void Run(){
+// var generator = new ReportDesignerGenerator();
+// DesignerView = new ReportDesignerView(openedFile, generator);
+ MessageService.ShowMessage("ReportDesigner not available at the Moment","New ReportDesigner");
+ }
+
+// public ReportDesignerView DesignerView {get; private set;}
+ }
+}
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/Configuration/AssemblyInfo.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/Configuration/AssemblyInfo.cs
new file mode 100644
index 0000000000..aa3d0a9cc4
--- /dev/null
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/Configuration/AssemblyInfo.cs
@@ -0,0 +1,16 @@
+/*
+ * Created by SharpDevelop.
+ * User: Peter Forstmeier
+ * Date: 10.02.2014
+ * Time: 20:24
+ *
+ * To change this template use Tools | Options | Coding | Edit Standard Headers.
+ */
+
+using System.Reflection;
+
+[assembly: AssemblyTitle("")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
\ No newline at end of file
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/DesignerBinding/DesignerBinding.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/DesignerBinding/DesignerBinding.cs
new file mode 100644
index 0000000000..7009e0ba9d
--- /dev/null
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/DesignerBinding/DesignerBinding.cs
@@ -0,0 +1,64 @@
+/*
+ * Created by SharpDevelop.
+ * User: Peter Forstmeier
+ * Date: 11.02.2014
+ * Time: 20:19
+ *
+ * To change this template use Tools | Options | Coding | Edit Standard Headers.
+ */
+
+using System;
+using System.IO;
+using ICSharpCode.Core;
+using ICSharpCode.SharpDevelop;
+using ICSharpCode.SharpDevelop.Workbench;
+using ICSharpCode.Reporting.Addin.Commands;
+
+namespace ICSharpCode.Reporting.Addin.DesignerBinding {
+
+
+ public class ReportDesignerBinding:IDisplayBinding {
+
+
+ public bool IsPreferredBindingForFile(FileName fileName)
+ {
+ return true;
+ }
+
+
+ public bool CanCreateContentForFile(FileName fileName)
+ {
+ return Path.GetExtension(fileName).Equals(".srd", StringComparison.OrdinalIgnoreCase);
+ }
+
+
+ public double AutoDetectFileContent(FileName fileName, System.IO.Stream fileContent, string detectedMimeType)
+ {
+ throw new System.NotImplementedException();
+ }
+
+
+ public IViewContent CreateContentForFile(OpenedFile file)
+ {
+ // MessageService.ShowMessage("ReportDesigner not available at the Moment","New ReportDesigner");
+ // return null;
+
+ if (file.IsDirty) {
+ MessageService.ShowMessage("ReportWizard not available at the Moment","New ReportDesigner");
+ return null;
+ // var cmd = new ReportWizardCommand(file);
+ // cmd.Run();
+ // if (cmd.Canceled) {
+ // return null;
+ // }
+ // file.SetData(cmd.GeneratedReport.ToArray());
+ }
+
+ var viewCmd = new CreateDesignerCommand(file);
+ viewCmd.Run();
+ // return viewCmd.DesignerView;
+ return null;
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/EmptyReport.xft b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/EmptyReport.xft
new file mode 100644
index 0000000000..2df9438229
--- /dev/null
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/EmptyReport.xft
@@ -0,0 +1,19 @@
+
+
+
+
+
+ ${res:Templates.SharpReport.NewReport}
+
+
+
+
+
+
+
+
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/ICSharpCode.Reporting.Addin.csproj b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/ICSharpCode.Reporting.Addin.csproj
new file mode 100644
index 0000000000..31efb742fb
--- /dev/null
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/ICSharpCode.Reporting.Addin.csproj
@@ -0,0 +1,100 @@
+
+
+
+ {0502FCF7-72F4-4587-936B-D0238CD0E072}
+ {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ Debug
+ AnyCPU
+ Library
+ ICSharpCode.Reporting.Addin
+ ICSharpCode.Reporting.Addin
+ Properties
+ False
+ False
+ False
+ False
+ obj\$(Configuration)\
+ 4
+ v4.5
+
+
+
+ x86
+ 4194304
+ False
+ Auto
+ 4096
+
+
+ ..\..\..\..\..\AddIns\Misc\SharpDevelopReporting\
+ True
+ Full
+ False
+ True
+ DEBUG;TRACE
+ obj\
+
+
+ bin\Release\
+ False
+ None
+ True
+ False
+ TRACE
+
+
+
+ 4.0
+
+
+
+ 3.5
+
+
+
+ 3.5
+
+
+
+ 3.5
+
+
+
+
+
+
+
+
+
+ Configuration\GlobalAssemblyInfo.cs
+
+
+
+
+
+
+
+ Always
+
+
+ Always
+
+
+
+
+ {2748AD25-9C63-4E12-877B-4DCE96FBED54}
+ ICSharpCode.SharpDevelop
+ False
+
+
+ {35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}
+ ICSharpCode.Core
+ False
+
+
+ {40CA84D4-ACFC-4646-9CDD-B87262D34093}
+ ICSharpCode.Reporting
+
+
+
+
\ No newline at end of file
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/ICSharpCode.Reporting.addin b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/ICSharpCode.Reporting.addin
new file mode 100644
index 0000000000..b971024ca0
--- /dev/null
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/ICSharpCode.Reporting.addin
@@ -0,0 +1,181 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/ICSharpCode.Reporting.csproj b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/ICSharpCode.Reporting.csproj
index 0351c2a900..4b230cf91a 100644
--- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/ICSharpCode.Reporting.csproj
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/ICSharpCode.Reporting.csproj
@@ -44,6 +44,15 @@
TRACE
+
+ ..\Libraries\Irony.dll
+
+
+ ..\Libraries\Irony.Interpreter.dll
+
+
+ ..\Libraries\PdfSharp.dll
+
3.0
@@ -54,6 +63,7 @@
3.5
+
3.5
@@ -70,16 +80,18 @@
+
+ Src\Configuration\GlobalAssemblyInfo.cs
+
-
-
+
+
-
-
+
@@ -88,22 +100,39 @@
+
+
+
+
+
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
@@ -113,24 +142,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
WpfReportViewer.xaml
Code
@@ -141,6 +193,9 @@
+
+
+
@@ -152,19 +207,31 @@
-
+
+
+
+
+
+
+
+
+ {35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}
+ ICSharpCode.Core
+ false
+
+
\ No newline at end of file
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Arrange/ArrangeStrategy.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Arrange/ArrangeStrategy.cs
index 42849e95f5..fa56c5c805 100644
--- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Arrange/ArrangeStrategy.cs
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Arrange/ArrangeStrategy.cs
@@ -17,9 +17,10 @@
// DEALINGS IN THE SOFTWARE.
using System;
+using System.Collections;
using System.Drawing;
using System.Linq;
-
+using System.Collections.Generic;
using ICSharpCode.Reporting.Interfaces.Export;
namespace ICSharpCode.Reporting.Arrange
@@ -29,65 +30,97 @@ namespace ICSharpCode.Reporting.Arrange
///
///
public interface IArrangeStrategy
- {
- void Arrange(IExportColumn exportColumn);
- }
+ {
+ void Arrange(IExportColumn exportColumn);
+ }
internal class ContainerArrangeStrategy:IArrangeStrategy
{
- public ContainerArrangeStrategy()
- {
- }
-
- public void Arrange(IExportColumn exportColumn)
- {
+ public void Arrange(IExportColumn exportColumn){
if (exportColumn == null)
throw new ArgumentNullException("exportColumn");
var container = exportColumn as IExportContainer;
if ((container != null) && (container.ExportedItems.Count > 0)) {
+ List canGrowItems = CreateCanGrowList(container);
+ if (canGrowItems.Count > 0) {
+ var containerSize = ArrangeInternal(container);
+ if (containerSize.Height > container.DesiredSize.Height) {
+ container.DesiredSize = new Size(containerSize.Width,containerSize.Height);
+ }
+ }
+ }
+ }
+
+
+ static Size ArrangeInternal(IExportContainer container)
+ {
+ var containerRectangle = container.DisplayRectangle;
+ Rectangle elementRectangle = Rectangle.Empty;
+
+ foreach (var element in container.ExportedItems) {
+ var con = element as IExportContainer;
+ if (con != null) {
+ var keep = containerRectangle;
+ con.DesiredSize = ArrangeInternal(con);
+ elementRectangle = AdujstRectangles(keep,con.DisplayRectangle);
+ containerRectangle = keep;
+
+ } else {
+ elementRectangle = AdujstRectangles(containerRectangle,element.DisplayRectangle);
+ }
-
- FindBiggestRectangle(container);
- var resizeable = from resize in container.ExportedItems
- where ((resize.CanGrow == true))
- select resize;
-
- if (resizeable.Any()) {
- if (!BiggestRectangle.IsEmpty) {
- var containerRectangle = new Rectangle(container.Location,container.Size);
- var desiredRectangle = Rectangle.Union(containerRectangle,BiggestRectangle);
- container.DesiredSize = new Size(container.Size.Width,desiredRectangle.Size.Height + 5);
- }
+ if (!containerRectangle.Contains(elementRectangle)) {
+
+ containerRectangle = new Rectangle(containerRectangle.Left,
+ containerRectangle.Top ,
+ containerRectangle.Width,
+ element.Location.Y + elementRectangle.Size.Height + 5);
+
+// containerRectangle = Rectangle.Union(containerRectangle,elementRectangle);
}
}
+ return containerRectangle.Size;
+ }
+
+
+ static Rectangle AdujstRectangles (Rectangle container,Rectangle element) {
+ return new Rectangle(container.Left + element.Left,
+ container.Top + element.Top,
+ element.Size.Width,
+ element.Size.Height);
}
- private void FindBiggestRectangle (IExportContainer container)
+
+ static List CreateCanGrowList(IExportContainer container)
{
- BiggestRectangle = Rectangle.Empty;
- /*
- foreach (var item in container.ExportedItems)
- {
- if (item.DesiredSize.Height > BiggestRectangle.Size.Height)
- {
- BiggestRectangle = new Rectangle(new Point(container.Location.X + item.Location.X,
- container.Location.Y + item.Location.Y)
- , item.DesiredSize);
- }
- }
- */
- foreach (var item in container.ExportedItems
- .Where(item => item.DesiredSize.Height > BiggestRectangle.Size.Height))
- {
- BiggestRectangle = new Rectangle(new Point(container.Location.X + item.Location.X,
- container.Location.Y + item.Location.Y)
- ,item.DesiredSize);
- }
+ var l1 = new List();
+ foreach (var element in container.Descendents()) {
+ if (element.CanGrow) {
+ l1.Add(element);
+ }
+ }
+ return l1;
}
-
- public Rectangle BiggestRectangle {get; private set;}
}
+
+ static class Extensions {
+
+ public static IEnumerable Descendents(this IExportContainer node) {
+ if (node == null) throw new ArgumentNullException("node");
+ if(node.ExportedItems.Count > 0) {
+ foreach (var child in node.ExportedItems) {
+ var cont = child as IExportContainer;
+ if (cont != null) {
+ foreach (var desc in Descendents(cont)) {
+ yield return desc;
+ }
+ }
+ yield return child;
+ }
+ }
+ }
+ }
}
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Arrange/MeasurementStrategy.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Arrange/MeasurementStrategy.cs
index 9cab307e3a..7dcf2f3b08 100644
--- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Arrange/MeasurementStrategy.cs
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Arrange/MeasurementStrategy.cs
@@ -19,8 +19,8 @@
using System;
using System.Drawing;
using ICSharpCode.Reporting.Globals;
-using ICSharpCode.Reporting.Interfaces;
-using ICSharpCode.Reporting.Items;
+using ICSharpCode.Reporting.Interfaces.Export;
+using ICSharpCode.Reporting.PageBuilder.ExportColumns;
namespace ICSharpCode.Reporting.Arrange
{
@@ -29,28 +29,38 @@ namespace ICSharpCode.Reporting.Arrange
///
public interface IMeasurementStrategy
{
- Size Measure(IPrintableObject reportItem,Graphics graphics);
+ Size Measure(IExportColumn exportColumn,Graphics graphics);
}
- internal class ContainerMeasurementStrategy:IMeasurementStrategy
+ class ContainerMeasurementStrategy:IMeasurementStrategy
{
- public ContainerMeasurementStrategy()
- {
- }
- public Size Measure(IPrintableObject reportItem,Graphics graphics)
+ public Size Measure(IExportColumn exportColumn,Graphics graphics)
{
- return reportItem.Size;
+ var items = ((ExportContainer)exportColumn).ExportedItems;
+
+ foreach (var element in items) {
+ if (element is IExportContainer) {
+ Measure(element,graphics);
+ }
+ var tbi = element as IExportText;
+ if (tbi != null) {
+ element.DesiredSize = MeasurementService.Measure(tbi,graphics);
+ }
+ }
+ exportColumn.DesiredSize = exportColumn.Size;
+ return exportColumn.DesiredSize;
}
}
- internal class TextBasedMeasurementStrategy:IMeasurementStrategy
+
+ class TextBasedMeasurementStrategy:IMeasurementStrategy
{
- public Size Measure(IPrintableObject reportItem, Graphics graphics)
+ public Size Measure(IExportColumn exportColumn, Graphics graphics)
{
- return MeasurementService.Measure((ITextItem)reportItem,graphics);
+ return MeasurementService.Measure((IExportText)exportColumn,graphics);
}
}
}
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/BaseClasses/BasicParameter.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/BaseClasses/BasicParameter.cs
new file mode 100644
index 0000000000..08ac722859
--- /dev/null
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/BaseClasses/BasicParameter.cs
@@ -0,0 +1,40 @@
+// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy of this
+// software and associated documentation files (the "Software"), to deal in the Software
+// without restriction, including without limitation the rights to use, copy, modify, merge,
+// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
+// to whom the Software is furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in all copies or
+// substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+// DEALINGS IN THE SOFTWARE.
+
+namespace ICSharpCode.Reporting
+{
+ ///
+ /// Description of BasicParameter.
+ ///
+ public class BasicParameter
+ {
+ public BasicParameter (){
+ }
+
+ public BasicParameter(string parameterName,string parameterValue){
+ this.ParameterName = parameterName;
+ this.ParameterValue = parameterValue;
+ }
+
+ public string ParameterName {get;set;}
+
+ public string Type {get;set;}
+
+ public string ParameterValue {get;set;}
+ }
+}
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/BaseClasses/ExtensionMethods.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/BaseClasses/ExtensionMethods.cs
new file mode 100644
index 0000000000..6458759e5a
--- /dev/null
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/BaseClasses/ExtensionMethods.cs
@@ -0,0 +1,110 @@
+// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy of this
+// software and associated documentation files (the "Software"), to deal in the Software
+// without restriction, including without limitation the rights to use, copy, modify, merge,
+// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
+// to whom the Software is furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in all copies or
+// substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+// DEALINGS IN THE SOFTWARE.
+
+using System;
+using System.Collections.Generic;
+using System.Windows;
+using System.Windows.Media;
+namespace ICSharpCode.Reporting.BaseClasses
+{
+ ///
+ /// Description of ExtensionMethodes.
+ /// Copy from D:\git_Sharpdevelop_Reporting\src\AddIns\Misc\Reports\ICSharpCode.Reports.Core\Project\WPF\ExtensionMethodes.cs
+ ///
+ /// (this IEnumerable input, Action action)
+ {
+ if (input == null)
+ throw new ArgumentNullException("input");
+ foreach (T element in input) {
+ action(element);
+ }
+ }
+
+ #endregion
+
+ #region system.drawing -> Wpf
+
+ public static Point ToWpf(this System.Drawing.Point p)
+ {
+ return new Point(p.X, p.Y);
+ }
+
+ public static Size ToWpf(this System.Drawing.Size s)
+ {
+ return new Size(s.Width, s.Height);
+ }
+
+ public static Rect ToWpf(this System.Drawing.Rectangle rect)
+ {
+ return new Rect(rect.Location.ToWpf(), rect.Size.ToWpf());
+ }
+
+ public static System.Windows.Media.Color ToWpf(this System.Drawing.Color c)
+ {
+ return System.Windows.Media.Color.FromArgb(c.A, c.R, c.G, c.B);
+ }
+
+ #endregion
+
+ #region DPI independence
+ public static Rect TransformToDevice(this Rect rect, Visual visual)
+ {
+ Matrix matrix = PresentationSource.FromVisual(visual).CompositionTarget.TransformToDevice;
+ return Rect.Transform(rect, matrix);
+ }
+
+ public static Rect TransformFromDevice(this Rect rect, Visual visual)
+ {
+ Matrix matrix = PresentationSource.FromVisual(visual).CompositionTarget.TransformFromDevice;
+ return Rect.Transform(rect, matrix);
+ }
+
+ public static Size TransformToDevice(this Size size, Visual visual)
+ {
+ Matrix matrix = PresentationSource.FromVisual(visual).CompositionTarget.TransformToDevice;
+ return new Size(size.Width * matrix.M11, size.Height * matrix.M22);
+ }
+
+ public static Size TransformFromDevice(this Size size, Visual visual)
+ {
+ Matrix matrix = PresentationSource.FromVisual(visual).CompositionTarget.TransformFromDevice;
+ return new Size(size.Width * matrix.M11, size.Height * matrix.M22);
+ }
+
+ public static Point TransformToDevice(this Point point, Visual visual)
+ {
+ Matrix matrix = PresentationSource.FromVisual(visual).CompositionTarget.TransformToDevice;
+ return new Point(point.X * matrix.M11, point.Y * matrix.M22);
+ }
+
+ public static Point TransformFromDevice(this Point point, Visual visual)
+ {
+ Matrix matrix = PresentationSource.FromVisual(visual).CompositionTarget.TransformFromDevice;
+ return new Point(point.X * matrix.M11, point.Y * matrix.M22);
+ }
+ #endregion
+
+
+ }
+}
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/BaseClasses/Page.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/BaseClasses/Page.cs
deleted file mode 100644
index d803f070ff..0000000000
--- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/BaseClasses/Page.cs
+++ /dev/null
@@ -1,135 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-
-using ICSharpCode.Reporting.Interfaces;
-using ICSharpCode.Reporting.Interfaces.Export;
-
-namespace ICSharpCode.Reporting.BaseClasses
-{
- ///
- /// Description of Page.
- ///
- ///
-
- public class Page:IExportContainer,IPage
- {
- public Page(IPageInfo pageInfo,Size pageSize)
- {
- if (pageInfo == null) {
- throw new ArgumentNullException("pageInfo");
- }
- PageInfo = pageInfo;
- Name = "Page";
- Size = pageSize;
- exportedItems = new List();
- }
-
- public bool IsFirstPage {get;set;}
-
-
- public IPageInfo PageInfo {get;private set;}
-
-
- public string Name {get;set;}
-
-
- public System.Drawing.Size Size {get;set;}
-
-
- public System.Drawing.Point Location {get;set;}
-
-
- public List exportedItems;
-
- public List ExportedItems {
- get { return exportedItems; }
- }
-
-
- public IExportContainer CreateExportColumn()
- {
- throw new NotImplementedException();
- }
-
- public ICSharpCode.Reporting.Arrange.IArrangeStrategy GetArrangeStrategy()
- {
- throw new NotImplementedException();
- }
-
- public Size DesiredSize {
- get {
- throw new NotImplementedException();
- }
- set {
- throw new NotImplementedException();
- }
- }
-
- public Color ForeColor {
- get {
- throw new NotImplementedException();
- }
- set {
- throw new NotImplementedException();
- }
- }
-
- public Color BackColor {
- get {
- throw new NotImplementedException();
- }
- set {
- throw new NotImplementedException();
- }
- }
-
-
- public Color FrameColor {
- get {
- throw new NotImplementedException();
- }
- set {
- throw new NotImplementedException();
- }
- }
-
-
- public IExportColumn Parent {
- get {
- return null;
- }
- set {
- throw new NotImplementedException();
- }
- }
-
- public bool CanGrow {get;set;}
-
- public bool CanShrink {get;set;}
-
- public Rectangle DisplayRectangle {
- get {
- return new Rectangle(Location,Size);
- }
- }
- }
-}
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Collections.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Collections.cs
index 5ddac20cc9..5bc4688209 100644
--- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Collections.cs
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Collections.cs
@@ -27,15 +27,9 @@ using ICSharpCode.Reporting.Items;
namespace ICSharpCode.Reporting
{
- ///
- /// Description of Collections.
- ///
- public class ColumnCollection: Collection{
-
- public ColumnCollection()
- {
- }
+ public class SortColumnCollection: Collection
+ {
public AbstractColumn Find (string columnName)
{
@@ -43,33 +37,22 @@ namespace ICSharpCode.Reporting
throw new ArgumentNullException("columnName");
}
- return this.FirstOrDefault(x => 0 == String.Compare(x.ColumnName,columnName,true,CultureInfo.InvariantCulture));
+ return this.FirstOrDefault(x => 0 == String.Compare(x.ColumnName,columnName,StringComparison.OrdinalIgnoreCase));
}
- public void AddRange (IEnumerable items)
+ public void AddRange (IEnumerable items)
{
- foreach (AbstractColumn item in items){
+ foreach (SortColumn item in items){
this.Add(item);
}
}
-
-
- ///
- /// The Culture is used for direct String Comparison
- ///
-
- public static CultureInfo Culture
- {
- get { return CultureInfo.CurrentCulture;}
- }
}
-
- public class SortColumnCollection: ColumnCollection
+ public class GroupColumnCollection: SortColumnCollection
{
- public SortColumnCollection()
+ public GroupColumnCollection()
{
}
@@ -79,49 +62,38 @@ namespace ICSharpCode.Reporting
throw new ArgumentNullException("columnName");
}
- return this.FirstOrDefault(x => 0 == String.Compare(x.ColumnName,columnName,true,CultureInfo.InvariantCulture));
- }
-
-
- public void AddRange (IEnumerable items)
- {
- foreach (SortColumn item in items){
- this.Add(item);
- }
+ return this.FirstOrDefault(x => 0 == String.Compare(x.ColumnName,columnName,StringComparison.OrdinalIgnoreCase));
}
}
- public class GroupColumnCollection: SortColumnCollection
- {
- public GroupColumnCollection()
- {
+ public class ParameterCollection: Collection{
+
+ public ParameterCollection()
+ {
}
- public new AbstractColumn Find (string columnName)
+
+ public BasicParameter Find (string parameterName)
{
- if (String.IsNullOrEmpty(columnName)) {
- throw new ArgumentNullException("columnName");
+ if (String.IsNullOrEmpty(parameterName)) {
+ throw new ArgumentNullException("parameterName");
}
-
- return this.FirstOrDefault(x => 0 == String.Compare(x.ColumnName,columnName,true,CultureInfo.InvariantCulture));
+ return this.FirstOrDefault(x => 0 == String.Compare(x.ParameterName,parameterName,StringComparison.OrdinalIgnoreCase));
}
- }
-
-
- public class ReportItemCollection : Collection
- {
- // Trick to get the inner list as List (InnerList always has that type because we only use
- // the parameterless constructor on Collection)
- private List InnerList {
- get { return (List)base.Items; }
+ public static CultureInfo Culture
+ {
+ get { return System.Globalization.CultureInfo.CurrentCulture; }
}
- private void Sort(IComparer comparer)
+
+ public void AddRange (IEnumerable items)
{
- InnerList.Sort(comparer);
+ foreach (BasicParameter item in items){
+ this.Add(item);
+ }
}
}
}
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/DataManager/Listhandling/CollectionDataSource.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/DataManager/Listhandling/CollectionDataSource.cs
new file mode 100644
index 0000000000..eed7ca2ad0
--- /dev/null
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/DataManager/Listhandling/CollectionDataSource.cs
@@ -0,0 +1,233 @@
+// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy of this
+// software and associated documentation files (the "Software"), to deal in the Software
+// without restriction, including without limitation the rights to use, copy, modify, merge,
+// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
+// to whom the Software is furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in all copies or
+// substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+// DEALINGS IN THE SOFTWARE.
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Linq;
+
+using ICSharpCode.Reporting.BaseClasses;
+using ICSharpCode.Reporting.DataSource;
+using ICSharpCode.Reporting.Interfaces;
+using ICSharpCode.Reporting.Interfaces.Data;
+using ICSharpCode.Reporting.Items;
+
+namespace ICSharpCode.Reporting.DataManager.Listhandling
+{
+ ///
+ /// Description of DataSource.
+ ///
+ public enum OrderGroup {
+ AsIs,
+ Sorted,
+ Grouped
+ }
+
+ public class CollectionDataSource:IDataSource
+ {
+ readonly DataCollection
+
@@ -336,7 +334,6 @@
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}
ICSharpCode.Reports.Core
- False
diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/Commands/ViewCommands.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/Commands/ViewCommands.cs
index 3aaaaaf7eb..26e2b2742e 100644
--- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/Commands/ViewCommands.cs
+++ b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/Commands/ViewCommands.cs
@@ -50,7 +50,6 @@ namespace ICSharpCode.Reports.Addin.Commands
}
-
public class CollectParametersCommand :AbstractCommand
{
readonly ReportSettings reportSettings;
diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/Designer/ImageDesigner.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/Designer/ImageDesigner.cs
index 531bc5c47b..d3d9f9e78f 100644
--- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/Designer/ImageDesigner.cs
+++ b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/Designer/ImageDesigner.cs
@@ -19,7 +19,6 @@
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
-using System.Windows.Forms;
using System.Windows.Forms.Design;
namespace ICSharpCode.Reports.Addin.Designer
@@ -30,8 +29,8 @@ namespace ICSharpCode.Reports.Addin.Designer
///
public class ImageDesigner:ControlDesigner
{
- private ISelectionService selectionService;
- private IComponentChangeService componentChangeService;
+ ISelectionService selectionService;
+ IComponentChangeService componentChangeService;
public ImageDesigner()
{
diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/DesignerBinding/ReportDesignerDisplayBinding.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/DesignerBinding/ReportDesignerDisplayBinding.cs
index 9f6bd9d4c5..e14154a9f0 100644
--- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/DesignerBinding/ReportDesignerDisplayBinding.cs
+++ b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/DesignerBinding/ReportDesignerDisplayBinding.cs
@@ -53,6 +53,7 @@ namespace ICSharpCode.Reports.Addin
return viewCmd.DesignerView;
}
+
public bool IsPreferredBindingForFile(ICSharpCode.Core.FileName fileName)
{
return true;
diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/DesignerBinding/ReportDesignerGenerator.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/DesignerBinding/ReportDesignerGenerator.cs
index 9fb085756d..1d3b284d55 100644
--- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/DesignerBinding/ReportDesignerGenerator.cs
+++ b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/DesignerBinding/ReportDesignerGenerator.cs
@@ -111,6 +111,7 @@ namespace ICSharpCode.Reports.Addin
foreach (IComponent component in viewContent.Host.Container.Components) {
BaseSection b = component as BaseSection;
if (b != null) {
+ Console.WriteLine(b.BackColor.ToString());
rpd.Save(component,xml);
}
}
diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/ReportDesignerView.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/ReportDesignerView.cs
index 0bc75ae00d..646327c5b4 100644
--- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/ReportDesignerView.cs
+++ b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/ReportDesignerView.cs
@@ -28,18 +28,18 @@ using System.Text;
using System.Windows.Forms;
using ICSharpCode.Core;
-using ICSharpCode.Reports.Addin.Commands;
-using ICSharpCode.Reports.Addin.Designer;
-using ICSharpCode.Reports.Addin.SecondaryViews;
-
using ICSharpCode.Reports.Core;
using ICSharpCode.Reports.Core.Exporter;
using ICSharpCode.Reports.Core.Exporter.ExportRenderer;
+
using ICSharpCode.Reports.Core.Globals;
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.WinForms;
using ICSharpCode.SharpDevelop.Workbench;
+using ICSharpCode.Reports.Addin.Commands;
+using ICSharpCode.Reports.Addin.Designer;
+using ICSharpCode.Reports.Addin.SecondaryViews;
namespace ICSharpCode.Reports.Addin
{
@@ -49,26 +49,22 @@ namespace ICSharpCode.Reports.Addin
public class ReportDesignerView : AbstractViewContent, IHasPropertyContainer,
IClipboardHandler,IUndoHandler, IToolsHost,IPrintable
{
-
- private bool IsFormsDesignerVisible;
- private bool tabOrderMode;
- private bool hasUnmergedChanges;
- private bool unloading;
-
- private string reportFileContent;
-
- private Panel panel;
- private ReportDesignerLoader loader;
-
- private IDesignerGenerator generator;
- private DesignSurface designSurface;
- private DefaultServiceContainer defaultServiceContainer;
- private ReportDesignerUndoEngine undoEngine;
-
- private XmlView xmlView;
- private ReportPreview reportPreview;
- private ReportViewerSecondaryView reportViewer;
-// private TestWPFReportPreview testView;
+ readonly IDesignerGenerator generator;
+ bool IsFormsDesignerVisible;
+ bool tabOrderMode;
+ bool hasUnmergedChanges;
+ bool unloading;
+ string reportFileContent;
+ Panel panel;
+ ReportDesignerLoader loader;
+ DesignSurface designSurface;
+ DefaultServiceContainer defaultServiceContainer;
+ ReportDesignerUndoEngine undoEngine;
+
+ XmlView xmlView;
+ ReportPreview reportPreview;
+ ReportViewerSecondaryView reportViewer;
+// TestWPFReportPreview testView;
#region Constructor
@@ -79,14 +75,16 @@ namespace ICSharpCode.Reports.Addin
public ReportDesignerView(OpenedFile openedFile, IDesignerGenerator generator):base (openedFile)
{
if (openedFile == null) {
- throw new ArgumentNullException("opendFile");
+ throw new ArgumentNullException("openedFile");
}
if (generator == null) {
throw new ArgumentNullException("generator");
}
Console.WriteLine("ReportDesignerView");
+
this.generator = generator;
this.generator.Attach(this);
+
base.TabPageText = ResourceService.GetString("SharpReport.Design");
ReportingSideTabProvider.AddViewContent(this);
}
@@ -104,8 +102,7 @@ namespace ICSharpCode.Reports.Addin
private void SetupSecondaryView ()
{
- Console.WriteLine("SetupSecondaryView ()");
-
+ LoggingService.Info("Form Designer: SetupSecondaryView ");
xmlView = new XmlView(generator,this);
SecondaryViewContents.Add(xmlView);
@@ -115,8 +112,8 @@ namespace ICSharpCode.Reports.Addin
reportViewer = new ReportViewerSecondaryView(loader,this);
SecondaryViewContents.Add(reportViewer);
-// var wpfViewer = new WPFReportPreview(loader,this);
-// SecondaryViewContents.Add(wpfViewer);
+ var wpfViewer = new WPFReportPreview(loader,this);
+ SecondaryViewContents.Add(wpfViewer);
// testView = new TestWPFReportPreview(loader,this);
// SecondaryViewContents.Add(testView);
@@ -129,8 +126,7 @@ namespace ICSharpCode.Reports.Addin
private void LoadDesigner(Stream stream)
{
- Console.WriteLine("LoadDesigner(Stream stream)");
- LoggingService.Info("Form Designer: BEGIN INITIALIZE");
+ LoggingService.Info("Form Designer: LoadDesigner");
CreatePanel();
defaultServiceContainer = new DefaultServiceContainer();
@@ -260,7 +256,7 @@ namespace ICSharpCode.Reports.Addin
private static string FormatLoadErrors(DesignSurface designSurface)
{
- StringBuilder sb = new StringBuilder();
+ var sb = new StringBuilder();
foreach(Exception le in designSurface.LoadErrors) {
sb.AppendLine(le.ToString());
sb.AppendLine();
@@ -272,8 +268,7 @@ namespace ICSharpCode.Reports.Addin
private void MergeFormChanges()
{
LoggingService.Info("MergeFormChanges()");
- System.Diagnostics.Trace.WriteLine("View:MergeFormChanges()");
- this.designSurface.Flush();
+ designSurface.Flush();
generator.MergeFormChanges(null);
LoggingService.Info("Finished merging form changes");
hasUnmergedChanges = false;
@@ -303,7 +298,7 @@ namespace ICSharpCode.Reports.Addin
private void ReportExplorer_PropertyChanged (object sender,System.ComponentModel.PropertyChangedEventArgs e)
{
- Console.WriteLine("ReportExplorer_PropertyChanged");
+ LoggingService.Info("ReportExplorer_PropertyChanged");
this.MakeDirty();
ReportExplorerPad explorerPad = CheckReportExplorer();
IComponentChangeService change = Host.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
@@ -326,11 +321,11 @@ namespace ICSharpCode.Reports.Addin
private void SelectionChangedHandler(object sender, EventArgs args)
{
- ISelectionService ser = (ISelectionService)sender;
- AbstractItem it = ser.PrimarySelection as AbstractItem;
- if (it != null) {
- if (String.IsNullOrEmpty(it.Site.Name)) {
- it.Site.Name = it.Name;
+ var selectionService = (ISelectionService)sender;
+ var item = selectionService.PrimarySelection as AbstractItem;
+ if (item != null) {
+ if (String.IsNullOrEmpty(item.Site.Name)) {
+ item.Site.Name = item.Name;
}
}
UpdatePropertyPadSelection((ISelectionService)sender);
@@ -345,10 +340,7 @@ namespace ICSharpCode.Reports.Addin
void TransactionClose(object sender, DesignerTransactionCloseEventArgs e)
{
if (shouldUpdateSelectableObjects) {
- // update the property pad after the transaction is *really* finished
- // (including updating the selection)
-// WorkbenchSingleton.SafeThreadAsyncCall(UpdatePropertyPad);
- SD.MainThread.InvokeAsync(null).FireAndForget();
+ SD.MainThread.InvokeAsync(UpdatePropertyPad).FireAndForget();
shouldUpdateSelectableObjects = false;
}
}
@@ -360,7 +352,7 @@ namespace ICSharpCode.Reports.Addin
private void OnComponentChanged (object sender, ComponentChangedEventArgs e)
{
- BaseImageItem item = e.Component as BaseImageItem;
+ var item = e.Component as BaseImageItem;
if (item != null) {
item.ReportFileName = this.loader.ReportModel.ReportSettings.FileName;
@@ -399,8 +391,8 @@ namespace ICSharpCode.Reports.Addin
{
Console.WriteLine("UpdatePropertyPad()");
if (IsFormsDesignerVisible && Host != null) {
- propertyContainer.Host = Host;
- propertyContainer.SelectableObjects = Host.Container.Components;
+ PropertyContainer.Host = Host;
+ PropertyContainer.SelectableObjects = Host.Container.Components;
ISelectionService selectionService = (ISelectionService)this.designSurface.GetService(typeof(ISelectionService));
if (selectionService != null) {
UpdatePropertyPadSelection(selectionService);
@@ -414,7 +406,7 @@ namespace ICSharpCode.Reports.Addin
ICollection selection = selectionService.GetSelectedComponents();
object[] selArray = new object[selection.Count];
selection.CopyTo(selArray, 0);
- propertyContainer.SelectedObjects = selArray;
+ PropertyContainer.SelectedObjects = selArray;
}
@@ -422,7 +414,6 @@ namespace ICSharpCode.Reports.Addin
#region IHasPropertyContainer impementation
-// PropertyContainer propertyContainer = new PropertyContainer();
PropertyContainer propertyContainer;
public PropertyContainer PropertyContainer {
@@ -640,9 +631,9 @@ namespace ICSharpCode.Reports.Addin
public void TogglePageMargin ()
{
- IDesignerHost h = (IDesignerHost)this.designSurface.GetService(typeof(IDesignerHost));
- RootReportModel r = (RootReportModel)h.RootComponent;
- r.Toggle();
+ IDesignerHost designerHost = (IDesignerHost)this.designSurface.GetService(typeof(IDesignerHost));
+ RootReportModel rootReportModel = (RootReportModel)designerHost.RootComponent;
+ rootReportModel.Toggle();
}
#endregion
@@ -658,7 +649,7 @@ namespace ICSharpCode.Reports.Addin
public virtual void ShowTabOrder()
{
if (!IsTabOrderMode) {
- IMenuCommandService menuCommandService = (IMenuCommandService)designSurface.GetService(typeof(IMenuCommandService));
+ var menuCommandService = (IMenuCommandService)designSurface.GetService(typeof(IMenuCommandService));
menuCommandService.GlobalInvoke(StandardCommands.TabOrder);
tabOrderMode = true;
}
@@ -667,7 +658,7 @@ namespace ICSharpCode.Reports.Addin
public virtual void HideTabOrder()
{
if (IsTabOrderMode) {
- IMenuCommandService menuCommandService = (IMenuCommandService)designSurface.GetService(typeof(IMenuCommandService));
+ var menuCommandService = (IMenuCommandService)designSurface.GetService(typeof(IMenuCommandService));
menuCommandService.GlobalInvoke(StandardCommands.TabOrder);
tabOrderMode = false;
}
diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/SecondaryViews/TestView/TestWPFReportPreview.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/SecondaryViews/TestView/TestWPFReportPreview.cs
deleted file mode 100644
index 024bbf915f..0000000000
--- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/SecondaryViews/TestView/TestWPFReportPreview.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.Collections.ObjectModel;
-using System.Xml;
-
-using ICSharpCode.Reporting;
-using ICSharpCode.Reporting.BaseClasses;
-using ICSharpCode.Reporting.Exporter;
-using ICSharpCode.Reporting.Globals;
-using ICSharpCode.Reporting.Interfaces;
-using ICSharpCode.Reporting.Interfaces.Export;
-using ICSharpCode.Reporting.Items;
-using ICSharpCode.Reporting.WpfReportViewer;
-using ICSharpCode.Reporting.Xml;
-using ICSharpCode.SharpDevelop;
-using ICSharpCode.SharpDevelop.Gui;
-using ICSharpCode.SharpDevelop.Workbench;
-
-//using ICSharpCode.Reports.Addin.Commands;
-//using ICSharpCode.Reports.Core;
-//using ICSharpCode.Reports.Core.Exporter.ExportRenderer;
-//using ICSharpCode.Reports.Core.Globals;
-//using ICSharpCode.Reports.Core.WpfReportViewer;
-
-
-
-
-namespace ICSharpCode.Reports.Addin.SecondaryViews
-{
- ///
- /// Description of WPFReportPreview.
- ///
- public class TestWPFReportPreview: AbstractSecondaryViewContent
- {
- ReportDesignerLoader designerLoader;
-
- ICSharpCode.Reporting.WpfReportViewer.IWpfReportViewer viewer;
-
-// IExportRunner exportRunner = new ExportRunner();
-
- public TestWPFReportPreview(ReportDesignerLoader loader,IViewContent content):base(content)
- {
- this.designerLoader = loader;
- viewer = new ICSharpCode.Reporting.WpfReportViewer.WpfReportViewer();
- base.TabPageText = "TestWpf View";
- Pages = new Collection();
- }
-
-
- public Collection Pages{get;private set;}
-
-
- protected override void LoadFromPrimary()
- {
- Pages.Clear();
- var xmDoc = designerLoader.CreateXmlModel();
- var modulLoader = new ModelLoader();
- ReportModel model = (ReportModel)modulLoader.Load(xmDoc.DocumentElement);
-
- var reportingFactory = new ReportingFactory();
- var reportCreator = reportingFactory.ReportCreator(model);
- reportCreator.BuildExportList();
-
- PreviewViewModel previewViewModel = new PreviewViewModel (model.ReportSettings,reportCreator.Pages);
- viewer.SetBinding(previewViewModel);
- }
-
- protected override void SaveToPrimary()
- {
-// throw new NotImplementedException();
- }
-
-
- public override object Control {
- get {
- return viewer;
- }
- }
- }
-}
diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/SecondaryViews/WPFReportPreview.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/SecondaryViews/WPFReportPreview.cs
index fed724e132..62844968cc 100644
--- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/SecondaryViews/WPFReportPreview.cs
+++ b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/SecondaryViews/WPFReportPreview.cs
@@ -17,14 +17,12 @@
// DEALINGS IN THE SOFTWARE.
using System;
-using ICSharpCode.Reporting.Xml;
using ICSharpCode.Reports.Addin.Commands;
using ICSharpCode.Reports.Core;
using ICSharpCode.Reports.Core.Exporter.ExportRenderer;
using ICSharpCode.Reports.Core.Globals;
using ICSharpCode.Reports.Core.WpfReportViewer;
using ICSharpCode.SharpDevelop;
-using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Workbench;
namespace ICSharpCode.Reports.Addin.SecondaryViews
diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/BaseItems/Graphics/BaseImageItem.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/BaseItems/Graphics/BaseImageItem.cs
index 19f79c0b38..b11f3c11c0 100644
--- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/BaseItems/Graphics/BaseImageItem.cs
+++ b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/BaseItems/Graphics/BaseImageItem.cs
@@ -16,13 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
-///
-/// Handles the drawing of Images like Bitmap's and so on
-///
-///
-/// created by - Forstmeier Peter
-/// created on - 04.10.2005 11:17:29
-///
using System;
using System.Drawing;
using System.Globalization;
diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Events/PrintEventArgs.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Events/PrintEventArgs.cs
index 3fad2cc8c1..bf40d973c4 100644
--- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Events/PrintEventArgs.cs
+++ b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Events/PrintEventArgs.cs
@@ -20,14 +20,7 @@ using System;
using System.Drawing;
- ///
- /// Handles BeforPrint and AfterPrint Events
- ///
- ///
- /// created by - Forstmeier Peter
- /// created on - 22.11.2004 13:06:44
- ///
-
+
namespace ICSharpCode.Reports.Core {
public class SectionEventArgs : EventArgs
diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Exporter/ExportColumns/ExportText.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Exporter/ExportColumns/ExportText.cs
index 07995c522a..a07a64b255 100644
--- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Exporter/ExportColumns/ExportText.cs
+++ b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Exporter/ExportColumns/ExportText.cs
@@ -140,6 +140,7 @@ namespace ICSharpCode.Reports.Core.Exporter {
}
+
internal class CalculatePdfFormat {
public static int PdfAlignment(TextStyleDecorator textDecorator)
diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Globals/GlobalLists.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Globals/GlobalLists.cs
index f415ba22fc..bc16fe66c5 100644
--- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Globals/GlobalLists.cs
+++ b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/Globals/GlobalLists.cs
@@ -81,7 +81,8 @@ namespace ICSharpCode.Reports.Core.Globals
"System.DateTime",
"System.TimeSpan",
"System.Decimal",
- "System.Int"};
+ "System.Int16",
+ "System.Int32"};
#endregion
#region Aggregates
diff --git a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/WPF/FixedDocumentCreator.cs b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/WPF/FixedDocumentCreator.cs
index d2a24d5407..831ad4afc8 100644
--- a/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/WPF/FixedDocumentCreator.cs
+++ b/src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/WPF/FixedDocumentCreator.cs
@@ -94,19 +94,19 @@ namespace ICSharpCode.Reports.Core.WPF
var text = column as ExportText;
if (text != null) {
- var t = CreateTextBlock(text);
+ var textBlock = CreateTextBlock(text);
if (column.StyleDecorator.DrawBorder) {
border = CreateBorder(column.StyleDecorator as BaseStyleDecorator,
GlobalValues.DefaultBorderThickness,
GlobalValues.DefaultCornerRadius );
- border.Child = t;
+ border.Child = textBlock;
element = border;
}
else
{
- element = t;
+ element = textBlock;
}
}
diff --git a/src/Setup/Files.wxs b/src/Setup/Files.wxs
index d0d88da2eb..dd9e6d9e24 100644
--- a/src/Setup/Files.wxs
+++ b/src/Setup/Files.wxs
@@ -1485,26 +1485,25 @@
-
+
diff --git a/src/Setup/Setup.wxs b/src/Setup/Setup.wxs
index 9e03485954..dbdbd1846b 100644
--- a/src/Setup/Setup.wxs
+++ b/src/Setup/Setup.wxs
@@ -448,12 +448,11 @@
-
+
diff --git a/src/Tools/CheckFileHeaders/Main.cs b/src/Tools/CheckFileHeaders/Main.cs
index 0f4021f51d..f0a7a623d9 100644
--- a/src/Tools/CheckFileHeaders/Main.cs
+++ b/src/Tools/CheckFileHeaders/Main.cs
@@ -118,9 +118,7 @@ namespace CheckFileHeaders
string content = GetFileContent(file);
int lastLine;
int headerType = AnalyzeHeader(content, out lastLine);
- if (headerType == 8 || headerType == 9)
- return;
- if (headerType != 7)
+ if (headerType == 0 || headerType == 8 || headerType == 9)
return;
if (headerType == 4) {
Console.WriteLine("unknown file: " + file);