Clipboard Formats Configuration¶
Using this configuration it is possible to control the copy/paste operations available in the applet; the formats available for copy or paste can be manipulated, or the corresponding resources can be pre-loaded.
For example, the copy or paste of specific file formats can be forced to be immediately available after the start of the applet, so instead of loading the underlying architecture on demand, the required resources are loaded during the applet initialization time.
Also, the formats available on the clipboard after a simple copy operation can be configured, as well as the list of formats available in the Copy As dialog.
The configuration is available through a Java properties file which has to be placed to the APPLET_CODEBASE/chemaxon/marvin/datatransfer.properties file or MarvinSketch_installation_directory/chemaxon/marvin/datatransfer.properties file. If this file is available in the applet codebase, the configuration will take effect.
This .properties file contains settings for format keys. The property name format is as follows: formatkey.configuration.setting.id, so for example, if somebody wants to disable the PNG format on the Copy As dialog, then the png.use.dialog key has to be set to false.
Available Format Keys in the Property File, and the Corresponding Formats¶
| Format key | The corresponding format |
|---|---|
| mrv | Marvin Document Format |
| skc | IsisDraw Sketch file format |
| cdx | ChemDraw Sketch file format |
| mol | MDL MOLfile format |
| rxn | MDL RXNfile format |
| smiles | Daylight SMILES format |
| smarts | Daylight SMARTS format |
| cxsmiles | Chemaxon extended SMILES format |
| cxsmarts | Chemaxon extended SMARTS format |
| name | IUPAC name format |
| trad_name | Traditional name format |
| inchi | IUPAC InChI/RInChI format |
| inchikey | IUPAC InChIKey/RInChIKey format |
| string | Molecule source, containing the actual file format of the molecule object |
| emf | Enhanced Metafile picture format (available only on Windows platforms) |
| jpg | JPG image format |
| png | PNG image format |
Available Configurable Properties for All Formats and Their Meanings¶
| Parameter name | Valid values | Meaning |
|---|---|---|
| name | can be any String | This will be displayed in the Copy As dialog to represent the format. |
| disabled | true/false | If set to false, then the format won't be available at all. |
| preload.copy | true/false | If set to true, then the classes needed for copying in the specified format will be preloaded at appletinitialization. |
| preload.paste | true/false | If set to true, then the classes needed for pasting in the specified format will be preloaded at appletinitialization. |
| preload | true/false | If set to true, then the classes needed for copying or pasting in the specified format will be preloaded at appletinitialization. |
| use.default | true/false | If set to true, then the molecule will be placed to the clipboard by a simple copy operation in the specifiedformat. |
| use.dialog | true/false | If set to false, then the specified format won't be available in the Copy As dialog. |
By default, none of the formats are pre-loaded, all of them are configured as they worked before.
Other Available Options¶
The following keys are not related to the formats and should be used as they are.
| Property name | Valid values | Meaning |
|---|---|---|
| ole.enabled | true/false | To disable the Microsoft OLE object copy, set this to false. |
| ole.name | can be any String | This will be displayed in the Copy As dialog to represent the Microsoft OLE object format. |
| separator | a comma-separated list of format keys. | After the enumerated formats a separator will be placed in the copy as dialog. |
The Default Configuration File¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
Further Format Couplings¶
Please consider this information also while changing the configuration.
- If OLE is enabled, then the OLE data will contain the MRV, the MOL or RXN file, and the EMF image also.
- The default copy places image data to the clipboard, in java image format. If you want to disable this behavior you have to set the
jimage.use.defaultproperty to false.