示例#1
0
 /// <summary>
 /// Register the string command
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("status", new StatusCmd());
     interpreter.RegisterCommand("string", new StringCmd());
     interpreter.RegisterCommand("search", new SearchCmd());
     interpreter.RegisterCommand("anchorsearch", new AnchorSearchCmd());
     interpreter.RegisterCommand("token", new TokenCmd());
 }
示例#2
0
 /// <summary>
 /// Register the resource commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("defineresource", new DefineResourceOperand());
     interpreter.RegisterCommand("findresource", new FindResourceOperand());
     interpreter.RegisterCommand("undefineresource", new UndefineResourceOperand());
     interpreter.RegisterCommand("resourceforall", new ResourceForAllOperand());
     interpreter.RegisterCommand("resourcestatus", new ResourceStatusOperand());
 }
示例#3
0
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("currentfile", new CurrentFileCmd());
     interpreter.RegisterCommand("filter", new FilterCmd());
     interpreter.RegisterCommand("flushfile", new FlushFileCmd());
     interpreter.RegisterCommand("readstring", new ReadStringCmd());
     interpreter.RegisterCommand("readline", new ReadLineCmd());
 }
示例#4
0
 /// <summary>
 /// Register painting commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("eofill", new EoFillOperand());
     interpreter.RegisterCommand("fill", new FillOperand());
     interpreter.RegisterCommand("image", new PaintNotingCmd());
     interpreter.RegisterCommand("imagemask", new PaintNotingCmd());
     interpreter.RegisterCommand("stroke", new StrokeCmd());
 }
示例#5
0
 /// <summary>
 /// Register misc commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("=", new PrintCmd());
     interpreter.RegisterCommand("==", new PrintCmd());
     interpreter.RegisterCommand("bind", new BindCmd());
     interpreter.RegisterCommand("product", new ProductCmd());
     interpreter.RegisterCommand("version", new VersionCmd());
 }
        /// <summary>
        /// Register interpreter commands
        /// </summary>
        static public void Register(EpsInterpreter interpreter)
        {
            interpreter.RegisterCommand("currentsystemparams", new CurrentSystemParamsOperand());
            interpreter.RegisterCommand("setuserparams", new SetUserParamsOperand());
            interpreter.RegisterCommand("handleerror", new HandleErrorOperand());
            interpreter.RegisterErrorCommand("handleerror", new DefaultErrorHandlerOperand());
#if DEBUG
            interpreter.RegisterCommand("debugwriteln", new DebugWriteLineOperand());
            interpreter.RegisterCommand("debugwritestack", new DebugWriteStackOperand());
#endif
        }
示例#7
0
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("clear", new ClearCmd());
     interpreter.RegisterCommand("cleartomark", new CleartomarkCmd());
     interpreter.RegisterCommand("count", new CountCmd());
     interpreter.RegisterCommand("counttomark", new CounttomarkCmd());
     interpreter.RegisterCommand("dup", new DupCmd());
     interpreter.RegisterCommand("exch", new ExchCmd());
     interpreter.RegisterCommand("index", new IndexCmd());
     interpreter.RegisterCommand("mark", new MarkCmd());
     interpreter.RegisterCommand("pop", new PopCmd());
     interpreter.RegisterCommand("roll", new RollCmd());
 }
示例#8
0
 /// <summary>
 /// Register font commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("awidthshow", new FontNotingCmd());
     interpreter.RegisterCommand("ashow", new FontNotingCmd());
     interpreter.RegisterCommand("cshow", new FontNotingCmd());
     interpreter.RegisterCommand("findfont", new FindFontCmd());
     interpreter.RegisterCommand("show", new FontNotingCmd());
     interpreter.RegisterCommand("widthshow", new FontNotingCmd());
     interpreter.RegisterCommand("xshow", new FontNotingCmd());
     interpreter.RegisterCommand("xyshow", new FontNotingCmd());
     interpreter.RegisterCommand("yshow", new FontNotingCmd());
 }
