This repository has been archived on 2024-06-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
thesis-src/ReportGeneration/ReportGeneration.Abstract/SubItemDocumentGeneratorBase.cs
T
2024-01-14 20:30:22 +01:00

34 lines
809 B
C#

using System;
using System.IO;
using System.Text;
using ReportGeneration.Interface;
namespace ReportGeneration.Abstract;
public abstract class SubItemDocumentGeneratorBase : DocumentGeneratorBase
{
protected SubItemDocumentGeneratorBase()
{
}
protected SubItemDocumentGeneratorBase(Stream stream) : base(stream)
{
}
protected SubItemDocumentGeneratorBase(string filePath) : base(filePath)
{
}
protected SubItemDocumentGeneratorBase(Stream stream, Encoding encoding) : base(stream, encoding)
{
}
/// <inheritdoc />
public override IDocumentGenerator AppendTable(int columns, Action<ITableGenerator> table)
{
Write(() => MakeTable(columns, new MemoryStream()), table);
return this;
}
protected abstract ITableGenerator MakeTable(int columns, Stream stream);
}