/**
* Stores the input from the dialog into the report configuration of the report.
*/
protected Configuration grabDialogContents(final boolean full)
{
final DefaultConfiguration config = new DefaultConfiguration();
config.setConfigProperty(PlainTextPageableModule.ENCODING, getEncoding());
config.setConfigProperty(PlainTextPageableModule.CHARS_PER_INCH, String.valueOf(getCharsPerInch()));
config.setConfigProperty(PlainTextPageableModule.LINES_PER_INCH, String.valueOf(getLinesPerInch()));
config.setConfigProperty(Epson9PinPrinterDriver.EPSON_9PIN_PRINTER_TYPE, getSelected9PinPrinterModel());
config.setConfigProperty(Epson24PinPrinterDriver.EPSON_24PIN_PRINTER_TYPE, getSelected24PinPrinterModel());
if (full)
{
switch (getSelectedPrinter())
{
case PlainTextExportDialog.TYPE_EPSON24_OUTPUT:
{
config.setConfigProperty
(EXPORT_TYPE_CONFIG_KEY, "24pin"); //$NON-NLS-1$ //$NON-NLS-2$
break;
}
case PlainTextExportDialog.TYPE_EPSON9_OUTPUT:
{
config.setConfigProperty
(EXPORT_TYPE_CONFIG_KEY, "9pin"); //$NON-NLS-1$ //$NON-NLS-2$
break;
}
case PlainTextExportDialog.TYPE_IBM_OUTPUT:
{
config.setConfigProperty
(EXPORT_TYPE_CONFIG_KEY, "ibm"); //$NON-NLS-1$ //$NON-NLS-2$
break;
}
case PlainTextExportDialog.TYPE_PLAIN_OUTPUT:
{
config.setConfigProperty
(EXPORT_TYPE_CONFIG_KEY, "plain"); //$NON-NLS-1$ //$NON-NLS-2$
break;
}
default:
throw new IllegalStateException();
}
config.setConfigProperty
("org.pentaho.reporting.engine.classic.core.modules.gui.plaintext.FileName", getFilename()); //$NON-NLS-1$
}
return config;
}