ToolsOffice word

This commit is contained in:
kotcheshir73 2022-12-17 23:44:29 +04:00
parent 070f2129e4
commit 0afe8a7682
28 changed files with 957 additions and 1 deletions

View File

@ -0,0 +1,76 @@
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Wordprocessing;
using System.IO;
using ToolsOffice.Implements.WordOpenXML.Extenstions;
using ToolsOffice.Implements.WordOpenXML.Models;
using ToolsOffice.Interfaces.Word;
using ToolsOffice.Interfaces.Word.Models;
namespace ToolsOffice.Implements.WordOpenXML
{
public class BuilderWordDocumentOpenXML : BuilderWordDocument
{
private WordprocessingDocument _wordDocument;
private Body _docBody;
private MemoryStream _memoryStream;
public override void CreateDocument(ICreateWordModel model)
{
_memoryStream = new MemoryStream();
_wordDocument = WordprocessingDocument.Create(_memoryStream, WordprocessingDocumentType.Document);
var mainPart = _wordDocument.AddMainDocumentPart();
mainPart.Document = new Document();
_docBody = mainPart.Document.AppendChild(new Body());
if (model is WordCreateDocument document)
{
mainPart.AddParts(document.WordDocumentParts);
}
}
public override void CreateParagraph(IParagraphWordModel model)
{
if (model is WordParagraph paragraph)
{
var docParagraph = new Paragraph();
docParagraph.AddParagraphProperties(paragraph.ParagraphProperties);
foreach (var run in paragraph.Texts)
{
docParagraph.AddRun(run);
}
_docBody.AppendChild(docParagraph);
}
}
public override void CreateTable(ITableWordModel model)
{
if (model is WordTable table)
{
var docTable = new Table();
docTable.AddTableProperties(table.TableProperties);
docTable.AddGridColumn(table.TableGrid);
foreach (var row in table.Rows)
{
docTable.AddTableRow(row);
}
_docBody.AppendChild(docTable);
}
}
public override Stream SaveDocument(ISaveWordModel info)
{
if (info is WordSaveDocument document)
{
_docBody.AddSectionProperties(document);
}
_wordDocument.MainDocumentPart.Document.Save();
_wordDocument.Close();
return _memoryStream;
}
}
}

View File

