Made Status Change available to other print objects
Update status when moving through a section with subsections Update status when moving through a section with subsections GetSectionInfo use local value rather than using the cache Used SectionInfo property HasStepCheckOffs to turn-on CheckOff header and narrow text width.
This commit is contained in:
@@ -81,18 +81,19 @@ namespace Volian.Print.Library
|
||||
Before,
|
||||
BuildStep,
|
||||
Progress,
|
||||
ProgressSetup
|
||||
ProgressSetup,
|
||||
LoadVlnParagraph
|
||||
}
|
||||
public class PromsPrinter
|
||||
{
|
||||
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
public event PromsPrinterStatusEvent StatusChanged;
|
||||
private void OnStatusChanged(object sender, PromsPrintStatusArgs args)
|
||||
internal void OnStatusChanged(object sender, PromsPrintStatusArgs args)
|
||||
{
|
||||
if (StatusChanged != null)
|
||||
StatusChanged(sender, args);
|
||||
}
|
||||
private void OnStatusChanged(string myStatus, PromsPrinterStatusType type)
|
||||
internal void OnStatusChanged(string myStatus, PromsPrinterStatusType type)
|
||||
{
|
||||
OnStatusChanged(this, new PromsPrintStatusArgs(myStatus, type));
|
||||
}
|
||||
@@ -100,7 +101,7 @@ namespace Volian.Print.Library
|
||||
{
|
||||
OnStatusChanged(this, new PromsPrintStatusArgs(msg, PromsPrinterStatusType.General));
|
||||
}
|
||||
private void OnStatusChanged(string myStatus, PromsPrinterStatusType type, int progress)
|
||||
internal void OnStatusChanged(string myStatus, PromsPrinterStatusType type, int progress)
|
||||
{
|
||||
OnStatusChanged(this, new PromsPrintStatusArgs(myStatus, type, progress));
|
||||
}
|
||||
@@ -1188,7 +1189,7 @@ namespace Volian.Print.Library
|
||||
else
|
||||
_MyHelper.IsLandscape = false;
|
||||
_MyHelper.ChangeBarDefinition = MyChangeBarDefinition;
|
||||
vlnParagraph myParagraph = new vlnParagraph(null, cb, myItemInfo, (float)myItemInfo.MyDocStyle.Layout.LeftMargin, _NoBreakYOffset, 0, myItemInfo.ColumnMode, myItemInfo.ActiveFormat, null, null, 0,true);
|
||||
vlnParagraph myParagraph = new vlnParagraph(null, cb, myItemInfo, (float)myItemInfo.MyDocStyle.Layout.LeftMargin, _NoBreakYOffset, 0, myItemInfo.ColumnMode, myItemInfo.ActiveFormat, null, null, 0,true,this);
|
||||
float localYPageStart = 0;
|
||||
float yPageStart = yTopMargin;
|
||||
if (myItemInfo.HasChildren || myItemInfo.MyDocVersion.DocVersionConfig.SelectedSlave > 0)
|
||||
|
Reference in New Issue
Block a user