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/fxet_edit.h" | 7 #include "fpdfsdk/fxedit/fxet_edit.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "core/fpdfapi/fpdf_font/cpdf_font.h" | 13 #include "core/fpdfapi/font/cpdf_font.h" |
14 #include "core/fpdfapi/fpdf_page/cpdf_pageobject.h" | 14 #include "core/fpdfapi/fpdf_page/cpdf_pageobject.h" |
15 #include "core/fpdfapi/fpdf_page/cpdf_pageobjectholder.h" | 15 #include "core/fpdfapi/fpdf_page/cpdf_pageobjectholder.h" |
16 #include "core/fpdfapi/fpdf_page/cpdf_pathobject.h" | 16 #include "core/fpdfapi/fpdf_page/cpdf_pathobject.h" |
17 #include "core/fpdfapi/fpdf_page/cpdf_textobject.h" | 17 #include "core/fpdfapi/fpdf_page/cpdf_textobject.h" |
18 #include "core/fpdfapi/fpdf_parser/fpdf_parser_decode.h" | 18 #include "core/fpdfapi/fpdf_parser/fpdf_parser_decode.h" |
19 #include "core/fpdfapi/fpdf_render/cpdf_renderoptions.h" | 19 #include "core/fpdfapi/fpdf_render/cpdf_renderoptions.h" |
20 #include "core/fpdfapi/fpdf_render/cpdf_textrenderer.h" | 20 #include "core/fpdfapi/fpdf_render/cpdf_textrenderer.h" |
21 #include "core/fpdfdoc/cpvt_section.h" | 21 #include "core/fpdfdoc/cpvt_section.h" |
22 #include "core/fpdfdoc/cpvt_word.h" | 22 #include "core/fpdfdoc/cpvt_word.h" |
23 #include "core/fpdfdoc/ipvt_fontmap.h" | 23 #include "core/fpdfdoc/ipvt_fontmap.h" |
(...skipping 2502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2526 int32_t CFX_Edit_RectArray::GetSize() const { | 2526 int32_t CFX_Edit_RectArray::GetSize() const { |
2527 return m_Rects.GetSize(); | 2527 return m_Rects.GetSize(); |
2528 } | 2528 } |
2529 | 2529 |
2530 CFX_FloatRect* CFX_Edit_RectArray::GetAt(int32_t nIndex) const { | 2530 CFX_FloatRect* CFX_Edit_RectArray::GetAt(int32_t nIndex) const { |
2531 if (nIndex < 0 || nIndex >= m_Rects.GetSize()) | 2531 if (nIndex < 0 || nIndex >= m_Rects.GetSize()) |
2532 return nullptr; | 2532 return nullptr; |
2533 | 2533 |
2534 return m_Rects.GetAt(nIndex); | 2534 return m_Rects.GetAt(nIndex); |
2535 } | 2535 } |
OLD | NEW |