UMLViewImageExporterModel Class Reference
Exports an UMLView in various image formats. More...
#include <umlviewimageexportermodel.h>
Public Member Functions | |
| UMLViewImageExporterModel () | |
| Constructor for UMLViewImageExporterModel. | |
| virtual | ~UMLViewImageExporterModel () |
| Destructor for UMLViewImageExporterModel. | |
| QStringList | exportAllViews (const QString &imageType, const KURL &directory, bool useFolders) const |
| Exports all the views in the document to the directory specified in the url using the 'imageType' for the images. | |
| QString | exportView (UMLView *view, const QString &imageType, const KURL &url) const |
| Exports the view to the url using the 'imageType' for the image. | |
Static Public Member Functions | |
| static QStringList | supportedImageTypes () |
| Returns a QStringList containing all the supported image types to use when exporting. | |
| static QStringList | supportedMimeTypes () |
| Returns a QStringList containing all the supported mime types to use when exporting. | |
| static QString | imageTypeToMimeType (const QString &imageType) |
| Returns the mime type for an image type. | |
| static QString | mimeTypeToImageType (const QString &mimeType) |
| Returns the image type for a mime type. | |
Detailed Description
Exports an UMLView in various image formats.It can also export all the views in the current document.
The methods in this class don't communicate with the user, so asking the format to save the images in, checking if the target file exists and so on must be done before calling those methods, if needed. The only exception is asking passwords for example when KIO slaves are used, as this operation is made automatically by the KIO classes.
Definition at line 35 of file umlviewimageexportermodel.h.
Constructor & Destructor Documentation
|
|
Constructor for UMLViewImageExporterModel.
Definition at line 77 of file umlviewimageexportermodel.h. |
|
|
Destructor for UMLViewImageExporterModel.
Definition at line 83 of file umlviewimageexportermodel.h. |
Member Function Documentation
|
|
Returns a QStringList containing all the supported image types to use when exporting. All the types will be lower case.
Definition at line 45 of file umlviewimageexportermodel.cpp. Referenced by supportedMimeTypes(). |
|
|
Returns a QStringList containing all the supported mime types to use when exporting. All the types will be lower case.
Definition at line 61 of file umlviewimageexportermodel.cpp. References imageTypeToMimeType(), and supportedImageTypes(). |
|
|
Returns the mime type for an image type. The supported image types are those that the diagrams can be exported to.
Definition at line 74 of file umlviewimageexportermodel.cpp. Referenced by supportedMimeTypes(). |
|
|
Returns the image type for a mime type. The supported image types are those that the diagrams can be exported to.
Definition at line 89 of file umlviewimageexportermodel.cpp. |
|
||||||||||||||||
|
Exports all the views in the document to the directory specified in the url using the 'imageType' for the images. The name of the exported images will be like their view's name and using the 'imageType' as extension. The views are stored in folders in the document. The same tree structure used in the document to store the views can be created in the target directory with 'useFolders'. Only the folders made by the user are created in the target directory (Logical view, use case view and so on aren't created). This method creates the specified target directory if needed. If there was an existing file with the same path as one to be created overwrites it without asking. The url used can be local or remote, using supported KIO slaves.
Definition at line 103 of file umlviewimageexportermodel.cpp. References exportView(), UMLApp::getDocument(), UMLView::getName(), and UMLDoc::getViewIterator(). |
|
||||||||||||||||
|
Exports the view to the url using the 'imageType' for the image. This method creates the needed directories, if any. If there was an existing file in the specified url overwrites it without asking. The url used can be local or remote, using supported KIO slaves. If some problem occurs when exporting, an error message is returned.
Definition at line 123 of file umlviewimageexportermodel.cpp. Referenced by exportAllViews(). |
The documentation for this class was generated from the following files:
