Mako 7.3.0 API
JawsMako::IJawsMako Class Referenceabstract

An instance of the IJawsMako library. Only one instance of this object is currently allowed. This class may also be used as both an EDL factory and an EDL session, and passed to any EDL API that requires these objects. More...

#include <jawsmako.h>

Inheritance diagram for JawsMako::IJawsMako:

Public Member Functions

virtual void freeMemory ()=0
 Inform JawsMako that system memory is being exhausted. This will cause JawsMako to free up cached information and discard any unmodified pages.
 
virtual IDOMFontPtr findFont (const U8String &fontName, uint32_t &fontIndex)=0
 Find a font from the system fonts, and the font index if applicable. More...
 
- Public Member Functions inherited from ISession
virtual bool setFactory (IEDLClassFactory *pFactory)=0
 initializes Session by setting EDL class Factory More...
 
virtual IEDLClassFactorygetFactory ()=0
 EDL Class Factory getter method. More...
 
virtual IMessageHandlerPtr getMessageHandler ()=0
 Obtain the session's message handler. More...
 
virtual ILiteMessageHandlerPtr getLiteMessageHandler ()=0
 Obtain the session's litemessage handler. More...
 
virtual bool setTemporaryDirectory (const EDLSysString &sTempDirectory)=0
 Set the temporary directory to be used by EDL and filters for this session. More...
 
virtual bool getTemporaryDirectory (EDLSysString &sTempDirectory)=0
 Get the temporary directory to be used by EDL and filters for this session. More...
 
virtual IEDLTempStorePtr getTempStore ()=0
 Get the temporary store for this session. The temporary directory must be set before calling this member. Throws an IEDLError on failure. More...
 
virtual bool setStartupDirectory (const EDLSysString &sStartupDirectory)=0
 Set the startup directory. This is meaningfull for executable environments. Note the client must set this during initalisation for it to be valid. More...
 
virtual bool getStartupDirectory (EDLSysString &sStartupDirectory)=0
 Get the startup directory. More...
 
- Public Member Functions inherited from IEDLObject
virtual const CClassIDgetClassID () const =0
 Returns class ID of IEDLObject. More...
 
virtual bool init (CClassParams *pData)
 The init() method is called to perform any post-construction initialization of an IEDLObject that has been created by the EDL class factory, before it is actually returned by the factory. More...
 
virtual bool clone (IEDLObjectPtr &ptrObject, IEDLClassFactory *pFactory)
 Create a copy of EDLObject. More...
 
- 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. More...
 
virtual int32 getRefCount () const =0
 Retrieve the current reference count of the actual object pointed to. More...
 
- Public Member Functions inherited from IEDLClassFactory
virtual bool registerNamedClass (const EDLSysString &strName, const CClassID &id, bool overwrite=true)=0
 Register a GUID under a string name. More...
 
virtual bool findNamedClass (const EDLSysString &strName, CClassID &id)=0
 Retrieve GUID registered under the string name. More...
 
virtual bool registerClass (const CClassID &id, creatorFunc f)=0
 Register a GUID with creator function. More...
 
virtual IEDLObjectPtr createInstance (const CClassID &id, CClassParams *pParams=NULL)=0
 Creates the registered class by CClassID. More...
 
virtual IEDLObjectPtr createInstanceJawsMako (const CClassID &id, CClassParams *pParams=NULL, IEDLClassFactory *factory=NULL)=0
 Creates the registered class by CClassID. More...
 
virtual IEDLObjectPtr getSingleton (const CClassID &id)=0
 Creates the EDL singleton (for example FontLibrary or ColorManager) More...
 

Static Public Member Functions

static JAWSMAKO_API IJawsMakoPtr create (const U8String &tempDir=U8String(""), const U8String &cacheDir=U8String(""), const CTemporaryStoreParameters &tempStoreParams=CTemporaryStoreParameters(), const std::map< std::string, std::string > &initialParams=std::map< std::string, std::string >())
 Create an IJawsMako instance.
Only one may be created at any one time. More...
 
static JAWSMAKO_API void enablePDFInput (const IJawsMakoPtr &jawsMako)
 Enable PDF Input for JawsMako.
 
static JAWSMAKO_API void enablePDFOutput (const IJawsMakoPtr &jawsMako)
 Enable PDF Output for JawsMako.
 
static JAWSMAKO_API void enablePSInput (const IJawsMakoPtr &jawsMako)
 Enable PostScript Input for JawsMako. More...
 
static JAWSMAKO_API void enablePSOutput (const IJawsMakoPtr &jawsMako)
 Enable PostScript Output for JawsMako.
 
static JAWSMAKO_API void enableAllFeatures (const IJawsMakoPtr &jawsMako)
 Enable all JawsMako features.
 

Additional Inherited Members

- Protected Member Functions inherited from IRCObject
virtual ~IRCObject ()
 Virtual destructor.
 

Detailed Description

An instance of the IJawsMako library. Only one instance of this object is currently allowed. This class may also be used as both an EDL factory and an EDL session, and passed to any EDL API that requires these objects.

Member Function Documentation

◆ enablePSInput()

static JAWSMAKO_API void JawsMako::IJawsMako::enablePSInput ( const IJawsMakoPtr &  jawsMako)
static

Enable PostScript Input for JawsMako.

Note that enabling PostScript will also enable PDF Input, as for PostScript the input is converted and then opened as PDF.

◆ findFont()

virtual IDOMFontPtr JawsMako::IJawsMako::findFont ( const U8String fontName,
uint32_t &  fontIndex 
)
pure virtual

Find a font from the system fonts, and the font index if applicable.

Only TrueType, TrueType collections or OpenType/CFF fonts are supported. Matching is currently exact; there is no attempt to find a font that is similarly named. Fonts are matched based on their Full or PostScript font names.

The list of fonts on the system is cached and refreshed once per JawsMako instance creation.

An IError of code JM_ERR_FONT_NOT_FOUND will be thrown if the font could not be found.

Parameters
fontNameThe font name of the desired font.
fontIndexIf the requested font is part of a TrueType collection, this will be set to the index of the font within the collection, or 0 otherwise.
Returns
IDOMFontPtr The found font.

The documentation for this class was generated from the following file: