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

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: 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
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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 FX_FLOAT fc[4], 1247 FX_FLOAT fc[4],
1250 const CFX_ByteStringC& csEntry); 1248 const CFX_ByteStringC& csEntry);
1251 1249
1252 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry); 1250 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry);
1253 1251
1254 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry); 1252 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry);
1255 friend class CPDF_FormControl; 1253 friend class CPDF_FormControl;
1256 }; 1254 };
1257 1255
1258 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 1256 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698