1#include "./AOI_Instance.h"
2#include "../GInstance.h"
3#include <ACPL/FileSpec.h>
6using namespace aur::PDF;
7using namespace aur::ACPL;
27 mInstance =
new PDF::Instance();
38 mOwnsInstance =
false;
42AOI_Instance::~AOI_Instance()
60 Instance::Startup( instanceName, appSignature, licenseKey );
61 FileSpec::TempFileUID( appSignature == NULL ?
"AOI_" : appSignature );
70 Instance::Terminate();
87 return ( 8 << 24 ) | ( 1 << 16 ) | ( 11852 << 0 );
99 mInstance->SetProgressCallBack( progressionCallback, ref );
111 mInstance->SetErrorCallBack( errorCallback, ref );
124 return mInstance->Flags( PDF::Instance::IGOR );
137 mInstance->SetFlags( PDF::Instance::IGOR, on );
148 mInstance->ResourceDirectory( path );
159 mInstance->ResourceDirectory( FileSpec( path ) );
170 return mInstance->ResourceDirectory();
183 return outDirectory.MakeDataDirectory();
194 outDirectory = FileSpec::ApplicationDirectory();
203 return mInstance->GreekSize();
211 mInstance->SetGreekSize( greekSize );
221 mInstance->SetFlags( PDF::Instance::FontAntiAliasing, useFontAntiAliasing );
229 return mInstance->Flags( PDF::Instance::FontAntiAliasing );
Instance of the AOI engine.
void SetProgressCallBack(ProgressionCB, void *)
void SetErrorCallBack(ErrorCB, void *)
ExceptionCode GetDataDirectory(aur::ACPL::FileSpec &outDirectory)
ExceptionCode GetApplicationDirectory(aur::ACPL::FileSpec &outDirectory)
static AOI_Instance * Startup(const char *uniqueID, const char *licenseKey, const char *appSignature=NULL)
void SetFontAntiAliasing(bool useFontAntiAliasing)
bool UseFontAntiAliasing() const
void SetGreekSize(float greekSize)
const aur::ACPL::FileSpec ResourceDirectory()