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_PDFWINDOW_PWL_NOTE_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ |
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ |
9 | 9 |
10 #include "PWL_Button.h" | 10 #include "PWL_Button.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 class CPWL_Note_Icon : public CPWL_Wnd { | 82 class CPWL_Note_Icon : public CPWL_Wnd { |
83 public: | 83 public: |
84 CPWL_Note_Icon(); | 84 CPWL_Note_Icon(); |
85 ~CPWL_Note_Icon() override; | 85 ~CPWL_Note_Icon() override; |
86 | 86 |
87 void SetIconType(int32_t nType); | 87 void SetIconType(int32_t nType); |
88 | 88 |
89 protected: | 89 protected: |
90 // CPWL_Wnd | 90 // CPWL_Wnd |
91 void DrawThisAppearance(CFX_RenderDevice* pDevice, | 91 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
92 CPDF_Matrix* pUser2Device) override; | 92 CFX_Matrix* pUser2Device) override; |
93 | 93 |
94 private: | 94 private: |
95 int32_t m_nType; | 95 int32_t m_nType; |
96 }; | 96 }; |
97 | 97 |
98 class CPWL_Note_CloseBox : public CPWL_Button { | 98 class CPWL_Note_CloseBox : public CPWL_Button { |
99 public: | 99 public: |
100 CPWL_Note_CloseBox(); | 100 CPWL_Note_CloseBox(); |
101 ~CPWL_Note_CloseBox() override; | 101 ~CPWL_Note_CloseBox() override; |
102 | 102 |
103 protected: | 103 protected: |
104 // CPWL_Button | 104 // CPWL_Button |
105 void DrawThisAppearance(CFX_RenderDevice* pDevice, | 105 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
106 CPDF_Matrix* pUser2Device) override; | 106 CFX_Matrix* pUser2Device) override; |
107 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; | 107 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; |
108 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_DWORD nFlag) override; | 108 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_DWORD nFlag) override; |
109 | 109 |
110 private: | 110 private: |
111 FX_BOOL m_bMouseDown; | 111 FX_BOOL m_bMouseDown; |
112 }; | 112 }; |
113 | 113 |
114 class CPWL_Note_LBBox : public CPWL_Wnd { | 114 class CPWL_Note_LBBox : public CPWL_Wnd { |
115 public: | 115 public: |
116 CPWL_Note_LBBox(); | 116 CPWL_Note_LBBox(); |
117 ~CPWL_Note_LBBox() override; | 117 ~CPWL_Note_LBBox() override; |
118 | 118 |
119 protected: | 119 protected: |
120 // CPWL_Wnd | 120 // CPWL_Wnd |
121 void DrawThisAppearance(CFX_RenderDevice* pDevice, | 121 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
122 CPDF_Matrix* pUser2Device) override; | 122 CFX_Matrix* pUser2Device) override; |
123 }; | 123 }; |
124 | 124 |
125 class CPWL_Note_RBBox : public CPWL_Wnd { | 125 class CPWL_Note_RBBox : public CPWL_Wnd { |
126 public: | 126 public: |
127 CPWL_Note_RBBox(); | 127 CPWL_Note_RBBox(); |
128 ~CPWL_Note_RBBox() override; | 128 ~CPWL_Note_RBBox() override; |
129 | 129 |
130 protected: | 130 protected: |
131 // CPWL_Wnd | 131 // CPWL_Wnd |
132 void DrawThisAppearance(CFX_RenderDevice* pDevice, | 132 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
133 CPDF_Matrix* pUser2Device) override; | 133 CFX_Matrix* pUser2Device) override; |
134 }; | 134 }; |
135 | 135 |
136 class CPWL_Note_Edit : public CPWL_Edit { | 136 class CPWL_Note_Edit : public CPWL_Edit { |
137 public: | 137 public: |
138 CPWL_Note_Edit(); | 138 CPWL_Note_Edit(); |
139 ~CPWL_Note_Edit() override; | 139 ~CPWL_Note_Edit() override; |
140 | 140 |
141 void EnableNotify(FX_BOOL bEnable) { m_bEnableNotify = bEnable; } | 141 void EnableNotify(FX_BOOL bEnable) { m_bEnableNotify = bEnable; } |
142 | 142 |
143 // CPWL_Edit | 143 // CPWL_Edit |
(...skipping 22 matching lines...) Expand all Loading... |
166 CPWL_Note_Options(); | 166 CPWL_Note_Options(); |
167 ~CPWL_Note_Options() override; | 167 ~CPWL_Note_Options() override; |
168 | 168 |
169 CPDF_Rect GetContentRect() const; | 169 CPDF_Rect GetContentRect() const; |
170 void SetText(const CFX_WideString& sText); | 170 void SetText(const CFX_WideString& sText); |
171 | 171 |
172 // CPWL_Wnd | 172 // CPWL_Wnd |
173 void RePosChildWnd() override; | 173 void RePosChildWnd() override; |
174 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; | 174 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; |
175 void DrawThisAppearance(CFX_RenderDevice* pDevice, | 175 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
176 CPDF_Matrix* pUser2Device) override; | 176 CFX_Matrix* pUser2Device) override; |
177 void SetTextColor(const CPWL_Color& color) override; | 177 void SetTextColor(const CPWL_Color& color) override; |
178 | 178 |
179 private: | 179 private: |
180 CPWL_Label* m_pText; | 180 CPWL_Label* m_pText; |
181 }; | 181 }; |
182 | 182 |
183 class CPWL_Note_Contents : public CPWL_ListCtrl { | 183 class CPWL_Note_Contents : public CPWL_ListCtrl { |
184 public: | 184 public: |
185 CPWL_Note_Contents(); | 185 CPWL_Note_Contents(); |
186 ~CPWL_Note_Contents() override; | 186 ~CPWL_Note_Contents() override; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 IPWL_NoteNotify* m_pNoteNotify; | 350 IPWL_NoteNotify* m_pNoteNotify; |
351 FX_BOOL m_bResizing; | 351 FX_BOOL m_bResizing; |
352 PWL_SCROLL_INFO m_OldScrollInfo; | 352 PWL_SCROLL_INFO m_OldScrollInfo; |
353 CPDF_Rect m_rcCaption; | 353 CPDF_Rect m_rcCaption; |
354 FX_BOOL m_bEnalbleNotify; | 354 FX_BOOL m_bEnalbleNotify; |
355 IPopup_Note* m_pPopupNote; | 355 IPopup_Note* m_pPopupNote; |
356 CFX_WideString m_sReplyString; | 356 CFX_WideString m_sReplyString; |
357 }; | 357 }; |
358 | 358 |
359 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ | 359 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ |
OLD | NEW |