29 lines
1.5 KiB
C#
29 lines
1.5 KiB
C#
using QWERTYkez.WordProcessor;
|
||
|
||
namespace QWERTYkez.WordProcessor;
|
||
|
||
public interface IWordWriter : IWordReader
|
||
{
|
||
/// <summary> Добавляет новый параграф с указанным текстом в конец документа. </summary>
|
||
void AddParagraph(string text, bool preserveFormatting = true);
|
||
|
||
|
||
void ReplaceItem(IDictionary<string, IEnumerable<ReplaceItem>> replacements);
|
||
void ReplaceItem(IDictionary<string, ReplaceItem> replacements);
|
||
void ReplaceItem(IEnumerable<KeyValuePair<string, IEnumerable<ReplaceItem>>> replacements);
|
||
void ReplaceItem(IEnumerable<KeyValuePair<string, ReplaceItem>> replacements);
|
||
void ReplaceItem(string oldValue, IEnumerable<ReplaceItem> newValues);
|
||
void ReplaceItem(string oldValue, params ReplaceItem[] newValues);
|
||
void ReplaceString(IDictionary<string, IEnumerable<string>> replacements);
|
||
void ReplaceString(IDictionary<string, string> replacements);
|
||
void ReplaceString(IEnumerable<KeyValuePair<string, IEnumerable<string>>> replacements);
|
||
void ReplaceString(IEnumerable<KeyValuePair<string, string>> replacements);
|
||
void ReplaceString(string oldValue, IEnumerable<string> newValues);
|
||
void ReplaceString(string oldValue, params string[] newValues);
|
||
void ReplaceToTable(string oldValue, Action<ITable> buildTable);
|
||
void ReplaceToText(string oldValue, Action<IText> buildText);
|
||
void Save();
|
||
void SaveTo(string path);
|
||
Task SaveToAsync(string path, CancellationToken cancellationToken = default);
|
||
bool TrySaveTo(string path, out Exception? error);
|
||
} |