00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __AIDXFDWGPREFS_h__
00019 #define __AIDXFDWGPREFS_h__
00020
00021
00022 #include "AIHeaderBegin.h"
00023
00024
00025
00026
00027
00028
00030 enum DxfDwgAutoCADFileFormat
00031 {
00033 eFormatDxf = 0,
00035 eFormatDwg
00036 };
00037
00039 enum DxfDwgAutoCADVersion
00040 {
00042 eR13 = 0,
00044 eR14,
00046 eR15,
00048 eR18,
00050 eR21,
00052 eR24
00053 };
00054
00056 enum DxfDwgUnit
00057 {
00058 ePoints = 0,
00059 ePicas,
00060 eInches,
00061 eMillimeters,
00062 eCentimeters,
00063 ePixels,
00064 eNumberOfUnits
00065 };
00066
00068 enum DxfDwgColors
00069 {
00070 eColors8 = 0,
00071 eColors16,
00072 eColors256,
00073 eColorsTrueColor
00074 };
00075
00077 enum DxfDwgGlobalScaleOption
00078 {
00080 eOriginalSize = 0,
00082 eFitArtboard,
00084 eScaleByValue
00085 };
00086
00088 enum DxfDwgRasterFormat
00089 {
00091 eRasterPNG = 0,
00093 eRasterJPEG
00094 };
00095
00097 enum DxfDwgExportOption
00098 {
00099 ePreserveAppearance = 0,
00100 eMaximumEditability
00101 };
00102
00103
00104
00105
00107 #define kDxfDwgPreferencePrefix "DxfDwg"
00108
00110 #define kFormatAutoCADName "AutoCAD file"
00111
00113 #define kFormatDxfName "DXF"
00114 #define kDxfExportFileFormatName "DXF Export"
00115 #define kDxfImportFileFormatName "DXF Import"
00116
00118 #define kFormatDxfExtn "dxf"
00119
00121 #define kFormatDwgName "DWG"
00122 #define kDwgExportFileFormatName "DWG Export"
00123 #define kDwgImportFileFormatName "DWG Import"
00124
00126 #define kFormatDwgExtn "dwg"
00127
00128
00130 #define kDxfDwgExportAutoCADFileFormat "ExportAutoCADFileFormat"
00131
00132 #define kDxfDwgDefaultExportAutoCADFileFormat eFormatDwg
00133
00135 #define kDxfDwgExportAutoCADVersion "ExportAutoCADVersion"
00136
00137 #define kDxfDwgDefaultExportAutoCADVersion eR24
00138
00140 #define kDxfDwgExportUnitScaleRatio "ExportUnitScaleRatio"
00141
00142 #define kDxfDwgDefaultExportUnitScaleRatio 1.0
00143
00145 #define kDxfDwgExportUnit "ExportUnit"
00146
00147 #define kDxfDwgDefaultExportUnit eMillimeters
00148
00150 #define kDxfDwgExportColors "Colors"
00151
00152 #define kDxfDwgDefaultExportColors eColorsTrueColor
00153
00155 #define kDxfDwgExportRasterFormat "ExportRasterFormat"
00156
00157 #define kDxfDwgDefaultExportRasterFormat eRasterPNG
00158
00160 #define kDxfDwgExportOption "ExportOption"
00161
00162 #define kDxfDwgDefaultExportOption eMaximumEditability
00163
00165 #define kDxfDwgExportSelectedArtOnly "ExportSelectedArtOnly"
00166
00167 #define kDxfDwgDefaultExportSelectedArtOnly false
00168
00170 #define kDxfDwgExportAlterPathsForAppearance "ExportAlterPathsForAppearance"
00171
00172 #define kDxfDwgDefaultExportAlterPathsForAppearance false
00173
00175 #define kDxfDwgExportOutlineText "ExportOutlineText"
00176
00177 #define kDxfDwgDefaultExportOutlineText false
00178
00180 #define kDxfDwgExportScaleLineweights "ExportScaleLineweights"
00181
00182 #define kDxfDwgDefaultExportScaleLineweights false
00183
00184
00186 #define kDxfDwgImportGlobalScaleOption "ImportGlobalScaleOption"
00187
00188 #define kDxfDwgDefaultImportGlobalScaleOption eFitArtboard
00189
00191 #define kDxfDwgImportGlobalScaleValue "ImportGlobalScaleValue"
00192
00193 #define kDxfDwgDefaultImportGlobalScaleValue 100
00194
00196 #define kDxfDwgImportUnitScaleRatio "ImportUnitScaleRatio"
00197
00198 #define kDxfDwgDefaultImportUnitScaleRatio 1.0
00199
00201 #define kDxfDwgImportUnit "ImportUnit"
00202
00203 #define kDxfDwgDefaultImportUnit eMillimeters
00204
00207 #define kDxfDwgImportLayout "ImportLayout"
00208
00209 #define kDxfDwgDefaultImportLayout ""
00210
00212 #define kDxfDwgImportCenterArtwork "ImportCenterArtwork"
00213
00215 #define kDxfDwgImportMergeLayers "ImportMergeLayers"
00216
00218 #define kDxfDwgDefaultImportCenterArtwork true
00219
00221 #define kDxfDwgDefaultImportMergeLayers false
00222
00224 #define kDxfDwgImportScaleLineweights "ImportScaleLineweights"
00225
00226 #define kDxfDwgDefaultImportScaleLineweights false
00227
00228
00229
00230
00232 struct DxfDwgExportPrefs
00233 {
00235 DxfDwgAutoCADFileFormat m_fileFormat;
00237 DxfDwgAutoCADVersion m_version;
00239 AIReal m_unitScaleRatio;
00241 DxfDwgUnit m_unit;
00243 DxfDwgColors m_colors;
00245 DxfDwgRasterFormat m_rasterFormat;
00247 DxfDwgExportOption m_exportOption;
00249 AIBoolean m_isExportSelectedArtOnly;
00252 AIBoolean m_isAlterPathForAppearance;
00254 AIBoolean m_isOutlineText;
00256 AIBoolean m_isScaleLineweights;
00257
00258 };
00259
00260
00261 #include "AIHeaderEnd.h"
00262
00263 #endif //__AIDXFDWGPREFS_h__