@ -0,0 +1,516 @@
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Wordprocessing;
using System;
using ToolsModule.ManagmentExtension;
using ToolsOffice.Implements.WordOpenXML.Models;
namespace ToolsOffice.Implements.WordOpenXML.Extenstions
{
public static class WordDocumentExtenstion
{
/// <summary>
/// Добавление общих элементов документа
/// </summary>
/// <param name="mainPart"></param>
/// <param name="parts"></param>
public static void AddParts(this MainDocumentPart mainPart, WordDocumentParts parts)
{
if (parts == null)
{
return;
}
CreateDocumentSettingsPart(parts, mainPart);
CreateFontTablesPart(parts, mainPart);
CreateNumberingsPart(parts, mainPart);
CreateStyleDefinitionsPart(parts, mainPart);
CreateThemePart(parts, mainPart);
CreateWebSetting(parts, mainPart);
}
/// <summary>
/// Добавление общих настроек документа
/// </summary>
/// <param name="body"></param>
/// <param name="document"></param>
public static void AddSectionProperties(this Body body, WordSaveDocument document)
{
if (document == null || document.DocumentSettings == null)
{
return;
}
var properties = new SectionProperties();
var pageSize = new PageSize();
if (document.DocumentSettings.PageSizeHeight != null)
{
pageSize.Height = document.DocumentSettings.PageSizeHeight;
}
if (document.DocumentSettings.PageSizeWidth != null)
{
pageSize.Width = document.DocumentSettings.PageSizeWidth;
}
if (document.DocumentSettings.WordPageOrientation.HasValue)
{
pageSize.Orient = (PageOrientationValues)Enum.Parse(typeof(PageOrientationValues), document.DocumentSettings.WordPageOrientation.Value.ToString());
}
properties.AppendChild(pageSize);
var pageMargin = new PageMargin();
if (document.DocumentSettings.PageMarginBottom.HasValue)
{
pageMargin.Bottom = document.DocumentSettings.PageMarginBottom.Value;
}
if (document.DocumentSettings.PageMarginFooter != null)
{
pageMargin.Footer = document.DocumentSettings.PageMarginFooter;
}
if (document.DocumentSettings.PageMarginGutter != null)
{
pageMargin.Gutter = document.DocumentSettings.PageMarginGutter;
}
if (document.DocumentSettings.PageMarginLeft != null)
{
pageMargin.Left = document.DocumentSettings.PageMarginLeft;
}
if (document.DocumentSettings.PageMarginRight != null)
{
pageMargin.Right = document.DocumentSettings.PageMarginRight;
}
if (document.DocumentSettings.PageMarginTop.HasValue)
{
pageMargin.Top = document.DocumentSettings.PageMarginTop.Value;
}
properties.AppendChild(pageMargin);
body.AppendChild(properties);
}
/// <summary>
/// Добавление свойств абзаца
/// </summary>
/// <param name="paragraph"></param>
/// <param name="wordProperties"></param>
public static void AddParagraphProperties(this Paragraph paragraph, WordParagraphProperties wordProperties)
{
if (wordProperties == null)
{
return;
}
var properties = new ParagraphProperties();
if (wordProperties.JustificationType.HasValue)
{
var justification = new Justification()
{
Val = (JustificationValues)Enum.Parse(typeof(JustificationValues), wordProperties.JustificationType.Value.ToString())
};
properties.AppendChild(justification);
}
var spacingBetweenLines = new SpacingBetweenLines();
if (wordProperties.SpacingBetweenLinesLine != null)
{
spacingBetweenLines.Line = wordProperties.SpacingBetweenLinesLine;
}
if (wordProperties.SpacingBetweenLinesBefore != null)
{
spacingBetweenLines.Before = wordProperties.SpacingBetweenLinesBefore;
}
if (wordProperties.SpacingBetweenLinesAfter != null)
{
spacingBetweenLines.After = wordProperties.SpacingBetweenLinesAfter;
}
properties.AppendChild(spacingBetweenLines);
var indentation = new Indentation();
if (wordProperties.IndentationFirstLine != null)
{
indentation.FirstLine = wordProperties.IndentationFirstLine;
}
if (wordProperties.IndentationHanging != null)
{
indentation.Hanging = wordProperties.IndentationHanging;
}
if (wordProperties.IndentationLeft != null)
{
indentation.Left = wordProperties.IndentationLeft;
}
if (wordProperties.IndentationRight != null)
{
indentation.Right = wordProperties.IndentationRight;
}
properties.AppendChild(indentation);
var paragraphMarkRunProperties = new ParagraphMarkRunProperties();
if (wordProperties.Size != null)
{
paragraphMarkRunProperties.AppendChild(new FontSize { Val = wordProperties.Size });
}
if (wordProperties.IsBold)
{
paragraphMarkRunProperties.AppendChild(new Bold());
}
if (wordProperties.IsItalic)
{
paragraphMarkRunProperties.AppendChild(new Italic());
}
if (wordProperties.IsUnderline)
{
paragraphMarkRunProperties.AppendChild(new Underline());
}
properties.AppendChild(paragraphMarkRunProperties);
paragraph.AppendChild(properties);
}
/// <summary>
/// Добавление текста в абзац
/// </summary>
/// <param name="paragraph"></param>
/// <param name="run"></param>
/// <returns></returns>
public static void AddRun(this Paragraph paragraph, WordRun run)
{
if (run == null)
{
return;
}
var docRun = new Run();
docRun.AddRunProperties(run.RunProperties);
if (run.IsBreak)
{
docRun.AppendChild(new Break());
}
else if (run.IsTabChar)
{
docRun.AppendChild(new TabChar());
}
else
{
docRun.AppendChild(new Text { Text = run.Text, Space = SpaceProcessingModeValues.Preserve });
}
paragraph.AppendChild(docRun);
}
public static void AddTableProperties(this Table table, WordTableProperties wordTableProperties)
{
if (wordTableProperties == null)
{
return;
}
var properties = new TableProperties();
if (wordTableProperties.Width != null)
{
properties.AppendChild(new TableWidth() { Width = wordTableProperties.Width });
}
var tableLook = new TableLook();
if (wordTableProperties.LookValue != null)
{
tableLook.Val = wordTableProperties.LookValue;
}
if (wordTableProperties.LookFirstRow)
{
tableLook.FirstRow = new OnOffValue(wordTableProperties.LookFirstRow);
}
if (wordTableProperties.LookFirstColumn)
{
tableLook.FirstColumn = new OnOffValue(wordTableProperties.LookFirstColumn);
}
if (wordTableProperties.LookLastRow)
{
tableLook.LastRow = new OnOffValue(wordTableProperties.LookLastRow);
}
if (wordTableProperties.LookLastColumn)
{
tableLook.LastColumn = new OnOffValue(wordTableProperties.LookLastColumn);
}
if (wordTableProperties.LookNoHorizontalBand)
{
tableLook.NoHorizontalBand = new OnOffValue(wordTableProperties.LookNoHorizontalBand);
}
if (wordTableProperties.LookNoVerticalBand)
{
tableLook.NoVerticalBand = new OnOffValue(wordTableProperties.LookNoVerticalBand);
}
properties.AppendChild(tableLook);
var tableBorders = new TableBorders();
tableBorders.AddBorder(wordTableProperties.TopBorder, new TopBorder());
tableBorders.AddBorder(wordTableProperties.BottomBorder, new BottomBorder());
tableBorders.AddBorder(wordTableProperties.LeftBorder, new LeftBorder());
tableBorders.AddBorder(wordTableProperties.RightBorder, new RightBorder());
properties.AppendChild(tableBorders);
table.AppendChild(properties);
}
public static void AddGridColumn(this Table table, WordTableGrid wordTableGrid)
{
if (wordTableGrid == null || wordTableGrid.Widths == null || wordTableGrid.Widths.Count == 0)
{
return;
}
var tableGrid = new TableGrid();
foreach (var grid in wordTableGrid.Widths)
{
tableGrid.AppendChild(new GridColumn() { Width = grid });
}
table.AppendChild(tableGrid);
}
public static void AddTableRow(this Table table, WordTableRow row)
{
if (row == null)
{
return;
}
var docRow = new TableRow();
docRow.AddTableRowProperties(row.RowProperties);
foreach (var cell in row.Cells)
{
docRow.AddTableCell(cell);
}
table.AppendChild(docRow);
}
/// <summary>
/// Добавление свойств текста
/// </summary>
/// <param name="run"></param>
/// <param name="wordProperties"></param>
private static void AddRunProperties(this Run run, WordRunProperties wordProperties)
{
if (wordProperties == null)
{
return;
}
if (wordProperties.Size != null || wordProperties.IsBold || wordProperties.IsItalic || wordProperties.IsUnderline)
{
var properties = new RunProperties();
if (wordProperties.Size != null)
{
properties.AppendChild(new FontSize { Val = wordProperties.Size });
}
if (wordProperties.IsBold)
{
properties.AppendChild(new Bold());
}
if (wordProperties.IsItalic)
{
properties.AppendChild(new Italic());
}
if (wordProperties.IsUnderline)
{
properties.AppendChild(new Underline());
}
run.AppendChild(properties);
}
}
private static void AddBorder(this TableBorders tableBorders, WordTableBorder wordTableBorder, BorderType borderType)
{
if (wordTableBorder == null)
{
return;
}
if (wordTableBorder.BorderType.HasValue)
{
borderType.Val = (BorderValues)Enum.Parse(typeof(BorderValues), wordTableBorder.BorderType.Value.ToString());
}
if (wordTableBorder.Color != null)
{
borderType.Color = wordTableBorder.Color;
}
if (wordTableBorder.Size != null)
{
borderType.Size = wordTableBorder.Size;
}
if (wordTableBorder.Space != null)
{
borderType.Space = wordTableBorder.Space;
}
tableBorders.AppendChild(borderType);
}
private static void AddTableRowProperties(this TableRow row, WordTableRowProperties wordTableRowProperties)
{
if (wordTableRowProperties == null)
{
return;
}
if (wordTableRowProperties.CantSplit.HasValue || wordTableRowProperties.TableRowHeight != null)
{
var properties = new TableRowProperties();
if (wordTableRowProperties.CantSplit.HasValue)
{
properties.AppendChild(new CantSplit() { Val = wordTableRowProperties.CantSplit.Value ? OnOffOnlyValues.On : OnOffOnlyValues.Off });
}
if (wordTableRowProperties.TableRowHeight != null)
{
properties.AppendChild(new TableRowHeight() { Val = wordTableRowProperties.TableRowHeight });
}
row.AppendChild(properties);
}
}
private static void AddTableCell(this TableRow row, WordTableCell cell)
{
if (cell == null)
{
return;
}
var docCell = new TableCell();
docCell.AddTableCellProperties(cell.CellProperties);
foreach (var paragraph in cell.Paragraphs)
{
docCell.AddParagraph(paragraph);
}
row.AppendChild(docCell);
}
private static void AddTableCellProperties(this TableCell cell, WordTableCellProperties wordTableCellProperties)
{
if (wordTableCellProperties == null)
{
return;
}
var properties = new TableCellProperties();
if (wordTableCellProperties.TableCellWidth != null)
{
properties.AppendChild(new TableCellWidth() { Width = wordTableCellProperties.TableCellWidth });
}
if (wordTableCellProperties.GridSpan != null)
{
properties.AppendChild(new GridSpan() { Val = wordTableCellProperties.GridSpan });
}
if (wordTableCellProperties.MergeType.HasValue)
{
if (wordTableCellProperties.MergeType.Value)
{
properties.AppendChild(new VerticalMerge()
{
Val = MergedCellValues.Restart
});
}
else
{
properties.AppendChild(new VerticalMerge());
}
}
cell.AppendChild(properties);
}
private static void AddParagraph(this TableCell cell, WordParagraph paragraph)
{
if (paragraph == null)
{
return;
}
var docParagraph = new Paragraph();
docParagraph.AddParagraphProperties(paragraph.ParagraphProperties);
foreach (var run in paragraph.Texts)
{
docParagraph.AddRun(run);
}
cell.AppendChild(docParagraph);
}
private static void CreateDocumentSettingsPart(WordDocumentParts parts, MainDocumentPart mainPart)
{
if (parts.DocumentSettings.IsNotEmpty())
{
var settings = mainPart.AddNewPart<DocumentSettingsPart>();
settings.Settings = new Settings
{
InnerXml = parts.DocumentSettings
};
settings.Settings.Save();
}
}
private static void CreateFontTablesPart(WordDocumentParts parts, MainDocumentPart mainPart)
{
if (parts.FontTable.IsNotEmpty())
{
var fonts = mainPart.AddNewPart<FontTablePart>();
fonts.Fonts = new Fonts
{
InnerXml = parts.FontTable
};
fonts.Fonts.Save();
}
}
private static void CreateNumberingsPart(WordDocumentParts parts, MainDocumentPart mainPart)
{
if (parts.NumberingDefinitions.IsNotEmpty())
{
var numbering = mainPart.AddNewPart<NumberingDefinitionsPart>();
numbering.Numbering = new Numbering
{
InnerXml = parts.NumberingDefinitions
};
numbering.Numbering.Save();
}
}
private static void CreateStyleDefinitionsPart(WordDocumentParts parts, MainDocumentPart mainPart)
{
if (parts.StyleDefinitions.IsNotEmpty())
{
var styles = mainPart.AddNewPart<StyleDefinitionsPart>();
styles.Styles = new Styles
{
InnerXml = parts.StyleDefinitions
};
styles.Styles.Save();
}
}
private static void CreateThemePart(WordDocumentParts parts, MainDocumentPart mainPart)
{
if (parts.Theme.IsNotEmpty())
{
var thems = mainPart.AddNewPart<ThemePart>();
thems.Theme = new DocumentFormat.OpenXml.Drawing.Theme
{
InnerXml = parts.Theme
};
thems.Theme.Save();
}
}
private static void CreateWebSetting(WordDocumentParts parts, MainDocumentPart mainPart)
{
if (parts.WebSettings.IsNotEmpty())
{
var settings = mainPart.AddNewPart<WebSettingsPart>();
settings.WebSettings = new WebSettings
{
InnerXml = parts.WebSettings
};
settings.WebSettings.Save();
}
}
}
}

