Don’t try to initialize the signoff drop-down if there are no sighoffs

Added logic to support Prerequisite step information and to handle the indent character
Logic to pass font information to the Placekeeper logic
This commit is contained in:
2014-06-26 20:19:58 +00:00
parent 78384ce643
commit 76cec2c961
3 changed files with 70 additions and 10 deletions

View File

@@ -589,8 +589,18 @@ namespace Volian.Print.Library
CloseDocument(cb, outputFileName);
if (_MyHelper != null && makePlacekeeper)
{
// Setting the default font to Arial since that is what Calvert is currently using for their Placekeeper pages
VE_Font pkFont = new VE_Font("Arial",11,E_Style.None,12); // default font info.
// Ideally, we should grab the font from the DocStyle used for the Placekeeper.
// Note that Calvert has two Placekeeper docSyles (EOPs and AOPs) in the same format.
// Both Placekeeper DocStyles use Arial 11 pt font, so there is no need to grab it from the format file.
//foreach (DocStyle ds in _MyHelper.MySection.ActiveFormat.PlantFormat.DocStyles.DocStyleList)
//{ // note that this will get the last Placekeeper font setting
// if (ds.StructureStyle.Style == E_DocStructStyle.Placekeeper)
// pkFont = ds.Font;
//}
if (_MyHelper.MyPlacekeepers.Count > 0)
new Placekeeper(_MyHelper.MyPlacekeepers);
new Placekeeper(_MyHelper.MyPlacekeepers, pkFont);
}
_MyHelper = null;
return outputFileName;