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 #include "fpdfsdk/include/pdfwindow/PWL_Note.h" | 7 #include "fpdfsdk/pdfwindow/PWL_Note.h" |
8 | 8 |
9 #include "core/include/fxge/fx_ge.h" | 9 #include "core/include/fxge/fx_ge.h" |
10 #include "fpdfsdk/include/pdfwindow/PWL_Button.h" | 10 #include "fpdfsdk/pdfwindow/PWL_Button.h" |
11 #include "fpdfsdk/include/pdfwindow/PWL_Caret.h" | 11 #include "fpdfsdk/pdfwindow/PWL_Caret.h" |
12 #include "fpdfsdk/include/pdfwindow/PWL_Edit.h" | 12 #include "fpdfsdk/pdfwindow/PWL_Edit.h" |
13 #include "fpdfsdk/include/pdfwindow/PWL_EditCtrl.h" | 13 #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h" |
14 #include "fpdfsdk/include/pdfwindow/PWL_Label.h" | 14 #include "fpdfsdk/pdfwindow/PWL_Label.h" |
15 #include "fpdfsdk/include/pdfwindow/PWL_ListCtrl.h" | 15 #include "fpdfsdk/pdfwindow/PWL_ListCtrl.h" |
16 #include "fpdfsdk/include/pdfwindow/PWL_ScrollBar.h" | 16 #include "fpdfsdk/pdfwindow/PWL_ScrollBar.h" |
17 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h" | 17 #include "fpdfsdk/pdfwindow/PWL_Utils.h" |
18 #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h" | 18 #include "fpdfsdk/pdfwindow/PWL_Wnd.h" |
19 | 19 |
20 #define POPUP_ITEM_HEAD_BOTTOM 3.0f | 20 #define POPUP_ITEM_HEAD_BOTTOM 3.0f |
21 #define POPUP_ITEM_BOTTOMWIDTH 1.0f | 21 #define POPUP_ITEM_BOTTOMWIDTH 1.0f |
22 #define POPUP_ITEM_SIDEMARGIN 3.0f | 22 #define POPUP_ITEM_SIDEMARGIN 3.0f |
23 #define POPUP_ITEM_SPACE 4.0f | 23 #define POPUP_ITEM_SPACE 4.0f |
24 #define POPUP_ITEM_TEXT_INDENT 2.0f | 24 #define POPUP_ITEM_TEXT_INDENT 2.0f |
25 #define POPUP_ITEM_BORDERCOLOR \ | 25 #define POPUP_ITEM_BORDERCOLOR \ |
26 CPWL_Color(COLORTYPE_RGB, 80 / 255.0f, 80 / 255.0f, 80 / 255.0f) | 26 CPWL_Color(COLORTYPE_RGB, 80 / 255.0f, 80 / 255.0f, 80 / 255.0f) |
27 | 27 |
28 #define IsFloatZero(f) ((f) < 0.0001 && (f) > -0.0001) | 28 #define IsFloatZero(f) ((f) < 0.0001 && (f) > -0.0001) |
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1504 m_pContents->EnableRead(bEnabled); | 1504 m_pContents->EnableRead(bEnabled); |
1505 } | 1505 } |
1506 | 1506 |
1507 CFX_WideString CPWL_Note::GetReplyString() const { | 1507 CFX_WideString CPWL_Note::GetReplyString() const { |
1508 return m_sReplyString; | 1508 return m_sReplyString; |
1509 } | 1509 } |
1510 | 1510 |
1511 void CPWL_Note::SetReplyString(const CFX_WideString& str) { | 1511 void CPWL_Note::SetReplyString(const CFX_WideString& str) { |
1512 m_sReplyString = str; | 1512 m_sReplyString = str; |
1513 } | 1513 } |
OLD | NEW |