View File

@ -0,0 +1,9 @@
using ToolsOffice.Interfaces.Word.Models;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordCreateDocument : ICreateWordModel
{
public WordDocumentParts WordDocumentParts { get; set; }
}
}

View File

@ -0,0 +1,17 @@
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordDocumentParts
{
public string DocumentSettings { get; set; }
public string FontTable { get; set; }
public string NumberingDefinitions { get; set; }
public string StyleDefinitions { get; set; }
public string Theme { get; set; }
public string WebSettings { get; set; }
}
}

View File

@ -0,0 +1,26 @@
using DocumentFormat.OpenXml;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordDocumentSettings
{
public UInt32Value PageSizeHeight { get; set; }
public UInt32Value PageSizeWidth { get; set; }
public WordPageOrientationType? WordPageOrientation { get; set; }
public UInt32Value PageMarginFooter { get; set; }
public UInt32Value PageMarginGutter { get; set; }
public int? PageMarginBottom { get; set; }
public int? PageMarginTop { get; set; }
public UInt32Value PageMarginLeft { get; set; }
public UInt32Value PageMarginRight { get; set; }
}
}

View File

@ -0,0 +1,13 @@
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public enum WordJustificationType
{
Left = 0,
Center = 2,
Right = 3,
Both = 5
}
}

