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

Side by Side Diff: fpdfsdk/include/fsdk_baseform.h

Issue 1171733003: Remove typdefs for pointer types in fx_system.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual fixes. Created 5 years, 6 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
« no previous file with comments | « fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h ('k') | fpdfsdk/include/fsdk_mgr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 CFX_WideString GetAlternateName() const ; 101 CFX_WideString GetAlternateName() const ;
102 102
103 //Set Properties. 103 //Set Properties.
104 void SetCheck(FX_BOOL bChecked, FX_BOOL bNotify); 104 void SetCheck(FX_BOOL bChecked, FX_BOOL bNotify);
105 void SetValue(const C FX_WideString& sValue, FX_BOOL bNotify); 105 void SetValue(const C FX_WideString& sValue, FX_BOOL bNotify);
106 void SetDefaultValue( const CFX_WideString& sValue); 106 void SetDefaultValue( const CFX_WideString& sValue);
107 void SetOptionSelecti on(int index, FX_BOOL bSelected, FX_BOOL bNotify); 107 void SetOptionSelecti on(int index, FX_BOOL bSelected, FX_BOOL bNotify);
108 void ClearSelection(F X_BOOL bNotify); 108 void ClearSelection(F X_BOOL bNotify);
109 void SetTopVisibleInd ex(int index); 109 void SetTopVisibleInd ex(int index);
110 110
111 » void» » » » » » » ResetAppearance( FX_LPCWSTR sValue, FX_BOOL bValueChanged); 111 » void» » » » » » » ResetAppearance( const FX_WCHAR* sValue, FX_BOOL bValueChanged);
112 void ResetFieldAppear ance(FX_BOOL bValueChanged); 112 void ResetFieldAppear ance(FX_BOOL bValueChanged);
113 void UpdateField(); 113 void UpdateField();
114 CFX_WideString OnFormat(int nCommitKey, FX_BOOL& bFormated); 114 CFX_WideString OnFormat(int nCommitKey, FX_BOOL& bFormated);
115 115
116 //Message. 116 //Message.
117 FX_BOOL OnAAction(CPDF_A Action::AActionType type, PDFSDK_FieldAction& data, 117 FX_BOOL OnAAction(CPDF_A Action::AActionType type, PDFSDK_FieldAction& data,
118 CPDFSDK_PageView* pPageView); 118 CPDFSDK_PageView* pPageView);
119 119
120 CPDFSDK_InterForm* GetInterForm() const {re turn m_pInterForm;} 120 CPDFSDK_InterForm* GetInterForm() const {re turn m_pInterForm;}
121 CPDF_FormField* GetFormField() const; 121 CPDF_FormField* GetFormField() const;
122 CPDF_FormControl* GetFormControl() const; 122 CPDF_FormControl* GetFormControl() const;
123 static CPDF_FormControl* GetFormControl(CPDF_InterForm* p InterForm, CPDF_Dictionary* pAnnotDict); 123 static CPDF_FormControl* GetFormControl(CPDF_InterForm* p InterForm, CPDF_Dictionary* pAnnotDict);
124 124
125 void DrawShadow(CFX_R enderDevice* pDevice, CPDFSDK_PageView* pPageView); 125 void DrawShadow(CFX_R enderDevice* pDevice, CPDFSDK_PageView* pPageView);
126 126
127 void SetAppModified() ; 127 void SetAppModified() ;
128 void ClearAppModified (); 128 void ClearAppModified ();
129 FX_BOOL IsAppModified() const; 129 FX_BOOL IsAppModified() const;
130 130
131 int32_t GetAppearanceAge() const ; 131 int32_t GetAppearanceAge() const ;
132 int32_t GetValueAge() const; 132 int32_t GetValueAge() const;
133 133
134 private: 134 private:
135 void ResetAppearance_ PushButton(); 135 void ResetAppearance_ PushButton();
136 void ResetAppearance_ CheckBox(); 136 void ResetAppearance_ CheckBox();
137 void ResetAppearance_ RadioButton(); 137 void ResetAppearance_ RadioButton();
138 » void» » » » » » » ResetAppearance_ ComboBox(FX_LPCWSTR sValue); 138 » void» » » » » » » ResetAppearance_ ComboBox(const FX_WCHAR* sValue);
139 void ResetAppearance_ ListBox(); 139 void ResetAppearance_ ListBox();
140 » void» » » » » » » ResetAppearance_ TextField(FX_LPCWSTR sValue); 140 » void» » » » » » » ResetAppearance_ TextField(const FX_WCHAR* sValue);
141 141
142 CPDF_Rect GetClientRect() const; 142 CPDF_Rect GetClientRect() const;
143 CPDF_Rect GetRotatedRect() const; 143 CPDF_Rect GetRotatedRect() const;
144 144
145 CFX_ByteString GetBackgroundAppStream() const; 145 CFX_ByteString GetBackgroundAppStream() const;
146 CFX_ByteString GetBorderAppStream() con st; 146 CFX_ByteString GetBorderAppStream() con st;
147 CPDF_Matrix GetMatrix() cons t; 147 CPDF_Matrix GetMatrix() cons t;
148 148
149 CPWL_Color GetTextPWLColor( ) const; 149 CPWL_Color GetTextPWLColor( ) const;
150 CPWL_Color GetBorderPWLColo r() const; 150 CPWL_Color GetBorderPWLColo r() const;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 #ifdef _WIN32 194 #ifdef _WIN32
195 CPDF_Stream* LoadImageFromFile(const CFX_WideString& sFile); 195 CPDF_Stream* LoadImageFromFile(const CFX_WideString& sFile);
196 #endif 196 #endif
197 197
198 void OnKeyStrokeCommi t(CPDF_FormField* pFormField, CFX_WideString& csValue, FX_BOOL& bRC); 198 void OnKeyStrokeCommi t(CPDF_FormField* pFormField, CFX_WideString& csValue, FX_BOOL& bRC);
199 void OnValidate(CPDF_ FormField* pFormField, CFX_WideString& csValue, FX_BOOL& bRC); 199 void OnValidate(CPDF_ FormField* pFormField, CFX_WideString& csValue, FX_BOOL& bRC);
200 void OnCalculate(CPDF _FormField* pFormField = NULL); 200 void OnCalculate(CPDF _FormField* pFormField = NULL);
201 CFX_WideString OnFormat(CPDF_FormField* pFormField, int nCommitKey, FX_BOOL& bFormated); 201 CFX_WideString OnFormat(CPDF_FormField* pFormField, int nCommitKey, FX_BOOL& bFormated);
202 202
203 » void» » » » » » » ResetFieldAppear ance(CPDF_FormField* pFormField, FX_LPCWSTR sValue, FX_BOOL bValueChanged); 203 » void» » » » » » » ResetFieldAppear ance(CPDF_FormField* pFormField, const FX_WCHAR* sValue, FX_BOOL bValueChanged);
204 void UpdateField(CPDF _FormField* pFormField); 204 void UpdateField(CPDF _FormField* pFormField);
205 205
206 public: 206 public:
207 FX_BOOL DoAction_Hide(co nst CPDF_Action& action); 207 FX_BOOL DoAction_Hide(co nst CPDF_Action& action);
208 FX_BOOL DoAction_SubmitF orm(const CPDF_Action& action); 208 FX_BOOL DoAction_SubmitF orm(const CPDF_Action& action);
209 FX_BOOL DoAction_ResetFo rm(const CPDF_Action& action); 209 FX_BOOL DoAction_ResetFo rm(const CPDF_Action& action);
210 FX_BOOL DoAction_ImportD ata(const CPDF_Action& action); 210 FX_BOOL DoAction_ImportD ata(const CPDF_Action& action);
211 211
212 void GetFieldFromObje cts(const CFX_PtrArray& objects, CFX_PtrArray& fields); 212 void GetFieldFromObje cts(const CFX_PtrArray& objects, CFX_PtrArray& fields);
213 FX_BOOL IsValidField(CPD F_Dictionary* pFieldDict); 213 FX_BOOL IsValidField(CPD F_Dictionary* pFieldDict);
(...skipping 10 matching lines...) Expand all
224 virtual int BeforeSelectionC hange(const CPDF_FormField* pField, CFX_WideString& csValue); 224 virtual int BeforeSelectionC hange(const CPDF_FormField* pField, CFX_WideString& csValue);
225 virtual int AfterSelectionCh ange(const CPDF_FormField* pField); 225 virtual int AfterSelectionCh ange(const CPDF_FormField* pField);
226 virtual int AfterCheckedStat usChange(const CPDF_FormField* pField, const CFX_ByteArray& statusArray); 226 virtual int AfterCheckedStat usChange(const CPDF_FormField* pField, const CFX_ByteArray& statusArray);
227 virtual int BeforeFormReset( const CPDF_InterForm* pForm); 227 virtual int BeforeFormReset( const CPDF_InterForm* pForm);
228 virtual int AfterFormReset(c onst CPDF_InterForm* pForm); 228 virtual int AfterFormReset(c onst CPDF_InterForm* pForm);
229 virtual int BeforeFormImport Data(const CPDF_InterForm* pForm); 229 virtual int BeforeFormImport Data(const CPDF_InterForm* pForm);
230 virtual int AfterFormImportD ata(const CPDF_InterForm* pForm); 230 virtual int AfterFormImportD ata(const CPDF_InterForm* pForm);
231 231
232 private: 232 private:
233 FX_BOOL FDFToURLEncodedD ata(CFX_WideString csFDFFile, CFX_WideString csTxtFile); 233 FX_BOOL FDFToURLEncodedD ata(CFX_WideString csFDFFile, CFX_WideString csTxtFile);
234 » FX_BOOL»» » » » » » FDFToURLEncodedD ata(FX_LPBYTE& pBuf, FX_STRSIZE& nBufSize); 234 » FX_BOOL»» » » » » » FDFToURLEncodedD ata(uint8_t*& pBuf, FX_STRSIZE& nBufSize);
235 int GetPageI ndexByAnnotDict(CPDF_Document* pDocument, CPDF_Dictionary* pAnnotDict) const; 235 int GetPageI ndexByAnnotDict(CPDF_Document* pDocument, CPDF_Dictionary* pAnnotDict) const;
236 void DoFDFBuffer(CFX_ ByteString sBuffer); 236 void DoFDFBuffer(CFX_ ByteString sBuffer);
237 237
238 private: 238 private:
239 CPDFSDK_Document* m_pDocument; 239 CPDFSDK_Document* m_pDocument;
240 CPDF_InterForm* m_pInterForm; 240 CPDF_InterForm* m_pInterForm;
241 CPDFSDK_WidgetMap m_Map; 241 CPDFSDK_WidgetMap m_Map;
242 FX_BOOL m_bCalculate; 242 FX_BOOL m_bCalculate;
243 FX_BOOL m_bBusy; 243 FX_BOOL m_bBusy;
244 244
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 static CPDF_Rect GetAnnotRect(CPD FSDK_Annot* pAnnot); 279 static CPDF_Rect GetAnnotRect(CPD FSDK_Annot* pAnnot);
280 280
281 CPDFSDK_PageView* m_pPageView; 281 CPDFSDK_PageView* m_pPageView;
282 CFX_ByteString m_sType; 282 CFX_ByteString m_sType;
283 CFX_ByteString m_sSubType; 283 CFX_ByteString m_sSubType;
284 int m_nTabs; 284 int m_nTabs;
285 CPDFSDK_Annots m_Annots; 285 CPDFSDK_Annots m_Annots;
286 }; 286 };
287 287
288 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 288 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h ('k') | fpdfsdk/include/fsdk_mgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698