First working version of drugs formatting.
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user