добавлены классы для работы с вордовским документом (какие данные передавать, как форматировать)
This commit is contained in:
parent
7bd504551a
commit
7d2cf9694c
@ -0,0 +1,8 @@
|
||||
namespace SushiBarBusinessLogic.OfficePackage.HelperEnums
|
||||
{
|
||||
public enum WordJustificationType
|
||||
{
|
||||
Center,
|
||||
Both
|
||||
}
|
||||
}
|
12
SushiBarBusinessLogic/OfficePackage/HelperModels/WordInfo.cs
Normal file
12
SushiBarBusinessLogic/OfficePackage/HelperModels/WordInfo.cs
Normal file
@ -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<ComponentViewModel> Components { get; set; } = new();
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
namespace SushiBarBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
public class WordParagraph
|
||||
{
|
||||
public List<(string, WordTextProperties)> Texts { get; set; } = new();
|
||||
public WordTextProperties? TextProperties { get; set; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user