OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_ANNOT_H_ | |
8 #define FPDFSDK_INCLUDE_CPDFSDK_ANNOT_H_ | |
9 | |
10 #include "core/fpdfdoc/include/cpdf_aaction.h" | |
11 #include "core/fpdfdoc/include/cpdf_annot.h" | |
12 #include "core/fpdfdoc/include/cpdf_defaultappearance.h" | |
13 #include "core/fxcrt/include/fx_basic.h" | |
14 #include "fpdfsdk/cfx_systemhandler.h" | |
15 #include "fpdfsdk/include/fsdk_common.h" | |
16 #include "fpdfsdk/include/fsdk_define.h" | |
17 | |
18 class CFX_Matrix; | |
19 class CFX_RenderDevice; | |
20 class CPDF_Page; | |
21 class CPDF_RenderOptions; | |
22 class CPDFSDK_PageView; | |
23 | |
24 class CPDFSDK_Annot { | |
25 public: | |
26 explicit CPDFSDK_Annot(CPDFSDK_PageView* pPageView); | |
27 virtual ~CPDFSDK_Annot(); | |
28 | |
29 #ifdef PDF_ENABLE_XFA | |
30 virtual FX_BOOL IsXFAField(); | |
31 virtual CXFA_FFWidget* GetXFAWidget() const; | |
32 #endif // PDF_ENABLE_XFA | |
33 | |
34 virtual FX_FLOAT GetMinWidth() const; | |
35 virtual FX_FLOAT GetMinHeight() const; | |
36 // define layout order to 5. | |
dsinclair
2016/08/11 14:01:04
Any idea what this means?
jaepark
2016/08/11 18:09:50
This is used to sort the CPDFSDK_Annot, so that al
dsinclair
2016/08/11 19:11:56
Let's remove this comment as I still don't underst
jaepark
2016/08/11 20:10:02
Done.
| |
37 virtual int GetLayoutOrder() const; | |
38 virtual CPDF_Annot* GetPDFAnnot() const; | |
39 virtual CFX_ByteString GetType() const; | |
40 virtual CFX_ByteString GetSubType() const; | |
41 virtual CFX_FloatRect GetRect() const; | |
42 | |
43 virtual void SetRect(const CFX_FloatRect& rect); | |
44 virtual void Annot_OnDraw(CFX_RenderDevice* pDevice, | |
45 CFX_Matrix* pUser2Device, | |
46 CPDF_RenderOptions* pOptions); | |
47 | |
48 UnderlyingPageType* GetUnderlyingPage(); | |
49 CPDF_Page* GetPDFPage(); | |
50 #ifdef PDF_ENABLE_XFA | |
51 CPDFXFA_Page* GetPDFXFAPage(); | |
52 #endif // PDF_ENABLE_XFA | |
53 | |
54 void SetPage(CPDFSDK_PageView* pPageView); | |
55 CPDFSDK_PageView* GetPageView() const { return m_pPageView; } | |
56 | |
57 // Tab Order | |
dsinclair
2016/08/11 14:01:04
This comment and the // Selection one aren't usefu
jaepark
2016/08/11 18:09:50
Removed.
| |
58 int GetTabOrder(); | |
59 void SetTabOrder(int iTabOrder); | |
60 | |
61 // Selection | |
62 FX_BOOL IsSelected(); | |
63 void SetSelected(FX_BOOL bSelected); | |
64 | |
65 protected: | |
66 CPDFSDK_PageView* m_pPageView; | |
67 FX_BOOL m_bSelected; | |
68 int m_nTabOrder; | |
69 }; | |
70 | |
71 #endif // FPDFSDK_INCLUDE_CPDFSDK_ANNOT_H_ | |
OLD | NEW |