#include <djv_profiles.h>
Public Types | |
enum | { Version_Jb2Ver2 = 28543, Version_Current = Version_Jb2Ver2 } |
Public Member Functions | |
virtual const DjVuEncoder::Params & | getParams () const =0 |
virtual void | setParams (const DjVuEncoder::Params &inParams)=0 |
virtual void | setReadOnly (bool inReadOnly)=0 |
virtual bool | isInstalled () const =0 |
virtual bool | isReadOnly () const =0 |
virtual bool | isModified () const =0 |
virtual size_t | geVersion () const =0 |
virtual String | getProfileName () const =0 |
virtual String | getDescription () const =0 |
virtual void | setDescription (const String &inDescription)=0 |
virtual void | exportToXmlFile (const String &inXmlFileName) const =0 |
virtual String | exportToXml () const =0 |
virtual AutoPtr< Profile > | duplicate (const String &inNewProfileName) const =0 |
virtual | ~Profile () |
Public Member Functions inherited from Celartem::Referable | |
Referable () | |
void | addRef () const |
void | releaseRef () const |
size_t | getReferenceCount () const |
Static Public Member Functions | |
static AutoPtr< Profile > | create (const String &inNewProfileName, const String &inNewDescription=NullString, const DjVuEncoder::Params *inParams=NULL) |
static AutoPtr< Profile > | importFromXmlFile (const String &inXmlFileName) |
static AutoPtr< Profile > | importFromXml (const String &inXmlText) |
Static Public Member Functions inherited from Celartem::Referable | |
static void | dumpDbgAllRefCount () |
A %profile is a virtual file which stores encoding parameters (\ref DjVuEncoder::Params structure). All the profiles are installed in profile repository and maintained by \ref ProfileRepository class.\n The following code illustrates how to load a profile:
For more information about profiles, see DjVu Encoder Profiles.
anonymous enum |
|
inlinevirtual |
Destructor.
|
static |
Create a new profile.
inNewProfileName | Name for the newly created profile. |
inNewDescription | Description for the newly created profile. |
inParams | Parameters on which a new profile is created. This can be NULL and then the profile is created using default parameters. |
|
pure virtual |
Duplicate this profile.
inNewProfileName | Name for the newly created profile. |
|
pure virtual |
Export the current parameters of this instance.
inXmlFileName | Output XML file name. Please note that this method outputs the status of this "instance" not the profile on the repository. |
|
pure virtual |
Export the current parameters of this instance.
inXmlFileName | Output XML file name. Please note that this method outputs the status of this "instance" not the profile on the repository. |
|
pure virtual |
Get profile description.
|
pure virtual |
Load parameters from the profile.
|
pure virtual |
Get profile name.
If the profile is not installed to the repository by ProfileRepository::installProfile method, this method will fail and throw an exception.
To modify the name of a profile, use ProfileRepository::renameProfile method.
|
pure virtual |
Get the loaded profile version.
Import parameters from XML.
inXmlText | Input XML text data. |
|
static |
Import parameters from XML file.
inXmlFileName | Input repository XML file name. The file name optionally contains profile name within the XML file in the following syntax: XML_FILENAME:PROFILE_FILENAME |
|
pure virtual |
Determine whether this profile is installed on the system or not.
true
if this profile is installed; otherwise false
.
|
pure virtual |
Determine whether this instance is modified from the loaded configuration or not.
true
if this profile is modified; otherwise false
.
|
pure virtual |
Determine whether this profile is read-only or not.
true
if this profile is read-only; otherwise false
.
|
pure virtual |
Set profile description.
inDescription | Description for this profile. |
|
pure virtual |
Set parameters to the profile.
If the profile is read-only, this method throws an exception.
inParams | Parameters to set. |
|
pure virtual |
Set read-only flag.
inReadOnly | Set whether the profile is read-only (true ) or not (false ). |