1 // Copyright 2016 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef CORE_FXGE_CFX_WINDOWSRENDERDEVICE_H_ 8 #define CORE_FXGE_CFX_WINDOWSRENDERDEVICE_H_ 9 10 #include <windows.h> 11 12 #include "core/fxge/cfx_renderdevice.h" 13 14 enum class WindowsPrintMode { 15 kEmf = 0, 16 kTextOnly = 1, 17 kPostScript2 = 2, 18 kPostScript3 = 3, 19 kPostScript2PassThrough = 4, 20 kPostScript3PassThrough = 5, 21 kEmfImageMasks = 6, 22 kPostScript3Type42 = 7, 23 kPostScript3Type42PassThrough = 8, 24 }; 25 26 class CFX_PSFontTracker; 27 struct EncoderIface; 28 29 extern WindowsPrintMode g_pdfium_print_mode; 30 31 class CFX_WindowsRenderDevice : public CFX_RenderDevice { 32 public: 33 CFX_WindowsRenderDevice(HDC hDC, 34 CFX_PSFontTracker* ps_font_tracker, 35 const EncoderIface* encoder_iface); 36 ~CFX_WindowsRenderDevice() override; 37 }; 38 39 #endif // CORE_FXGE_CFX_WINDOWSRENDERDEVICE_H_ 40