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

Side by Side Diff: core/fpdfapi/fpdf_page/cpdf_contentmark.h

Issue 2386423004: Move core/fpdfapi/fpdf_page to core/fpdfapi/page (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/cpdf_colorstate.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_contentmark.cpp » ('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_CPDF_CONTENTMARK_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARK_H_
9
10 #include <vector>
11
12 #include "core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h"
13 #include "core/fxcrt/cfx_count_ref.h"
14 #include "core/fxcrt/fx_basic.h"
15 #include "core/fxcrt/fx_system.h"
16
17 class CPDF_Dictionary;
18
19 class CPDF_ContentMark {
20 public:
21 CPDF_ContentMark();
22 CPDF_ContentMark(const CPDF_ContentMark& that);
23 ~CPDF_ContentMark();
24
25 void SetNull();
26
27 int GetMCID() const;
28 int CountItems() const;
29 const CPDF_ContentMarkItem& GetItem(int i) const;
30
31 bool HasMark(const CFX_ByteStringC& mark) const;
32 bool LookupMark(const CFX_ByteStringC& mark, CPDF_Dictionary*& pDict) const;
33 void AddMark(const CFX_ByteString& name,
34 CPDF_Dictionary* pDict,
35 FX_BOOL bDirect);
36 void DeleteLastMark();
37
38 explicit operator bool() const { return !!m_Ref; }
39
40 private:
41 class MarkData {
42 public:
43 MarkData();
44 MarkData(const MarkData& src);
45 ~MarkData();
46
47 int CountItems() const;
48 CPDF_ContentMarkItem& GetItem(int index);
49 const CPDF_ContentMarkItem& GetItem(int index) const;
50
51 int GetMCID() const;
52 void AddMark(const CFX_ByteString& name,
53 CPDF_Dictionary* pDict,
54 FX_BOOL bDictNeedClone);
55 void DeleteLastMark();
56
57 private:
58 std::vector<CPDF_ContentMarkItem> m_Marks;
59 };
60
61 CFX_CountRef<MarkData> m_Ref;
62 };
63
64 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARK_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_colorstate.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_contentmark.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698