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 "core/fpdftext/include/cpdf_textpage.h" | 7 #include "core/fpdftext/include/cpdf_textpage.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "core/fpdfapi/fpdf_font/include/cpdf_font.h" | 13 #include "core/fpdfapi/fpdf_font/cpdf_font.h" |
14 #include "core/fpdfapi/fpdf_page/include/cpdf_form.h" | 14 #include "core/fpdfapi/fpdf_page/include/cpdf_form.h" |
15 #include "core/fpdfapi/fpdf_page/include/cpdf_formobject.h" | 15 #include "core/fpdfapi/fpdf_page/include/cpdf_formobject.h" |
16 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" | 16 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" |
17 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" | 17 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" |
18 #include "core/fpdfapi/fpdf_page/include/cpdf_textobject.h" | 18 #include "core/fpdfapi/fpdf_page/include/cpdf_textobject.h" |
19 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" | 19 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" |
20 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" | 20 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" |
21 #include "core/fpdftext/unicodenormalizationdata.h" | 21 #include "core/fpdftext/unicodenormalizationdata.h" |
22 #include "core/fxcrt/fx_bidi.h" | 22 #include "core/fxcrt/fx_bidi.h" |
23 #include "core/fxcrt/include/fx_ext.h" | 23 #include "core/fxcrt/include/fx_ext.h" |
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1529 info.m_OriginY); | 1529 info.m_OriginY); |
1530 return TRUE; | 1530 return TRUE; |
1531 } | 1531 } |
1532 | 1532 |
1533 FX_BOOL CPDF_TextPage::IsRectIntersect(const CFX_FloatRect& rect1, | 1533 FX_BOOL CPDF_TextPage::IsRectIntersect(const CFX_FloatRect& rect1, |
1534 const CFX_FloatRect& rect2) { | 1534 const CFX_FloatRect& rect2) { |
1535 CFX_FloatRect rect = rect1; | 1535 CFX_FloatRect rect = rect1; |
1536 rect.Intersect(rect2); | 1536 rect.Intersect(rect2); |
1537 return !rect.IsEmpty(); | 1537 return !rect.IsEmpty(); |
1538 } | 1538 } |
OLD | NEW |