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

Side by Side Diff: fpdfsdk/formfiller/cffl_textfield.h

Issue 2391313002: Rename CPDFSDK_Environment to CPDFSDK_FormfillEnvironment (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
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 FPDFSDK_FORMFILLER_CFFL_TEXTFIELD_H_ 7 #ifndef FPDFSDK_FORMFILLER_CFFL_TEXTFIELD_H_
8 #define FPDFSDK_FORMFILLER_CFFL_TEXTFIELD_H_ 8 #define FPDFSDK_FORMFILLER_CFFL_TEXTFIELD_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "fpdfsdk/formfiller/cffl_formfiller.h" 12 #include "fpdfsdk/formfiller/cffl_formfiller.h"
13 13
14 #define BF_ALIGN_LEFT 0 14 #define BF_ALIGN_LEFT 0
15 #define BF_ALIGN_MIDDLE 1 15 #define BF_ALIGN_MIDDLE 1
16 #define BF_ALIGN_RIGHT 2 16 #define BF_ALIGN_RIGHT 2
17 17
18 class CBA_FontMap; 18 class CBA_FontMap;
19 19
20 struct FFL_TextFieldState { 20 struct FFL_TextFieldState {
21 FFL_TextFieldState() : nStart(0), nEnd(0) {} 21 FFL_TextFieldState() : nStart(0), nEnd(0) {}
22 22
23 int nStart; 23 int nStart;
24 int nEnd; 24 int nEnd;
25 CFX_WideString sValue; 25 CFX_WideString sValue;
26 }; 26 };
27 27
28 class CFFL_TextField : public CFFL_FormFiller, public IPWL_FocusHandler { 28 class CFFL_TextField : public CFFL_FormFiller, public IPWL_FocusHandler {
29 public: 29 public:
30 CFFL_TextField(CPDFSDK_Environment* pApp, CPDFSDK_Annot* pAnnot); 30 CFFL_TextField(CPDFSDK_FormFillEnvironment* pApp, CPDFSDK_Annot* pAnnot);
31 ~CFFL_TextField() override; 31 ~CFFL_TextField() override;
32 32
33 // CFFL_FormFiller: 33 // CFFL_FormFiller:
34 PWL_CREATEPARAM GetCreateParam() override; 34 PWL_CREATEPARAM GetCreateParam() override;
35 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp, 35 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp,
36 CPDFSDK_PageView* pPageView) override; 36 CPDFSDK_PageView* pPageView) override;
37 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, 37 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot,
38 uint32_t nChar, 38 uint32_t nChar,
39 uint32_t nFlags) override; 39 uint32_t nFlags) override;
40 FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override; 40 FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override;
(...skipping 19 matching lines...) Expand all
60 // CFFL_FormFiller: 60 // CFFL_FormFiller:
61 FX_BOOL IsFieldFull(CPDFSDK_PageView* pPageView) override; 61 FX_BOOL IsFieldFull(CPDFSDK_PageView* pPageView) override;
62 #endif // PDF_ENABLE_XFA 62 #endif // PDF_ENABLE_XFA
63 63
64 private: 64 private:
65 std::unique_ptr<CBA_FontMap> m_pFontMap; 65 std::unique_ptr<CBA_FontMap> m_pFontMap;
66 FFL_TextFieldState m_State; 66 FFL_TextFieldState m_State;
67 }; 67 };
68 68
69 #endif // FPDFSDK_FORMFILLER_CFFL_TEXTFIELD_H_ 69 #endif // FPDFSDK_FORMFILLER_CFFL_TEXTFIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698