200 lines
7.9 KiB
C#
200 lines
7.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Xml;
|
|
using System.ComponentModel;
|
|
|
|
namespace VEPROMS.CSLA.Library
|
|
{
|
|
#region ENums
|
|
[Flags]
|
|
public enum E_PurchaseOptions : uint
|
|
{
|
|
APPROVEONE = 0x0001,
|
|
ACCPAGINATION = 0x0002,
|
|
LIBMAINT = 0x0004,
|
|
TRANSFER = 0x0008,
|
|
STREES = 0x0010,
|
|
DATECHGSUMRPT = 0x0020,
|
|
SETPOINTUSAGE = 0x0040,
|
|
REPLACE = 0x0080,
|
|
FLOPPYTRANSFER = 0x0100,
|
|
APPROVEGENERICBACK = 0x0200,
|
|
DISTRIBUTEAPPROVED = 0x0400,
|
|
OUTSIDETRANSITIONS = 0x0800,
|
|
ENHANCEDBACKGROUNDS = 0x1000,
|
|
ENHANCEDDEVIATIONS = 0x2000,
|
|
AUTOTABLEOFCONTENTS = 0x4000,
|
|
AUTOPLACEKEEPER = 0x8000
|
|
}
|
|
[Flags]
|
|
public enum E_Style : uint
|
|
{
|
|
// Fonts removed, not used here.
|
|
NONE = 0,
|
|
UNDERLINE = 64, BOLD = 128, LANDSCAPE = 256, ITALICS = 512, BOXED = 1024, BOXELEMENT = 0x00000800,
|
|
TBCENTERED = 4096, RTCHECKOFF = 8192, LTCHECKOFF = 16384, BIGSCRIPT = 32768, HLTEXTHL = 65536,
|
|
RTCHECKOFFWITHASTERISK = 131072, DB_UNDERLINE = 262144, COLDOTS = 524288,
|
|
MMBOLD = 1048576, RIGHTJUSTIFY = 2097152, SUBSCRIPT = 4194304, SUPERSCRIPT = 8388608,
|
|
PAGELISTITEM = 16777216, PRINTONTOPOFLINE = 33554432, HORZCENTER = 67108864,
|
|
CIRCLESTRING2 = 0x08000000, ALIGNWITHUP1 = 0x10000000, ALIGNWSECNUM = 0x20000000,
|
|
MATCHCOLUMNMODE = 0x40000000, KEEPRNOSUBSTYLE = 0x80000000
|
|
};
|
|
public enum E_ChangeBarMessage : uint
|
|
{
|
|
DATEANDUSERID = 0,
|
|
REVNUMBER = 1,
|
|
USERID = 2,
|
|
NOTHING = 3
|
|
}
|
|
public enum E_EMode : uint
|
|
{
|
|
INSERT = 0,
|
|
OVERRIDE = 1
|
|
}
|
|
public enum E_ViewMode : uint
|
|
{
|
|
VIEW = 0,
|
|
EDIT = 1
|
|
}
|
|
public enum E_EditPrintMode : uint
|
|
{
|
|
EDIT = 0,
|
|
PRINT = 1
|
|
}
|
|
[Flags]
|
|
public enum E_Justify : uint
|
|
{
|
|
PSCENTER = 0, // Page style, center field
|
|
PSLEFT = 1, // Page style, left justify
|
|
PSRIGHT = 2, // Page style, right justify
|
|
// *** PS modifiers: ***
|
|
PSBOTTOM = 4, // Page style, always use bottom 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)
|
|
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
|
|
PSRELROW = 128, // place in RelPageList
|
|
PSNOHALFLINE = 256, // DontDoHalflines for his paglist row item
|
|
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
|
|
PSRTFNOT = 0x800, // Do NOT use token when driver is rtf
|
|
PSGDIONLY = 0X1000, // Only use this token when the 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,
|
|
// then adjust the starting row for the procedure body
|
|
};
|
|
public enum E_NumberingSequence : uint
|
|
{
|
|
NOPAGENUM = 0,
|
|
INCLUDEWOTHSTEPS = 1,
|
|
WITHINSECTIONS = 2,
|
|
WITHINACCESSORY = 3
|
|
};
|
|
public enum E_ContBottomLoc : uint
|
|
{
|
|
ENDOFTEXT = 0,
|
|
BTWNTEXTANDBOTTOM = 1,
|
|
BOTTOMOFPAGE = 2
|
|
};
|
|
[Flags]
|
|
public enum E_DocStructStyle : uint
|
|
{
|
|
//USEONALLPAGES = 0, // Default
|
|
//USEONFIRSTPAGE = 1, // Use only on 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
|
|
NONE = 0,
|
|
USESECTIONFOLDOUT = 8, // Attach section foldouts (only active if using SectionLevelFoldouts_ON
|
|
DONTCOUNTFOLDOUTPGS = 16, // Used with the USESECTIONFOLDOUT flag. Keeps foldout pages from
|
|
// being included in the section total page count.
|
|
TABLEOFCONTENTS = 32,
|
|
DONTCOUNTINTABOFCONT = 64,
|
|
PLACEKEEPER = 128,
|
|
ALIGN1STLEVSUBWHLS = 0x00000100, // guess?
|
|
DOUBLEBOXHLS = 0x00000200,
|
|
USEALTCNTRLINE = 0x00000400,
|
|
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
|
|
HLSUSELETTERS = 0x00002000, // docstyles with this bit set in the DocStructStyle will
|
|
// default to using letters for HLSteps
|
|
NOSECTIONINSTEPCONTINUE = 0x00004000, // don't include the section number in the step continue
|
|
BOTTOMSECTIONCONTINUE = 0x00008000, // print the continue message if the section continues
|
|
ALWAYSDOTSTEP = 0x00010000, // put the period after step number in the continue message
|
|
XBLANKW1STLEVSUB = 0x00020000, // insert an extra blank line before a 1st level substep
|
|
AFFECTEDPAGES = 0x00040000,
|
|
DSS_TREATASTRUESECTNUM = 0x00080000, // in conjunction with tietabtolevel, takes section number
|
|
// from the last space and appends a period
|
|
SAMPLEWATERMARK = 0x00100000, // Will force "SAMPLE" to be printed across the page
|
|
// on all pages in this section
|
|
DSS_PAGEBREAKHLS = 0x00200000, // Page Breaks on all high level steps
|
|
DSS_NOCHKIFCONTTYPEHIGH = 0x00400000, // Will suppress the checkoff if type is HIGH and the
|
|
// step is continued on the next page
|
|
DSS_WIDTHOVRDSTDHLS = 0x00800000, // Width Override for Standard HLStep in 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_PRINTSECTONFIRST = 0x04000000, // Prints section title/number <SECTIONLEVELTITLE> only on the first
|
|
// 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_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_SKIPONESTEPLEVEL = 0x40000000, // Skip one step level for this doc style
|
|
DSS_SIMPLETOPSECTIONCONTINUE = 0x80000000, // Use the Top continue message as the section continue */
|
|
};
|
|
public enum E_DocStyleUse : uint
|
|
{
|
|
USEONALLPAGES = 0, USEONFIRSTPAGE = 1, USEONALLBUTFIRSTPAGE = 2, USEONLASTPAGE = 4
|
|
};
|
|
[Flags]
|
|
// acceptence list for adding Tables, Cautions, Notes, Substeps, Next, Previous and RNO
|
|
public enum E_AccStep : uint
|
|
{
|
|
ADDING_CAUTION = 1,
|
|
ADDING_NOTE = 2,
|
|
ADDING_RNO = 4,
|
|
ADDING_SUB = 8,
|
|
ADDING_TABLE = 16,
|
|
ADDING_NEXT = 32,
|
|
ADDING_PREV = 64
|
|
}
|
|
[Flags]
|
|
public enum E_ReplaceFlags : uint
|
|
{
|
|
// Generally used: HIGH, RNO, CAUTION, NOTE, TABLE, SUBSTEP, ATTACH
|
|
// ANONOP: BKGD, TOC, INSECTITLE, TRAN
|
|
// BGEEOP: BKGD, PLACKEEP, TOC, PARTIALS
|
|
// CAL1 & WCN & WEP (various): STATTREE, HLSSETPNT
|
|
// CAL2 & CPL: SETPOINT
|
|
// HLP: CASEINSENS
|
|
// CPLSSD: DIFFUNIT, TOC, STATTREE, HLSSETPNT
|
|
// CWE: CASEINSENS, DIFFUNIT
|
|
// MYA: CASEINSENSALL
|
|
HIGH = 0x0001, // Do ReplaceWords in HIGH LEVEL STEPS
|
|
RNO = 0x0002, // Do ReplaceWords in RNOS
|
|
CAUTION = 0x0004, // Do ReplaceWords in CAUTIONS
|
|
NOTE = 0x0008, // Do ReplaceWords in NOTES
|
|
TABLE = 0x0010, // Do ReplaceWords in TABLES
|
|
SUBSTEP = 0x0020, // Do ReplaceWords in SUBSTEPS
|
|
ATTACH = 0x0040, // Do ReplaceWords in ATTACHMENTS
|
|
BKGD = 0x0080, // Do ReplaceWords in BACKGROUNDS
|
|
DIFFUNIT = 0x0100, // Do ReplaceWords ONLY for different UNIT #
|
|
TOC = 0x0200, // Do in auto table-of-contents
|
|
STATTREE = 0x0400,
|
|
HLSSETPNT = 0x0800, // Do ReplaceWords in HighLevelStep SETPoiNTs
|
|
TRAN = 0x1000, // Do ReplaceWords in TRANSITIONS
|
|
SETPOINT = 0x2000, // Do ReplaceWords in SETPOINTS
|
|
|
|
// Case Sensitivity Flags - default is off (Case Sensitive Replace)
|
|
CASEINSENS = 0x0000C000, // Do ReplaceWords for all words thatmatch, regardless of case,
|
|
// and replace with the ReplaceWith string as is
|
|
CASEINSENSFIRST = 0x4000, // Do ReplaceWords for all words thatexactly match the ReplaceWord,
|
|
// except the case of the first character may be different
|
|
CASEINSENSALL = 0x8000, // Do ReplaceWords for all words that match the ReplaceWord, regardless of case
|
|
|
|
PARTIALS = 0x10000, // Do replace even on partial matches
|
|
PLACKEEP = 0x20000, // Do replace in PlaceKeepers
|
|
INSECTITLE = 0x40000
|
|
}
|
|
#endregion
|
|
}
|