示例#9
0
 /// <summary>
 /// Register matrix commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("concat", new ConcatOperand());
     interpreter.RegisterCommand("matrix", new MatrixOperand());
     interpreter.RegisterCommand("scale", new ScaleOperand());
     interpreter.RegisterCommand("translate", new TranslateOperand());
     interpreter.RegisterCommand("currentmatrix", new CurrentMatrixOperand());
     interpreter.RegisterCommand("setmatrix", new SetMatrixOperand());
     interpreter.RegisterCommand("dtransform", new DtransformOperand());
     interpreter.RegisterCommand("transform", new TransformOperand());
     interpreter.RegisterCommand("itransform", new ItransformOperand());
 }
示例#10
0
 /// <summary>
 /// Register conversion commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("cvi", new CviCmd());
     interpreter.RegisterCommand("cvr", new CvrCmd());
     interpreter.RegisterCommand("cvx", new CvxCmd());
     interpreter.RegisterCommand("cvlit", new CvLitCmd());
     interpreter.RegisterCommand("type", new TypeCmd());
     interpreter.RegisterCommand("xcheck", new XcheckCmd());
     interpreter.RegisterCommand("executeonly", new DoNothingCmd());
     interpreter.RegisterCommand("readonly", new DoNothingCmd());
 }
示例#11
0
 /// <summary>
 /// Register array commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("aload", new ALoadCmd());
     interpreter.RegisterCommand("array", new ArrayCmd());
     interpreter.RegisterCommand("astore", new AStoreCmd());
     interpreter.RegisterCommand("currentpacking", new CurrentPackingCmd());
     interpreter.RegisterCommand("packedarray", new ArrayCmd());
     interpreter.RegisterCommand("setpacking", new SetPackingCmd());
 }
示例#12
0
 /// <summary>
 /// Register commands that work on more than one type
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("copy", new CopyCmd());
     interpreter.RegisterCommand("get", new GetCmd());
     interpreter.RegisterCommand("getinterval", new GetIntervalCmd());
     interpreter.RegisterCommand("length", new LengthCmd());
     interpreter.RegisterCommand("put", new PutCmd());
     interpreter.RegisterCommand("putinterval", new PutIntervalCmd());
 }
示例#13
0
 /// <summary>
 /// Register arithmetic commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("abs", new AbsCmd());
     interpreter.RegisterCommand("add", new AddCmd());
     interpreter.RegisterCommand("ceiling", new CeilingCmd());
     interpreter.RegisterCommand("div", new DivCmd());
     interpreter.RegisterCommand("floor", new FloorCmd());
     interpreter.RegisterCommand("idiv", new IdivCmd());
     interpreter.RegisterCommand("sub", new SubCmd());
     interpreter.RegisterCommand("mul", new MulCmd());
     interpreter.RegisterCommand("mod", new ModCmd());
     interpreter.RegisterCommand("neg", new NegCmd());
     interpreter.RegisterCommand("round", new RoundCmd());
     interpreter.RegisterCommand("sqrt", new SqrtCmd());
     interpreter.RegisterCommand("truncate", new TruncateCmd());
     interpreter.RegisterCommand("atan", new AtanCmd());
     interpreter.RegisterCommand("cos", new CosCmd());
     interpreter.RegisterCommand("sin", new SinCmd());
     interpreter.RegisterCommand("exp", new ExpCmd());
     interpreter.RegisterCommand("ln", new LnCmd());
     interpreter.RegisterCommand("log", new LogCmd());
     interpreter.RegisterCommand("rand", new RandCmd());
     interpreter.RegisterCommand("srand", new SrandCmd());
     interpreter.RegisterCommand("rrand", new RrandCmd());
 }
