From 7d2cf9694c5aec2241dcbb93e32cbd9461673a5f Mon Sep 17 00:00:00 2001 From: ekallin Date: Sat, 23 Mar 2024 17:52:58 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D1=8B=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B=20=D1=81=20?= =?UTF-8?q?=D0=B2=D0=BE=D1=80=D0=B4=D0=BE=D0=B2=D1=81=D0=BA=D0=B8=D0=BC=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=BE=D0=BC=20?= =?UTF-8?q?(=D0=BA=D0=B0=D0=BA=D0=B8=D0=B5=20=D0=B4=D0=B0=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D0=B2=D0=B0?= =?UTF-8?q?=D1=82=D1=8C,=20=D0=BA=D0=B0=D0=BA=20=D1=84=D0=BE=D1=80=D0=BC?= =?UTF-8?q?=D0=B0=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D1=82=D1=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HelperEnums/WordJustificationType.cs | 8 ++++++++ .../OfficePackage/HelperModels/WordInfo.cs | 12 ++++++++++++ .../OfficePackage/HelperModels/WordParagraph.cs | 8 ++++++++ .../OfficePackage/HelperModels/WordTextProperties.cs | 11 +++++++++++ 4 files changed, 39 insertions(+) create mode 100644 SushiBarBusinessLogic/OfficePackage/HelperEnums/WordJustificationType.cs create mode 100644 SushiBarBusinessLogic/OfficePackage/HelperModels/WordInfo.cs create mode 100644 SushiBarBusinessLogic/OfficePackage/HelperModels/WordParagraph.cs create mode 100644 SushiBarBusinessLogic/OfficePackage/HelperModels/WordTextProperties.cs diff --git a/SushiBarBusinessLogic/OfficePackage/HelperEnums/WordJustificationType.cs b/SushiBarBusinessLogic/OfficePackage/HelperEnums/WordJustificationType.cs new file mode 100644 index 0000000..5f68ea2 --- /dev/null +++ b/SushiBarBusinessLogic/OfficePackage/HelperEnums/WordJustificationType.cs @@ -0,0 +1,8 @@ +namespace SushiBarBusinessLogic.OfficePackage.HelperEnums +{ + public enum WordJustificationType + { + Center, + Both + } +} diff --git a/SushiBarBusinessLogic/OfficePackage/HelperModels/WordInfo.cs b/SushiBarBusinessLogic/OfficePackage/HelperModels/WordInfo.cs new file mode 100644 index 0000000..b5aad66 --- /dev/null +++ b/SushiBarBusinessLogic/OfficePackage/HelperModels/WordInfo.cs @@ -0,0 +1,12 @@ +using SushiBarContracts.ViewModels; + +namespace SushiBarBusinessLogic.OfficePackage.HelperModels +{ + public class WordInfo + { + public string FileName { get; set; } = string.Empty; + public string Title { get; set; } = string.Empty; + public List Components { get; set; } = new(); + + } +} diff --git a/SushiBarBusinessLogic/OfficePackage/HelperModels/WordParagraph.cs b/SushiBarBusinessLogic/OfficePackage/HelperModels/WordParagraph.cs new file mode 100644 index 0000000..8b322ab --- /dev/null +++ b/SushiBarBusinessLogic/OfficePackage/HelperModels/WordParagraph.cs @@ -0,0 +1,8 @@ +namespace SushiBarBusinessLogic.OfficePackage.HelperModels +{ + public class WordParagraph + { + public List<(string, WordTextProperties)> Texts { get; set; } = new(); + public WordTextProperties? TextProperties { get; set; } + } +} diff --git a/SushiBarBusinessLogic/OfficePackage/HelperModels/WordTextProperties.cs b/SushiBarBusinessLogic/OfficePackage/HelperModels/WordTextProperties.cs new file mode 100644 index 0000000..06e58ef --- /dev/null +++ b/SushiBarBusinessLogic/OfficePackage/HelperModels/WordTextProperties.cs @@ -0,0 +1,11 @@ +using SushiBarBusinessLogic.OfficePackage.HelperEnums; + +namespace SushiBarBusinessLogic.OfficePackage.HelperModels +{ + public class WotdTextProperties + { + public string Size { get; set; } = string.Empty; + public bool Bold { get; set; } + public WordJustificationType JustificationType { get; set; } + } +}