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,
00054 eR27,
00055
00056 eR32
00057 };
00058
00060 enum DxfDwgUnit
00061 {
00062 ePoints = 0,
00063 ePicas,
00064 eInches,
00065 eMillimeters,
00066 eCentimeters,
00067 ePixels,
00068 eFeets,
00069 eNumberOfUnits
00070 };
00071
00073 enum DxfDwgColors
00074 {
00075 eColors8 = 0,
00076 eColors16,
00077 eColors256,
00078 eColorsTrueColor
00079 };
00080
00082 enum DxfDwgGlobalScaleOption
00083 {
00085 eOriginalSize = 0,
00087 eFitArtboard,
00089 eScaleByValue
00090 };
00091
00093 enum DxfDwgRasterFormat
00094 {
00096 eRasterPNG = 0,
00098 eRasterJPEG
00099 };
00100
00102 enum DxfDwgExportOption
00103 {
00104 ePreserveAppearance = 0,
00105 eMaximumEditability
00106 };
00107
00108
00109
00110
00112 #define kDxfDwgPreferencePrefix "DxfDwg"
00113
00115 #define kFormatAutoCADName "AutoCAD file"
00116
00118 #define kFormatDxfName "DXF"
00119 #define kDxfExportFileFormatName "DXF Export"
00120 #define kDxfImportFileFormatName "DXF Import"
00121
00123 #define kFormatDxfExtn "dxf"
00124
00126 #define kFormatDwgName "DWG"
00127 #define kDwgExportFileFormatName "DWG Export"
00128 #define kDwgImportFileFormatName "DWG Import"
00129
00131 #define kFormatDwgExtn "dwg"
00132
00133
00135 #define kDxfDwgExportAutoCADFileFormat "ExportAutoCADFileFormat"
00136
00137 #define kDxfDwgDefaultExportAutoCADFileFormat eFormatDwg
00138
00140 #define kDxfDwgExportAutoCADVersion "ExportAutoCADVersion"
00141
00142 #define kDxfDwgDefaultExportAutoCADVersion eR32
00143
00145 #define kDxfDwgExportUnitScaleRatio "ExportUnitScaleRatio"
00146
00147 #define kDxfDwgDefaultExportUnitScaleRatio 1.0
00148
00150 #define kDxfDwgExportUnit "ExportUnit"
00151
00152 #define kDxfDwgDefaultExportUnit eMillimeters
00153
00155 #define kDxfDwgExportColors "Colors"
00156
00157 #define kDxfDwgDefaultExportColors eColorsTrueColor
00158
00160 #define kDxfDwgExportRasterFormat "ExportRasterFormat"
00161
00162 #define kDxfDwgDefaultExportRasterFormat eRasterPNG
00163
00165 #define kDxfDwgExportOption "ExportOption"
00166
00167 #define kDxfDwgDefaultExportOption eMaximumEditability
00168
00170 #define kDxfDwgExportSelectedArtOnly "ExportSelectedArtOnly"
00171
00172 #define kDxfDwgDefaultExportSelectedArtOnly false
00173
00175 #define kDxfDwgExportAlterPathsForAppearance "ExportAlterPathsForAppearance"
00176
00177 #define kDxfDwgDefaultExportAlterPathsForAppearance false
00178
00180 #define kDxfDwgExportOutlineText "ExportOutlineText"
00181
00182 #define kDxfDwgDefaultExportOutlineText false
00183
00185 #define kDxfDwgExportScaleLineweights "ExportScaleLineweights"
00186
00187 #define kDxfDwgDefaultExportScaleLineweights false
00188
00189
00191 #define kDxfDwgImportGlobalScaleOption "ImportGlobalScaleOption"
00192
00193 #define kDxfDwgDefaultImportGlobalScaleOption eFitArtboard
00194
00196 #define kDxfDwgImportGlobalScaleValue "ImportGlobalScaleValue"
00197
00198 #define kDxfDwgDefaultImportGlobalScaleValue 100
00199
00201 #define kDxfDwgImportUnitScaleRatio "ImportUnitScaleRatio"
00202
00203 #define kDxfDwgDefaultImportUnitScaleRatio 1.0
00204
00206 #define kDxfDwgImportUnit "ImportUnit"
00207
00208 #define kDxfDwgDefaultImportUnit eMillimeters
00209
00212 #define kDxfDwgImportLayout "ImportLayout"
00213
00214 #define kDxfDwgDefaultImportLayout ""
00215
00217 #define kDxfDwgImportCenterArtwork "ImportCenterArtwork"
00218
00220 #define kDxfDwgImportMergeLayers "ImportMergeLayers"
00221
00223 #define kDxfDwgDefaultImportCenterArtwork true
00224
00226 #define kDxfDwgDefaultImportMergeLayers false
00227
00229 #define kDxfDwgImportScaleLineweights "ImportScaleLineweights"
00230
00231 #define kDxfDwgDefaultImportScaleLineweights false
00232
00233
00234
00235
00237 struct DxfDwgExportPrefs
00238 {
00240 DxfDwgAutoCADFileFormat m_fileFormat;
00242 DxfDwgAutoCADVersion m_version;
00244 AIReal m_unitScaleRatio;
00246 DxfDwgUnit m_unit;
00248 DxfDwgColors m_colors;
00250 DxfDwgRasterFormat m_rasterFormat;
00252 DxfDwgExportOption m_exportOption;
00254 AIBoolean m_isExportSelectedArtOnly;
00257 AIBoolean m_isAlterPathForAppearance;
00259 AIBoolean m_isOutlineText;
00261 AIBoolean m_isScaleLineweights;
00262
00263 };
00264
00265
00266 #include "AIHeaderEnd.h"
00267
00268 #endif //__AIDXFDWGPREFS_h__