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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 IPWL_NoteItem* Reply(); | 300 IPWL_NoteItem* Reply(); |
301 void EnableNotify(FX_BOOL bEnabled); | 301 void EnableNotify(FX_BOOL bEnabled); |
302 void SetIconType(int32_t nType); | 302 void SetIconType(int32_t nType); |
303 void SetOptionsText(const CFX_WideString& sText); | 303 void SetOptionsText(const CFX_WideString& sText); |
304 void EnableRead(FX_BOOL bEnabled); | 304 void EnableRead(FX_BOOL bEnabled); |
305 void EnableModify(FX_BOOL bEnabled); | 305 void EnableModify(FX_BOOL bEnabled); |
306 | 306 |
307 CFX_WideString GetReplyString() const; | 307 CFX_WideString GetReplyString() const; |
308 void SetReplyString(const CFX_WideString& string); | 308 void SetReplyString(const CFX_WideString& string); |
309 | 309 |
310 // 0-normal / 1-caption / 2-leftbottom corner / 3-rightbottom corner / 4-close | |
311 // / 5-options | |
312 int32_t NoteHitTest(const CPDF_Point& point) const; | |
313 CPDF_Rect GetCaptionRect() const { return m_rcCaption; } | |
314 IPopup_Note* GetPopupNote() const { return m_pPopupNote; } | |
315 | |
316 // CPWL_NoteItem | 310 // CPWL_NoteItem |
317 void SetSubjectName(const CFX_WideString& sName) override; | 311 void SetSubjectName(const CFX_WideString& sName) override; |
318 void SetAuthorName(const CFX_WideString& sName) override; | 312 void SetAuthorName(const CFX_WideString& sName) override; |
319 CFX_WideString GetAuthorName() const override; | 313 CFX_WideString GetAuthorName() const override; |
320 void SetBkColor(const CPWL_Color& color) override; | 314 void SetBkColor(const CPWL_Color& color) override; |
321 void ResetSubjectName(int32_t nItemIndex) override {} | 315 void ResetSubjectName(int32_t nItemIndex) override {} |
322 FX_BOOL IsTopItem() const override { return TRUE; } | 316 FX_BOOL IsTopItem() const override { return TRUE; } |
323 const CPWL_Note* GetNote() const override; | 317 const CPWL_Note* GetNote() const override; |
324 IPWL_NoteNotify* GetNoteNotify() const override; | 318 IPWL_NoteNotify* GetNoteNotify() const override; |
325 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; | 319 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; |
(...skipping 17 matching lines...) Expand all Loading... |
343 CPWL_Label* m_pAuthor; | 337 CPWL_Label* m_pAuthor; |
344 CPWL_Note_Icon* m_pIcon; | 338 CPWL_Note_Icon* m_pIcon; |
345 CPWL_Note_CloseBox* m_pCloseBox; | 339 CPWL_Note_CloseBox* m_pCloseBox; |
346 CPWL_Note_LBBox* m_pLBBox; | 340 CPWL_Note_LBBox* m_pLBBox; |
347 CPWL_Note_RBBox* m_pRBBox; | 341 CPWL_Note_RBBox* m_pRBBox; |
348 CPWL_ScrollBar* m_pContentsBar; | 342 CPWL_ScrollBar* m_pContentsBar; |
349 CPWL_Note_Options* m_pOptions; | 343 CPWL_Note_Options* m_pOptions; |
350 IPWL_NoteNotify* m_pNoteNotify; | 344 IPWL_NoteNotify* m_pNoteNotify; |
351 FX_BOOL m_bResizing; | 345 FX_BOOL m_bResizing; |
352 PWL_SCROLL_INFO m_OldScrollInfo; | 346 PWL_SCROLL_INFO m_OldScrollInfo; |
353 CPDF_Rect m_rcCaption; | 347 FX_BOOL m_bEnableNotify; |
354 FX_BOOL m_bEnalbleNotify; | |
355 IPopup_Note* m_pPopupNote; | |
356 CFX_WideString m_sReplyString; | 348 CFX_WideString m_sReplyString; |
357 }; | 349 }; |
358 | 350 |
359 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ | 351 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ |
OLD | NEW |