1 // Copyright 2016 PDFium Authors. All rights reserved. 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_WIN32_CPSOUTPUT_H_ 8 #define CORE_FXGE_WIN32_CPSOUTPUT_H_ 9 10 #include <windows.h> 11 12 #include "core/fxcrt/fx_stream.h" 13 #include "core/fxcrt/fx_system.h" 14 15 class CPSOutput : public IFX_WriteStream { 16 public: 17 explicit CPSOutput(HDC hDC); 18 ~CPSOutput() override; 19 20 // IFX_Writestream 21 bool WriteBlock(const void* str, size_t len) override; 22 bool WriteString(const ByteStringView& str) override; 23 24 private: 25 HDC m_hDC; 26 }; 27 28 #endif // CORE_FXGE_WIN32_CPSOUTPUT_H_ 29