Commit 89d79da2 authored by Nuno Alves's avatar Nuno Alves
Browse files

Merge branch 'feature/complete-code-annotation' into 'master'

From feature/complete-code-annotation into master

See merge request datencockpit-open/pdf-generator!6
parents b20408a8 6f60be42
Pipeline #390704 passed with stages
in 38 seconds
...@@ -42,7 +42,7 @@ namespace PDFGenerator.EvaluationReport ...@@ -42,7 +42,7 @@ namespace PDFGenerator.EvaluationReport
/// <summary> /// <summary>
/// Gets the current page. /// Gets the current page.
/// </summary> /// </summary>
/// <returns></returns> /// <returns>the current page</returns>
protected int GetCurrentPage() protected int GetCurrentPage()
{ {
return Document.GetPdfDocument().GetNumberOfPages(); return Document.GetPdfDocument().GetNumberOfPages();
...@@ -51,7 +51,7 @@ namespace PDFGenerator.EvaluationReport ...@@ -51,7 +51,7 @@ namespace PDFGenerator.EvaluationReport
/// <summary> /// <summary>
/// Gets default page size. /// Gets default page size.
/// </summary> /// </summary>
/// <returns></returns> /// <returns>the default page size</returns>
protected PageSize GetPageSize() protected PageSize GetPageSize()
{ {
return Document.GetPdfDocument().GetDefaultPageSize(); return Document.GetPdfDocument().GetDefaultPageSize();
...@@ -173,7 +173,7 @@ namespace PDFGenerator.EvaluationReport ...@@ -173,7 +173,7 @@ namespace PDFGenerator.EvaluationReport
/// <summary> /// <summary>
/// Changes the page orientation. /// Changes the page orientation.
/// </summary> /// </summary>
/// <param name="orientation"></param> /// <param name="orientation">orientation that the page should assume</param>
protected void SetPageOrientation(Orientation orientation) protected void SetPageOrientation(Orientation orientation)
{ {
if (orientation == Orientation.Landscape) if (orientation == Orientation.Landscape)
...@@ -215,7 +215,7 @@ namespace PDFGenerator.EvaluationReport ...@@ -215,7 +215,7 @@ namespace PDFGenerator.EvaluationReport
/// <summary> /// <summary>
/// Adds scaled image to document. /// Adds scaled image to document.
/// </summary> /// </summary>
/// <param name="image"></param> /// <param name="image">image to be scaled</param>
private void AddScaledImage(Image image) private void AddScaledImage(Image image)
{ {
Document.Add(GetScaledImage(image)); Document.Add(GetScaledImage(image));
......
...@@ -34,7 +34,7 @@ namespace PDFGenerator.EvaluationReport ...@@ -34,7 +34,7 @@ namespace PDFGenerator.EvaluationReport
/// <summary> /// <summary>
/// Adds pillar information to document and goes through all its quality targets. /// Adds pillar information to document and goes through all its quality targets.
/// </summary> /// </summary>
/// <param name="pillar"></param> /// <param name="pillar">input pillar</param>
private void RenderPillar(Pillar pillar) private void RenderPillar(Pillar pillar)
{ {
Bookmarks.AddRootOutline(pillar.Heading, RootOutline); Bookmarks.AddRootOutline(pillar.Heading, RootOutline);
...@@ -56,7 +56,7 @@ namespace PDFGenerator.EvaluationReport ...@@ -56,7 +56,7 @@ namespace PDFGenerator.EvaluationReport
/// <summary> /// <summary>
/// Adds quality target information to document and goes through all its criteria. /// Adds quality target information to document and goes through all its criteria.
/// </summary> /// </summary>
/// <param name="qualityTarget"></param> /// <param name="qualityTarget">input quality target</param>
private void RenderQualityTarget(QualityTarget qualityTarget) private void RenderQualityTarget(QualityTarget qualityTarget)
{ {
string section = qualityTarget.Paragraphs[0]; string section = qualityTarget.Paragraphs[0];
...@@ -90,7 +90,7 @@ namespace PDFGenerator.EvaluationReport ...@@ -90,7 +90,7 @@ namespace PDFGenerator.EvaluationReport
/// <summary> /// <summary>
/// Adds criterion information to document and goes through all its kpi evaluations. /// Adds criterion information to document and goes through all its kpi evaluations.
/// </summary> /// </summary>
/// <param name="criterion"></param> /// <param name="criterion">input criterion</param>
private void RenderCriterion(Criterion criterion) private void RenderCriterion(Criterion criterion)
{ {
new CriterionTarget(criterion.CriterionTarget, Results.Sections[criterion.CriterionTarget.Paragraphs[0]], CustomUploads, new CriterionTarget(criterion.CriterionTarget, Results.Sections[criterion.CriterionTarget.Paragraphs[0]], CustomUploads,
......
...@@ -33,7 +33,7 @@ namespace PDFGenerator.EvaluationReport ...@@ -33,7 +33,7 @@ namespace PDFGenerator.EvaluationReport
/// <summary> /// <summary>
/// Adds a new item to the list. /// Adds a new item to the list.
/// </summary> /// </summary>
/// <param name="item"></param> /// <param name="item">new item to be added</param>
public void AddToTOC(TocItem item) public void AddToTOC(TocItem item)
{ {
TocItems.Add(item); TocItems.Add(item);
...@@ -42,7 +42,7 @@ namespace PDFGenerator.EvaluationReport ...@@ -42,7 +42,7 @@ namespace PDFGenerator.EvaluationReport
/// <summary> /// <summary>
/// Renders the content for the table of contents. /// Renders the content for the table of contents.
/// </summary> /// </summary>
/// <param name="appendixStart"></param> /// <param name="appendixStart">the appendix start page number</param>
public void Render(int appendixStart) public void Render(int appendixStart)
{ {
TocPages = NumerOfPagesForTOC(appendixStart); TocPages = NumerOfPagesForTOC(appendixStart);
...@@ -53,7 +53,7 @@ namespace PDFGenerator.EvaluationReport ...@@ -53,7 +53,7 @@ namespace PDFGenerator.EvaluationReport
/// <summary> /// <summary>
/// Determines the number of pages for rendering the table of contents. /// Determines the number of pages for rendering the table of contents.
/// </summary> /// </summary>
/// <param name="appendixStart"> the page number for the appendix start</param> /// <param name="appendixStart"> the appendix start page number</param>
/// <returns></returns> /// <returns></returns>
private int NumerOfPagesForTOC(int appendixStart) private int NumerOfPagesForTOC(int appendixStart)
{ {
...@@ -84,7 +84,7 @@ namespace PDFGenerator.EvaluationReport ...@@ -84,7 +84,7 @@ namespace PDFGenerator.EvaluationReport
/// Adds the table of contents content to the document. /// Adds the table of contents content to the document.
/// </summary> /// </summary>
/// <param name="document">the PDF document</param> /// <param name="document">the PDF document</param>
/// <param name="appendixStart">the page number for the appendix start</param> /// <param name="appendixStart">the appendix start page number</param>
private void AddTOC(Document document, int appendixStart) private void AddTOC(Document document, int appendixStart)
{ {
Paragraph paragraph = new Paragraph(new Text("Inhaltsverzeichnis").AddStyle(Styles.H1)).SetMarginBottom(20f); Paragraph paragraph = new Paragraph(new Text("Inhaltsverzeichnis").AddStyle(Styles.H1)).SetMarginBottom(20f);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment