1 // Copyright 2014 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 _FXFA_FORMFILLER_RENDERCONTEXT_IMP_H
8 #define _FXFA_FORMFILLER_RENDERCONTEXT_IMP_H
9 class CXFA_RenderContext : public IXFA_RenderContext {
10  public:
11   CXFA_RenderContext();
12   virtual ~CXFA_RenderContext();
Release()13   virtual void Release() { delete this; }
14   virtual int32_t StartRender(IXFA_PageView* pPageView,
15                               CFX_Graphics* pGS,
16                               const CFX_Matrix& matrix,
17                               const CXFA_RenderOptions& options);
18   virtual int32_t DoRender(IFX_Pause* pPause = NULL);
19   virtual void StopRender();
20 
21  protected:
22   IXFA_WidgetIterator* m_pWidgetIterator;
23   IXFA_Widget* m_pWidget;
24   IXFA_PageView* m_pPageView;
25   CFX_Graphics* m_pGS;
26   CFX_Matrix m_matrix;
27   CXFA_RenderOptions m_options;
28   FX_DWORD m_dwStatus;
29   CFX_RectF m_rtClipRect;
30 };
31 #endif
32