| 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_BASEANNOT_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
| 8 #define FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
| 9 | 9 |
| 10 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 public: | 30 public: |
| 31 CPDFSDK_DateTime(); | 31 CPDFSDK_DateTime(); |
| 32 CPDFSDK_DateTime(const CFX_ByteString& dtStr); | 32 CPDFSDK_DateTime(const CFX_ByteString& dtStr); |
| 33 CPDFSDK_DateTime(const CPDFSDK_DateTime& datetime); | 33 CPDFSDK_DateTime(const CPDFSDK_DateTime& datetime); |
| 34 CPDFSDK_DateTime(const FX_SYSTEMTIME& st); | 34 CPDFSDK_DateTime(const FX_SYSTEMTIME& st); |
| 35 | 35 |
| 36 CPDFSDK_DateTime& operator=(const CPDFSDK_DateTime& datetime); | 36 CPDFSDK_DateTime& operator=(const CPDFSDK_DateTime& datetime); |
| 37 CPDFSDK_DateTime& operator=(const FX_SYSTEMTIME& st); | 37 CPDFSDK_DateTime& operator=(const FX_SYSTEMTIME& st); |
| 38 bool operator==(const CPDFSDK_DateTime& datetime) const; | 38 bool operator==(const CPDFSDK_DateTime& datetime) const; |
| 39 bool operator!=(const CPDFSDK_DateTime& datetime) const; | 39 bool operator!=(const CPDFSDK_DateTime& datetime) const; |
| 40 bool operator>(const CPDFSDK_DateTime& datetime) const; | |
| 41 bool operator>=(const CPDFSDK_DateTime& datetime) const; | |
| 42 bool operator<(const CPDFSDK_DateTime& datetime) const; | |
| 43 bool operator<=(const CPDFSDK_DateTime& datetime) const; | |
| 44 operator time_t(); | |
| 45 | 40 |
| 46 CPDFSDK_DateTime& FromPDFDateTimeString(const CFX_ByteString& dtStr); | 41 CPDFSDK_DateTime& FromPDFDateTimeString(const CFX_ByteString& dtStr); |
| 47 CFX_ByteString ToCommonDateTimeString(); | 42 CFX_ByteString ToCommonDateTimeString(); |
| 48 CFX_ByteString ToPDFDateTimeString(); | 43 CFX_ByteString ToPDFDateTimeString(); |
| 49 void ToSystemTime(FX_SYSTEMTIME& st); | 44 void ToSystemTime(FX_SYSTEMTIME& st); |
| 45 time_t ToTime_t() const; |
| 50 CPDFSDK_DateTime ToGMT() const; | 46 CPDFSDK_DateTime ToGMT() const; |
| 51 CPDFSDK_DateTime& AddDays(short days); | 47 CPDFSDK_DateTime& AddDays(short days); |
| 52 CPDFSDK_DateTime& AddSeconds(int seconds); | 48 CPDFSDK_DateTime& AddSeconds(int seconds); |
| 53 | 49 |
| 54 void ResetDateTime(); | 50 void ResetDateTime(); |
| 55 | 51 |
| 56 struct FX_DATETIME { | 52 struct FX_DATETIME { |
| 57 int16_t year; | 53 int16_t year; |
| 58 uint8_t month; | 54 uint8_t month; |
| 59 uint8_t day; | 55 uint8_t day; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 const CFX_ByteString& sAPState = ""); | 193 const CFX_ByteString& sAPState = ""); |
| 198 | 194 |
| 199 protected: | 195 protected: |
| 200 CPDF_Annot* m_pAnnot; | 196 CPDF_Annot* m_pAnnot; |
| 201 | 197 |
| 202 private: | 198 private: |
| 203 FX_BOOL CreateFormFiller(); | 199 FX_BOOL CreateFormFiller(); |
| 204 }; | 200 }; |
| 205 | 201 |
| 206 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ | 202 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
| OLD | NEW |