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 CORE_FPDFTEXT_CPDF_LINKEXTRACT_H_ | 7 #ifndef CORE_FPDFTEXT_CPDF_LINKEXTRACT_H_ |
8 #define CORE_FPDFTEXT_CPDF_LINKEXTRACT_H_ | 8 #define CORE_FPDFTEXT_CPDF_LINKEXTRACT_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "core/fxcrt/include/fx_basic.h" | 12 #include "core/fxcrt/fx_basic.h" |
13 #include "core/fxcrt/include/fx_coordinates.h" | 13 #include "core/fxcrt/fx_coordinates.h" |
14 #include "core/fxcrt/include/fx_string.h" | 14 #include "core/fxcrt/fx_string.h" |
15 #include "core/fxcrt/include/fx_system.h" | 15 #include "core/fxcrt/fx_system.h" |
16 | 16 |
17 class CPDF_TextPage; | 17 class CPDF_TextPage; |
18 | 18 |
19 class CPDF_LinkExtract { | 19 class CPDF_LinkExtract { |
20 public: | 20 public: |
21 explicit CPDF_LinkExtract(const CPDF_TextPage* pTextPage); | 21 explicit CPDF_LinkExtract(const CPDF_TextPage* pTextPage); |
22 ~CPDF_LinkExtract(); | 22 ~CPDF_LinkExtract(); |
23 | 23 |
24 void ExtractLinks(); | 24 void ExtractLinks(); |
25 size_t CountLinks() const { return m_LinkArray.size(); } | 25 size_t CountLinks() const { return m_LinkArray.size(); } |
(...skipping 11 matching lines...) Expand all Loading... |
37 int m_Count; | 37 int m_Count; |
38 CFX_WideString m_strUrl; | 38 CFX_WideString m_strUrl; |
39 }; | 39 }; |
40 | 40 |
41 const CPDF_TextPage* const m_pTextPage; | 41 const CPDF_TextPage* const m_pTextPage; |
42 CFX_WideString m_strPageText; | 42 CFX_WideString m_strPageText; |
43 std::vector<Link> m_LinkArray; | 43 std::vector<Link> m_LinkArray; |
44 }; | 44 }; |
45 | 45 |
46 #endif // CORE_FPDFTEXT_CPDF_LINKEXTRACT_H_ | 46 #endif // CORE_FPDFTEXT_CPDF_LINKEXTRACT_H_ |
OLD | NEW |