| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 int32_t GetValueAge() const; | 180 int32_t GetValueAge() const; |
| 181 | 181 |
| 182 private: | 182 private: |
| 183 void ResetAppearance_PushButton(); | 183 void ResetAppearance_PushButton(); |
| 184 void ResetAppearance_CheckBox(); | 184 void ResetAppearance_CheckBox(); |
| 185 void ResetAppearance_RadioButton(); | 185 void ResetAppearance_RadioButton(); |
| 186 void ResetAppearance_ComboBox(const FX_WCHAR* sValue); | 186 void ResetAppearance_ComboBox(const FX_WCHAR* sValue); |
| 187 void ResetAppearance_ListBox(); | 187 void ResetAppearance_ListBox(); |
| 188 void ResetAppearance_TextField(const FX_WCHAR* sValue); | 188 void ResetAppearance_TextField(const FX_WCHAR* sValue); |
| 189 | 189 |
| 190 CFX_FloatRect GetClientRect() const; | 190 CPDF_Rect GetClientRect() const; |
| 191 CFX_FloatRect GetRotatedRect() const; | 191 CPDF_Rect GetRotatedRect() const; |
| 192 | 192 |
| 193 CFX_ByteString GetBackgroundAppStream() const; | 193 CFX_ByteString GetBackgroundAppStream() const; |
| 194 CFX_ByteString GetBorderAppStream() const; | 194 CFX_ByteString GetBorderAppStream() const; |
| 195 CFX_Matrix GetMatrix() const; | 195 CFX_Matrix GetMatrix() const; |
| 196 | 196 |
| 197 CPWL_Color GetTextPWLColor() const; | 197 CPWL_Color GetTextPWLColor() const; |
| 198 CPWL_Color GetBorderPWLColor() const; | 198 CPWL_Color GetBorderPWLColor() const; |
| 199 CPWL_Color GetFillPWLColor() const; | 199 CPWL_Color GetFillPWLColor() const; |
| 200 | 200 |
| 201 void AddImageToAppearance(const CFX_ByteString& sAPType, CPDF_Stream* pImage); | 201 void AddImageToAppearance(const CFX_ByteString& sAPType, CPDF_Stream* pImage); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 const CFX_ByteString& sSubType); | 377 const CFX_ByteString& sSubType); |
| 378 ~CBA_AnnotIterator(); | 378 ~CBA_AnnotIterator(); |
| 379 | 379 |
| 380 CPDFSDK_Annot* GetFirstAnnot(); | 380 CPDFSDK_Annot* GetFirstAnnot(); |
| 381 CPDFSDK_Annot* GetLastAnnot(); | 381 CPDFSDK_Annot* GetLastAnnot(); |
| 382 CPDFSDK_Annot* GetNextAnnot(CPDFSDK_Annot* pAnnot); | 382 CPDFSDK_Annot* GetNextAnnot(CPDFSDK_Annot* pAnnot); |
| 383 CPDFSDK_Annot* GetPrevAnnot(CPDFSDK_Annot* pAnnot); | 383 CPDFSDK_Annot* GetPrevAnnot(CPDFSDK_Annot* pAnnot); |
| 384 | 384 |
| 385 private: | 385 private: |
| 386 void GenerateResults(); | 386 void GenerateResults(); |
| 387 static CFX_FloatRect GetAnnotRect(const CPDFSDK_Annot* pAnnot); | 387 static CPDF_Rect GetAnnotRect(const CPDFSDK_Annot* pAnnot); |
| 388 | 388 |
| 389 // Function signature compatible with std::sort(). | 389 // Function signature compatible with std::sort(). |
| 390 static bool CompareByLeftAscending(const CPDFSDK_Annot* p1, | 390 static bool CompareByLeftAscending(const CPDFSDK_Annot* p1, |
| 391 const CPDFSDK_Annot* p2); | 391 const CPDFSDK_Annot* p2); |
| 392 static bool CompareByTopDescending(const CPDFSDK_Annot* p1, | 392 static bool CompareByTopDescending(const CPDFSDK_Annot* p1, |
| 393 const CPDFSDK_Annot* p2); | 393 const CPDFSDK_Annot* p2); |
| 394 | 394 |
| 395 TabOrder m_eTabOrder; | 395 TabOrder m_eTabOrder; |
| 396 CPDFSDK_PageView* m_pPageView; | 396 CPDFSDK_PageView* m_pPageView; |
| 397 CFX_ByteString m_sType; | 397 CFX_ByteString m_sType; |
| 398 CFX_ByteString m_sSubType; | 398 CFX_ByteString m_sSubType; |
| 399 std::vector<CPDFSDK_Annot*> m_Annots; | 399 std::vector<CPDFSDK_Annot*> m_Annots; |
| 400 }; | 400 }; |
| 401 | 401 |
| 402 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 402 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
| OLD | NEW |