Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h

Issue 1805663002: Move core/include/fpdfapi/fpdf_page.h to correct locations. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fpdfapi/fpdf_page/include/cpdf_page.h ('k') | core/fpdfapi/fpdf_page/pageint.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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_FPDF_PAGE_INCLUDE_CPDF_PAGEOBJECTHOLDER_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGEOBJECTHOLDER_H_
9
10 #include "core/fpdfapi/fpdf_page/cpdf_pageobjectlist.h"
11 #include "core/include/fxcrt/fx_coordinates.h"
12 #include "core/include/fxcrt/fx_system.h"
13
14 class IFX_Pause;
15 class CPDF_Dictionary;
16 class CPDF_Stream;
17 class CPDF_Document;
18 class CPDF_ContentParser;
19
20 #define PDFTRANS_GROUP 0x0100
21 #define PDFTRANS_ISOLATED 0x0200
22 #define PDFTRANS_KNOCKOUT 0x0400
23
24 class CPDF_PageObjectHolder {
25 public:
26 CPDF_PageObjectHolder();
27
28 void ContinueParse(IFX_Pause* pPause);
29 bool IsParsed() const { return m_ParseState == CONTENT_PARSED; }
30
31 CPDF_PageObjectList* GetPageObjectList() { return &m_PageObjectList; }
32 const CPDF_PageObjectList* GetPageObjectList() const {
33 return &m_PageObjectList;
34 }
35
36 FX_BOOL BackgroundAlphaNeeded() const { return m_bBackgroundAlphaNeeded; }
37 void SetBackgroundAlphaNeeded(FX_BOOL needed) {
38 m_bBackgroundAlphaNeeded = needed;
39 }
40
41 FX_BOOL HasImageMask() const { return m_bHasImageMask; }
42 void SetHasImageMask(FX_BOOL value) { m_bHasImageMask = value; }
43
44 void Transform(const CFX_Matrix& matrix);
45 CFX_FloatRect CalcBoundingBox() const;
46
47 CPDF_Dictionary* m_pFormDict;
48 CPDF_Stream* m_pFormStream;
49 CPDF_Document* m_pDocument;
50 CPDF_Dictionary* m_pPageResources;
51 CPDF_Dictionary* m_pResources;
52 CFX_FloatRect m_BBox;
53 int m_Transparency;
54
55 protected:
56 enum ParseState { CONTENT_NOT_PARSED, CONTENT_PARSING, CONTENT_PARSED };
57
58 void LoadTransInfo();
59
60 FX_BOOL m_bBackgroundAlphaNeeded;
61 FX_BOOL m_bHasImageMask;
62 ParseState m_ParseState;
63 std::unique_ptr<CPDF_ContentParser> m_pParser;
64 CPDF_PageObjectList m_PageObjectList;
65 };
66
67 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGEOBJECTHOLDER_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/include/cpdf_page.h ('k') | core/fpdfapi/fpdf_page/pageint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698