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

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

Issue 1296043002: Merge to XFA: Use override in more classes in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 #define FIELDTYPE_PUSHBUTTON 1 577 #define FIELDTYPE_PUSHBUTTON 1
579 #define FIELDTYPE_CHECKBOX 2 578 #define FIELDTYPE_CHECKBOX 2
580 #define FIELDTYPE_RADIOBUTTON 3 579 #define FIELDTYPE_RADIOBUTTON 3
581 #define FIELDTYPE_COMBOBOX 4 580 #define FIELDTYPE_COMBOBOX 4
582 #define FIELDTYPE_LISTBOX 5 581 #define FIELDTYPE_LISTBOX 5
583 #define FIELDTYPE_TEXTFIELD 6 582 #define FIELDTYPE_TEXTFIELD 6
584 #define FIELDTYPE_SIGNATURE 7 583 #define FIELDTYPE_SIGNATURE 7
585 class CPDF_InterForm : public CFX_PrivateData { 584 class CPDF_InterForm : public CFX_PrivateData {
586 public: 585 public:
587 CPDF_InterForm(CPDF_Document* pDocument, FX_BOOL bUpdateAP); 586 CPDF_InterForm(CPDF_Document* pDocument, FX_BOOL bUpdateAP);
588
589 ~CPDF_InterForm(); 587 ~CPDF_InterForm();
590 588
591 static void EnableUpdateAP(FX_BOOL bUpdateAP); 589 static void EnableUpdateAP(FX_BOOL bUpdateAP);
592 590
593 static FX_BOOL UpdatingAPEnabled(); 591 static FX_BOOL UpdatingAPEnabled();
594 592
595 static CFX_ByteString GenerateNewResourceName(const CPDF_Dictionary* pResDict, 593 static CFX_ByteString GenerateNewResourceName(const CPDF_Dictionary* pResDict,
596 const FX_CHAR* csType, 594 const FX_CHAR* csType,
597 int iMinLen = 2, 595 int iMinLen = 2,
598 const FX_CHAR* csPrefix = ""); 596 const FX_CHAR* csPrefix = "");
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 FX_FLOAT fc[4], 1226 FX_FLOAT fc[4],
1229 const CFX_ByteStringC& csEntry); 1227 const CFX_ByteStringC& csEntry);
1230 1228
1231 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry); 1229 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry);
1232 1230
1233 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry); 1231 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry);
1234 friend class CPDF_FormControl; 1232 friend class CPDF_FormControl;
1235 }; 1233 };
1236 1234
1237 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 1235 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698