| 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 20 matching lines...) Expand all Loading... |
| 31 { | 31 { |
| 32 public: | 32 public: |
| 33 CPDFSDK_DateTime(); | 33 CPDFSDK_DateTime(); |
| 34 CPDFSDK_DateTime(const CFX_ByteString& dtStr); | 34 CPDFSDK_DateTime(const CFX_ByteString& dtStr); |
| 35 CPDFSDK_DateTime(const CPDFSDK_DateTime& datetime); | 35 CPDFSDK_DateTime(const CPDFSDK_DateTime& datetime); |
| 36 CPDFSDK_DateTime(const FX_SYSTEMTIME& st); | 36 CPDFSDK_DateTime(const FX_SYSTEMTIME& st); |
| 37 | 37 |
| 38 | 38 |
| 39 CPDFSDK_DateTime& operator = (const CPDFSDK_DateTime& datetime); | 39 CPDFSDK_DateTime& operator = (const CPDFSDK_DateTime& datetime); |
| 40 CPDFSDK_DateTime& operator = (const FX_SYSTEMTIME& st); | 40 CPDFSDK_DateTime& operator = (const FX_SYSTEMTIME& st); |
| 41 » FX_BOOL»» » » operator == (CPDFSDK_DateTime& datetime)
; | 41 » bool» » » » operator == (CPDFSDK_DateTime& datetime)
; |
| 42 » FX_BOOL»» » » operator != (CPDFSDK_DateTime& datetime)
; | 42 » bool» » » » operator != (CPDFSDK_DateTime& datetime)
; |
| 43 » FX_BOOL»» » » operator > (CPDFSDK_DateTime& datetime); | 43 » bool» » » » operator > (CPDFSDK_DateTime& datetime); |
| 44 » FX_BOOL»» » » operator >= (CPDFSDK_DateTime& datetime)
; | 44 » bool» » » » operator >= (CPDFSDK_DateTime& datetime)
; |
| 45 » FX_BOOL»» » » operator < (CPDFSDK_DateTime& datetime); | 45 » bool» » » » operator < (CPDFSDK_DateTime& datetime); |
| 46 » FX_BOOL»» » » operator <= (CPDFSDK_DateTime& datetime)
; | 46 » bool» » » » operator <= (CPDFSDK_DateTime& datetime)
; |
| 47 operator time_t(); | 47 operator time_t(); |
| 48 | 48 |
| 49 CPDFSDK_DateTime& FromPDFDateTimeString(const CFX_ByteString& dtSt
r); | 49 CPDFSDK_DateTime& FromPDFDateTimeString(const CFX_ByteString& dtSt
r); |
| 50 CFX_ByteString ToCommonDateTimeString(); | 50 CFX_ByteString ToCommonDateTimeString(); |
| 51 CFX_ByteString ToPDFDateTimeString(); | 51 CFX_ByteString ToPDFDateTimeString(); |
| 52 void ToSystemTime(FX_SYSTEMTIME& st); | 52 void ToSystemTime(FX_SYSTEMTIME& st); |
| 53 CPDFSDK_DateTime ToGMT(); | 53 CPDFSDK_DateTime ToGMT(); |
| 54 CPDFSDK_DateTime& AddDays(short days); | 54 CPDFSDK_DateTime& AddDays(short days); |
| 55 CPDFSDK_DateTime& AddSeconds(int seconds); | 55 CPDFSDK_DateTime& AddSeconds(int seconds); |
| 56 | 56 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 85 | 85 |
| 86 void SetPage(CPDFSDK_PageView
* pPageView); | 86 void SetPage(CPDFSDK_PageView
* pPageView); |
| 87 CPDFSDK_PageView* GetPageView(); | 87 CPDFSDK_PageView* GetPageView(); |
| 88 FX_DWORD GetFlags(); | 88 FX_DWORD GetFlags(); |
| 89 | 89 |
| 90 // Tab Order | 90 // Tab Order |
| 91 int GetTabOrder(); | 91 int GetTabOrder(); |
| 92 void SetTabOrder(int iTabOrde
r); | 92 void SetTabOrder(int iTabOrde
r); |
| 93 | 93 |
| 94 // Selection | 94 // Selection |
| 95 » FX_BOOL»» » » » » IsSelected(); | 95 » bool» » » » » » IsSelected(); |
| 96 » void» » » » » » SetSelected(FX_BOOL bSel
ected); | 96 » void» » » » » » SetSelected(bool bSelect
ed); |
| 97 | 97 |
| 98 CFX_ByteString GetType() const; | 98 CFX_ByteString GetType() const; |
| 99 virtual CFX_ByteString GetSubType() const; | 99 virtual CFX_ByteString GetSubType() const; |
| 100 | 100 |
| 101 CPDF_Page* GetPDFPage(); | 101 CPDF_Page* GetPDFPage(); |
| 102 | 102 |
| 103 public: | 103 public: |
| 104 CPDF_Dictionary* GetAnnotDict() const; | 104 CPDF_Dictionary* GetAnnotDict() const; |
| 105 | 105 |
| 106 void SetRect(const CPDF_Rect&
rect); | 106 void SetRect(const CPDF_Rect&
rect); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 void SetBorderDash(const CFX_
IntArray& array); | 140 void SetBorderDash(const CFX_
IntArray& array); |
| 141 void GetBorderDash(CFX_IntArr
ay& array) const; | 141 void GetBorderDash(CFX_IntArr
ay& array) const; |
| 142 | 142 |
| 143 //The background of the annotation's icon when closed | 143 //The background of the annotation's icon when closed |
| 144 //The title bar of the annotation's pop-up window | 144 //The title bar of the annotation's pop-up window |
| 145 //The border of a link annotation | 145 //The border of a link annotation |
| 146 | 146 |
| 147 void SetColor(FX_COLORREF col
or); | 147 void SetColor(FX_COLORREF col
or); |
| 148 void RemoveColor(); | 148 void RemoveColor(); |
| 149 » FX_BOOL»» » » » » GetColor(FX_COLORREF& co
lor) const; | 149 » bool» » » » » » GetColor(FX_COLORREF& co
lor) const; |
| 150 | 150 |
| 151 » FX_BOOL»» » » » » IsVisible() const; | 151 » bool» » » » » » IsVisible() const; |
| 152 //action | 152 //action |
| 153 | 153 |
| 154 CPDF_Action GetAction() const; | 154 CPDF_Action GetAction() const; |
| 155 void SetAction(const CPDF_Act
ion& a); | 155 void SetAction(const CPDF_Act
ion& a); |
| 156 void RemoveAction(); | 156 void RemoveAction(); |
| 157 | 157 |
| 158 CPDF_AAction GetAAction() const; | 158 CPDF_AAction GetAAction() const; |
| 159 void SetAAction(const CPDF_AA
ction& aa); | 159 void SetAAction(const CPDF_AA
ction& aa); |
| 160 void RemoveAAction(); | 160 void RemoveAAction(); |
| 161 | 161 |
| 162 virtual CPDF_Action GetAAction(CPDF_AAction::AAction
Type eAAT); | 162 virtual CPDF_Action GetAAction(CPDF_AAction::AAction
Type eAAT); |
| 163 | 163 |
| 164 public: | 164 public: |
| 165 » FX_BOOL»» » » » » IsAppearanceValid(); | 165 » bool» » » » » » IsAppearanceValid(); |
| 166 » FX_BOOL»» » » » » IsAppearanceValid(CPDF_A
nnot::AppearanceMode mode); | 166 » bool» » » » » » IsAppearanceValid(CPDF_A
nnot::AppearanceMode mode); |
| 167 void DrawAppearance(CFX_Rende
rDevice* pDevice, const CPDF_Matrix* pUser2Device, | 167 void DrawAppearance(CFX_Rende
rDevice* pDevice, const CPDF_Matrix* pUser2Device, |
| 168 CPDF_Annot::AppearanceMode mode, const CPDF_RenderOptions* pOpti
ons); | 168 CPDF_Annot::AppearanceMode mode, const CPDF_RenderOptions* pOpti
ons); |
| 169 void DrawBorder(CFX_RenderDev
ice* pDevice, const CPDF_Matrix* pUser2Device, | 169 void DrawBorder(CFX_RenderDev
ice* pDevice, const CPDF_Matrix* pUser2Device, |
| 170 const CPDF_RenderOptions* pOptions); | 170 const CPDF_RenderOptions* pOptions); |
| 171 | 171 |
| 172 void ClearCachedAP(); | 172 void ClearCachedAP(); |
| 173 | 173 |
| 174 void WriteAppearance(const CF
X_ByteString& sAPType, const CPDF_Rect& rcBBox, | 174 void WriteAppearance(const CF
X_ByteString& sAPType, const CPDF_Rect& rcBBox, |
| 175 const CPDF_Matrix& matrix, const CFX_ByteString& sContents, | 175 const CPDF_Matrix& matrix, const CFX_ByteString& sContents, |
| 176 const CFX_ByteString& sAPState = ""); | 176 const CFX_ByteString& sAPState = ""); |
| 177 | 177 |
| 178 public: | 178 public: |
| 179 virtual void Annot_OnDraw(CFX_RenderDevice* pDevice,
CPDF_Matrix* pUser2Device,CPDF_RenderOptions* pOptions); | 179 virtual void Annot_OnDraw(CFX_RenderDevice* pDevice,
CPDF_Matrix* pUser2Device,CPDF_RenderOptions* pOptions); |
| 180 public: | 180 public: |
| 181 | 181 |
| 182 | 182 |
| 183 private: | 183 private: |
| 184 » FX_BOOL CreateFormFiller(); | 184 » bool CreateFormFiller(); |
| 185 protected: | 185 protected: |
| 186 CPDF_Annot* m_pAnnot; | 186 CPDF_Annot* m_pAnnot; |
| 187 CPDFSDK_PageView* m_pPageView; | 187 CPDFSDK_PageView* m_pPageView; |
| 188 » FX_BOOL»» » » m_bSelected; | 188 » bool» » » » m_bSelected; |
| 189 int m_nTabOrder; | 189 int m_nTabOrder; |
| 190 | 190 |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ | 193 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
| OLD | NEW |