First working version of drugs formatting.

This commit is contained in:
Daniel Kraus
2015-11-26 21:33:10 +01:00
parent bcbed5bca3
commit 21e7d44187
13 changed files with 207 additions and 20 deletions

View File

@ -142,13 +142,7 @@ namespace zaaReloaded2.Formatter
// Create undo record and styles prior to iterating over the elements
// because a column switching element might trigger output to the
// document.
bool hasAddin = Globals.ThisAddIn != null;
if (hasAddin)
{
Globals.ThisAddIn.Application.UndoRecord.StartCustomRecord(
String.Format("Laborformatierung ({0})", Properties.Settings.Default.AddinName)
);
}
Helpers.StartUndo("Laborformatierung");
CreateStyles();
int current = 0;
@ -177,10 +171,7 @@ namespace zaaReloaded2.Formatter
}
_secondaryBuffer.Flush();
if (hasAddin)
{
Globals.ThisAddIn.Application.UndoRecord.EndCustomRecord();
}
Helpers.EndUndo();
}
/// <summary>