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_ |
11 #include "time.h" | 11 #include "time.h" |
12 #else | 12 #else |
13 #include <ctime> | 13 #include <ctime> |
14 #endif | 14 #endif |
15 | 15 |
16 #include "core/fpdfdoc/include/fpdf_doc.h" | 16 #include "core/fpdfdoc/include/fpdf_doc.h" |
17 #include "core/fxcrt/include/fx_basic.h" | 17 #include "core/fxcrt/include/fx_basic.h" |
18 #include "fpdfsdk/include/fsdk_define.h" | 18 #include "fpdfsdk/include/fsdk_define.h" |
19 #include "fpdfsdk/include/fx_systemhandler.h" | 19 #include "fpdfsdk/include/fx_systemhandler.h" |
20 | 20 |
21 class CPDFSDK_PageView; | 21 class CPDFSDK_PageView; |
22 class CPDF_Annot; | 22 class CPDF_Annot; |
23 class CPDF_Page; | 23 class CPDF_Page; |
24 class CFX_Matrix; | 24 class CFX_Matrix; |
25 class CPDF_RenderOptions; | 25 class CPDF_RenderOptions; |
26 class CFX_RenderDevice; | 26 class CFX_RenderDevice; |
27 | 27 |
28 #define CFX_IntArray CFX_ArrayTemplate<int> | |
29 | |
30 class CPDFSDK_DateTime { | 28 class CPDFSDK_DateTime { |
31 public: | 29 public: |
32 CPDFSDK_DateTime(); | 30 CPDFSDK_DateTime(); |
33 CPDFSDK_DateTime(const CFX_ByteString& dtStr); | 31 CPDFSDK_DateTime(const CFX_ByteString& dtStr); |
34 CPDFSDK_DateTime(const CPDFSDK_DateTime& datetime); | 32 CPDFSDK_DateTime(const CPDFSDK_DateTime& datetime); |
35 CPDFSDK_DateTime(const FX_SYSTEMTIME& st); | 33 CPDFSDK_DateTime(const FX_SYSTEMTIME& st); |
36 | 34 |
37 CPDFSDK_DateTime& operator=(const CPDFSDK_DateTime& datetime); | 35 CPDFSDK_DateTime& operator=(const CPDFSDK_DateTime& datetime); |
38 CPDFSDK_DateTime& operator=(const FX_SYSTEMTIME& st); | 36 CPDFSDK_DateTime& operator=(const FX_SYSTEMTIME& st); |
39 bool operator==(const CPDFSDK_DateTime& datetime) const; | 37 bool operator==(const CPDFSDK_DateTime& datetime) const; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 161 |
164 // BBS_SOLID | 162 // BBS_SOLID |
165 // BBS_DASH | 163 // BBS_DASH |
166 // BBS_BEVELED | 164 // BBS_BEVELED |
167 // BBS_INSET | 165 // BBS_INSET |
168 // BBS_UNDERLINE | 166 // BBS_UNDERLINE |
169 | 167 |
170 void SetBorderStyle(int nStyle); | 168 void SetBorderStyle(int nStyle); |
171 int GetBorderStyle() const; | 169 int GetBorderStyle() const; |
172 | 170 |
173 void SetBorderDash(const CFX_IntArray& array); | |
174 void GetBorderDash(CFX_IntArray& array) const; | |
175 | |
176 // The background of the annotation's icon when closed | 171 // The background of the annotation's icon when closed |
177 // The title bar of the annotation's pop-up window | 172 // The title bar of the annotation's pop-up window |
178 // The border of a link annotation | 173 // The border of a link annotation |
179 | 174 |
180 void SetColor(FX_COLORREF color); | 175 void SetColor(FX_COLORREF color); |
181 void RemoveColor(); | 176 void RemoveColor(); |
182 FX_BOOL GetColor(FX_COLORREF& color) const; | 177 FX_BOOL GetColor(FX_COLORREF& color) const; |
183 | 178 |
184 FX_BOOL IsVisible() const; | 179 FX_BOOL IsVisible() const; |
185 // action | 180 // action |
(...skipping 27 matching lines...) Expand all Loading... |
213 const CFX_ByteString& sAPState = ""); | 208 const CFX_ByteString& sAPState = ""); |
214 | 209 |
215 protected: | 210 protected: |
216 CPDF_Annot* m_pAnnot; | 211 CPDF_Annot* m_pAnnot; |
217 | 212 |
218 private: | 213 private: |
219 FX_BOOL CreateFormFiller(); | 214 FX_BOOL CreateFormFiller(); |
220 }; | 215 }; |
221 | 216 |
222 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ | 217 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
OLD | NEW |