示例#14
0
 /// <summary>
 /// Register boolean commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("and", new AndCmd());
     interpreter.RegisterCommand("eq", new EqCmd());
     interpreter.RegisterCommand("ge", new GeCmd());
     interpreter.RegisterCommand("gt", new GtCmd());
     interpreter.RegisterCommand("le", new LeCmd());
     interpreter.RegisterCommand("lt", new LtCmd());
     interpreter.RegisterCommand("ne", new NeCmd());
     interpreter.RegisterCommand("not", new NotCmd());
     interpreter.RegisterCommand("or", new OrCmd());
     interpreter.RegisterCommand("xor", new XorCmd());
     interpreter.RegisterCommand("bitshift", new BitshiftCmd());
 }
示例#15
0
 /// <summary>
 /// Register control commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("countexecstack", new CountExecStackCmd());
     interpreter.RegisterCommand("exec", new ExecCmd());
     interpreter.RegisterCommand("execstack", new ExecStackCmd());
     interpreter.RegisterCommand("exit", new ExitCmd());
     interpreter.RegisterCommand("if", new IfCmd());
     interpreter.RegisterCommand("ifelse", new IfElseCmd());
     interpreter.RegisterCommand("for", new ForCmd());
     interpreter.RegisterCommand("forall", new ForAllCmd());
     interpreter.RegisterCommand("loop", new LoopCmd());
     interpreter.RegisterCommand("quit", new QuitCmd());
     interpreter.RegisterCommand("repeat", new RepeatCmd());
     interpreter.RegisterCommand("stopped", new StoppedCmd());
     interpreter.RegisterCommand("stop", new StopCmd());
 }
示例#16
0
 /// <summary>
 /// Register dictionary commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("begin", new BeginCmd());
     interpreter.RegisterCommand("def", new DefCmd());
     interpreter.RegisterCommand("cleardictstack", new ClearDictStackCmd());
     interpreter.RegisterCommand("countdictstack", new CountDictStackCmd());
     interpreter.RegisterCommand("currentdict", new CurrentDictCmd());
     interpreter.RegisterCommand("dict", new DictCmd());
     interpreter.RegisterCommand("dictstack", new DictStackCmd());
     interpreter.RegisterCommand("end", new EndCmd());
     interpreter.RegisterCommand("internaldict", new InternalDictCmd());
     interpreter.RegisterCommand("known", new KnownCmd());
     interpreter.RegisterCommand("load", new LoadCmd());
     interpreter.RegisterCommand("maxlength", new MaxLengthCmd());
     interpreter.RegisterCommand("store", new StoreCmd());
     interpreter.RegisterCommand("undef", new UndefCmd());
     interpreter.RegisterCommand("where", new WhereCmd());
 }
示例#17
0
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("arc", new ArcCmd());
     interpreter.RegisterCommand("arcn", new ArcnCmd());
     interpreter.RegisterCommand("arct", new ArctCmd());
     interpreter.RegisterCommand("closepath", new ClosePathCmd());
     interpreter.RegisterCommand("charpath", new CharPathCmd());
     interpreter.RegisterCommand("clip", new ClipCmd());
     interpreter.RegisterCommand("clippath", new ClipPathCmd());
     interpreter.RegisterCommand("currentpoint", new CurrentPointCmd());
     interpreter.RegisterCommand("curveto", new CurveToCmd());
     interpreter.RegisterCommand("eoclip", new EoClipCmd());
     interpreter.RegisterCommand("flattenpath", new FlattenPathCmd());
     interpreter.RegisterCommand("initclip", new InitClipCmd());
     interpreter.RegisterCommand("lineto", new LineToCmd());
     interpreter.RegisterCommand("moveto", new MoveToCmd());
     interpreter.RegisterCommand("newpath", new NewPathCmd());
     //interpreter.AddCmds(new PathBBox());
     //interpreter.AddCmds(new PathForAll());
     interpreter.RegisterCommand("rcurveto", new RcurveToCmd());
     interpreter.RegisterCommand("rectclip", new RectClipCmd());
     interpreter.RegisterCommand("reversepath", new ReversePathCmd());
     interpreter.RegisterCommand("rlineto", new RlineToCmd());
     interpreter.RegisterCommand("rmoveto", new RmoveToCmd());
     interpreter.RegisterCommand("setbbox", new SetBBoxCmd());
     interpreter.RegisterCommand("strokepath", new StrokePathCmd());
     //interpreter.AddCmds(new UCache());
     //interpreter.AddCmds(new UappendCmd());
     //interpreter.AddCmds(new UPathAll());
     interpreter.RegisterCommand("ustrokepath", new UstrokePathCmd());
 }
