This commit is contained in:
Kathy Ruffing 2008-01-28 14:07:17 +00:00
parent e0599c2a56
commit 743f5ea274
3 changed files with 222 additions and 138 deletions

View File

@ -40,7 +40,7 @@ namespace VEPROMS
Step _LastStep = null; Step _LastStep = null;
StepInfo _LastStepInfo = null; StepInfo _LastStepInfo = null;
Color _CommentTitleBckColor; Color _CommentTitleBckColor;
DisplayRTB _MyRTB;
VETreeNode _PrevBookMark = null; VETreeNode _PrevBookMark = null;
public frmVEPROMS() public frmVEPROMS()
@ -1174,9 +1174,12 @@ namespace VEPROMS
// infotabTransitionFillIn uses other methods to fill in all controls on the // infotabTransitionFillIn uses other methods to fill in all controls on the
// insert/modify transition tab. Note that, for now, curitm just be a 'step' // insert/modify transition tab. Note that, for now, curitm just be a 'step'
// item (not a section or procedure). // item (not a section or procedure).
private bool _InitializingTrans;
private void infotabTransitionFillIn(ItemInfo curitm) private void infotabTransitionFillIn(ItemInfo curitm)
{ {
if (curitm.MyContent.Type < 20000) return; btnTranInsert.Text = "Select Transition";
_InitializingTrans = true;
//if (curitm.MyContent.Type < 20000) return;
listBoxTranFmtFillIn(curitm); listBoxTranFmtFillIn(curitm);
// use curitm to find section level and procedure level. // use curitm to find section level and procedure level.
@ -1186,11 +1189,12 @@ namespace VEPROMS
tmpitm = tmpitm.MyParent; tmpitm = tmpitm.MyParent;
} }
ItemInfo secitm = tmpitm; ItemInfo secitm = tmpitm;
listBoxTranSectsFillIn(secitm); listBoxTranSectsFillIn(secitm, secitm.ItemID);
ItemInfo prcitm = secitm.MyParent; ItemInfo prcitm = secitm.MyParent;
listBoxTranProcsFillIn(prcitm); listBoxTranProcsFillIn(prcitm);
tvTranFillIn(curitm); tvTranFillIn(curitm);
_InitializingTrans = false;
} }
private void listBoxTranFmtFillIn(ItemInfo curitm) private void listBoxTranFmtFillIn(ItemInfo curitm)
{ {
@ -1205,24 +1209,36 @@ namespace VEPROMS
{ {
tvTran.Nodes.Clear(); tvTran.Nodes.Clear();
// For the tree view, use parent, unless already at HLS. If at HLS, use this level. // For the tree view, use parent, unless already at HLS. If at HLS, use this level.
if (!curitm.IsHigh) curitm = curitm.MyParent; ItemInfo selitm = curitm;
if (!curitm.IsHigh)
{
curitm = curitm.MyParent;
selitm = curitm;
}
curitm = curitm.FirstSibling; curitm = curitm.FirstSibling;
while (curitm != null) while (curitm != null)
{ {
this.tvTran.Nodes.Add(new VETreeNode(curitm)); VETreeNode tvn = new VETreeNode(curitm);
tvn.Tag = curitm;
int active = this.tvTran.Nodes.Add(tvn); //new VETreeNode(curitm));
if (curitm.ItemID == selitm.ItemID) tvTran.SelectedNode = tvTran.Nodes[active];
curitm = (curitm.NextItemCount > 0 ? curitm.NextItems[0] : null); curitm = (curitm.NextItemCount > 0 ? curitm.NextItems[0] : null);
} }
tvTran.BeforeExpand += new TreeViewCancelEventHandler(tvTran_BeforeExpand); tvTran.BeforeExpand += new TreeViewCancelEventHandler(tvTran_BeforeExpand);
} }
private void listBoxTranSectsFillIn(ItemInfo secitm) private void listBoxTranSectsFillIn(ItemInfo secitm, int sectstart)
{ {
listBoxTranSects.Items.Clear(); listBoxTranSects.Items.Clear();
// if sectstart is not -1, then use this as the section to select, otherwise
// use the id for the item passed in.
int startitm = sectstart;
if (sectstart < 0) sectstart = secitm.ItemID;
ItemInfo selitm = secitm; // this is the selected 'section' ItemInfo selitm = secitm; // this is the selected 'section'
secitm = secitm.FirstSibling; secitm = secitm.FirstSibling;
while (secitm != null) while (secitm != null)
{ {
int active = listBoxTranSects.Items.Add(secitm); int active = listBoxTranSects.Items.Add(secitm);
if (secitm.MyContent.ContentID == selitm.MyContent.ContentID) listBoxTranSects.SelectedIndex = active; if (secitm.ItemID == sectstart) listBoxTranSects.SelectedIndex = active;
secitm = (secitm.NextItemCount > 0 ? secitm.NextItems[0] : null); secitm = (secitm.NextItemCount > 0 ? secitm.NextItems[0] : null);
} }
} }
@ -1266,6 +1282,7 @@ namespace VEPROMS
} }
private void listBoxTranFmt_Click(object sender, EventArgs e) private void listBoxTranFmt_Click(object sender, EventArgs e)
{ {
if (_InitializingTrans) return;
// depending on the selected format's type , display associated list/tree boxes... // depending on the selected format's type , display associated list/tree boxes...
// //
// <TransTypes TransType="0" TransFormat="{Proc. Number}, {Proc. Title}, Step {First Step}" /> // <TransTypes TransType="0" TransFormat="{Proc. Number}, {Proc. Title}, Step {First Step}" />
@ -1280,7 +1297,7 @@ namespace VEPROMS
DisplayTabPanel dtp = ((DisplayTabItem)tc.SelectedTab).MyTabPanel; DisplayTabPanel dtp = ((DisplayTabItem)tc.SelectedTab).MyTabPanel;
ItemInfo curitm = dtp.ItemSelected; ItemInfo curitm = dtp.ItemSelected;
int selitm = listBoxTranFmt.SelectedIndex; //int selitm = listBoxTranFmt.SelectedIndex;
int type = (int)(curitm.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[listBoxTranFmt.SelectedIndex].Type); int type = (int)(curitm.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[listBoxTranFmt.SelectedIndex].Type);
if (type == 0 || type == 3 || type == 5) // show & allow selections for procedures. if (type == 0 || type == 3 || type == 5) // show & allow selections for procedures.
listBoxTranProcs.Enabled = true; listBoxTranProcs.Enabled = true;
@ -1292,7 +1309,7 @@ namespace VEPROMS
if (type == 0 || type == 3 || type == 4 || type == 5) if (type == 0 || type == 3 || type == 4 || type == 5)
{ {
// find default step section and make it the selected item - then disable from further selection. // find default step section and make it the selected item - then disable from further selection.
listBoxTranSects.SelectedIndex = 1; // TEMP until default step section found. //listBoxTranSects.SelectedIndex = 1; // TEMP until default step section found.
listBoxTranSects.Enabled = true; listBoxTranSects.Enabled = true;
} }
else else
@ -1302,6 +1319,7 @@ namespace VEPROMS
} }
private void listBoxTranSects_SelectedIndexChanged(object sender, EventArgs e) private void listBoxTranSects_SelectedIndexChanged(object sender, EventArgs e)
{ {
if (_InitializingTrans) return;
// a different section was selected, if step section, update step list, otherwise, empty // a different section was selected, if step section, update step list, otherwise, empty
// it & disable. // it & disable.
ItemInfo secitm = (ItemInfo)listBoxTranSects.SelectedItem; ItemInfo secitm = (ItemInfo)listBoxTranSects.SelectedItem;
@ -1316,34 +1334,32 @@ namespace VEPROMS
tvTran.Enabled = true; tvTran.Enabled = true;
} }
} }
#endregion
private void listBoxTranProcs_SelectedIndexChanged(object sender, EventArgs e) private void listBoxTranProcs_SelectedIndexChanged(object sender, EventArgs e)
{ {
if (_InitializingTrans) return;
ItemInfo prcitm = (ItemInfo)listBoxTranProcs.SelectedItem; ItemInfo prcitm = (ItemInfo)listBoxTranProcs.SelectedItem;
listBoxTranSectsFillIn(prcitm);
ProcedureConfig pc = (ProcedureConfig)prcitm.MyConfig;
int sectstartid = -1;
if (pc != null) sectstartid = System.Convert.ToInt32(pc.SectionStart);
// get default step section and fill it in, depending on format type.... // get default step section and fill it in, depending on format type....
// kbr - for now, use first // kbr - for now, use first
listBoxTranSectsFillIn(prcitm.Sections[0]); IList chldrn = prcitm.GetChildren();
if (!prcitm.Sections[0].IsStepSection)
{ listBoxTranSectsFillIn((ItemInfo)chldrn[0], sectstartid);
tvTran.Nodes.Clear();
tvTran.Enabled = false;
}
else
{
tvTranFillIn(prcitm.Sections[0].Steps[0]);
tvTran.Enabled = true;
}
} }
#endregion
private void tc_ItemSelectedChanged(object sender, DisplayPanelEventArgs args) private void tc_ItemSelectedChanged(object sender, DisplayPanelEventArgs args)
{ {
if(args == null) if (args == null)
itemAnnotationsBindingSource.DataSource = null; itemAnnotationsBindingSource.DataSource = null;
else else
{
itemAnnotationsBindingSource.DataSource = args.MyVlnCSLARTB.MyItem.ItemAnnotations; itemAnnotationsBindingSource.DataSource = args.MyVlnCSLARTB.MyItem.ItemAnnotations;
this._MyRTB = args.MyVlnCSLARTB.MyDisplayRTB;
}
} }
private void itemAnnotationsBindingSource_DataSourceChanged(object sender, EventArgs e) private void itemAnnotationsBindingSource_DataSourceChanged(object sender, EventArgs e)
@ -1363,5 +1379,52 @@ namespace VEPROMS
} }
} }
private ItemInfo _tranitem1;
private ItemInfo _tranitem2;
private void btnTranInsert_Click(object sender, EventArgs e)
{
if (btnTranInsert.Text == "Select Transition")
{
_tranitem1 = null;
_tranitem1 = (ItemInfo)listBoxTranSects.SelectedItem;
if (tvTran.Enabled == false || _tranitem1.IsAccPages)
_tranitem1 = (ItemInfo)listBoxTranSects.SelectedItem;
else
_tranitem1 = (ItemInfo)tvTran.SelectedNode.Tag;
// if range, set text on button to state to select 2nd trans.
DisplayTabPanel dtp = ((DisplayTabItem)tc.SelectedTab).MyTabPanel;
ItemInfo curitm = dtp.ItemSelected;
//int selitm = listBoxTranFmt.SelectedIndex;
int type = (int)(curitm.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[listBoxTranFmt.SelectedIndex].Type);
if (type == 2 || type == 3)
{
this.btnTranInsert.Text = "Select 2nd Transition";
}
else
{
string linktxt = string.Format("#Link:Transition: {0} xx {1}", type, curitm.ItemID);
_MyRTB.InsertTran("(Resolved Transition Text)", linktxt);
}
}
else
{
_tranitem2 = null;
_tranitem2 = (ItemInfo)listBoxTranSects.SelectedItem;
if (tvTran.Enabled == false || _tranitem2.IsAccPages)
_tranitem2 = (ItemInfo)listBoxTranSects.SelectedItem;
else
_tranitem2 = (ItemInfo)tvTran.SelectedNode.Tag;
}
}
#endregion
private void btnSave_Click(object sender, EventArgs e)
{
_MyRTB.Save();
}
#endregion
} }
} }

