#include <Exporter.h>

Public Member Functions | |
| virtual std::string | getDefaultExtensions () const =0 |
| virtual ValidationResultType | validate (const PlugInArgList *pArgList, std::string &errorMessage) const =0 |
| virtual QWidget * | getExportOptionsWidget (const PlugInArgList *pInArgList)=0 |
Static Public Member Functions | |
| static std::string | ExportItemArg () |
| static std::string | ExportDescriptorArg () |
Protected Member Functions | |
| virtual | ~Exporter () |
Defines the exporter specific interface to all exporter plug-ins. This interface contains all exporter specific operations.
Definition at line 26 of file Exporter.h.
| virtual Exporter::~Exporter | ( | ) | [protected, virtual] |
Since the Exporter interface is usually used in conjunction with the PlugIn and Executable interfaces, this should be destroyed by casting to the PlugIn interface and calling PlugInManagerServices::destroyPlugIn().
Definition at line 127 of file Exporter.h.
| static std::string Exporter::ExportItemArg | ( | ) | [static] |
The name for an export item argument.
Input arguments with this name will be automatically populated with a SessionItem pointer when the plug-in is executed with an ExportAgent. Arguments with this name should be of the type SessionItem or one of its subclasses.
Definition at line 39 of file Exporter.h.
| static std::string Exporter::ExportDescriptorArg | ( | ) | [static] |
The name for an export file descriptor argument.
Input arguments with this name will be automatically populated with the FileDescriptor to use for export when the plug-in is executed with an ExportAgent. Arguments with this name should be of the type FileDescriptor or one of its subclasses.
Definition at line 51 of file Exporter.h.
| virtual std::string Exporter::getDefaultExtensions | ( | ) | const [pure virtual] |
Returns the default file extensions recognized by the exporter.
Implemented in ExporterShell.
| virtual ValidationResultType Exporter::validate | ( | const PlugInArgList * | pArgList, | |
| std::string & | errorMessage | |||
| ) | const [pure virtual] |
Queries whether a given argument list can be successfully saved by the exporter.
This method is called for the exporter to parse the current settings in the plug-in argument list to see if it supports saving the data as currently specified. This allows exporters that do not support certain combinations of values and options to indicate as such. This method is called each time the user changes a value in the export options dialog.
| pArgList | The plug-in argument list as requested in getInputSpecification. This is populated as it would be in a call to execute. | |
| errorMessage | An error message that is populated with the reason why the exporter cannot save the given data descriptor. This message will be displayed to the user. When returning ValidationResultType::VALIDATE_INFO, a non-empty errorMessage is required. |
Implemented in ExporterShell.
| virtual QWidget* Exporter::getExportOptionsWidget | ( | const PlugInArgList * | pInArgList | ) | [pure virtual] |
Returns a widget to display custom export option values.
This method provides an interface for which specialized export options can be displayed to the user. The method returns a Qt widget that is added to the default export options dialog. The exporter should create the widget with a NULL parent, and should destroy the widget when the exporter itself is destroyed.
Exporters should call QWidget::setWindowTitle() on the widget that is returned to set the name that appears on the tab in the export options dialog. If the window title is not set, the exporter name is displayed. If the returned widget is the only widget to display, a tab widget is not used in the dialog.
| pInArgList | The input argument list specified by Executable::getInputSpecification() and populated as if being passed to Executable::execute(). |
Implemented in ExporterShell.