00001 // 00002 // Copyright (c) 2000 by Tech Soft 3D, LLC. 00003 // The information contained herein is confidential and proprietary to 00004 // Tech Soft 3D, LLC., and considered a trade secret as defined under 00005 // civil and criminal statutes. Tech Soft 3D shall pursue its civil 00006 // and criminal remedies in the event of unauthorized use or misappropriation 00007 // of its trade secrets. Use of this information by anyone other than 00008 // authorized employees of Tech Soft 3D, LLC. is granted only under a 00009 // written non-disclosure agreement, expressly prescribing the scope and 00010 // manner of such use. 00011 // 00012 // $Id: 09861bd4cc9220daf2f410a9d2bfd0474a751e12 $ 00013 // 00014 00015 00016 #ifndef _HIOUTILITYHTML_H 00017 #define _HIOUTILITYHTML_H 00018 00019 #ifdef H_PACK_8 00020 #pragma pack(push) 00021 #pragma pack(8) 00022 #endif 00023 00024 #include "HTools.h" 00025 #include "HIOManager.h" 00026 #include "HStream.h" 00027 00036 class MVO_API HIOUtilityHTML: public HOutputHandler 00037 { 00038 00039 public: 00040 00042 HIOUtilityHTML() { 00043 SetOutputOps(HOutputOpFileOutputByKey); 00044 }; 00045 00046 virtual ~HIOUtilityHTML() {;}; 00047 00050 const char * GetOutputName() { return "HIOUtilityHTML"; } 00051 00053 void RegisterOutputHandlerTypes() { 00054 HIORegisterOutputType("html",this); 00055 HIORegisterOutputType("htm",this); 00056 }; 00057 00059 const char * GetOutputTypesString() {return "html;htm";}; 00060 00062 HOutputHandlerStyle GetOutputStyle() {return HOutputHandlerStyleHTML;}; 00063 00074 HFileOutputResult FileOutputByKey(const __wchar_t * filename, HC_KEY key, HOutputHandlerOptions * options); 00075 00076 HFileOutputResult FileOutputByKey(const unsigned short * filename, HC_KEY key, HOutputHandlerOptions * options){ 00077 H_UTF16 utf16; 00078 utf16.encodedText((utf16_char const*) filename); 00079 return FileOutputByKey(H_WCS(utf16).encodedText(), key, options); 00080 } 00081 00082 HFileOutputResult FileOutputByKey(const char * filename, HC_KEY key, HOutputHandlerOptions * options){ 00083 return FileOutputByKey(H_WCS(filename).encodedText(), key, options); 00084 } 00085 00086 }; 00087 00088 00089 #ifdef H_PACK_8 00090 #pragma pack(pop) 00091 #endif 00092 00093 #endif