00001 // Copyright (c) 1998-2014 by Tech Soft 3D, Inc. 00002 // 00003 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., 00004 // and considered a trade secret as defined under civil and criminal statutes. 00005 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of 00006 // unauthorized use or misappropriation of its trade secrets. Use of this information 00007 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under 00008 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use. 00009 00010 #ifndef _HW3D_UTILITY_DWFIMPORT_H__RAJESH_B__20060504_1159__ 00011 #define _HW3D_UTILITY_DWFIMPORT_H__RAJESH_B__20060504_1159__ 00012 00013 #include "HTools.h" 00014 #include "HIOManager.h" 00015 #include "HW3DStream.h" 00016 00017 #if defined(_MSC_VER) && defined(HIO_DWF_IMPORT) 00018 #define HIO_API __declspec (dllexport) 00019 #else 00020 #define HIO_API 00021 #endif 00022 00028 class HIO_API HIOUtilityDwfImport : public HInputHandler 00029 { 00030 public: 00031 HIOUtilityDwfImport() 00032 { 00033 SetInputOps(HInputOpFileInputByKey); 00034 }; 00035 00036 ~HIOUtilityDwfImport() {;}; 00037 00038 void RegisterInputHandlerTypes() { 00039 HIORegisterInputType("DWF",this); // DWF (Autodesk's Design Web Format) 00040 HIORegisterInputType("dwf",this); // DWF (Autodesk's Design Web Format) 00041 HIORegisterInputType("DWFX",this); // DWF (Autodesk's Design Web Format for XPS) 00042 HIORegisterInputType("dwfx",this); // DWF (Autodesk's Design Web Format for XPS) 00043 }; 00046 const char * GetOutputName() { return "HIOUtilityDwfImport"; } 00047 const char * GetInputName() { return "HIOUtilityDwfImport"; } 00048 00049 HInputHandlerStyle GetInputStyle() {return HInputHandlerStyleModel;}; 00050 const char * GetInputTypesString() {return "dwf";}; 00051 00058 HFileInputResult FileInputByKey(const wchar_t * FileName, HC_KEY key, HInputHandlerOptions * options); 00059 00060 HFileInputResult FileInputByKey(const char * FileName, HC_KEY key, HInputHandlerOptions * options){ 00061 return FileInputByKey(H_WCS(FileName).encodedText(), key, options); 00062 }; 00063 }; 00064 00065 #endif // _HW3D_UTILITY_DWFIMPORT_H__RAJESH_B__20060504_1159__ 00066 00067 00068 00069 00070