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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 virtual CFX_WideString GetContents() const = 0; | 75 virtual CFX_WideString GetContents() const = 0; |
76 virtual FX_SYSTEMTIME GetDateTime() const = 0; | 76 virtual FX_SYSTEMTIME GetDateTime() const = 0; |
77 virtual CFX_WideString GetSubjectName() const = 0; | 77 virtual CFX_WideString GetSubjectName() const = 0; |
78 | 78 |
79 virtual CPWL_Edit* GetEdit() const = 0; | 79 virtual CPWL_Edit* GetEdit() const = 0; |
80 }; | 80 }; |
81 | 81 |
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 virtual ~CPWL_Note_Icon(); | 85 ~CPWL_Note_Icon() override; |
86 | 86 |
87 void SetIconType(int32_t nType); | 87 void SetIconType(int32_t nType); |
88 | 88 |
89 public: | |
90 protected: | 89 protected: |
91 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, | 90 // CPWL_Wnd |
92 CPDF_Matrix* pUser2Device); | 91 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
| 92 CPDF_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 virtual ~CPWL_Note_CloseBox(); | 101 ~CPWL_Note_CloseBox() override; |
102 | 102 |
103 protected: | 103 protected: |
104 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, | 104 // CPWL_Button |
105 CPDF_Matrix* pUser2Device); | 105 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
106 virtual FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag); | 106 CPDF_Matrix* pUser2Device) override; |
107 virtual FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_DWORD nFlag); | 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 | 109 |
109 private: | 110 private: |
110 FX_BOOL m_bMouseDown; | 111 FX_BOOL m_bMouseDown; |
111 }; | 112 }; |
112 | 113 |
113 class CPWL_Note_LBBox : public CPWL_Wnd { | 114 class CPWL_Note_LBBox : public CPWL_Wnd { |
114 public: | 115 public: |
115 CPWL_Note_LBBox(); | 116 CPWL_Note_LBBox(); |
116 virtual ~CPWL_Note_LBBox(); | 117 ~CPWL_Note_LBBox() override; |
117 | 118 |
118 protected: | 119 protected: |
119 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, | 120 // CPWL_Wnd |
120 CPDF_Matrix* pUser2Device); | 121 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
| 122 CPDF_Matrix* pUser2Device) override; |
121 }; | 123 }; |
122 | 124 |
123 class CPWL_Note_RBBox : public CPWL_Wnd { | 125 class CPWL_Note_RBBox : public CPWL_Wnd { |
124 public: | 126 public: |
125 CPWL_Note_RBBox(); | 127 CPWL_Note_RBBox(); |
126 virtual ~CPWL_Note_RBBox(); | 128 ~CPWL_Note_RBBox() override; |
127 | 129 |
128 protected: | 130 protected: |
129 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, | 131 // CPWL_Wnd |
130 CPDF_Matrix* pUser2Device); | 132 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
| 133 CPDF_Matrix* pUser2Device) override; |
131 }; | 134 }; |
132 | 135 |
133 class CPWL_Note_Edit : public CPWL_Edit { | 136 class CPWL_Note_Edit : public CPWL_Edit { |
134 public: | 137 public: |
135 CPWL_Note_Edit(); | 138 CPWL_Note_Edit(); |
136 virtual ~CPWL_Note_Edit(); | 139 ~CPWL_Note_Edit() override; |
137 | 140 |
138 void EnableNotify(FX_BOOL bEnable) { m_bEnableNotify = bEnable; } | 141 void EnableNotify(FX_BOOL bEnable) { m_bEnableNotify = bEnable; } |
139 virtual FX_FLOAT GetItemHeight(FX_FLOAT fLimitWidth); | |
140 FX_FLOAT GetItemLeftMargin(); | |
141 FX_FLOAT GetItemRightMargin(); | |
142 | 142 |
143 virtual void SetText(const FX_WCHAR* csText); | 143 // CPWL_Edit |
144 | 144 FX_FLOAT GetItemLeftMargin() override; |
145 protected: | 145 FX_FLOAT GetItemRightMargin() override; |
146 virtual void OnNotify(CPWL_Wnd* pWnd, | 146 FX_FLOAT GetItemHeight(FX_FLOAT fLimitWidth) override; |
147 FX_DWORD msg, | 147 void SetText(const FX_WCHAR* csText) override; |
148 intptr_t wParam = 0, | 148 void OnNotify(CPWL_Wnd* pWnd, |
149 intptr_t lParam = 0); | 149 FX_DWORD msg, |
150 virtual void RePosChildWnd(); | 150 intptr_t wParam = 0, |
151 virtual void OnSetFocus(); | 151 intptr_t lParam = 0) override; |
152 virtual void OnKillFocus(); | 152 void RePosChildWnd() override; |
| 153 void OnSetFocus() override; |
| 154 void OnKillFocus() override; |
153 | 155 |
154 private: | 156 private: |
155 FX_BOOL m_bEnableNotify; | 157 FX_BOOL m_bEnableNotify; |
156 FX_FLOAT m_fOldItemHeight; | 158 FX_FLOAT m_fOldItemHeight; |
157 FX_BOOL m_bSizeChanged; | 159 FX_BOOL m_bSizeChanged; |
158 FX_FLOAT m_fOldMin; | 160 FX_FLOAT m_fOldMin; |
159 FX_FLOAT m_fOldMax; | 161 FX_FLOAT m_fOldMax; |
160 }; | 162 }; |
161 | 163 |
162 class CPWL_Note_Options : public CPWL_Wnd { | 164 class CPWL_Note_Options : public CPWL_Wnd { |
163 public: | 165 public: |
164 CPWL_Note_Options(); | 166 CPWL_Note_Options(); |
165 virtual ~CPWL_Note_Options(); | 167 ~CPWL_Note_Options() override; |
166 | 168 |
167 CPDF_Rect GetContentRect() const; | 169 CPDF_Rect GetContentRect() const; |
168 virtual void SetTextColor(const CPWL_Color& color); | |
169 void SetText(const CFX_WideString& sText); | 170 void SetText(const CFX_WideString& sText); |
170 | 171 |
171 protected: | 172 // CPWL_Wnd |
172 virtual void RePosChildWnd(); | 173 void RePosChildWnd() override; |
173 virtual void CreateChildWnd(const PWL_CREATEPARAM& cp); | 174 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; |
174 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, | 175 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
175 CPDF_Matrix* pUser2Device); | 176 CPDF_Matrix* pUser2Device) override; |
| 177 void SetTextColor(const CPWL_Color& color) override; |
176 | 178 |
177 private: | 179 private: |
178 CPWL_Label* m_pText; | 180 CPWL_Label* m_pText; |
179 }; | 181 }; |
180 | 182 |
181 class CPWL_Note_Contents : public CPWL_ListCtrl { | 183 class CPWL_Note_Contents : public CPWL_ListCtrl { |
182 public: | 184 public: |
183 CPWL_Note_Contents(); | 185 CPWL_Note_Contents(); |
184 virtual ~CPWL_Note_Contents(); | 186 ~CPWL_Note_Contents() override; |
185 | |
186 virtual CFX_ByteString GetClassName() const; | |
187 virtual void OnNotify(CPWL_Wnd* pWnd, | |
188 FX_DWORD msg, | |
189 intptr_t wParam = 0, | |
190 intptr_t lParam = 0); | |
191 virtual FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag); | |
192 | 187 |
193 void SetEditFocus(FX_BOOL bLast); | 188 void SetEditFocus(FX_BOOL bLast); |
194 CPWL_Edit* GetEdit() const; | 189 CPWL_Edit* GetEdit() const; |
195 | 190 |
196 public: | |
197 void SetText(const CFX_WideString& sText); | 191 void SetText(const CFX_WideString& sText); |
198 CFX_WideString GetText() const; | 192 CFX_WideString GetText() const; |
199 | 193 |
200 CPWL_NoteItem* CreateSubItem(); | 194 CPWL_NoteItem* CreateSubItem(); |
201 void DeleteSubItem(IPWL_NoteItem* pNoteItem); | 195 void DeleteSubItem(IPWL_NoteItem* pNoteItem); |
202 int32_t CountSubItems() const; | 196 int32_t CountSubItems() const; |
203 IPWL_NoteItem* GetSubItems(int32_t index) const; | 197 IPWL_NoteItem* GetSubItems(int32_t index) const; |
204 | 198 |
205 virtual IPWL_NoteItem* GetHitNoteItem(const CPDF_Point& point); | 199 virtual IPWL_NoteItem* GetHitNoteItem(const CPDF_Point& point); |
206 void EnableRead(FX_BOOL bEnabled); | 200 void EnableRead(FX_BOOL bEnabled); |
207 void EnableModify(FX_BOOL bEnabled); | 201 void EnableModify(FX_BOOL bEnabled); |
208 | 202 |
209 protected: | 203 // CPWL_ListCtrl |
210 virtual void CreateChildWnd(const PWL_CREATEPARAM& cp); | 204 CFX_ByteString GetClassName() const override; |
| 205 void OnNotify(CPWL_Wnd* pWnd, |
| 206 FX_DWORD msg, |
| 207 intptr_t wParam = 0, |
| 208 intptr_t lParam = 0) override; |
| 209 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; |
| 210 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; |
211 | 211 |
212 private: | 212 private: |
213 CPWL_Note_Edit* m_pEdit; | 213 CPWL_Note_Edit* m_pEdit; |
214 }; | 214 }; |
215 | 215 |
216 class CPWL_NoteItem : public CPWL_Wnd, public IPWL_NoteItem { | 216 class CPWL_NoteItem : public CPWL_Wnd, public IPWL_NoteItem { |
217 public: | 217 public: |
218 CPWL_NoteItem(); | 218 CPWL_NoteItem(); |
219 virtual ~CPWL_NoteItem(); | 219 ~CPWL_NoteItem() override; |
220 | 220 |
221 public: | |
222 virtual void SetPrivateData(void* pData); | |
223 virtual void SetBkColor(const CPWL_Color& color); | |
224 virtual void SetSubjectName(const CFX_WideString& sName); | |
225 virtual void SetAuthorName(const CFX_WideString& sName); | |
226 virtual void SetDateTime(FX_SYSTEMTIME time); | |
227 virtual void SetContents(const CFX_WideString& sContents); | |
228 | |
229 virtual IPWL_NoteItem* CreateSubItem(); | |
230 virtual int32_t CountSubItems() const; | |
231 virtual IPWL_NoteItem* GetSubItems(int32_t index) const; | |
232 virtual void DeleteSubItem(IPWL_NoteItem* pNoteItem); | |
233 virtual void SetFocus() { SetNoteFocus(FALSE); } | |
234 | |
235 virtual IPWL_NoteItem* GetParentItem() const; | |
236 virtual void* GetPrivateData() const; | |
237 virtual CFX_WideString GetAuthorName() const; | |
238 virtual CPWL_Color GetBkColor() const; | |
239 virtual CFX_WideString GetContents() const; | |
240 virtual FX_SYSTEMTIME GetDateTime() const; | |
241 virtual CFX_WideString GetSubjectName() const; | |
242 virtual FX_BOOL IsTopItem() const { return FALSE; } | |
243 virtual CPWL_Edit* GetEdit() const; | |
244 | |
245 public: | |
246 virtual FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag); | |
247 virtual FX_BOOL OnRButtonUp(const CPDF_Point& point, FX_DWORD nFlag); | |
248 virtual CFX_ByteString GetClassName() const; | |
249 virtual IPWL_NoteItem* GetHitNoteItem(const CPDF_Point& point); | 221 virtual IPWL_NoteItem* GetHitNoteItem(const CPDF_Point& point); |
250 virtual IPWL_NoteItem* GetFocusedNoteItem() const; | 222 virtual IPWL_NoteItem* GetFocusedNoteItem() const; |
251 | 223 |
| 224 virtual FX_BOOL IsTopItem() const { return FALSE; } |
| 225 |
252 virtual void ResetSubjectName(int32_t nItemIndex); | 226 virtual void ResetSubjectName(int32_t nItemIndex); |
253 void EnableRead(FX_BOOL bEnabled); | 227 void EnableRead(FX_BOOL bEnabled); |
254 void EnableModify(FX_BOOL bEnabled); | 228 void EnableModify(FX_BOOL bEnabled); |
255 | 229 |
| 230 void OnContentsValidate(); |
| 231 void OnCreateNoteItem(); |
| 232 |
| 233 // IPWL_NoteItem |
| 234 void SetPrivateData(void* pData) override; |
| 235 void SetBkColor(const CPWL_Color& color) override; |
| 236 void SetSubjectName(const CFX_WideString& sName) override; |
| 237 void SetAuthorName(const CFX_WideString& sName) override; |
| 238 void SetDateTime(FX_SYSTEMTIME time) override; |
| 239 void SetContents(const CFX_WideString& sContents) override; |
| 240 IPWL_NoteItem* CreateSubItem() override; |
| 241 int32_t CountSubItems() const override; |
| 242 IPWL_NoteItem* GetSubItems(int32_t index) const override; |
| 243 void DeleteSubItem(IPWL_NoteItem* pNoteItem) override; |
| 244 void SetFocus() override { SetNoteFocus(FALSE); } |
| 245 IPWL_NoteItem* GetParentItem() const override; |
| 246 void* GetPrivateData() const override; |
| 247 CFX_WideString GetAuthorName() const override; |
| 248 CPWL_Color GetBkColor() const override; |
| 249 CFX_WideString GetContents() const override; |
| 250 FX_SYSTEMTIME GetDateTime() const override; |
| 251 CFX_WideString GetSubjectName() const override; |
| 252 CPWL_Edit* GetEdit() const override; |
| 253 |
256 protected: | 254 protected: |
257 virtual void RePosChildWnd(); | 255 // CPWL_Wnd |
258 virtual void CreateChildWnd(const PWL_CREATEPARAM& cp); | 256 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; |
| 257 FX_BOOL OnRButtonUp(const CPDF_Point& point, FX_DWORD nFlag) override; |
| 258 CFX_ByteString GetClassName() const override; |
| 259 void RePosChildWnd() override; |
| 260 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; |
| 261 void OnNotify(CPWL_Wnd* pWnd, |
| 262 FX_DWORD msg, |
| 263 intptr_t wParam = 0, |
| 264 intptr_t lParam = 0) override; |
| 265 FX_FLOAT GetItemHeight(FX_FLOAT fLimitWidth) override; |
| 266 FX_FLOAT GetItemLeftMargin() override; |
| 267 FX_FLOAT GetItemRightMargin() override; |
259 | 268 |
260 virtual void OnNotify(CPWL_Wnd* pWnd, | |
261 FX_DWORD msg, | |
262 intptr_t wParam = 0, | |
263 intptr_t lParam = 0); | |
264 | |
265 public: | |
266 virtual FX_FLOAT GetItemHeight(FX_FLOAT fLimitWidth); | |
267 virtual FX_FLOAT GetItemLeftMargin(); | |
268 virtual FX_FLOAT GetItemRightMargin(); | |
269 CPWL_NoteItem* CreateNoteItem(); | 269 CPWL_NoteItem* CreateNoteItem(); |
270 CPWL_NoteItem* GetParentNoteItem() const; | 270 CPWL_NoteItem* GetParentNoteItem() const; |
271 | 271 |
272 void SetNoteFocus(FX_BOOL bLast); | 272 void SetNoteFocus(FX_BOOL bLast); |
273 void OnContentsValidate(); | |
274 | |
275 void OnCreateNoteItem(); | |
276 | |
277 protected: | |
278 void PopupNoteItemMenu(const CPDF_Point& point); | 273 void PopupNoteItemMenu(const CPDF_Point& point); |
279 | 274 |
280 virtual const CPWL_Note* GetNote() const; | 275 virtual const CPWL_Note* GetNote() const; |
281 virtual IPWL_NoteNotify* GetNoteNotify() const; | 276 virtual IPWL_NoteNotify* GetNoteNotify() const; |
282 | 277 |
283 protected: | 278 protected: |
284 CPWL_Label* m_pSubject; | 279 CPWL_Label* m_pSubject; |
285 CPWL_Label* m_pDateTime; | 280 CPWL_Label* m_pDateTime; |
286 CPWL_Note_Contents* m_pContents; | 281 CPWL_Note_Contents* m_pContents; |
287 | 282 |
288 private: | 283 private: |
289 void* m_pPrivateData; | 284 void* m_pPrivateData; |
290 FX_SYSTEMTIME m_dtNote; | 285 FX_SYSTEMTIME m_dtNote; |
291 CFX_WideString m_sAuthor; | 286 CFX_WideString m_sAuthor; |
292 | 287 |
293 FX_FLOAT m_fOldItemHeight; | 288 FX_FLOAT m_fOldItemHeight; |
294 FX_BOOL m_bSizeChanged; | 289 FX_BOOL m_bSizeChanged; |
295 FX_BOOL m_bAllowModify; | 290 FX_BOOL m_bAllowModify; |
296 }; | 291 }; |
297 | 292 |
298 class CPWL_Note : public CPWL_NoteItem { | 293 class CPWL_Note : public CPWL_NoteItem { |
299 public: | 294 public: |
300 CPWL_Note(IPopup_Note* pPopupNote, | 295 CPWL_Note(IPopup_Note* pPopupNote, |
301 IPWL_NoteNotify* pNoteNotify, | 296 IPWL_NoteNotify* pNoteNotify, |
302 IPWL_NoteHandler* pNoteHandler); | 297 IPWL_NoteHandler* pNoteHandler); |
303 virtual ~CPWL_Note(); | 298 ~CPWL_Note() override; |
304 | 299 |
305 public: | |
306 virtual void SetSubjectName(const CFX_WideString& sName); | |
307 virtual void SetAuthorName(const CFX_WideString& sName); | |
308 virtual CFX_WideString GetAuthorName() const; | |
309 virtual void SetBkColor(const CPWL_Color& color); | |
310 virtual void ResetSubjectName(int32_t nItemIndex) {} | |
311 virtual FX_BOOL IsTopItem() const { return TRUE; } | |
312 virtual const CPWL_Note* GetNote() const; | |
313 virtual IPWL_NoteNotify* GetNoteNotify() const; | |
314 | |
315 public: | |
316 IPWL_NoteItem* Reply(); | 300 IPWL_NoteItem* Reply(); |
317 void EnableNotify(FX_BOOL bEnabled); | 301 void EnableNotify(FX_BOOL bEnabled); |
318 void SetIconType(int32_t nType); | 302 void SetIconType(int32_t nType); |
319 void SetOptionsText(const CFX_WideString& sText); | 303 void SetOptionsText(const CFX_WideString& sText); |
320 void EnableRead(FX_BOOL bEnabled); | 304 void EnableRead(FX_BOOL bEnabled); |
321 void EnableModify(FX_BOOL bEnabled); | 305 void EnableModify(FX_BOOL bEnabled); |
322 | 306 |
323 CFX_WideString GetReplyString() const; | 307 CFX_WideString GetReplyString() const; |
324 void SetReplyString(const CFX_WideString& string); | 308 void SetReplyString(const CFX_WideString& string); |
325 | 309 |
326 // 0-normal / 1-caption / 2-leftbottom corner / 3-rightbottom corner / 4-close | 310 // 0-normal / 1-caption / 2-leftbottom corner / 3-rightbottom corner / 4-close |
327 // / 5-options | 311 // / 5-options |
328 int32_t NoteHitTest(const CPDF_Point& point) const; | 312 int32_t NoteHitTest(const CPDF_Point& point) const; |
329 CPDF_Rect GetCaptionRect() const { return m_rcCaption; } | 313 CPDF_Rect GetCaptionRect() const { return m_rcCaption; } |
330 IPopup_Note* GetPopupNote() const { return m_pPopupNote; } | 314 IPopup_Note* GetPopupNote() const { return m_pPopupNote; } |
331 | 315 |
332 public: | 316 // CPWL_NoteItem |
333 virtual FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag); | 317 void SetSubjectName(const CFX_WideString& sName) override; |
334 virtual FX_BOOL OnRButtonUp(const CPDF_Point& point, FX_DWORD nFlag); | 318 void SetAuthorName(const CFX_WideString& sName) override; |
335 virtual FX_BOOL OnMouseWheel(short zDelta, | 319 CFX_WideString GetAuthorName() const override; |
336 const CPDF_Point& point, | 320 void SetBkColor(const CPWL_Color& color) override; |
337 FX_DWORD nFlag); | 321 void ResetSubjectName(int32_t nItemIndex) override {} |
| 322 FX_BOOL IsTopItem() const override { return TRUE; } |
| 323 const CPWL_Note* GetNote() const override; |
| 324 IPWL_NoteNotify* GetNoteNotify() const override; |
| 325 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; |
| 326 FX_BOOL OnRButtonUp(const CPDF_Point& point, FX_DWORD nFlag) override; |
| 327 FX_BOOL OnMouseWheel(short zDelta, |
| 328 const CPDF_Point& point, |
| 329 FX_DWORD nFlag) override; |
| 330 void RePosChildWnd() override; |
| 331 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; |
| 332 void OnNotify(CPWL_Wnd* pWnd, |
| 333 FX_DWORD msg, |
| 334 intptr_t wParam = 0, |
| 335 intptr_t lParam = 0) override; |
338 | 336 |
339 protected: | 337 protected: |
340 virtual void RePosChildWnd(); | |
341 virtual void CreateChildWnd(const PWL_CREATEPARAM& cp); | |
342 | |
343 virtual void OnNotify(CPWL_Wnd* pWnd, | |
344 FX_DWORD msg, | |
345 intptr_t wParam = 0, | |
346 intptr_t lParam = 0); | |
347 | |
348 FX_BOOL ResetScrollBar(); | 338 FX_BOOL ResetScrollBar(); |
349 void RePosNoteChildren(); | 339 void RePosNoteChildren(); |
350 FX_BOOL ScrollBarShouldVisible(); | 340 FX_BOOL ScrollBarShouldVisible(); |
351 | 341 |
352 private: | 342 private: |
353 CPWL_Label* m_pAuthor; | 343 CPWL_Label* m_pAuthor; |
354 CPWL_Note_Icon* m_pIcon; | 344 CPWL_Note_Icon* m_pIcon; |
355 CPWL_Note_CloseBox* m_pCloseBox; | 345 CPWL_Note_CloseBox* m_pCloseBox; |
356 CPWL_Note_LBBox* m_pLBBox; | 346 CPWL_Note_LBBox* m_pLBBox; |
357 CPWL_Note_RBBox* m_pRBBox; | 347 CPWL_Note_RBBox* m_pRBBox; |
358 CPWL_ScrollBar* m_pContentsBar; | 348 CPWL_ScrollBar* m_pContentsBar; |
359 CPWL_Note_Options* m_pOptions; | 349 CPWL_Note_Options* m_pOptions; |
360 IPWL_NoteNotify* m_pNoteNotify; | 350 IPWL_NoteNotify* m_pNoteNotify; |
361 FX_BOOL m_bResizing; | 351 FX_BOOL m_bResizing; |
362 PWL_SCROLL_INFO m_OldScrollInfo; | 352 PWL_SCROLL_INFO m_OldScrollInfo; |
363 CPDF_Rect m_rcCaption; | 353 CPDF_Rect m_rcCaption; |
364 FX_BOOL m_bEnalbleNotify; | 354 FX_BOOL m_bEnalbleNotify; |
365 IPopup_Note* m_pPopupNote; | 355 IPopup_Note* m_pPopupNote; |
366 CFX_WideString m_sReplyString; | 356 CFX_WideString m_sReplyString; |
367 }; | 357 }; |
368 | 358 |
369 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ | 359 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ |
OLD | NEW |