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

Unified Diff: fpdfsdk/include/fsdk_baseform.h

Issue 1288393004: Merge to XFA: Use override in more classes in fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: self review 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/include/fsdk_annothandler.h ('k') | fpdfsdk/include/fsdk_define.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/include/fsdk_baseform.h
diff --git a/fpdfsdk/include/fsdk_baseform.h b/fpdfsdk/include/fsdk_baseform.h
index 96617c3f00fa2949a32dcee8ffb57ab2fe558799..da574303970004d17a9e2bbd70cceffb91966e6f 100644
--- a/fpdfsdk/include/fsdk_baseform.h
+++ b/fpdfsdk/include/fsdk_baseform.h
@@ -63,6 +63,7 @@ typedef struct _PDFSDK_FieldAction {
FX_BOOL bFieldFull; // in
FX_BOOL bRC; // in[out]
} PDFSDK_FieldAction;
+
class CPDFSDK_Widget : public CPDFSDK_BAAnnot {
public:
IXFA_Widget* GetMixXFAWidget();
@@ -87,26 +88,24 @@ class CPDFSDK_Widget : public CPDFSDK_BAAnnot {
CPDF_FormField* pFormField,
CPDF_FormControl* pFormControl);
- public:
CPDFSDK_Widget(CPDF_Annot* pAnnot,
CPDFSDK_PageView* pPageView,
CPDFSDK_InterForm* pInterForm);
- virtual ~CPDFSDK_Widget();
+ ~CPDFSDK_Widget() override;
- virtual CFX_ByteString GetSubType() const;
+ // CPDFSDK_Annot
+ CFX_ByteString GetSubType() const override;
+ CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT) override;
+ FX_BOOL IsAppearanceValid() override;
- virtual CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT);
+ int GetLayoutOrder() const override { return 2; }
int GetFieldType() const;
- // define layout order to 2.
- virtual int GetLayoutOrder() const { return 2; }
- virtual FX_BOOL IsAppearanceValid();
- /*
- FIELDFLAG_READONLY
- FIELDFLAG_REQUIRED
- FIELDFLAG_NOEXPORT
- */
+ // Possible values from PDF 32000-1:2008, table 221.
+ // FIELDFLAG_READONLY
+ // FIELDFLAG_REQUIRED
+ // FIELDFLAG_NOEXPORT
int GetFieldFlags() const;
int GetRotate() const;
« no previous file with comments | « fpdfsdk/include/fsdk_annothandler.h ('k') | fpdfsdk/include/fsdk_define.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698