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_FPDFAPI_PAGE_CPDF_PAGEMODULE_H_
8 #define CORE_FPDFAPI_PAGE_CPDF_PAGEMODULE_H_
9 
10 #include "core/fpdfapi/font/cpdf_fontglobals.h"
11 #include "core/fpdfapi/page/cpdf_colorspace.h"
12 #include "core/fpdfapi/page/cpdf_devicecs.h"
13 #include "core/fpdfapi/page/cpdf_patterncs.h"
14 
15 class CPDF_Document;
16 
17 class CPDF_PageModule {
18  public:
19   CPDF_PageModule();
20   ~CPDF_PageModule();
21 
22   CPDF_FontGlobals* GetFontGlobals();
23   CPDF_ColorSpace* GetStockCS(int family);
24   void ClearStockFont(CPDF_Document* pDoc);
25 
26  private:
27   CPDF_FontGlobals m_FontGlobals;
28   CPDF_DeviceCS m_StockGrayCS;
29   CPDF_DeviceCS m_StockRGBCS;
30   CPDF_DeviceCS m_StockCMYKCS;
31   CPDF_PatternCS m_StockPatternCS;
32 };
33 
34 #endif  // CORE_FPDFAPI_PAGE_CPDF_PAGEMODULE_H_
35