Okular::ExportFormat

Search for usage in LXR

#include <generator.h>

Public Types

typedef QList< ExportFormatList
 
enum  StandardExportFormat { PlainText , PDF , OpenDocumentText , HTML }
 

Public Member Functions

 ExportFormat ()
 
 ExportFormat (const ExportFormat &other)
 
 ExportFormat (const QIcon &icon, const QString &description, const QMimeType &mimeType)
 
 ExportFormat (const QString &description, const QMimeType &mimeType)
 
 ~ExportFormat ()
 
QString description () const
 
QIcon icon () const
 
bool isNull () const
 
QMimeType mimeType () const
 
bool operator!= (const ExportFormat &other) const
 
ExportFormatoperator= (const ExportFormat &other)
 
bool operator== (const ExportFormat &other) const
 

Static Public Member Functions

static ExportFormat standardFormat (StandardExportFormat type)
 

Detailed Description

Defines an entry for the export menu.

This class encapsulates information about an export format. Every Generator can support 0 or more export formats which can be queried with Generator::exportFormats().

Definition at line 78 of file generator.h.

Member Typedef Documentation

◆ List

Definition at line 81 of file generator.h.

Member Enumeration Documentation

◆ StandardExportFormat

Type of standard export format.

Enumerator
PlainText 

Plain text.

PDF 

PDF, aka Portable Document Format.

OpenDocumentText 

OpenDocument Text format.

Since
0.8 (KDE 4.2)
HTML 

OpenDocument Text format.

Since
0.8 (KDE 4.2)

Definition at line 148 of file generator.h.

Constructor & Destructor Documentation

◆ ExportFormat() [1/4]

ExportFormat::ExportFormat ( )

Creates an empty export format.

See also
isNull()

Definition at line 698 of file generator.cpp.

◆ ExportFormat() [2/4]

ExportFormat::ExportFormat ( const QString & description,
const QMimeType & mimeType )

Creates a new export format.

Parameters
descriptionThe i18n'ed description of the format.
mimeTypeThe supported mime type of the format.

Definition at line 703 of file generator.cpp.

◆ ExportFormat() [3/4]

ExportFormat::ExportFormat ( const QIcon & icon,
const QString & description,
const QMimeType & mimeType )

Creates a new export format.

Parameters
iconThe icon used in the GUI for this format.
descriptionThe i18n'ed description of the format.
mimeTypeThe supported mime type of the format.

Definition at line 708 of file generator.cpp.

◆ ~ExportFormat()

ExportFormat::~ExportFormat ( )

Destroys the export format.

Definition at line 713 of file generator.cpp.

◆ ExportFormat() [4/4]

ExportFormat::ExportFormat ( const ExportFormat & other)

Definition at line 717 of file generator.cpp.

Member Function Documentation

◆ description()

QString ExportFormat::description ( ) const

Returns the description of the format.

Definition at line 733 of file generator.cpp.

◆ icon()

QIcon ExportFormat::icon ( ) const

Returns the icon for GUI representations of the format.

Definition at line 743 of file generator.cpp.

◆ isNull()

bool ExportFormat::isNull ( ) const

Returns whether the export format is null/valid.

An ExportFormat is null if the mimetype is not valid or the description is empty, or both.

Definition at line 748 of file generator.cpp.

◆ mimeType()

QMimeType ExportFormat::mimeType ( ) const

Returns the mime type of the format.

Definition at line 738 of file generator.cpp.

◆ operator!=()

bool ExportFormat::operator!= ( const ExportFormat & other) const

Definition at line 779 of file generator.cpp.

◆ operator=()

ExportFormat & ExportFormat::operator= ( const ExportFormat & other)

Definition at line 722 of file generator.cpp.

◆ operator==()

bool ExportFormat::operator== ( const ExportFormat & other) const

Definition at line 774 of file generator.cpp.

◆ standardFormat()

ExportFormat ExportFormat::standardFormat ( StandardExportFormat type)
static

Builds a standard format for the specified type .

Definition at line 753 of file generator.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:35 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.