View File

@ -0,0 +1,12 @@
namespace ToolsOffice.Implements.WordOpenXML.Models
{
/// <summary>
/// Ориентация страниц документа
/// </summary>
public enum WordPageOrientationType
{
Portrait = 0,
Landscape = 1
}
}

View File

@ -0,0 +1,12 @@
using System.Collections.Generic;
using ToolsOffice.Interfaces.Word.Models;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordParagraph : IParagraphWordModel
{
public List<WordRun> Texts { get; set; }
public WordParagraphProperties ParagraphProperties { get; set; }
}
}

View File

@ -0,0 +1,31 @@
using DocumentFormat.OpenXml;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordParagraphProperties
{
public StringValue Size { get; set; }
public bool IsBold { get; set; }
public bool IsItalic { get; set; }
public bool IsUnderline { get; set; }
public WordJustificationType? JustificationType { get; set; }
public StringValue SpacingBetweenLinesLine { get; set; }
public StringValue SpacingBetweenLinesBefore { get; set; }
public StringValue SpacingBetweenLinesAfter { get; set; }
public StringValue IndentationFirstLine { get; set; }
public StringValue IndentationHanging { get; set; }
public StringValue IndentationLeft { get; set; }
public StringValue IndentationRight { get; set; }
}
}

View File

