mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-13 02:17:55 +01:00
Change mindjet extension.
This commit is contained in:
parent
2c355205d0
commit
2a2dc7c57f
@ -30,7 +30,7 @@ public enum ExportFormat {
|
||||
MICROSOFT_EXCEL("application/vnd.ms-excel", "xls"),
|
||||
MICROSOFT_WORD("application/msword", "doc"),
|
||||
OPEN_OFFICE_WRITER("application/vnd.oasis.opendocument.text", "odt"),
|
||||
MIND_MANAGER("application/vnd.mindjet.mindmanager", "mmap"),
|
||||
MINDJET("application/vnd.mindjet.mindmanager", "mmap"),
|
||||
WISEMAPPING("application/wisemapping+xml", "wxml");
|
||||
|
||||
|
||||
|
@ -145,7 +145,7 @@ public class ExporterFactory {
|
||||
exporter.export(xml.getBytes(UTF_8_CHARSET_NAME), output);
|
||||
break;
|
||||
}
|
||||
case MIND_MANAGER: {
|
||||
case MINDJET: {
|
||||
final Exporter exporter = XSLTExporter.create(XSLTExporter.Type.MINDJET);
|
||||
exporter.export(xml.getBytes(UTF_8_CHARSET_NAME), output);
|
||||
break;
|
||||
|
@ -86,7 +86,7 @@ public class TransformView extends AbstractView {
|
||||
final Object mindmap = viewMap.get("mindmap");
|
||||
final StreamResult result = new StreamResult(outputStream);
|
||||
jaxbMarshaller.marshal(mindmap, result);
|
||||
} else if (exportFormat == ExportFormat.MICROSOFT_EXCEL || exportFormat == ExportFormat.TEXT || exportFormat == ExportFormat.OPEN_OFFICE_WRITER || exportFormat == ExportFormat.MIND_MANAGER) {
|
||||
} else if (exportFormat == ExportFormat.MICROSOFT_EXCEL || exportFormat == ExportFormat.TEXT || exportFormat == ExportFormat.OPEN_OFFICE_WRITER || exportFormat == ExportFormat.MINDJET) {
|
||||
response.setCharacterEncoding("UTF-8");
|
||||
factory.export(properties, content, outputStream, null);
|
||||
} else {
|
||||
|
@ -74,7 +74,7 @@ public class ExportXsltBasedTest {
|
||||
result[pos++] = new Object[]{XSLTExporter.Type.LATEX, freeMindFile, new File(DATA_DIR_PATH, fileName + ".latex")};
|
||||
result[pos++] = new Object[]{XSLTExporter.Type.MICROSOFT_EXCEL, freeMindFile, new File(DATA_DIR_PATH, fileName + "." + ExportFormat.MICROSOFT_EXCEL.getFileExtension())};
|
||||
result[pos++] = new Object[]{XSLTExporter.Type.OPEN_OFFICE, freeMindFile, new File(DATA_DIR_PATH, fileName + "." + ExportFormat.OPEN_OFFICE_WRITER.getFileExtension())};
|
||||
result[pos++] = new Object[]{XSLTExporter.Type.MINDJET, freeMindFile, new File(DATA_DIR_PATH, fileName + "." + ExportFormat.MIND_MANAGER.getFileExtension())};
|
||||
result[pos++] = new Object[]{XSLTExporter.Type.MINDJET, freeMindFile, new File(DATA_DIR_PATH, fileName + "." + ExportFormat.MINDJET.getFileExtension())};
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user