View File

@ -10,92 +10,105 @@ namespace VEPROMS.CSLA.Library
[Flags] [Flags]
public enum E_PurchaseOptions : uint public enum E_PurchaseOptions : uint
{ {
APPROVEONE = 0x0001, ApproveOne = 0x0001,
ACCPAGINATION = 0x0002, AccPagination = 0x0002,
LIBMAINT = 0x0004, LibMaint = 0x0004,
TRANSFER = 0x0008, Transfer = 0x0008,
STREES = 0x0010, STrees = 0x0010,
DATECHGSUMRPT = 0x0020, DateChgSumRpt = 0x0020,
SETPOINTUSAGE = 0x0040, SetpointUsage = 0x0040,
REPLACE = 0x0080, Replace = 0x0080,
FLOPPYTRANSFER = 0x0100, FloppyTransfer = 0x0100,
APPROVEGENERICBACK = 0x0200, ApproveGenericBack = 0x0200,
DISTRIBUTEAPPROVED = 0x0400, DistributeApproved = 0x0400,
OUTSIDETRANSITIONS = 0x0800, OutsideTransitions = 0x0800,
ENHANCEDBACKGROUNDS = 0x1000, EnhancedBackGrounds = 0x1000,
ENHANCEDDEVIATIONS = 0x2000, EnhancedDeviations = 0x2000,
AUTOTABLEOFCONTENTS = 0x4000, AutoTableOfContents = 0x4000,
AUTOPLACEKEEPER = 0x8000 AutoPlacekeeper = 0x8000
} }
[Flags] [Flags]
public enum E_Style : uint public enum E_Style : uint
{ {
// Fonts removed, not used here. // Fonts removed, not used here.
NONE = 0, None = 0,
UNDERLINE = 64, BOLD = 128, LANDSCAPE = 256, ITALICS = 512, BOXED = 1024, BOXELEMENT = 0x00000800, Underline = 64, Bold = 128, Landscape = 256, Italics = 512, Boxed = 1024, BoxElement = 0x00000800,
TBCENTERED = 4096, RTCHECKOFF = 8192, LTCHECKOFF = 16384, BIGSCRIPT = 32768, HLTEXTHL = 65536, TbCentered = 4096, RtCheckoff = 8192, LtCheckOff = 16384, BigScript = 32768, HlTextHl = 65536,
RTCHECKOFFWITHASTERISK = 131072, DB_UNDERLINE = 262144, COLDOTS = 524288, RtCheckoffWithAsterisk = 131072, DbUnderline = 262144, ColDots = 524288,
MMBOLD = 1048576, RIGHTJUSTIFY = 2097152, SUBSCRIPT = 4194304, SUPERSCRIPT = 8388608, MmBold = 1048576, RightJustify = 2097152, Subscript = 4194304, Superscript = 8388608,
PAGELISTITEM = 16777216, PRINTONTOPOFLINE = 33554432, HORZCENTER = 67108864, PageListItem = 16777216, PrintOnTopOfLine = 33554432, HorzCenter = 67108864,
CIRCLESTRING2 = 0x08000000, ALIGNWITHUP1 = 0x10000000, ALIGNWSECNUM = 0x20000000, CircleString2 = 0x08000000, AlighWithUp1 = 0x10000000, AlignWSecNum = 0x20000000,
MATCHCOLUMNMODE = 0x40000000, KEEPRNOSUBSTYLE = 0x80000000 MatchColumnMode = 0x40000000, KeepRNOSubStyle = 0x80000000
}; };
public enum E_ChangeBarMessage : uint public enum E_ChangeBarMessage : uint
{ {
DATEANDUSERID = 0, DateAndUserId = 0,
REVNUMBER = 1, RevNumber = 1,
USERID = 2, UserId = 2,
NOTHING = 3 Nothing = 3
}
public enum E_TransUI : uint
{
None = 0,
ProcCur = 0x0001,
ProcMenu = 0x0002,
SectCur = 0x0004,
SectDefault = 0x0008,
SectMenuAny = 0x0010,
SectMenuStep = 0x0020,
StepAllowNone = 0x0040,
StepFirst = 0x0080,
StepLast = 0x0100
} }
public enum E_EMode : uint public enum E_EMode : uint
{ {
INSERT = 0, Insert = 0,
OVERRIDE = 1 Override = 1
} }
public enum E_ViewMode : uint public enum E_ViewMode : uint
{ {
VIEW = 0, View = 0,
EDIT = 1 Edit = 1
} }
public enum E_EditPrintMode : uint public enum E_EditPrintMode : uint
{ {
EDIT = 0, Edit = 0,
PRINT = 1 Print = 1
} }
[Flags] [Flags]
public enum E_Justify : uint public enum E_Justify : uint
{ {
PSCENTER = 0, // Page style, center field PSCenter = 0, // Page style, center field
PSLEFT = 1, // Page style, left justify PSLeft = 1, // Page style, left justify
PSRIGHT = 2, // Page style, right justify PSRight = 2, // Page style, right justify
// *** PS modifiers: *** // *** PS modifiers: ***
PSBOTTOM = 4, // Page style, always use bottom half line PSBottom = 4, // Page style, always use bottom half line
PSTOP = 8, // Page style, always use top half line PSTop = 8, // Page style, always use top half line
PSTRUE = 16, // page style, don't adjust per CPI* (not needed after 4.0) PSTrue = 16, // page style, don't adjust per CPI* (not needed after 4.0)
PSNOTFIRST = 32, // page style, don't put this token on the first page of section PSNotFirst = 32, // page style, don't put this token on the first page of section
PSONLYFIRST = 64, // page style, only put this token on the first page of section PSOnlyFirst = 64, // page style, only put this token on the first page of section
PSRELROW = 128, // place in RelPageList PSRelRow = 128, // place in RelPageList
PSNOHALFLINE = 256, // DontDoHalflines for his paglist row item PSNoHalfLine = 256, // DontDoHalflines for his paglist row item
PSNOTLAST = 0x200, // 512 - use this token on all but the last page of this section PSNotLast = 0x200, // 512 - use this token on all but the last page of this section
PSRTFONLY = 0x400, // Only use this token when the driver is rtf PSRtfOnly = 0x400, // Only use this token when the driver is rtf
PSRTFNOT = 0x800, // Do NOT use token when driver is rtf PSRtfNot = 0x800, // Do NOT use token when driver is rtf
PSGDIONLY = 0X1000, // Only use this token when the driver is GDI PSGDIOnly = 0X1000, // Only use this token when the driver is GDI
PSGDINOT = 0x2000, // Do NOT use token when driver is GDI PSGDINot = 0x2000, // Do NOT use token when driver is GDI
PSADJBNGROW = 0x4000 // If the pagelist item exceeds the row it's printed on, PSAdjBngRow = 0x4000 // If the pagelist item exceeds the row it's printed on,
// then adjust the starting row for the procedure body // then adjust the starting row for the procedure body
}; };
public enum E_NumberingSequence : uint public enum E_NumberingSequence : uint
{ {
NOPAGENUM = 0, NoPageNum = 0,
INCLUDEWOTHSTEPS = 1, IncludeWoThSteps = 1,
WITHINSECTIONS = 2, WithinSections = 2,
WITHINACCESSORY = 3 WithinAccessory = 3
}; };
public enum E_ContBottomLoc : uint public enum E_ContBottomLoc : uint
{ {
ENDOFTEXT = 0, EndOfText = 0,
BTWNTEXTANDBOTTOM = 1, BtwnTextAndBottom = 1,
BOTTOMOFPAGE = 2 BottomOfPage = 2
}; };
[Flags] [Flags]
public enum E_DocStructStyle : uint public enum E_DocStructStyle : uint
@ -104,58 +117,58 @@ namespace VEPROMS.CSLA.Library
//USEONFIRSTPAGE = 1, // Use only on the first page //USEONFIRSTPAGE = 1, // Use only on the first page
//USEONALLBUTFIRSTPAGE = 2, // Use on all but the first page //USEONALLBUTFIRSTPAGE = 2, // Use on all but the first page
//USEONLASTPAGE = 4, // NO LOGIC exists for this selection. Use only on the last page //USEONLASTPAGE = 4, // NO LOGIC exists for this selection. Use only on the last page
NONE = 0, None = 0,
USESECTIONFOLDOUT = 8, // Attach section foldouts (only active if using SectionLevelFoldouts_ON UseSectionFoldout = 8, // Attach section foldouts (only active if using SectionLevelFoldouts_ON
DONTCOUNTFOLDOUTPGS = 16, // Used with the USESECTIONFOLDOUT flag. Keeps foldout pages from DontCountFoldoutPgs = 16, // Used with the USESECTIONFOLDOUT flag. Keeps foldout pages from
// being included in the section total page count. // being included in the section total page count.
TABLEOFCONTENTS = 32, TableOfContents = 32,
DONTCOUNTINTABOFCONT = 64, DontCountInTabOfCont = 64,
PLACEKEEPER = 128, Placekeeper = 128,
ALIGN1STLEVSUBWHLS = 0x00000100, // guess? Align1StLevSubWHLS = 0x00000100, // guess?
DOUBLEBOXHLS = 0x00000200, DoubleBoxHLS = 0x00000200,
USEALTCNTRLINE = 0x00000400, UseAltCntrline = 0x00000400,
DONTNUMBERINTOC = 0x00000800, // Don't include page number for this section in the Table of Contents DontNumberInTOC = 0x00000800, // Don't include page number for this section in the Table of Contents
USESPECIALFIGFRAME = 0x00001000, // for use with stp55 and 55a in bge UseSpecialFigFrame = 0x00001000, // for use with stp55 and 55a in bge
HLSUSELETTERS = 0x00002000, // docstyles with this bit set in the DocStructStyle will HLSUseLetters = 0x00002000, // docstyles with this bit set in the DocStructStyle will
// default to using letters for HLSteps // default to using letters for HLSteps
NOSECTIONINSTEPCONTINUE = 0x00004000, // don't include the section number in the step continue NoSectionInStepContinue = 0x00004000, // don't include the section number in the step continue
BOTTOMSECTIONCONTINUE = 0x00008000, // print the continue message if the section continues BottomSectionContinue = 0x00008000, // print the continue message if the section continues
ALWAYSDOTSTEP = 0x00010000, // put the period after step number in the continue message AlwaysDotStep = 0x00010000, // put the period after step number in the continue message
XBLANKW1STLEVSUB = 0x00020000, // insert an extra blank line before a 1st level substep XBlankW1stLevSub = 0x00020000, // insert an extra blank line before a 1st level substep
AFFECTEDPAGES = 0x00040000, AffectedPages = 0x00040000,
DSS_TREATASTRUESECTNUM = 0x00080000, // in conjunction with tietabtolevel, takes section number DSS_TreatAsTrueSectNum = 0x00080000, // in conjunction with tietabtolevel, takes section number
// from the last space and appends a period // from the last space and appends a period
SAMPLEWATERMARK = 0x00100000, // Will force "SAMPLE" to be printed across the page SampleWatermark = 0x00100000, // Will force "SAMPLE" to be printed across the page
// on all pages in this section // on all pages in this section
DSS_PAGEBREAKHLS = 0x00200000, // Page Breaks on all high level steps DSS_PageBreakHLS = 0x00200000, // Page Breaks on all high level steps
DSS_NOCHKIFCONTTYPEHIGH = 0x00400000, // Will suppress the checkoff if type is HIGH and the DSS_NoChkIfContTypeHigh = 0x00400000, // Will suppress the checkoff if type is HIGH and the
// step is continued on the next page // step is continued on the next page
DSS_WIDTHOVRDSTDHLS = 0x00800000, // Width Override for Standard HLStep in this section DSS_WidthOvrdStdHLS = 0x00800000, // Width Override for Standard HLStep in this section
DSS_ADDDOTZEROSTDHLS = 0x01000000, // Append .0 to the Standard HLStep for this section DSS_AddDotZeroStdHLS = 0x01000000, // Append .0 to the Standard HLStep for this section
DSS_SECTIONCOMPRESS = 0x02000000, // Compress all the steps of this section (i.e. use 7 LPI) DSS_SectionCompress = 0x02000000, // Compress all the steps of this section (i.e. use 7 LPI)
DSS_PRINTSECTONFIRST = 0x04000000, // Prints section title/number <SECTIONLEVELTITLE> only on the first DSS_PrintSectOnFirst = 0x04000000, // Prints section title/number <SECTIONLEVELTITLE> only on the first
// page of an attachment section, assuming numberingsequence is not 1 // page of an attachment section, assuming numberingsequence is not 1
DSS_UNNUMLIKEROMAN = 0x08000000, // the substeps underneath unnumbered HLSteps will have same tabs as romans DSS_UnNumLikeRoman = 0x08000000, // the substeps underneath unnumbered HLSteps will have same tabs as romans
DSS_DONTCHANGEROMANLEVEL = 0x10000000, // Dont alter the the substep level for roman-numeral-tabbed hlsteps DSS_DontChangeRomanLevel = 0x10000000, // Dont alter the the substep level for roman-numeral-tabbed hlsteps
DSS_SKIPTWOSTEPLEVELS = 0x20000000, // Skip two step levels for this doc style DSS_SkipTwoStepLevels = 0x20000000, // Skip two step levels for this doc style
DSS_SKIPONESTEPLEVEL = 0x40000000, // Skip one step level for this doc style DSS_SkipOneStepLevel = 0x40000000, // Skip one step level for this doc style
DSS_SIMPLETOPSECTIONCONTINUE = 0x80000000, // Use the Top continue message as the section continue */ DSS_SimpleTopSectionContinue = 0x80000000, // Use the Top continue message as the section continue */
}; };
public enum E_DocStyleUse : uint public enum E_DocStyleUse : uint
{ {
USEONALLPAGES = 0, USEONFIRSTPAGE = 1, USEONALLBUTFIRSTPAGE = 2, USEONLASTPAGE = 4 UseOnAllPages = 0, UseOnFirstPage = 1, UseOnAllButFirstPage = 2, UseOnLastPage = 4
}; };
[Flags] [Flags]
// acceptence list for adding Tables, Cautions, Notes, Substeps, Next, Previous and RNO // acceptence list for adding Tables, Cautions, Notes, Substeps, Next, Previous and RNO
public enum E_AccStep : uint public enum E_AccStep : uint
{ {
ADDING_CAUTION = 1, AddingCaution = 1,
ADDING_NOTE = 2, AddingNote = 2,
ADDING_RNO = 4, AddingRNO = 4,
ADDING_SUB = 8, AddingSub = 8,
ADDING_TABLE = 16, AddingTable = 16,
ADDING_NEXT = 32, AddingNext = 32,
ADDING_PREV = 64 AddingPrev = 64
} }
[Flags] [Flags]
public enum E_ReplaceFlags : uint public enum E_ReplaceFlags : uint
@ -169,31 +182,31 @@ namespace VEPROMS.CSLA.Library
// CPLSSD: DIFFUNIT, TOC, STATTREE, HLSSETPNT // CPLSSD: DIFFUNIT, TOC, STATTREE, HLSSETPNT
// CWE: CASEINSENS, DIFFUNIT // CWE: CASEINSENS, DIFFUNIT
// MYA: CASEINSENSALL // MYA: CASEINSENSALL
HIGH = 0x0001, // Do ReplaceWords in HIGH LEVEL STEPS High = 0x0001, // Do ReplaceWords in HIGH LEVEL STEPS
RNO = 0x0002, // Do ReplaceWords in RNOS RNO = 0x0002, // Do ReplaceWords in RNOS
CAUTION = 0x0004, // Do ReplaceWords in CAUTIONS Caution = 0x0004, // Do ReplaceWords in CAUTIONS
NOTE = 0x0008, // Do ReplaceWords in NOTES Note = 0x0008, // Do ReplaceWords in NOTES
TABLE = 0x0010, // Do ReplaceWords in TABLES Table = 0x0010, // Do ReplaceWords in TABLES
SUBSTEP = 0x0020, // Do ReplaceWords in SUBSTEPS Substep = 0x0020, // Do ReplaceWords in SUBSTEPS
ATTACH = 0x0040, // Do ReplaceWords in ATTACHMENTS Attach = 0x0040, // Do ReplaceWords in ATTACHMENTS
BKGD = 0x0080, // Do ReplaceWords in BACKGROUNDS Bkgd = 0x0080, // Do ReplaceWords in BACKGROUNDS
DIFFUNIT = 0x0100, // Do ReplaceWords ONLY for different UNIT # DiffUnit = 0x0100, // Do ReplaceWords ONLY for different UNIT #
TOC = 0x0200, // Do in auto table-of-contents TOC = 0x0200, // Do in auto table-of-contents
STATTREE = 0x0400, StatTree = 0x0400,
HLSSETPNT = 0x0800, // Do ReplaceWords in HighLevelStep SETPoiNTs HLSSetpnt = 0x0800, // Do ReplaceWords in HighLevelStep SETPoiNTs
TRAN = 0x1000, // Do ReplaceWords in TRANSITIONS Trans = 0x1000, // Do ReplaceWords in TRANSITIONS
SETPOINT = 0x2000, // Do ReplaceWords in SETPOINTS Setpoint = 0x2000, // Do ReplaceWords in SETPOINTS
// Case Sensitivity Flags - default is off (Case Sensitive Replace) // Case Sensitivity Flags - default is off (Case Sensitive Replace)
CASEINSENS = 0x0000C000, // Do ReplaceWords for all words thatmatch, regardless of case, CaseInsens = 0x0000C000, // Do ReplaceWords for all words thatmatch, regardless of case,
// and replace with the ReplaceWith string as is // and replace with the ReplaceWith string as is
CASEINSENSFIRST = 0x4000, // Do ReplaceWords for all words thatexactly match the ReplaceWord, CaseInsensFirst = 0x4000, // Do ReplaceWords for all words thatexactly match the ReplaceWord,
// except the case of the first character may be different // except the case of the first character may be different
CASEINSENSALL = 0x8000, // Do ReplaceWords for all words that match the ReplaceWord, regardless of case CaseInsensAll = 0x8000, // Do ReplaceWords for all words that match the ReplaceWord, regardless of case
PARTIALS = 0x10000, // Do replace even on partial matches Partials = 0x10000, // Do replace even on partial matches
PLACKEEP = 0x20000, // Do replace in PlaceKeepers Plackeep = 0x20000, // Do replace in PlaceKeepers
INSECTITLE = 0x40000 InSecTitle = 0x40000
} }
#endregion #endregion
} }

View File

@ -2636,6 +2636,14 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _TransFormat, "@TransFormat"); return LazyLoad(ref _TransFormat, "@TransFormat");
} }
} }
private LazyLoad<E_TransUI?> _TransUI;
public E_TransUI? TransUI
{
get
{
return LazyLoad<E_TransUI>(ref _TransUI, "@TransUI");
}
}
private LazyLoad<string> _TransMenu; private LazyLoad<string> _TransMenu;
public string TransMenu public string TransMenu
{ {