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/fxedit/include/fxet_edit.h" | 7 #include "fpdfsdk/fxedit/include/fxet_edit.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "core/fpdfapi/fpdf_font/include/cpdf_font.h" | 11 #include "core/fpdfapi/fpdf_font/include/cpdf_font.h" |
12 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" | 12 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" |
13 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h" | 13 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h" |
14 #include "core/fpdfapi/fpdf_page/include/cpdf_pathobject.h" | 14 #include "core/fpdfapi/fpdf_page/include/cpdf_pathobject.h" |
15 #include "core/fpdfapi/fpdf_page/include/cpdf_textobject.h" | 15 #include "core/fpdfapi/fpdf_page/include/cpdf_textobject.h" |
16 #include "core/fpdfapi/fpdf_parser/include/fpdf_parser_decode.h" | 16 #include "core/fpdfapi/fpdf_parser/include/fpdf_parser_decode.h" |
17 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" | 17 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" |
18 #include "core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h" | 18 #include "core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h" |
19 #include "core/fpdfdoc/include/cpvt_section.h" | 19 #include "core/fpdfdoc/include/cpvt_section.h" |
20 #include "core/fpdfdoc/include/cpvt_word.h" | 20 #include "core/fpdfdoc/include/cpvt_word.h" |
21 #include "core/fpdfdoc/include/ipvt_fontmap.h" | 21 #include "core/fpdfdoc/include/ipvt_fontmap.h" |
| 22 #include "core/fxge/include/cfx_graphstatedata.h" |
22 #include "core/fxge/include/cfx_pathdata.h" | 23 #include "core/fxge/include/cfx_pathdata.h" |
23 #include "core/fxge/include/fx_ge.h" | 24 #include "core/fxge/include/cfx_renderdevice.h" |
24 #include "fpdfsdk/cfx_systemhandler.h" | 25 #include "fpdfsdk/cfx_systemhandler.h" |
25 #include "fpdfsdk/fxedit/include/fx_edit.h" | 26 #include "fpdfsdk/fxedit/include/fx_edit.h" |
26 #include "fpdfsdk/fxedit/include/fxet_edit.h" | 27 #include "fpdfsdk/fxedit/include/fxet_edit.h" |
27 #include "fpdfsdk/pdfwindow/PWL_Edit.h" | 28 #include "fpdfsdk/pdfwindow/PWL_Edit.h" |
28 #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h" | 29 #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h" |
29 | 30 |
30 #define PVTWORD_STYLE_UNDERLINE 0x0002L | 31 #define PVTWORD_STYLE_UNDERLINE 0x0002L |
31 #define PVTWORD_STYLE_CROSSOUT 0x0004L | 32 #define PVTWORD_STYLE_CROSSOUT 0x0004L |
32 #define PVTWORD_STYLE_BOLD 0x0020L | 33 #define PVTWORD_STYLE_BOLD 0x0020L |
33 #define PVTWORD_STYLE_ITALIC 0x0040L | 34 #define PVTWORD_STYLE_ITALIC 0x0040L |
(...skipping 3020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3054 int32_t CFX_Edit_RectArray::GetSize() const { | 3055 int32_t CFX_Edit_RectArray::GetSize() const { |
3055 return m_Rects.GetSize(); | 3056 return m_Rects.GetSize(); |
3056 } | 3057 } |
3057 | 3058 |
3058 CFX_FloatRect* CFX_Edit_RectArray::GetAt(int32_t nIndex) const { | 3059 CFX_FloatRect* CFX_Edit_RectArray::GetAt(int32_t nIndex) const { |
3059 if (nIndex < 0 || nIndex >= m_Rects.GetSize()) | 3060 if (nIndex < 0 || nIndex >= m_Rects.GetSize()) |
3060 return nullptr; | 3061 return nullptr; |
3061 | 3062 |
3062 return m_Rects.GetAt(nIndex); | 3063 return m_Rects.GetAt(nIndex); |
3063 } | 3064 } |
OLD | NEW |