A PJL (Printer Job Language) parser for Mako. More...
#include <pjl.h>
Classes | |
class | CPjlAttributeValue |
A captured PJL attribute. More... | |
Public Types | |
enum | ePjlResult { ePREnterPclXl , ePREnterPcl , ePREnterPostScript , ePREnterPdf , ePREnterHpgl2 , ePREndOfFile } |
Result code for PJL parsing. More... | |
enum | eDuplexBindingMode { eDBMLongEdge , eDBMShortEdge } |
Duplex binding mode enumeration. More... | |
Public Member Functions | |
virtual IPJLParserPtr | clone ()=0 |
Clone the parser and the PJL environment. | |
virtual ePjlResult | parse (const IInputPushbackStreamPtr &stream)=0 |
Parse from the given stream, until another language is encountered or the end of the stream is reached. | |
virtual CPjlAttributeVect | getAttributes (const RawString &command, const RawString &key=RawString())=0 |
Retrieves all attributes set with the given PJL command and key. | |
virtual void | setDefaultPaperSize (const U8String &paperSize)=0 |
Set the default paper size in the PJL Environment. Equivalent to having parsed "@PJL SET PAPER = <papersize>". | |
virtual void | setDefaultLandscape (bool defaultLandscape)=0 |
Set the default orientation in the PJL Environment. Equivalent to having parsed "@PJL SET ORIENTATION = <PORTRAIT or LANDSCAPE>". | |
virtual void | setDefaultCopies (uint32 defaultCopies)=0 |
Set the default number of copies in the PJL Environment. Equivalent to having parsed "@PJL SET COPIES = <default copies>". | |
virtual void | setDefaultDuplex (bool defaultDuplex)=0 |
Set the default duplex in the PJL Environment. Equivalent to having parsed "@PJL SET DUPLEX = <ON or OFF>". | |
virtual void | setDefaultDuplexBindingMode (eDuplexBindingMode defaultDuplexBinding)=0 |
Set the default binding mode in the PJL Environment. Equivalent to having parsed "@PJL SET BINDING = <LONGEDGE or SHORTEDGE>". | |
virtual void | setDefaultManualFeed (bool defaultManualFeed)=0 |
Set the default manual feed mode in the PJL Environment. Equivalent to having parsed "@PJL SET MANUALFEED = <ON or OFF>". | |
Public Member Functions inherited from IRCObject | |
virtual void | addRef () const =0 |
Increases the reference count of the actual object pointed to. This would take place during an assignment or copying. | |
virtual bool | decRef () const =0 |
Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to. | |
virtual int32 | getRefCount () const =0 |
Retrieve the current reference count of the actual object pointed to. | |
Static Public Member Functions | |
static JAWSMAKO_API IPJLParserPtr | create (const IJawsMakoPtr &jawsMako) |
Create a PJL parser instance. | |
Additional Inherited Members | |
Protected Member Functions inherited from IRCObject | |
virtual | ~IRCObject () |
Virtual destructor. | |
A PJL (Printer Job Language) parser for Mako.
Result code for PJL parsing.
|
static |
Create a PJL parser instance.
|
pure virtual |
Retrieves all attributes set with the given PJL command and key.
If the key is empty, all attributes set with the given command will be returned.
|
pure virtual |
Parse from the given stream, until another language is encountered or the end of the stream is reached.
Exceptions of type IError are thrown on error.
stream | The stream to parse. This must be a pushback-capable stream, as the parser must be able to sniff ahead. The stream must be open; the parser will neither open nor close the stream. |