| 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/cfx_systemhandler.h" | 18 #include "fpdfsdk/cfx_systemhandler.h" |
| 19 #include "fpdfsdk/include/fsdk_common.h" |
| 19 #include "fpdfsdk/include/fsdk_define.h" | 20 #include "fpdfsdk/include/fsdk_define.h" |
| 20 | 21 |
| 21 class CPDFSDK_PageView; | 22 class CPDFSDK_PageView; |
| 22 class CPDF_Annot; | 23 class CPDF_Annot; |
| 23 class CPDF_Page; | 24 class CPDF_Page; |
| 24 class CFX_Matrix; | 25 class CFX_Matrix; |
| 25 class CPDF_RenderOptions; | 26 class CPDF_RenderOptions; |
| 26 class CFX_RenderDevice; | 27 class CFX_RenderDevice; |
| 27 | 28 |
| 28 class CPDFSDK_DateTime { | 29 class CPDFSDK_DateTime { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 149 |
| 149 void SetFlags(uint32_t nFlags); | 150 void SetFlags(uint32_t nFlags); |
| 150 uint32_t GetFlags() const; | 151 uint32_t GetFlags() const; |
| 151 | 152 |
| 152 void SetAppState(const CFX_ByteString& str); | 153 void SetAppState(const CFX_ByteString& str); |
| 153 CFX_ByteString GetAppState() const; | 154 CFX_ByteString GetAppState() const; |
| 154 | 155 |
| 155 void SetStructParent(int key); | 156 void SetStructParent(int key); |
| 156 int GetStructParent() const; | 157 int GetStructParent() const; |
| 157 | 158 |
| 158 // border | |
| 159 void SetBorderWidth(int nWidth); | 159 void SetBorderWidth(int nWidth); |
| 160 int GetBorderWidth() const; | 160 int GetBorderWidth() const; |
| 161 | 161 |
| 162 // BBS_SOLID | 162 void SetBorderStyle(BorderStyle nStyle); |
| 163 // BBS_DASH | 163 BorderStyle GetBorderStyle() const; |
| 164 // BBS_BEVELED | |
| 165 // BBS_INSET | |
| 166 // BBS_UNDERLINE | |
| 167 | |
| 168 void SetBorderStyle(int nStyle); | |
| 169 int GetBorderStyle() const; | |
| 170 | |
| 171 // The background of the annotation's icon when closed | |
| 172 // The title bar of the annotation's pop-up window | |
| 173 // The border of a link annotation | |
| 174 | 164 |
| 175 void SetColor(FX_COLORREF color); | 165 void SetColor(FX_COLORREF color); |
| 176 void RemoveColor(); | 166 void RemoveColor(); |
| 177 FX_BOOL GetColor(FX_COLORREF& color) const; | 167 FX_BOOL GetColor(FX_COLORREF& color) const; |
| 178 | 168 |
| 179 FX_BOOL IsVisible() const; | 169 FX_BOOL IsVisible() const; |
| 180 // action | |
| 181 | 170 |
| 182 CPDF_Action GetAction() const; | 171 CPDF_Action GetAction() const; |
| 183 void SetAction(const CPDF_Action& a); | 172 void SetAction(const CPDF_Action& a); |
| 184 void RemoveAction(); | 173 void RemoveAction(); |
| 185 | 174 |
| 186 CPDF_AAction GetAAction() const; | 175 CPDF_AAction GetAAction() const; |
| 187 void SetAAction(const CPDF_AAction& aa); | 176 void SetAAction(const CPDF_AAction& aa); |
| 188 void RemoveAAction(); | 177 void RemoveAAction(); |
| 189 | 178 |
| 190 virtual CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT); | 179 virtual CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 208 const CFX_ByteString& sAPState = ""); | 197 const CFX_ByteString& sAPState = ""); |
| 209 | 198 |
| 210 protected: | 199 protected: |
| 211 CPDF_Annot* m_pAnnot; | 200 CPDF_Annot* m_pAnnot; |
| 212 | 201 |
| 213 private: | 202 private: |
| 214 FX_BOOL CreateFormFiller(); | 203 FX_BOOL CreateFormFiller(); |
| 215 }; | 204 }; |
| 216 | 205 |
| 217 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ | 206 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
| OLD | NEW |