From 398e0dff463ccfada435f187fa2dfdfd7dacda90 Mon Sep 17 00:00:00 2001 From: Ivan_Starostin Date: Sun, 2 Jun 2024 16:50:51 +0400 Subject: [PATCH] Upload files to 'ShipyardBusinessLogic/OfficePackage' --- .../OfficePackage/PdfRowParameters.cs | 16 ++++++++++++++++ ShipyardBusinessLogic/OfficePackage/WordInfo.cs | 16 ++++++++++++++++ .../OfficePackage/WordJustificationType.cs | 14 ++++++++++++++ .../OfficePackage/WordParagraph.cs | 14 ++++++++++++++ .../OfficePackage/WordTextProperties.cs | 16 ++++++++++++++++ 5 files changed, 76 insertions(+) create mode 100644 ShipyardBusinessLogic/OfficePackage/PdfRowParameters.cs create mode 100644 ShipyardBusinessLogic/OfficePackage/WordInfo.cs create mode 100644 ShipyardBusinessLogic/OfficePackage/WordJustificationType.cs create mode 100644 ShipyardBusinessLogic/OfficePackage/WordParagraph.cs create mode 100644 ShipyardBusinessLogic/OfficePackage/WordTextProperties.cs diff --git a/ShipyardBusinessLogic/OfficePackage/PdfRowParameters.cs b/ShipyardBusinessLogic/OfficePackage/PdfRowParameters.cs new file mode 100644 index 0000000..da94610 --- /dev/null +++ b/ShipyardBusinessLogic/OfficePackage/PdfRowParameters.cs @@ -0,0 +1,16 @@ +using ShipyardBusinessLogic.OfficePackage.HelperEnums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShipyardBusinessLogic.OfficePackage.HelperModels +{ + public class PdfRowParameters + { + public List Texts { get; set; } = new(); + public string Style { get; set; } = string.Empty; + public PdfParagraphAlignmentType ParagraphAlignment { get; set; } + } +} diff --git a/ShipyardBusinessLogic/OfficePackage/WordInfo.cs b/ShipyardBusinessLogic/OfficePackage/WordInfo.cs new file mode 100644 index 0000000..18414ac --- /dev/null +++ b/ShipyardBusinessLogic/OfficePackage/WordInfo.cs @@ -0,0 +1,16 @@ +using ShipyardContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShipyardBusinessLogic.OfficePackage.HelperModels +{ + public class WordInfo + { + public string FileName { get; set; } = string.Empty; + public string Title { get; set; } = string.Empty; + public List Ships { get; set; } = new(); + } +} diff --git a/ShipyardBusinessLogic/OfficePackage/WordJustificationType.cs b/ShipyardBusinessLogic/OfficePackage/WordJustificationType.cs new file mode 100644 index 0000000..1f93fc7 --- /dev/null +++ b/ShipyardBusinessLogic/OfficePackage/WordJustificationType.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShipyardBusinessLogic.OfficePackage.HelperEnums +{ + public enum WordJustificationType + { + Center, + Both + } +} diff --git a/ShipyardBusinessLogic/OfficePackage/WordParagraph.cs b/ShipyardBusinessLogic/OfficePackage/WordParagraph.cs new file mode 100644 index 0000000..1d4770d --- /dev/null +++ b/ShipyardBusinessLogic/OfficePackage/WordParagraph.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShipyardBusinessLogic.OfficePackage.HelperModels +{ + public class WordParagraph + { + public List<(string, WordTextProperties)> Texts { get; set; } = new(); + public WordTextProperties? TextProperties { get; set; } + } +} diff --git a/ShipyardBusinessLogic/OfficePackage/WordTextProperties.cs b/ShipyardBusinessLogic/OfficePackage/WordTextProperties.cs new file mode 100644 index 0000000..0ff1e80 --- /dev/null +++ b/ShipyardBusinessLogic/OfficePackage/WordTextProperties.cs @@ -0,0 +1,16 @@ +using ShipyardBusinessLogic.OfficePackage.HelperEnums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShipyardBusinessLogic.OfficePackage.HelperModels +{ + public class WordTextProperties + { + public string Size { get; set; } = string.Empty; + public bool Bold { get; set; } + public WordJustificationType JustificationType { get; set; } + } +}