Scribus
Open source desktop publishing at your fingertips
FormatsManager Class Reference

Public Types

enum  ScImageFormatType {
  ALLIMAGES = 1|2|4|8|16|32|64|128|256|512|1024|2048|4096|8192|16384|32768|524288|1048576|2097152|4194304, IMAGESIMGFRAME = 1|2|4|16|32|64|128|256|512|262144|524288|1048576|2097152|4194304, VECTORIMAGES = 1|64|1024|2048|16384|32768|131072|262144|4194304, RASTORIMAGES = 2|4|8|32|128|256|512|65536|524288|1048576|2097152,
  EPS = 1, GIF = 2, JPEG = 4, PAT = 8,
  PDF = 16, PNG = 32, PS = 64, PSD = 128,
  TIFF = 256, XPM = 512, WMF = 1024, SVG = 2048,
  AI = 4096, XFIG = 8192, CVG = 16384, WPG = 32768,
  UNICONV = 131072, PCT = 262144, BMP = 524288, PGF = 1048576,
  ORA = 2097152, QT = 4194304
}
 

Public Member Functions

void imageFormatSupported (const QString &)
 
QString nameOfFormat (int type)
 Returns the name of a format, eg "Encapsulated PostScript".
 
QStringList mimetypeOfFormat (int type)
 Returns the mimetypes of a format, eg "application/postscript".
 
QString extensionsForFormat (int type)
 Returns in the form of "EPS (*.eps *.EPS *.epsf *.EPSF *.epsi *.EPSI)".
 
QString extensionListForFormat (int type, int listType)
 Returns in the form of "*.eps *.epsf *.epsi" or "eps|epsf|epsi".
 
QString fileDialogFormatList (int type)
 Returns in the form of "All Supported Formats (*.eps *.EPS *.epsf *.EPSF *.epsi *.EPSI);;EPS (*.eps *.EPS);;EPSI (*.epsf *.EPSF);;EPSI (*.epsi *.EPSI);;All Files (*)".
 

Static Public Member Functions

static FormatsManagerinstance ()
 Returns a pointer to the FormatsManager instance. More...
 
static void deleteInstance ()
 Deletes the FormatsManager Instance Must be called when FormatsManager is no longer needed.
 

Protected Member Functions

void updateSupportedImageFormats (QList< QByteArray > &supportedImageFormats)
 
void fileTypeStrings (int type, QString &formatList, QString &formatText, QString &formatAll, bool lowerCaseOnly=false)
 

Protected Attributes

QMap< int, QString > m_fmtNames
 
QMap< int, QStringList > m_fmtMimeTypes
 
QMap< int, QStringList > m_fmts
 
QStringList m_fmtList
 
QList< QByteArray > m_qtSupportedImageFormats
 
QList< QByteArray > m_supportedImageFormats
 

Member Function Documentation

FormatsManager * FormatsManager::instance ( )
static

Returns a pointer to the FormatsManager instance.

Returns
A pointer to the FormatsManager instance

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