示例#18
0
 /// <summary>
 /// Register memory commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("currentglobal", new CurrentGlobalOperand());
     interpreter.RegisterCommand("setglobal", new SetGlobalOperand());
 }
示例#19
0
 /// <summary>
 /// Register arithmetic commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("makepattern", new MakePatternCmd());
 }
 /// <summary>
 /// Register device setup commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("currentpagedevice", new CurrentPageDeviceOperand());
     interpreter.RegisterCommand("showpage", new ShowPageOperand());
 }
 /// <summary>
 /// Register the graphic commands
 /// </summary>
 static public void Register(EpsInterpreter interpreter)
 {
     interpreter.RegisterCommand("clipsave", new GSaveOperand());
     interpreter.RegisterCommand("cliprestore", new GRestoreOperand());
     interpreter.RegisterCommand("currentblackgeneration", new CurrentBlackGenerationOperand());
     interpreter.RegisterCommand("currentcolortransfer", new CurrentColorTransferOperand());
     interpreter.RegisterCommand("currentcmykcolor", new CurrentCMYKColorOperand());
     interpreter.RegisterCommand("currentcolor", new CurrentColorOperand());
     interpreter.RegisterCommand("currentflat", new CurrentFlatOperand());
     interpreter.RegisterCommand("currentgray", new CurrentGrayOperand());
     interpreter.RegisterCommand("currentcolorspace", new CurrentColorSpaceOperand());
     interpreter.RegisterCommand("currenthalftone", new CurrentHalfToneOperand());
     interpreter.RegisterCommand("currentscreen", new CurrentScreenOperand());
     interpreter.RegisterCommand("currentrgbcolor", new CurrentRGBColorOperand());
     interpreter.RegisterCommand("currenttransfer", new CurrentTransferOperand());
     interpreter.RegisterCommand("currentundercolorremoval", new CurrentBlackGenerationOperand());
     interpreter.RegisterCommand("grestore", new GRestoreOperand());
     interpreter.RegisterCommand("grestoreall", new GRestoreOperand());
     interpreter.RegisterCommand("gsave", new GSaveOperand());
     interpreter.RegisterCommand("setoverprint", new SetOverPrintOperand());
     interpreter.RegisterCommand("restore", new RestoreOperand());
     interpreter.RegisterCommand("save", new SaveOperand());
     interpreter.RegisterCommand("setdash", new SetDashOperand());
     interpreter.RegisterCommand("setcolor", new SetColorOperand());
     interpreter.RegisterCommand("setcolorspace", new SetColorSpaceOperand());
     interpreter.RegisterCommand("setgray", new SetGrayOperand());
     interpreter.RegisterCommand("setlinecap", new SetLineCapOperand());
     interpreter.RegisterCommand("setlinejoin", new SetLineJoinOperand());
     interpreter.RegisterCommand("setlinewidth", new SetLineWidthOperand());
     interpreter.RegisterCommand("setmiterlimit", new SetMiterLimitOperand());
     interpreter.RegisterCommand("setrgbcolor", new SetRgbColorOperand());
     interpreter.RegisterCommand("setcmykcolor", new SetCmykColorOperand());
     interpreter.RegisterCommand("setstrokeadjust", new SetStrokeAdjustOperand());
     interpreter.RegisterCommand("setflat", new SetFlatOperand());
     interpreter.RegisterCommand("settransfer", new SetTransferOperand());
     interpreter.RegisterCommand("shfill", new ShFillOperand());
 }