Alphabetical Class Index   Compound Members   File List  

HIOUtilityGDIOutput.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 
16 #ifndef _HIO_UTILITY_GDIOUTPUT_H
17 #define _HIO_UTILITY_GDIOUTPUT_H
18 
19 #include "HTools.h"
20 #include "HIOManager.h"
21 
22 
27 #define HMFC_API
28 // msw driver specific driver_option debug flags
29 
37 #define DEBUG_FORCE_FULL_COLOR 0x00000010
38 
43 #define DEBUG_NO_WINDOWS_HOOK 0x00000040
44 
50 #define DEBUG_SFB_COPY_TO_CLIPBOARD 0x00004000
51 
56 #define DEBUG_NO_RASTERS_IN_PRINTING 0x00020000
57 
62 #define DEBUG_PRINTING_MODE 0x00040000
63 
68 #define DEBUG_CLIPBOARD_MODE 0x00080000
69 
70 
76 #define DEBUG_PRINT_NOT_FRAMEBUFFER_MODE 0x00020000
77 
78 
83 #define DEBUG_PRINT_NOT_RASTER_REDUCTION 0x00200000
84 
89 #define DEBUG_FORCE_SOFTWARE 0x01000000
90 
96 #define DEBUG_NO_PAINTERS_PANELLING 0x00000008
97 
98 
103 typedef struct GDIExportInformation {
104  HDC deviceContext;
105  HDC attribDC;
106  bool rasterOutput;
107  bool clipBoard;
108  void* windowID;
110 
111 
113 
126 class HMFC_API HIOUtilityGDIOutput: public HOutputHandler
127 {
128 
129 public:
130 
132  SetOutputOps(HOutputOpFileOutputByKey);
133  };
134  virtual ~HIOUtilityGDIOutput() {;};
135 
137  void RegisterOutputHandlerTypes() {
138  HIORegisterOutputType("emf", this);
139  }
140 
144  const char * GetOutputTypesString() {return "emf";};
145 
146 
147  const char * GetOutputName() { return "HIOUtilityGDIOutput"; }
148 
152  HOutputHandlerStyle GetOutputStyle() {return HOutputHandlerStyleModel;};
153 
163  HFileOutputResult FileOutputByKey(const char * FileName, HC_KEY key, HOutputHandlerOptions * options);
164 
165  HFileOutputResult FileOutputByKey(const __wchar_t * FileName, HC_KEY key, HOutputHandlerOptions * options)
166  {
167  return FileOutputByKey(H_ASCII_TEXT(FileName), key, options);
168 
169  }
170 
171 
172 private:
173 
174 };
175 
176 
177 
178 #endif
179 
180 
181 
bool rasterOutput
True if raster output is supported by device context.
Definition: HIOUtilityGDIOutput.h:106
HOutputHandlerStyle
HDC deviceContext
Windows Device Context.
Definition: HIOUtilityGDIOutput.h:104
Definition: HIOUtilityGDIOutput.h:103
The HIOUtilityGDIOutput class should be used for exporting data to a Windows Printer or Clipboard Dev...
Definition: HIOUtilityGDIOutput.h:126
void * windowID
ID of window.
Definition: HIOUtilityGDIOutput.h:108
#define HIORegisterOutputType(type, output_object)
bool clipBoard
True if device context is a clipboard.
Definition: HIOUtilityGDIOutput.h:107
HDC attribDC
The attribute device context for the CDC object.
Definition: HIOUtilityGDIOutput.h:105