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 _HIOUTILITYHTML_H 00011 #define _HIOUTILITYHTML_H 00012 00013 #ifdef H_PACK_8 00014 #pragma pack(push) 00015 #pragma pack(8) 00016 #endif 00017 00018 #include "HTools.h" 00019 #include "HIOManager.h" 00020 #include "HStream.h" 00021 00030 class MVO_API HIOUtilityHTML: public HOutputHandler 00031 { 00032 00033 public: 00034 00036 HIOUtilityHTML() { 00037 SetOutputOps(HOutputOpFileOutputByKey); 00038 }; 00039 00040 virtual ~HIOUtilityHTML() {;}; 00041 00044 const char * GetOutputName() { return "HIOUtilityHTML"; } 00045 00047 void RegisterOutputHandlerTypes() { 00048 HIORegisterOutputType("html",this); 00049 HIORegisterOutputType("htm",this); 00050 }; 00051 00053 const char * GetOutputTypesString() {return "html;htm";}; 00054 00056 HOutputHandlerStyle GetOutputStyle() {return HOutputHandlerStyleHTML;}; 00057 00068 HFileOutputResult FileOutputByKey(const __wchar_t * filename, HC_KEY key, HOutputHandlerOptions * options); 00069 00070 HFileOutputResult FileOutputByKey(const unsigned short * filename, HC_KEY key, HOutputHandlerOptions * options){ 00071 H_UTF16 utf16; 00072 utf16.encodedText((utf16_char const*) filename); 00073 return FileOutputByKey(H_WCS(utf16).encodedText(), key, options); 00074 } 00075 00076 HFileOutputResult FileOutputByKey(const char * filename, HC_KEY key, HOutputHandlerOptions * options){ 00077 return FileOutputByKey(H_WCS(filename).encodedText(), key, options); 00078 } 00079 00080 }; 00081 00082 00083 #ifdef H_PACK_8 00084 #pragma pack(pop) 00085 #endif 00086 00087 #endif