Alphabetical Class Index   Compound Members   File List  

HIOUtilityGDIOutput.h
1 // Copyright (c) 1998-2014 by Tech Soft 3D, Inc.
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
13 #ifndef _HIO_UTILITY_GDIOUTPUT_H
14 #define _HIO_UTILITY_GDIOUTPUT_H
15 
16 #include "HTools.h"
17 #include "HIOManager.h"
18 
19 
24 #define HMFC_API
25 // msw driver specific driver_option debug flags
26 
34 #define DEBUG_FORCE_FULL_COLOR 0x00000010
35 
40 #define DEBUG_NO_WINDOWS_HOOK 0x00000040
41 
47 #define DEBUG_SFB_COPY_TO_CLIPBOARD 0x00004000
48 
53 #define DEBUG_NO_RASTERS_IN_PRINTING 0x00020000
54 
59 #define DEBUG_PRINTING_MODE 0x00040000
60 
65 #define DEBUG_CLIPBOARD_MODE 0x00080000
66 
67 
73 #define DEBUG_PRINT_NOT_FRAMEBUFFER_MODE 0x00020000
74 
75 
80 #define DEBUG_PRINT_NOT_RASTER_REDUCTION 0x00200000
81 
86 #define DEBUG_FORCE_SOFTWARE 0x01000000
87 
93 #define DEBUG_NO_PAINTERS_PANELLING 0x00000008
94 
95 
100 typedef struct GDIExportInformation {
101  HDC deviceContext;
102  HDC attribDC;
103  bool rasterOutput;
104  bool clipBoard;
105  void* windowID;
107 
108 
110 
123 class HMFC_API HIOUtilityGDIOutput: public HOutputHandler
124 {
125 
126 public:
127 
129  SetOutputOps(HOutputOpFileOutputByKey);
130  };
131  virtual ~HIOUtilityGDIOutput() {;};
132 
135  HIORegisterOutputType("emf", this);
136  }
137 
141  const char * GetOutputTypesString() {return "emf";};
142 
143 
144  const char * GetOutputName() { return "HIOUtilityGDIOutput"; }
145 
149  HOutputHandlerStyle GetOutputStyle() {return HOutputHandlerStyleModel;};
150 
160  HFileOutputResult FileOutputByKey(const char * FileName, HC_KEY key, HOutputHandlerOptions * options);
161 
162  HFileOutputResult FileOutputByKey(const __wchar_t * FileName, HC_KEY key, HOutputHandlerOptions * options)
163  {
164  return FileOutputByKey(H_ASCII_TEXT(FileName), key, options);
165 
166  }
167 
168 
170  HFileOutputResult FileOutputFromImageKey(const char * FileName, HC_KEY key, HOutputHandlerOptions * options){return OutputNotHandled;};
171 
172 private:
173 
174 };
175 
176 
177 
178 #endif
179 
180 
181 
virtual const char * GetOutputTypesString()=0
bool rasterOutput
True if raster output is supported by device context.
Definition: HIOUtilityGDIOutput.h:103
HOutputHandlerStyle
HDC deviceContext
Windows Device Context.
Definition: HIOUtilityGDIOutput.h:101
virtual HOutputHandlerStyle GetOutputStyle()=0
Definition: HIOUtilityGDIOutput.h:100
virtual void RegisterOutputHandlerTypes()=0
The HIOUtilityGDIOutput class should be used for exporting data to a Windows Printer or Clipboard Dev...
Definition: HIOUtilityGDIOutput.h:123
void * windowID
ID of window.
Definition: HIOUtilityGDIOutput.h:105
#define HIORegisterOutputType(type, output_object)
bool clipBoard
True if device context is a clipboard.
Definition: HIOUtilityGDIOutput.h:104
HDC attribDC
The attribute device context for the CDC object.
Definition: HIOUtilityGDIOutput.h:102