Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HIOUtilityHTML.h
1 //
2 // Copyright (c) 2000 by Tech Soft 3D, LLC.
3 // The information contained herein is confidential and proprietary to
4 // Tech Soft 3D, LLC., and considered a trade secret as defined under
5 // civil and criminal statutes. Tech Soft 3D shall pursue its civil
6 // and criminal remedies in the event of unauthorized use or misappropriation
7 // of its trade secrets. Use of this information by anyone other than
8 // authorized employees of Tech Soft 3D, LLC. is granted only under a
9 // written non-disclosure agreement, expressly prescribing the scope and
10 // manner of such use.
11 //
12 // $Id: 09861bd4cc9220daf2f410a9d2bfd0474a751e12 $
13 //
14 
15 
16 #ifndef _HIOUTILITYHTML_H
17 #define _HIOUTILITYHTML_H
18 
19 #ifdef H_PACK_8
20 #pragma pack(push)
21 #pragma pack(8)
22 #endif
23 
24 #include "HTools.h"
25 #include "HIOManager.h"
26 #include "HStream.h"
27 
36 class MVO_API HIOUtilityHTML: public HOutputHandler
37 {
38 
39 public:
40 
43  SetOutputOps(HOutputOpFileOutputByKey);
44  };
45 
46  virtual ~HIOUtilityHTML() {;};
47 
50  const char * GetOutputName() { return "HIOUtilityHTML"; }
51 
54  HIORegisterOutputType("html",this);
55  HIORegisterOutputType("htm",this);
56  };
57 
59  const char * GetOutputTypesString() {return "html;htm";};
60 
63 
74  HFileOutputResult FileOutputByKey(const __wchar_t * filename, HC_KEY key, HOutputHandlerOptions * options);
75 
76  HFileOutputResult FileOutputByKey(const unsigned short * filename, HC_KEY key, HOutputHandlerOptions * options){
77  H_UTF16 utf16;
78  utf16.encodedText((utf16_char const*) filename);
79  return FileOutputByKey(H_WCS(utf16).encodedText(), key, options);
80  }
81 
82  HFileOutputResult FileOutputByKey(const char * filename, HC_KEY key, HOutputHandlerOptions * options){
83  return FileOutputByKey(H_WCS(filename).encodedText(), key, options);
84  }
85 
86 };
87 
88 
89 #ifdef H_PACK_8
90 #pragma pack(pop)
91 #endif
92 
93 #endif
Definition: HIOUtilityHTML.h:36
const char * GetOutputTypesString()
Definition: HIOUtilityHTML.h:59
const char * GetOutputName()
Definition: HIOUtilityHTML.h:50
HOutputHandlerStyle GetOutputStyle()
Definition: HIOUtilityHTML.h:62
#define HOutputOpFileOutputByKey
This HOutputHandler supports output from a segment key.
Definition: HIOManager.h:75
Specifies an #HOutputHandler for a hardcopy output type.
Definition: HIOManager.h:863
HOutputHandlerStyle
Definition: HIOManager.h:858
#define HIORegisterOutputType(type, output_object)
HIORegisterOutputType(type,output_object) Used by a HOutputHandler to set extension types that it han...
Definition: HIOManager.h:92
HIOUtilityHTML()
Definition: HIOUtilityHTML.h:42
A header file containing the HIO classes for passing to HBaseView::FileInput and HBaseView::FileOutpu...
void RegisterOutputHandlerTypes()
Definition: HIOUtilityHTML.h:53