From 728cbe7081f3ea9b8a297228e453f6e139093c30 Mon Sep 17 00:00:00 2001 From: malimova Date: Thu, 11 Apr 2024 22:33:25 +0400 Subject: [PATCH] Word- classes --- .../ConfectioneryBusinessLogic/WordInfo.cs | 16 ++++++++++++++++ .../WordJustificationType.cs | 14 ++++++++++++++ .../ConfectioneryBusinessLogic/WordParagraph.cs | 14 ++++++++++++++ .../WordTextProperties.cs | 17 +++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 Confectionery/ConfectioneryBusinessLogic/WordInfo.cs create mode 100644 Confectionery/ConfectioneryBusinessLogic/WordJustificationType.cs create mode 100644 Confectionery/ConfectioneryBusinessLogic/WordParagraph.cs create mode 100644 Confectionery/ConfectioneryBusinessLogic/WordTextProperties.cs diff --git a/Confectionery/ConfectioneryBusinessLogic/WordInfo.cs b/Confectionery/ConfectioneryBusinessLogic/WordInfo.cs new file mode 100644 index 0000000..b3bfc0b --- /dev/null +++ b/Confectionery/ConfectioneryBusinessLogic/WordInfo.cs @@ -0,0 +1,16 @@ +using ConfectioneryContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryBusinessLogic.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/Confectionery/ConfectioneryBusinessLogic/WordJustificationType.cs b/Confectionery/ConfectioneryBusinessLogic/WordJustificationType.cs new file mode 100644 index 0000000..7efdd1f --- /dev/null +++ b/Confectionery/ConfectioneryBusinessLogic/WordJustificationType.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryBusinessLogic.OfficePackage.HelperEnums +{ + public enum WordJustificationType + { + Center, + Both + } +} diff --git a/Confectionery/ConfectioneryBusinessLogic/WordParagraph.cs b/Confectionery/ConfectioneryBusinessLogic/WordParagraph.cs new file mode 100644 index 0000000..206e712 --- /dev/null +++ b/Confectionery/ConfectioneryBusinessLogic/WordParagraph.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryBusinessLogic.OfficePackage.HelperModels +{ + public class WordParagraph + { + public List<(string, WordTextProperties)> Texts { get; set; } = new(); + public WordTextProperties? TextProperties { get; set; } + } +} diff --git a/Confectionery/ConfectioneryBusinessLogic/WordTextProperties.cs b/Confectionery/ConfectioneryBusinessLogic/WordTextProperties.cs new file mode 100644 index 0000000..abd0860 --- /dev/null +++ b/Confectionery/ConfectioneryBusinessLogic/WordTextProperties.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ConfectioneryBusinessLogic.OfficePackage.HelperEnums; + + +namespace ConfectioneryBusinessLogic.OfficePackage.HelperModels +{ + public class WordTextProperties + { + public string Size { get; set; } = string.Empty; + public bool Bold { get; set; } + public WordJustificationType JustificationType { get; set; } + } +}