Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HIOUtilityDwfExport.h
1 //
2 // Copyright (c) 2005 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 
13 
14 #ifndef _HW3D_UTILITY_DWFEXPORT_H__RAJESH_B__20060503_1200__
15 #define _HW3D_UTILITY_DWFEXPORT_H__RAJESH_B__20060503_1200__
16 
17 #include "HTools.h"
18 #include "HIOManager.h"
19 #include "HW3DStream.h"
20 
21 #if defined(_MSC_VER) && defined(HIO_DWF_EXPORT)
22 #define HIO_API __declspec (dllexport)
23 #else
24 #define HIO_API
25 #endif
26 
32 class HIO_API HIOUtilityDwfExport : public HOutputHandler
33 {
34 
35 public:
37  {
38  SetOutputOps(HOutputOpFileOutputByKey);
39  };
40 
41  ~HIOUtilityDwfExport() {;};
42 
43  void RegisterOutputHandlerTypes() {
44  HIORegisterOutputType("DWF",this); // DWF (Autodesk's Design Web Format)
45  HIORegisterOutputType("dwf",this); // DWF (Autodesk's Design Web Format)
46  };
47 
48  HOutputHandlerStyle GetOutputStyle() {return HOutputHandlerStyleModel;};
49  const char * GetOutputTypesString() {return "dwf";};
50 
53  const char * GetOutputName() { return "HIOUtilityDwfExport"; }
54 
62  HFileOutputResult FileOutputByKey(const __wchar_t * FileName, HC_KEY key, HOutputHandlerOptions * options);
63 
64  HFileOutputResult FileOutputByKey(const unsigned short * FileName, HC_KEY key, HOutputHandlerOptions * options){
65  H_UTF16 utf16;
66  utf16.encodedText((utf16_char const*) FileName);
67  return FileOutputByKey(H_WCS(utf16).encodedText(), key, options);
68  }
69 };
70 
71 
72 
76 class HIO_API HIOUtilityWhip2D : public HOutputHandler
77 {
78 public:
79  HIOUtilityWhip2D() {
80  SetOutputOps(HOutputOpFileOutputByKey);
81  };
82 
83  ~HIOUtilityWhip2D() {;};
84 
85  void RegisterOutputHandlerTypes() {
86  HIORegisterOutputType("w2d",this);
87  };
88 
91  const char * GetOutputName() { return "HIOUtilityWhip2D"; }
92 
93 
94  const char * GetOutputTypesString() {return "w2d";};
95  HOutputHandlerStyle GetOutputStyle() {return HOutputHandlerStyleHardcopy;};
96 
97  const char * GetOutputDefaultHSRA() {return "painters";};
98 
106  HFileOutputResult FileOutputByKey(const __wchar_t * filename, HC_KEY key, HOutputHandlerOptions * options);
107 
108  HFileOutputResult FileOutputByKey(const unsigned short * filename, HC_KEY key, HOutputHandlerOptions * options){
109  H_UTF16 utf16;
110  utf16.encodedText((utf16_char const*) filename);
111  return FileOutputByKey(H_WCS(utf16).encodedText(), key, options);
112  }
113 
114 };
115 
116 #ifdef HIO_DWF_EXPORT
117 extern "C" {
118  HIO_API void * CreateInput(HIOManager *manager);
119  HIO_API void * CreateOutput(HIOManager *manager);
120  HIO_API void Free(HIOUtilityDwfExport *);
121 }
122 #endif
123 
124 
125 #endif // _HW3D_UTILITY_DWFEXPORT_H__RAJESH_B__20060503_1200__
126 
127 
128 
129 
#define HOutputOpFileOutputByKey
This HOutputHandler supports output from a segment key.
Definition: HIOManager.h:75
HOutputHandlerStyle
Definition: HIOManager.h:858
Definition: HIOUtilityDwfExport.h:32
const char * GetOutputName()
Definition: HIOUtilityDwfExport.h:53
Specifies an #HOutputHandler for an image.
Definition: HIOManager.h:862
#define HIORegisterOutputType(type, output_object)
HIORegisterOutputType(type,output_object) Used by a HOutputHandler to set extension types that it han...
Definition: HIOManager.h:92
Definition: HIOUtilityDwfExport.h:76
A header file containing the HIO classes for passing to HBaseView::FileInput and HBaseView::FileOutpu...
const char * GetOutputName()
Definition: HIOUtilityDwfExport.h:91