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

Side by Side Diff: core/include/fpdfdoc/fpdf_doc.h

Issue 1292613003: Use override in more classes in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: nit Created 5 years, 4 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/include/fpdfdoc/fpdf_ap.h ('k') | core/include/fpdfdoc/fpdf_vt.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 7 #ifndef CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 FX_FLOAT GetParam(int index); 125 FX_FLOAT GetParam(int index);
126 126
127 protected: 127 protected:
128 CPDF_Object* m_pObj; 128 CPDF_Object* m_pObj;
129 }; 129 };
130 class CPDF_OCContext : public IPDF_OCContext { 130 class CPDF_OCContext : public IPDF_OCContext {
131 public: 131 public:
132 enum UsageType { View = 0, Design, Print, Export }; 132 enum UsageType { View = 0, Design, Print, Export };
133 133
134 CPDF_OCContext(CPDF_Document* pDoc, UsageType eUsageType = View); 134 CPDF_OCContext(CPDF_Document* pDoc, UsageType eUsageType = View);
135 135 ~CPDF_OCContext() override;
136 virtual ~CPDF_OCContext();
137 136
138 CPDF_Document* GetDocument() const { return m_pDocument; } 137 CPDF_Document* GetDocument() const { return m_pDocument; }
139 138
140 UsageType GetUsageType() const { return m_eUsageType; } 139 UsageType GetUsageType() const { return m_eUsageType; }
141 140
142 FX_BOOL CheckOCGVisible(const CPDF_Dictionary* pOCGDict); 141 FX_BOOL CheckOCGVisible(const CPDF_Dictionary* pOCGDict) override;
143 142
144 void ResetOCContext(); 143 void ResetOCContext();
145 144
146 protected: 145 protected:
147 FX_BOOL LoadOCGStateFromConfig(const CFX_ByteStringC& csConfig, 146 FX_BOOL LoadOCGStateFromConfig(const CFX_ByteStringC& csConfig,
148 const CPDF_Dictionary* pOCGDict, 147 const CPDF_Dictionary* pOCGDict,
149 FX_BOOL& bValidConfig) const; 148 FX_BOOL& bValidConfig) const;
150 149
151 FX_BOOL LoadOCGState(const CPDF_Dictionary* pOCGDict) const; 150 FX_BOOL LoadOCGState(const CPDF_Dictionary* pOCGDict) const;
152 151
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 #define FIELDTYPE_PUSHBUTTON 1 581 #define FIELDTYPE_PUSHBUTTON 1
583 #define FIELDTYPE_CHECKBOX 2 582 #define FIELDTYPE_CHECKBOX 2
584 #define FIELDTYPE_RADIOBUTTON 3 583 #define FIELDTYPE_RADIOBUTTON 3
585 #define FIELDTYPE_COMBOBOX 4 584 #define FIELDTYPE_COMBOBOX 4
586 #define FIELDTYPE_LISTBOX 5 585 #define FIELDTYPE_LISTBOX 5
587 #define FIELDTYPE_TEXTFIELD 6 586 #define FIELDTYPE_TEXTFIELD 6
588 #define FIELDTYPE_SIGNATURE 7 587 #define FIELDTYPE_SIGNATURE 7
589 class CPDF_InterForm : public CFX_PrivateData { 588 class CPDF_InterForm : public CFX_PrivateData {
590 public: 589 public:
591 CPDF_InterForm(CPDF_Document* pDocument, FX_BOOL bUpdateAP); 590 CPDF_InterForm(CPDF_Document* pDocument, FX_BOOL bUpdateAP);
592
593 ~CPDF_InterForm(); 591 ~CPDF_InterForm();
594 592
595 static void EnableUpdateAP(FX_BOOL bUpdateAP); 593 static void EnableUpdateAP(FX_BOOL bUpdateAP);
596 594
597 static FX_BOOL UpdatingAPEnabled(); 595 static FX_BOOL UpdatingAPEnabled();
598 596
599 static CFX_ByteString GenerateNewResourceName(const CPDF_Dictionary* pResDict, 597 static CFX_ByteString GenerateNewResourceName(const CPDF_Dictionary* pResDict,
600 const FX_CHAR* csType, 598 const FX_CHAR* csType,
601 int iMinLen = 2, 599 int iMinLen = 2,
602 const FX_CHAR* csPrefix = ""); 600 const FX_CHAR* csPrefix = "");
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 FX_FLOAT fc[4], 1246 FX_FLOAT fc[4],
1249 const CFX_ByteStringC& csEntry); 1247 const CFX_ByteStringC& csEntry);
1250 1248
1251 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry); 1249 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry);
1252 1250
1253 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry); 1251 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry);
1254 friend class CPDF_FormControl; 1252 friend class CPDF_FormControl;
1255 }; 1253 };
1256 1254
1257 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 1255 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
OLDNEW
« no previous file with comments | « core/include/fpdfdoc/fpdf_ap.h ('k') | core/include/fpdfdoc/fpdf_vt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698