| // Copyright 2014 PDFium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| #ifndef CORE_FPDFTEXT_CPDF_LINKEXTRACT_H_ |
| #define CORE_FPDFTEXT_CPDF_LINKEXTRACT_H_ |
| #include "core/fxcrt/fx_basic.h" |
| #include "core/fxcrt/fx_coordinates.h" |
| #include "core/fxcrt/fx_string.h" |
| #include "core/fxcrt/fx_system.h" |
| explicit CPDF_LinkExtract(const CPDF_TextPage* pTextPage); |
| size_t CountLinks() const { return m_LinkArray.size(); } |
| CFX_WideString GetURL(size_t index) const; |
| std::vector<CFX_FloatRect> GetRects(size_t index) const; |
| bool CheckWebLink(CFX_WideString& str); |
| bool CheckMailLink(CFX_WideString& str); |
| const CPDF_TextPage* const m_pTextPage; |
| CFX_WideString m_strPageText; |
| std::vector<Link> m_LinkArray; |
| #endif // CORE_FPDFTEXT_CPDF_LINKEXTRACT_H_ |