@ -0,0 +1,13 @@
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordRun
{
public string Text { get; set; }
public bool IsBreak { get; set; }
public bool IsTabChar { get; set; }
public WordRunProperties RunProperties { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using DocumentFormat.OpenXml;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordRunProperties
{
public StringValue Size { get; set; }
public bool IsBold { get; set; }
public bool IsItalic { get; set; }
public bool IsUnderline { get; set; }
}
}

View File

@ -0,0 +1,9 @@
using ToolsOffice.Interfaces.Word.Models;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordSaveDocument : ISaveWordModel
{
public WordDocumentSettings DocumentSettings { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System.Collections.Generic;
using ToolsOffice.Interfaces.Word.Models;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordTable : ITableWordModel
{
public WordTableProperties TableProperties { get; set; }
public WordTableGrid TableGrid { get; set; }
public List<WordTableRow> Rows { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using DocumentFormat.OpenXml;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordTableBorder
{
public UInt32Value Size { get; set; }
public UInt32Value Space { get; set; }
public StringValue Color { get; set; }
public WordTableBorderType? BorderType { get; set; }
}
}

View File

@ -0,0 +1,21 @@
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public enum WordTableBorderType
{
None = 1,
Single = 2,
Thick = 3,
Double = 4,
Dotted = 5,
Dashed = 6,
DotDash = 7,
DotDotDash = 8,
}
}

View File

@ -0,0 +1,11 @@
using System.Collections.Generic;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordTableCell
{
public WordTableCellProperties CellProperties { get; set; }
public List<WordParagraph> Paragraphs { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using DocumentFormat.OpenXml;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordTableCellProperties
{
public StringValue TableCellWidth { get; set; }
public Int32Value GridSpan { get; set; }
public bool? MergeType { get; set; }
}
}

View File

@ -0,0 +1,10 @@
using DocumentFormat.OpenXml;
using System.Collections.Generic;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordTableGrid
{
public List<StringValue> Widths { get; set; }
}
}

View File

@ -0,0 +1,31 @@
using DocumentFormat.OpenXml;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordTableProperties
{
public StringValue Width { get; set; }
public HexBinaryValue LookValue { get; set; }
public bool LookFirstRow { get; set; }
public bool LookFirstColumn { get; set; }
public bool LookLastRow { get; set; }
public bool LookLastColumn { get; set; }
public bool LookNoHorizontalBand { get; set; }
public bool LookNoVerticalBand { get; set; }
public WordTableBorder TopBorder { get; set; }
public WordTableBorder BottomBorder { get; set; }
public WordTableBorder LeftBorder { get; set; }
public WordTableBorder RightBorder { get; set; }
}
}

View File

@ -0,0 +1,11 @@
using System.Collections.Generic;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordTableRow
{
public WordTableRowProperties RowProperties { get; set; }
public List<WordTableCell> Cells { get; set; }
}
}

View File

@ -0,0 +1,11 @@
using DocumentFormat.OpenXml;
namespace ToolsOffice.Implements.WordOpenXML.Models
{
public class WordTableRowProperties
{
public bool? CantSplit { get; set; }
public UInt32Value TableRowHeight { get; set; }
}
}

View File

@ -0,0 +1,32 @@
using System.IO;
using ToolsOffice.Interfaces.Word.Models;
namespace ToolsOffice.Interfaces.Word
{
public abstract class BuilderWordDocument
{
/// <summary>
/// Создание документа
/// </summary>
/// <param name="model"></param>
public abstract void CreateDocument(ICreateWordModel model);
/// <summary>
/// Создание абзаца с текстом
/// </summary>
/// <param name="model"></param>
public abstract void CreateParagraph(IParagraphWordModel model);
/// <summary>
/// Создание абзаца с текстом
/// </summary>
/// <param name="model"></param>
public abstract void CreateTable(ITableWordModel model);
/// <summary>
/// Сохранение файла
/// </summary>
/// <param name="info"></param>
public abstract Stream SaveDocument(ISaveWordModel info);
}
}

View File

@ -0,0 +1,4 @@
namespace ToolsOffice.Interfaces.Word.Models
{
public interface ICreateWordModel { }
}

View File

@ -0,0 +1,4 @@
namespace ToolsOffice.Interfaces.Word.Models
{
public interface IParagraphWordModel { }
}

View File

@ -0,0 +1,4 @@
namespace ToolsOffice.Interfaces.Word.Models
{
public interface ISaveWordModel { }
}

View File

@ -0,0 +1,4 @@
namespace ToolsOffice.Interfaces.Word.Models
{
public interface ITableWordModel { }
}

View File

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DocumentFormat.OpenXml" Version="2.19.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ToolsModule\ToolsModule.csproj" />
</ItemGroup>
</Project>

View File

@ -37,7 +37,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DepartmentContract", "Depar
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WindowServices", "WindowServices", "{045965BC-9297-45DF-96E1-6986C286A81B}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WindowServices", "WindowServices", "{045965BC-9297-45DF-96E1-6986C286A81B}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowServiceSyncStudentOrders", "WindowServices\WindowServiceSyncStudentOrders\WindowServiceSyncStudentOrders.csproj", "{4A68AC9F-07F9-43C3-83E6-359A9CFBC80E}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WindowServiceSyncStudentOrders", "WindowServices\WindowServiceSyncStudentOrders\WindowServiceSyncStudentOrders.csproj", "{4A68AC9F-07F9-43C3-83E6-359A9CFBC80E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ToolsOffice", "Common\ToolsOffice\ToolsOffice.csproj", "{782DE093-CE87-48B5-A037-47C2189ACC13}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -101,6 +103,10 @@ Global
{4A68AC9F-07F9-43C3-83E6-359A9CFBC80E}.Debug|Any CPU.Build.0 = Debug|Any CPU {4A68AC9F-07F9-43C3-83E6-359A9CFBC80E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4A68AC9F-07F9-43C3-83E6-359A9CFBC80E}.Release|Any CPU.ActiveCfg = Release|Any CPU {4A68AC9F-07F9-43C3-83E6-359A9CFBC80E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4A68AC9F-07F9-43C3-83E6-359A9CFBC80E}.Release|Any CPU.Build.0 = Release|Any CPU {4A68AC9F-07F9-43C3-83E6-359A9CFBC80E}.Release|Any CPU.Build.0 = Release|Any CPU
{782DE093-CE87-48B5-A037-47C2189ACC13}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{782DE093-CE87-48B5-A037-47C2189ACC13}.Debug|Any CPU.Build.0 = Debug|Any CPU
{782DE093-CE87-48B5-A037-47C2189ACC13}.Release|Any CPU.ActiveCfg = Release|Any CPU
{782DE093-CE87-48B5-A037-47C2189ACC13}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
@ -119,6 +125,7 @@ Global
{E9F9B0D8-18F3-40C3-843F-53D2F8B2293E} = {7DA26C36-778E-4563-9AEC-966E26EA7B2A} {E9F9B0D8-18F3-40C3-843F-53D2F8B2293E} = {7DA26C36-778E-4563-9AEC-966E26EA7B2A}
{5AA4DBD9-FD82-46D6-8A62-78DB269296B3} = {A19E7709-6AD8-4E9B-B3AB-4339C67D9F39} {5AA4DBD9-FD82-46D6-8A62-78DB269296B3} = {A19E7709-6AD8-4E9B-B3AB-4339C67D9F39}
{4A68AC9F-07F9-43C3-83E6-359A9CFBC80E} = {045965BC-9297-45DF-96E1-6986C286A81B} {4A68AC9F-07F9-43C3-83E6-359A9CFBC80E} = {045965BC-9297-45DF-96E1-6986C286A81B}
{782DE093-CE87-48B5-A037-47C2189ACC13} = {6F154F8D-3437-45EE-9D89-02B96BDF3E8E}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {FBA0CB49-EF2D-4538-9D00-FCEDA24879A9} SolutionGuid = {FBA0CB49-EF2D-4538-9D00-FCEDA24879A9}