API Documentation
Loading...
Searching...
No Matches
PDFFactory Class Reference

Writes to a PDF file using the IOFactory interface. More...

#include <PDFFactory.h>

Inheritance diagram for PDFFactory:
[legend]
Collaboration diagram for PDFFactory:
[legend]

Public Member Functions

virtual bool canRead (const FactoryParameters &file) override
 
virtual bool canWrite (const FactoryParameters &file) override
 
virtual bool canWrite (const File &file) override
 
virtual bool canWrite (const FileFormat &file) override
 
FactoryOptions defaultWriteOptions (const FactoryParameters &file) const override
 
FactoryFeatures factoryFeatures (const FactoryParameters &file, bool is_import) const override
 
virtual void getSupportedFormats (Buffer< FileFormat > &formats, bool is_read) override
 
virtual void getSupportedFormats (Buffer< FileFormat > &formats, DesignObjectLookup *lookup, const Buffer< UUID > &models) override
 
 PDFFactory ()
 
virtual bool readFile (FactoryParameters &file) override
 
virtual void setdpi (fltp08 dpi)
 
void setDrawBorder (bool border)
 
void setDrawGrid (bool draw_grid)
 
void setMargins (uint04 margins)
 
void setTitle (const String &title, const String &subject)
 
virtual bool writeFile (const FactoryParameters &file, const DesignObjectLookup *lookup, const Buffer< UUID > &objects_to_write, const Buffer< UUID > &cameras, const FactoryOptions &options)
 
virtual bool writeFile (FactoryParameters &file) override
 
- Public Member Functions inherited from IOFactory
virtual bool canRead (const File &file)
 
virtual bool canRead (const FileFormat &file)
 
virtual FactoryOptions defaultReadOptions (const FactoryParameters &file) const
 
virtual bool determineExtension (const File &file, String &extension)
 
String factoryReadAppFeature () const
 
String factoryWriteAppFeature () const
 
virtual Buffer< UUIDfilterModelsToExport (Buffer< UUID > models_to_check, const DesignObjectLookup *lookup, const FileFormat &export_format) const
 
virtual String getIcon (const File &file)
 
void getSupportedFormats (Buffer< FileFormat > &formats)
 
virtual void getSupportedFormats (Buffer< FileFormat > &formats, const File &file)
 
virtual void getSupportedFormatsByModelType (Buffer< FileFormat > &formats, bool is_read, const String &model_type)
 
virtual void getSupportedFormatsForExtension (Buffer< FileFormat > &formats, bool is_read, const String &extension)
 
 IOFactory (const String &factory_name)
 
virtual bool isAutoEnabled () const
 
virtual bool isFactoryEnabled (bool is_read) const
 
const Stringname () const
 
bool readFileWithDefaultSettings (const File &file, DesignObjectLookup *lookup)
 
Buffer< ScenereadScenesFromFile (const File &file)
 
void throwIfNotEnabled (bool is_read)
 
virtual bool updateFromFile (const FactoryParameters &file, const FactoryOptions &old_options)
 
bool writeScenesToFile (const File &file, const Buffer< Scene > &scene)
 
virtual ~IOFactory ()
 

Protected Attributes

fltp08 m_dpi
 
bool m_draw_border
 
bool m_draw_grid
 
uint04 m_margins
 
String m_subject
 
String m_title
 

Additional Inherited Members

- Static Public Member Functions inherited from IOFactory
static void EnableExtension (const String &extension, const String &read_password, const String &write_password)
 
static void EnableFactory (const String &factory, const String &read_password, const String &write_password)
 
static void EnableFactory (IOFactory *factory, const String &read_password, const String &write_password)
 

Detailed Description

Writes to a PDF file using the IOFactory interface.


Constructor & Destructor Documentation

◆ PDFFactory()

Member Function Documentation

◆ canRead()

virtual bool canRead ( const FactoryParameters & file)
overridevirtual

Reimplemented from IOFactory.

◆ canWrite() [1/3]

virtual bool canWrite ( const FactoryParameters & file)
overridevirtual

Reimplemented from IOFactory.

◆ canWrite() [2/3]

virtual bool canWrite ( const File & file)
overridevirtual

Reimplemented from IOFactory.

◆ canWrite() [3/3]

virtual bool canWrite ( const FileFormat & file)
overridevirtual

Reimplemented from IOFactory.

◆ defaultWriteOptions()

FactoryOptions defaultWriteOptions ( const FactoryParameters & file) const
overridevirtual

Reimplemented from IOFactory.

◆ factoryFeatures()

FactoryFeatures factoryFeatures ( const FactoryParameters & file,
bool is_import ) const
overridevirtual

Implements IOFactory.

◆ getSupportedFormats() [1/2]

virtual void getSupportedFormats ( Buffer< FileFormat > & formats,
bool is_read )
overridevirtual

Implements IOFactory.

◆ getSupportedFormats() [2/2]

virtual void getSupportedFormats ( Buffer< FileFormat > & formats,
DesignObjectLookup * lookup,
const Buffer< UUID > & models )
overridevirtual

Reimplemented from IOFactory.

◆ readFile()

virtual bool readFile ( FactoryParameters & file)
overridevirtual

Implements IOFactory.

◆ setdpi()

virtual void setdpi ( fltp08 dpi)
virtual

◆ setDrawBorder()

void setDrawBorder ( bool border)

◆ setDrawGrid()

void setDrawGrid ( bool draw_grid)

◆ setMargins()

void setMargins ( uint04 margins)

◆ setTitle()

void setTitle ( const String & title,
const String & subject )

◆ writeFile() [1/2]

virtual bool writeFile ( const FactoryParameters & file,
const DesignObjectLookup * lookup,
const Buffer< UUID > & objects_to_write,
const Buffer< UUID > & cameras,
const FactoryOptions & options )
virtual

◆ writeFile() [2/2]

virtual bool writeFile ( FactoryParameters & file)
overridevirtual

Implements IOFactory.

Member Data Documentation

◆ m_dpi

fltp08 m_dpi
protected

◆ m_draw_border

bool m_draw_border
protected

◆ m_draw_grid

bool m_draw_grid
protected

◆ m_margins

uint04 m_margins
protected

◆ m_subject

String m_subject
protected

◆ m_title

String m_title
protected

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