| OLD | NEW |
| 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_INCLUDE_FSDK_BASEFORM_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
| 8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
| 9 | 9 |
| 10 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class CPDFSDK_InterForm; | 28 class CPDFSDK_InterForm; |
| 29 class CPDFSDK_PageView; | 29 class CPDFSDK_PageView; |
| 30 class CPDF_Action; | 30 class CPDF_Action; |
| 31 class CPDF_FormField; | 31 class CPDF_FormField; |
| 32 struct CPWL_Color; | 32 struct CPWL_Color; |
| 33 | 33 |
| 34 typedef struct _PDFSDK_FieldAction | 34 typedef struct _PDFSDK_FieldAction |
| 35 { | 35 { |
| 36 _PDFSDK_FieldAction() | 36 _PDFSDK_FieldAction() |
| 37 { | 37 { |
| 38 » » bModifier = FALSE; | 38 » » bModifier = false; |
| 39 » » bShift = FALSE; | 39 » » bShift = false; |
| 40 nCommitKey = 0; | 40 nCommitKey = 0; |
| 41 » » bKeyDown = FALSE; | 41 » » bKeyDown = false; |
| 42 nSelEnd = nSelStart = 0; | 42 nSelEnd = nSelStart = 0; |
| 43 » » bWillCommit = FALSE; | 43 » » bWillCommit = false; |
| 44 » » bFieldFull = FALSE; | 44 » » bFieldFull = false; |
| 45 » » bRC = TRUE; | 45 » » bRC = true; |
| 46 } | 46 } |
| 47 | 47 |
| 48 » FX_BOOL»» » » » bModifier;» » //in | 48 » bool» » » » » bModifier;» » //in |
| 49 » FX_BOOL»» » » » bShift;»» » //in | 49 » bool» » » » » bShift;»» » //in |
| 50 int nCommitKey;
//in | 50 int nCommitKey;
//in |
| 51 CFX_WideString sChange; //in[out] | 51 CFX_WideString sChange; //in[out] |
| 52 CFX_WideString sChangeEx; //in | 52 CFX_WideString sChangeEx; //in |
| 53 » FX_BOOL»» » » » bKeyDown;» » //in | 53 » bool» » » » » bKeyDown;» » //in |
| 54 int nSelEnd;
//in[out] | 54 int nSelEnd;
//in[out] |
| 55 int nSelStart;
//in[out] | 55 int nSelStart;
//in[out] |
| 56 CFX_WideString sValue; //in[out] | 56 CFX_WideString sValue; //in[out] |
| 57 » FX_BOOL»» » » » bWillCommit;» //in | 57 » bool» » » » » bWillCommit;» //in |
| 58 » FX_BOOL»» » » » bFieldFull;» » //in | 58 » bool» » » » » bFieldFull;» » //in |
| 59 » FX_BOOL»» » » » bRC;» » » //in[out
] | 59 » bool» » » » » bRC;» » » //in[out
] |
| 60 }PDFSDK_FieldAction; | 60 }PDFSDK_FieldAction; |
| 61 class CPDFSDK_Widget : public CPDFSDK_Annot | 61 class CPDFSDK_Widget : public CPDFSDK_Annot |
| 62 { | 62 { |
| 63 public: | 63 public: |
| 64 CPDFSDK_Widget(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView, CPDFSDK_
InterForm* pInterForm); | 64 CPDFSDK_Widget(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView, CPDFSDK_
InterForm* pInterForm); |
| 65 virtual ~CPDFSDK_Widget(); | 65 virtual ~CPDFSDK_Widget(); |
| 66 | 66 |
| 67 virtual CFX_ByteString GetSubType() const; | 67 virtual CFX_ByteString GetSubType() const; |
| 68 | 68 |
| 69 virtual CPDF_Action GetAAction(CPDF_AAction:
:AActionType eAAT); | 69 virtual CPDF_Action GetAAction(CPDF_AAction:
:AActionType eAAT); |
| 70 | 70 |
| 71 int GetField
Type() const; | 71 int GetField
Type() const; |
| 72 //define layout order to 2. | 72 //define layout order to 2. |
| 73 virtual int GetLayoutOrder()
const {return 2;} | 73 virtual int GetLayoutOrder()
const {return 2;} |
| 74 /* | 74 /* |
| 75 FIELDFLAG_READONLY | 75 FIELDFLAG_READONLY |
| 76 FIELDFLAG_REQUIRED | 76 FIELDFLAG_REQUIRED |
| 77 FIELDFLAG_NOEXPORT | 77 FIELDFLAG_NOEXPORT |
| 78 */ | 78 */ |
| 79 | 79 |
| 80 int GetField
Flags() const; | 80 int GetField
Flags() const; |
| 81 int GetRotat
e() const; | 81 int GetRotat
e() const; |
| 82 | 82 |
| 83 » FX_BOOL»» » » » » » GetFillColor(FX_
COLORREF& color) const; | 83 » bool» » » » » » » GetFillColor(FX_
COLORREF& color) const; |
| 84 » FX_BOOL»» » » » » » GetBorderColor(F
X_COLORREF& color) const; | 84 » bool» » » » » » » GetBorderColor(F
X_COLORREF& color) const; |
| 85 » FX_BOOL»» » » » » » GetTextColor(FX_
COLORREF& color) const; | 85 » bool» » » » » » » GetTextColor(FX_
COLORREF& color) const; |
| 86 FX_FLOAT GetFontSize() co
nst; | 86 FX_FLOAT GetFontSize() co
nst; |
| 87 | 87 |
| 88 int GetSelec
tedIndex(int nIndex) const; | 88 int GetSelec
tedIndex(int nIndex) const; |
| 89 CFX_WideString GetValue() const; | 89 CFX_WideString GetValue() const; |
| 90 CFX_WideString GetDefaultValue() const; | 90 CFX_WideString GetDefaultValue() const; |
| 91 CFX_WideString GetOptionLabel(int nInde
x) const; | 91 CFX_WideString GetOptionLabel(int nInde
x) const; |
| 92 int CountOpt
ions() const; | 92 int CountOpt
ions() const; |
| 93 » FX_BOOL»» » » » » » IsOptionSelected
(int nIndex) const; | 93 » bool» » » » » » » IsOptionSelected
(int nIndex) const; |
| 94 int GetTopVi
sibleIndex() const; | 94 int GetTopVi
sibleIndex() const; |
| 95 » FX_BOOL»» » » » » » IsChecked() cons
t; | 95 » bool» » » » » » » IsChecked() cons
t; |
| 96 /* | 96 /* |
| 97 BF_ALIGN_LEFT | 97 BF_ALIGN_LEFT |
| 98 BF_ALIGN_MIDDL | 98 BF_ALIGN_MIDDL |
| 99 BF_ALIGN_RIGHT | 99 BF_ALIGN_RIGHT |
| 100 */ | 100 */ |
| 101 int GetAlign
ment() const; | 101 int GetAlign
ment() const; |
| 102 int GetMaxLe
n() const; | 102 int GetMaxLe
n() const; |
| 103 CFX_WideString GetAlternateName() const
; | 103 CFX_WideString GetAlternateName() const
; |
| 104 | 104 |
| 105 //Set Properties. | 105 //Set Properties. |
| 106 » void» » » » » » » SetCheck(FX_BOOL
bChecked, FX_BOOL bNotify); | 106 » void» » » » » » » SetCheck(bool bC
hecked, bool bNotify); |
| 107 » void» » » » » » » SetValue(const C
FX_WideString& sValue, FX_BOOL bNotify); | 107 » void» » » » » » » SetValue(const C
FX_WideString& sValue, bool bNotify); |
| 108 void SetDefaultValue(
const CFX_WideString& sValue); | 108 void SetDefaultValue(
const CFX_WideString& sValue); |
| 109 » void» » » » » » » SetOptionSelecti
on(int index, FX_BOOL bSelected, FX_BOOL bNotify); | 109 » void» » » » » » » SetOptionSelecti
on(int index, bool bSelected, bool bNotify); |
| 110 » void» » » » » » » ClearSelection(F
X_BOOL bNotify); | 110 » void» » » » » » » ClearSelection(b
ool bNotify); |
| 111 void SetTopVisibleInd
ex(int index); | 111 void SetTopVisibleInd
ex(int index); |
| 112 | 112 |
| 113 » void» » » » » » » ResetAppearance(
const FX_WCHAR* sValue, FX_BOOL bValueChanged); | 113 » void» » » » » » » ResetAppearance(
const FX_WCHAR* sValue, bool bValueChanged); |
| 114 » void» » » » » » » ResetFieldAppear
ance(FX_BOOL bValueChanged); | 114 » void» » » » » » » ResetFieldAppear
ance(bool bValueChanged); |
| 115 void UpdateField(); | 115 void UpdateField(); |
| 116 » CFX_WideString» » » » » OnFormat(FX_BOOL& bForma
ted); | 116 » CFX_WideString» » » » » OnFormat(bool& bFormated
); |
| 117 | 117 |
| 118 //Message. | 118 //Message. |
| 119 » FX_BOOL»» » » » » » OnAAction(CPDF_A
Action::AActionType type, PDFSDK_FieldAction& data, | 119 » bool» » » » » » » OnAAction(CPDF_A
Action::AActionType type, PDFSDK_FieldAction& data, |
| 120
CPDFSDK_PageView* pPageView); | 120
CPDFSDK_PageView* pPageView); |
| 121 | 121 |
| 122 CPDFSDK_InterForm* GetInterForm() const {re
turn m_pInterForm;} | 122 CPDFSDK_InterForm* GetInterForm() const {re
turn m_pInterForm;} |
| 123 CPDF_FormField* GetFormField() const; | 123 CPDF_FormField* GetFormField() const; |
| 124 CPDF_FormControl* GetFormControl() const; | 124 CPDF_FormControl* GetFormControl() const; |
| 125 static CPDF_FormControl* GetFormControl(CPDF_InterForm* p
InterForm, CPDF_Dictionary* pAnnotDict); | 125 static CPDF_FormControl* GetFormControl(CPDF_InterForm* p
InterForm, CPDF_Dictionary* pAnnotDict); |
| 126 | 126 |
| 127 void DrawShadow(CFX_R
enderDevice* pDevice, CPDFSDK_PageView* pPageView); | 127 void DrawShadow(CFX_R
enderDevice* pDevice, CPDFSDK_PageView* pPageView); |
| 128 | 128 |
| 129 void SetAppModified()
; | 129 void SetAppModified()
; |
| 130 void ClearAppModified
(); | 130 void ClearAppModified
(); |
| 131 » FX_BOOL»» » » » » » IsAppModified()
const; | 131 » bool» » » » » » » IsAppModified()
const; |
| 132 | 132 |
| 133 int32_t GetAppearanceAge() const
; | 133 int32_t GetAppearanceAge() const
; |
| 134 int32_t GetValueAge() const; | 134 int32_t GetValueAge() const; |
| 135 | 135 |
| 136 private: | 136 private: |
| 137 void ResetAppearance_
PushButton(); | 137 void ResetAppearance_
PushButton(); |
| 138 void ResetAppearance_
CheckBox(); | 138 void ResetAppearance_
CheckBox(); |
| 139 void ResetAppearance_
RadioButton(); | 139 void ResetAppearance_
RadioButton(); |
| 140 void ResetAppearance_
ComboBox(const FX_WCHAR* sValue); | 140 void ResetAppearance_
ComboBox(const FX_WCHAR* sValue); |
| 141 void ResetAppearance_
ListBox(); | 141 void ResetAppearance_
ListBox(); |
| 142 void ResetAppearance_
TextField(const FX_WCHAR* sValue); | 142 void ResetAppearance_
TextField(const FX_WCHAR* sValue); |
| 143 | 143 |
| 144 CPDF_Rect GetClientRect()
const; | 144 CPDF_Rect GetClientRect()
const; |
| 145 CPDF_Rect GetRotatedRect()
const; | 145 CPDF_Rect GetRotatedRect()
const; |
| 146 | 146 |
| 147 CFX_ByteString GetBackgroundAppStream()
const; | 147 CFX_ByteString GetBackgroundAppStream()
const; |
| 148 CFX_ByteString GetBorderAppStream() con
st; | 148 CFX_ByteString GetBorderAppStream() con
st; |
| 149 CPDF_Matrix GetMatrix() cons
t; | 149 CPDF_Matrix GetMatrix() cons
t; |
| 150 | 150 |
| 151 CPWL_Color GetTextPWLColor(
) const; | 151 CPWL_Color GetTextPWLColor(
) const; |
| 152 CPWL_Color GetBorderPWLColo
r() const; | 152 CPWL_Color GetBorderPWLColo
r() const; |
| 153 CPWL_Color GetFillPWLColor(
) const; | 153 CPWL_Color GetFillPWLColor(
) const; |
| 154 | 154 |
| 155 void AddImageToAppear
ance(const CFX_ByteString& sAPType, CPDF_Stream* pImage); | 155 void AddImageToAppear
ance(const CFX_ByteString& sAPType, CPDF_Stream* pImage); |
| 156 void RemoveAppearance
(const CFX_ByteString& sAPType); | 156 void RemoveAppearance
(const CFX_ByteString& sAPType); |
| 157 public: | 157 public: |
| 158 » FX_BOOL»» » » » » » IsWidgetAppearan
ceValid(CPDF_Annot::AppearanceMode mode); | 158 » bool» » » » » » » IsWidgetAppearan
ceValid(CPDF_Annot::AppearanceMode mode); |
| 159 void DrawAppearance(C
FX_RenderDevice* pDevice, const CPDF_Matrix* pUser2Device, | 159 void DrawAppearance(C
FX_RenderDevice* pDevice, const CPDF_Matrix* pUser2Device, |
| 160 CPDF_Annot::AppearanceMode mode, const CPDF_RenderOptions* pOpti
ons); | 160 CPDF_Annot::AppearanceMode mode, const CPDF_RenderOptions* pOpti
ons); |
| 161 public: | 161 public: |
| 162 » FX_BOOL»» » » » » » HitTest(FX_FLOAT
pageX, FX_FLOAT pageY); | 162 » bool» » » » » » » HitTest(FX_FLOAT
pageX, FX_FLOAT pageY); |
| 163 private: | 163 private: |
| 164 CPDFSDK_InterForm* m_pInterForm; | 164 CPDFSDK_InterForm* m_pInterForm; |
| 165 » FX_BOOL»» » » » » » m_bAppModified; | 165 » bool» » » » » » » m_bAppModified; |
| 166 int32_t m_nAppAge; | 166 int32_t m_nAppAge; |
| 167 int32_t m_nValueAge; | 167 int32_t m_nValueAge; |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 class CPDFSDK_InterForm : public CPDF_FormNotify | 170 class CPDFSDK_InterForm : public CPDF_FormNotify |
| 171 { | 171 { |
| 172 public: | 172 public: |
| 173 explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument); | 173 explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument); |
| 174 ~CPDFSDK_InterForm() override; | 174 ~CPDFSDK_InterForm() override; |
| 175 | 175 |
| 176 CPDF_InterForm* GetInterForm() const { return m_pInterForm; } | 176 CPDF_InterForm* GetInterForm() const { return m_pInterForm; } |
| 177 CPDFSDK_Document* GetDocument() const { return m_pDocument; } | 177 CPDFSDK_Document* GetDocument() const { return m_pDocument; } |
| 178 | 178 |
| 179 » FX_BOOL»» » » » » » HighlightWidgets
(); | 179 » bool» » » » » » » HighlightWidgets
(); |
| 180 | 180 |
| 181 » CPDFSDK_Widget*»» » » » GetSibling(CPDFSDK_Widge
t* pWidget, FX_BOOL bNext) const; | 181 » CPDFSDK_Widget*»» » » » GetSibling(CPDFSDK_Widge
t* pWidget, bool bNext) const; |
| 182 CPDFSDK_Widget* GetWidget(CPDF_FormContr
ol* pControl) const; | 182 CPDFSDK_Widget* GetWidget(CPDF_FormContr
ol* pControl) const; |
| 183 void GetWidgets(const
CFX_WideString& sFieldName, CFX_PtrArray& widgets); | 183 void GetWidgets(const
CFX_WideString& sFieldName, CFX_PtrArray& widgets); |
| 184 void GetWidgets(CPDF_
FormField* pField, CFX_PtrArray& widgets); | 184 void GetWidgets(CPDF_
FormField* pField, CFX_PtrArray& widgets); |
| 185 | 185 |
| 186 void AddMap(CPDF_Form
Control* pControl, CPDFSDK_Widget* pWidget); | 186 void AddMap(CPDF_Form
Control* pControl, CPDFSDK_Widget* pWidget); |
| 187 void RemoveMap(CPDF_F
ormControl* pControl); | 187 void RemoveMap(CPDF_F
ormControl* pControl); |
| 188 | 188 |
| 189 » void» » » » » » » EnableCalculate(
FX_BOOL bEnabled); | 189 » void» » » » » » » EnableCalculate(
bool bEnabled); |
| 190 » FX_BOOL»» » » » » » IsCalculateEnabl
ed() const; | 190 » bool» » » » » » » IsCalculateEnabl
ed() const; |
| 191 | 191 |
| 192 #ifdef _WIN32 | 192 #ifdef _WIN32 |
| 193 CPDF_Stream* LoadImageFromFile(const
CFX_WideString& sFile); | 193 CPDF_Stream* LoadImageFromFile(const
CFX_WideString& sFile); |
| 194 #endif | 194 #endif |
| 195 | 195 |
| 196 » void» » » » » » » OnKeyStrokeCommi
t(CPDF_FormField* pFormField, CFX_WideString& csValue, FX_BOOL& bRC); | 196 » void» » » » » » » OnKeyStrokeCommi
t(CPDF_FormField* pFormField, CFX_WideString& csValue, bool& bRC); |
| 197 » void» » » » » » » OnValidate(CPDF_
FormField* pFormField, CFX_WideString& csValue, FX_BOOL& bRC); | 197 » void» » » » » » » OnValidate(CPDF_
FormField* pFormField, CFX_WideString& csValue, bool& bRC); |
| 198 void OnCalculate(CPDF
_FormField* pFormField = NULL); | 198 void OnCalculate(CPDF
_FormField* pFormField = NULL); |
| 199 » CFX_WideString» » » » » OnFormat(CPDF_FormField*
pFormField, FX_BOOL& bFormated); | 199 » CFX_WideString» » » » » OnFormat(CPDF_FormField*
pFormField, bool& bFormated); |
| 200 | 200 |
| 201 » void» » » » » » » ResetFieldAppear
ance(CPDF_FormField* pFormField, const FX_WCHAR* sValue, FX_BOOL bValueChanged); | 201 » void» » » » » » » ResetFieldAppear
ance(CPDF_FormField* pFormField, const FX_WCHAR* sValue, bool bValueChanged); |
| 202 void UpdateField(CPDF
_FormField* pFormField); | 202 void UpdateField(CPDF
_FormField* pFormField); |
| 203 | 203 |
| 204 » FX_BOOL»» » » » » » DoAction_Hide(co
nst CPDF_Action& action); | 204 » bool» » » » » » » DoAction_Hide(co
nst CPDF_Action& action); |
| 205 » FX_BOOL»» » » » » » DoAction_SubmitF
orm(const CPDF_Action& action); | 205 » bool» » » » » » » DoAction_SubmitF
orm(const CPDF_Action& action); |
| 206 » FX_BOOL»» » » » » » DoAction_ResetFo
rm(const CPDF_Action& action); | 206 » bool» » » » » » » DoAction_ResetFo
rm(const CPDF_Action& action); |
| 207 » FX_BOOL»» » » » » » DoAction_ImportD
ata(const CPDF_Action& action); | 207 » bool» » » » » » » DoAction_ImportD
ata(const CPDF_Action& action); |
| 208 | 208 |
| 209 void GetFieldFromObje
cts(const CFX_PtrArray& objects, CFX_PtrArray& fields); | 209 void GetFieldFromObje
cts(const CFX_PtrArray& objects, CFX_PtrArray& fields); |
| 210 » FX_BOOL»» » » » » » IsValidField(CPD
F_Dictionary* pFieldDict); | 210 » bool» » » » » » » IsValidField(CPD
F_Dictionary* pFieldDict); |
| 211 » FX_BOOL»» » » » » » SubmitFields(con
st CFX_WideString& csDestination, const CFX_PtrArray& fields, | 211 » bool» » » » » » » SubmitFields(con
st CFX_WideString& csDestination, const CFX_PtrArray& fields, |
| 212 » » FX_BOOL bIncludeOrExclude, FX_BOOL bUrlEncoded); | 212 » » bool bIncludeOrExclude, bool bUrlEncoded); |
| 213 » FX_BOOL»» » » » » » SubmitForm(const
CFX_WideString& sDestination, FX_BOOL bUrlEncoded); | 213 » bool» » » » » » » SubmitForm(const
CFX_WideString& sDestination, bool bUrlEncoded); |
| 214 » FX_BOOL»» » » » » » ExportFormToFDFT
extBuf(CFX_ByteTextBuf& textBuf); | 214 » bool» » » » » » » ExportFormToFDFT
extBuf(CFX_ByteTextBuf& textBuf); |
| 215 » FX_BOOL»» » » » » » ExportFieldsToFD
FTextBuf(const CFX_PtrArray& fields,FX_BOOL bIncludeOrExclude, CFX_ByteTextBuf&
textBuf); | 215 » bool» » » » » » » ExportFieldsToFD
FTextBuf(const CFX_PtrArray& fields,bool bIncludeOrExclude, CFX_ByteTextBuf& tex
tBuf); |
| 216 CFX_WideString GetTemporaryFileName(con
st CFX_WideString& sFileExt); | 216 CFX_WideString GetTemporaryFileName(con
st CFX_WideString& sFileExt); |
| 217 | 217 |
| 218 private: | 218 private: |
| 219 virtual int BeforeValueChang
e(const CPDF_FormField* pField, CFX_WideString& csValue); | 219 virtual int BeforeValueChang
e(const CPDF_FormField* pField, CFX_WideString& csValue); |
| 220 virtual int AfterValueChange
(const CPDF_FormField* pField); | 220 virtual int AfterValueChange
(const CPDF_FormField* pField); |
| 221 virtual int BeforeSelectionC
hange(const CPDF_FormField* pField, CFX_WideString& csValue); | 221 virtual int BeforeSelectionC
hange(const CPDF_FormField* pField, CFX_WideString& csValue); |
| 222 virtual int AfterSelectionCh
ange(const CPDF_FormField* pField); | 222 virtual int AfterSelectionCh
ange(const CPDF_FormField* pField); |
| 223 virtual int AfterCheckedStat
usChange(const CPDF_FormField* pField, const CFX_ByteArray& statusArray); | 223 virtual int AfterCheckedStat
usChange(const CPDF_FormField* pField, const CFX_ByteArray& statusArray); |
| 224 virtual int BeforeFormReset(
const CPDF_InterForm* pForm); | 224 virtual int BeforeFormReset(
const CPDF_InterForm* pForm); |
| 225 virtual int AfterFormReset(c
onst CPDF_InterForm* pForm); | 225 virtual int AfterFormReset(c
onst CPDF_InterForm* pForm); |
| 226 virtual int BeforeFormImport
Data(const CPDF_InterForm* pForm); | 226 virtual int BeforeFormImport
Data(const CPDF_InterForm* pForm); |
| 227 virtual int AfterFormImportD
ata(const CPDF_InterForm* pForm); | 227 virtual int AfterFormImportD
ata(const CPDF_InterForm* pForm); |
| 228 | 228 |
| 229 » FX_BOOL»» » » » » » FDFToURLEncodedD
ata(CFX_WideString csFDFFile, CFX_WideString csTxtFile); | 229 » bool» » » » » » » FDFToURLEncodedD
ata(CFX_WideString csFDFFile, CFX_WideString csTxtFile); |
| 230 » FX_BOOL»» » » » » » FDFToURLEncodedD
ata(uint8_t*& pBuf, FX_STRSIZE& nBufSize); | 230 » bool» » » » » » » FDFToURLEncodedD
ata(uint8_t*& pBuf, FX_STRSIZE& nBufSize); |
| 231 int GetPageI
ndexByAnnotDict(CPDF_Document* pDocument, CPDF_Dictionary* pAnnotDict) const; | 231 int GetPageI
ndexByAnnotDict(CPDF_Document* pDocument, CPDF_Dictionary* pAnnotDict) const; |
| 232 void DoFDFBuffer(CFX_
ByteString sBuffer); | 232 void DoFDFBuffer(CFX_
ByteString sBuffer); |
| 233 | 233 |
| 234 using CPDFSDK_WidgetMap = std::map<CPDF_FormControl*, CPDFSDK_Widget*>; | 234 using CPDFSDK_WidgetMap = std::map<CPDF_FormControl*, CPDFSDK_Widget*>; |
| 235 | 235 |
| 236 CPDFSDK_Document* m_pDocument; | 236 CPDFSDK_Document* m_pDocument; |
| 237 CPDF_InterForm* m_pInterForm; | 237 CPDF_InterForm* m_pInterForm; |
| 238 CPDFSDK_WidgetMap m_Map; | 238 CPDFSDK_WidgetMap m_Map; |
| 239 FX_BOOL m_bCalculate; | 239 bool m_bCalculate; |
| 240 FX_BOOL m_bBusy; | 240 bool m_bBusy; |
| 241 | 241 |
| 242 public: | 242 public: |
| 243 » FX_BOOL IsNeedHighLight(int nFieldType); | 243 » bool IsNeedHighLight(int nFieldType); |
| 244 void RemoveAllHighLight(); | 244 void RemoveAllHighLight(); |
| 245 void SetHighlightAlpha(uint8_t alpha) {m_iHighlightAlpha = alpha;} | 245 void SetHighlightAlpha(uint8_t alpha) {m_iHighlightAlpha = alpha;} |
| 246 uint8_t GetHighlightAlpha() {return m_iHighlightAlpha;} | 246 uint8_t GetHighlightAlpha() {return m_iHighlightAlpha;} |
| 247 void SetHighlightColor(FX_COLORREF clr, int nFieldType); | 247 void SetHighlightColor(FX_COLORREF clr, int nFieldType); |
| 248 FX_COLORREF GetHighlightColor(int nFieldType); | 248 FX_COLORREF GetHighlightColor(int nFieldType); |
| 249 private: | 249 private: |
| 250 FX_COLORREF m_aHighlightColor[6]; | 250 FX_COLORREF m_aHighlightColor[6]; |
| 251 uint8_t m_iHighlightAlpha; | 251 uint8_t m_iHighlightAlpha; |
| 252 » FX_BOOL»m_bNeedHightlight[6]; | 252 » bool» m_bNeedHightlight[6]; |
| 253 }; | 253 }; |
| 254 | 254 |
| 255 #define BAI_STRUCTURE 0 | 255 #define BAI_STRUCTURE 0 |
| 256 #define BAI_ROW 1 | 256 #define BAI_ROW 1 |
| 257 #define BAI_COLUMN 2 | 257 #define BAI_COLUMN 2 |
| 258 | 258 |
| 259 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot*
> | 259 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot*
> |
| 260 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot*
> | 260 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot*
> |
| 261 class CBA_AnnotIterator | 261 class CBA_AnnotIterator |
| 262 { | 262 { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 276 static CPDF_Rect GetAnnotRect(CPD
FSDK_Annot* pAnnot); | 276 static CPDF_Rect GetAnnotRect(CPD
FSDK_Annot* pAnnot); |
| 277 | 277 |
| 278 CPDFSDK_PageView* m_pPageView; | 278 CPDFSDK_PageView* m_pPageView; |
| 279 CFX_ByteString m_sType; | 279 CFX_ByteString m_sType; |
| 280 CFX_ByteString m_sSubType; | 280 CFX_ByteString m_sSubType; |
| 281 int
m_nTabs; | 281 int
m_nTabs; |
| 282 CPDFSDK_Annots m_Annots; | 282 CPDFSDK_Annots m_Annots; |
| 283 }; | 283 }; |
| 284 | 284 |
| 285 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 285 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
| OLD | NEW |