Mako 9.1.0 API
MakoCore SDK API Documentation
Loading...
Searching...
No Matches
pcl5input.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2026 Hybrid Software Helix Ltd. All rights reserved.
3 */
4
5#ifndef JAWSMAKO_PCL5INPUT_H
6#define JAWSMAKO_PCL5INPUT_H
7
8
18
19#include <memory>
20#include <edl/idomfont.h>
21#include <jawsmako/jawsmako.h>
22#include <jawsmako/pjl.h>
23
24namespace JawsMako
25{
26 using namespace EDL;
27
28 class IPCL5Input;
31 typedef std::shared_ptr<IPCL5FontSelectionMonitor> IPCL5FontSelectionMonitorPtr;
32
38 class IPCL5Input : public IInput
39 {
40 public:
41 virtual ~IPCL5Input() = default;
42
46 typedef enum
47 {
52
61 static JAWSMAKO_API IPCL5InputPtr create(const IJawsMakoPtr &jawsMako, const IProgressMonitorPtr &progressMonitor = IProgressMonitorPtr ());
62
78 virtual void setRopResolution(uint32 resolution) = 0;
79
109 virtual void setFlattenRops(bool flatten) = 0;
110
140 virtual void setDefaultPaperSize(const U8String &paperSize) = 0;
141
148 virtual void setDefaultLandscape(bool landscape) = 0;
149
156 virtual void setDefaultCopies(uint32 copies) = 0;
157
164 virtual void setDefaultDuplex(bool duplex) = 0;
165
173
180 virtual void setDefaultManualFeed(bool manualFeed) = 0;
181
188 virtual void setDefaultEdgeToEdge(bool edgeToEdge) = 0;
189
200 virtual void setPclVersion(ePCL5Version version) = 0;
201
214 virtual void setDefaultsFromPjl(IPJLParserPtr &pjlParser) = 0;
215
242 virtual void enableUnencapsulatedMode(bool unencapsulated) = 0;
243
253 virtual void setMediaHandler(IMediaHandler *mediaHandler) = 0;
254
268 virtual void setIgnorePrescribe(bool ignorePrescribe) = 0;
269
293 virtual void setPermanentResourceStore(IRCObjectPtr &permanentResourceStore) = 0;
294
309 virtual void addInternalFont(const IDOMFontOpenTypePtr &font) = 0;
310
319 virtual void setFontSelectionMonitor(const IPCL5FontSelectionMonitorPtr &fontSelectionMonitor) = 0;
320 };
321 #define obj2IPCL5Input(obj) IPCL5InputPtr(dynamic_cast<IPCL5Input *>((IRCObject *) (obj)), true)
322
331 {
332 public:
333 virtual ~IPCL5FontSelectionMonitor() = default;
334
338 typedef enum
339 {
342 } eLocation;
343
360 virtual void selectByCriteria(const IDOMFontPtr &font,
361 int32 symbolSet,
362 int32 spacing,
363 double pitch,
364 double height,
365 int32 style,
366 int32 strokeWeight,
367 int32 typeface,
368 uint32 resolution,
369 eLocation location) = 0;
370
375 virtual void selectById(const IDOMFontPtr &font, uint16 id) = 0;
376
381 virtual void selectById(const IDOMFontPtr &font, RawString id) = 0;
382 };
383}
384
385#endif
Abstract input source that can open files from disk or a stream and create an IDocumentAssembly for t...
Definition jawsmako.h:477
Interface allowing users of supported input types to monitor/handle unsatisfied media requests....
Definition jawsmako.h:2437
Interface allowing users to monitor the PCL5 font selection information used when adding IDOMFont obj...
Definition pcl5input.h:331
virtual void selectByCriteria(const IDOMFontPtr &font, int32 symbolSet, int32 spacing, double pitch, double height, int32 style, int32 strokeWeight, int32 typeface, uint32 resolution, eLocation location)=0
Invoked when adding a font that was selected by criteria using one of the PCL5 characteristic selecti...
virtual ~IPCL5FontSelectionMonitor()=default
virtual void selectById(const IDOMFontPtr &font, uint16 id)=0
Invoked when adding a font that was selected by numerical ID using the PCL5 font selection by ID comm...
eLocation
Font location.
Definition pcl5input.h:339
@ eLSoftFont
Soft font.
Definition pcl5input.h:340
@ eLInternalFont
Internal font.
Definition pcl5input.h:341
virtual void selectById(const IDOMFontPtr &font, RawString id)=0
Invoked when adding a font that was selected by string ID using the PCL5 alphanumeric ID command.
An instance of the JawsMako PCL5 input class.
Definition pcl5input.h:39
virtual void setPermanentResourceStore(IRCObjectPtr &permanentResourceStore)=0
Set a permanent resource store.
virtual void setDefaultDuplex(bool duplex)=0
Set whether duplex should be set by default.
virtual void setDefaultCopies(uint32 copies)=0
Set the default number of per-page copies.
ePCL5Version
An enumeration of possible PCL5 versions.
Definition pcl5input.h:47
@ ePCL5e
PCL5e.
Definition pcl5input.h:49
@ ePCL5Unset
Unset.
Definition pcl5input.h:48
@ ePCL5c
PCL5c.
Definition pcl5input.h:50
virtual void setMediaHandler(IMediaHandler *mediaHandler)=0
Set the IMediaHandler instance to use to handle unsatisfied media requests.
virtual void setIgnorePrescribe(bool ignorePrescribe)=0
Set whether to ignore Kyocera PRESCRIBE commands.
virtual ~IPCL5Input()=default
virtual void setPclVersion(ePCL5Version version)=0
Set the PCL5 version to use when interpreting the stream, or ePCL5Unset to detect from any input PJL....
virtual void setDefaultLandscape(bool landscape)=0
Set the default orientation.
virtual void setFlattenRops(bool flatten)=0
Set whether ROPs should be flattened.
virtual void setDefaultEdgeToEdge(bool edgeToEdge)=0
Set whether edge-to-edge printing should be enabled by default.
virtual void setRopResolution(uint32 resolution)=0
Set the resolution to be used when flattening ROPs.
static JAWSMAKO_API IPCL5InputPtr create(const IJawsMakoPtr &jawsMako, const IProgressMonitorPtr &progressMonitor=IProgressMonitorPtr())
Create an input for reading source documents in PCL5 format.
virtual void setDefaultPaperSize(const U8String &paperSize)=0
Set the default paper size.
virtual void setDefaultManualFeed(bool manualFeed)=0
Set whether manual feed should be set by default.
virtual void setDefaultsFromPjl(IPJLParserPtr &pjlParser)=0
Take initialization data from the given PJL parser.
virtual void setDefaultDuplexBindingMode(IPJLParser::eDuplexBindingMode bindingMode)=0
Set the default binding edge for duplexing.
virtual void enableUnencapsulatedMode(bool unencapsulated)=0
Enable or disable unencapsulated mode.
virtual void setFontSelectionMonitor(const IPCL5FontSelectionMonitorPtr &fontSelectionMonitor)=0
Set a font selection monitor.
virtual void addInternalFont(const IDOMFontOpenTypePtr &font)=0
Add an internal font.
eDuplexBindingMode
Duplex binding mode enumeration.
Definition pjl.h:139
unsigned short uint16
Definition edltypes.h:35
unsigned int uint32
Definition edltypes.h:36
signed int int32
Definition edltypes.h:31
EDLSysString U8String
A UTF-8 String.
Definition types.h:150
EDLSysString RawString
A raw, 8 bit string. Encoding depends on context.
Definition types.h:156
Definition apexcustompostprocess.h:17
EDL::IProgressMonitorPtr IProgressMonitorPtr
Definition types.h:91
std::shared_ptr< IPCL5FontSelectionMonitor > IPCL5FontSelectionMonitorPtr
Definition pcl5input.h:31
#define DECL_SMART_PTR(cls)
Definition smartptr.h:211
#define JAWSMAKO_API
Definition types.h:29