| OLD | NEW | 
|---|
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_INCLUDE_IPDF_LINKEXTRACT_H_ | 7 #ifndef CORE_FPDFTEXT_INCLUDE_IPDF_LINKEXTRACT_H_ | 
| 8 #define CORE_FPDFTEXT_INCLUDE_IPDF_LINKEXTRACT_H_ | 8 #define CORE_FPDFTEXT_INCLUDE_IPDF_LINKEXTRACT_H_ | 
| 9 | 9 | 
| 10 #include "core/include/fxcrt/fx_coordinates.h" |  | 
| 11 #include "core/include/fxcrt/fx_system.h" |  | 
| 12 #include "core/fpdftext/include/ipdf_textpage.h" | 10 #include "core/fpdftext/include/ipdf_textpage.h" | 
|  | 11 #include "core/fxcrt/include/fx_coordinates.h" | 
|  | 12 #include "core/fxcrt/include/fx_system.h" | 
| 13 | 13 | 
| 14 class IPDF_LinkExtract { | 14 class IPDF_LinkExtract { | 
| 15  public: | 15  public: | 
| 16   static IPDF_LinkExtract* CreateLinkExtract(); | 16   static IPDF_LinkExtract* CreateLinkExtract(); | 
| 17   virtual ~IPDF_LinkExtract() {} | 17   virtual ~IPDF_LinkExtract() {} | 
| 18 | 18 | 
| 19   virtual FX_BOOL ExtractLinks(const IPDF_TextPage* pTextPage) = 0; | 19   virtual FX_BOOL ExtractLinks(const IPDF_TextPage* pTextPage) = 0; | 
| 20   virtual int CountLinks() const = 0; | 20   virtual int CountLinks() const = 0; | 
| 21   virtual CFX_WideString GetURL(int index) const = 0; | 21   virtual CFX_WideString GetURL(int index) const = 0; | 
| 22   virtual void GetBoundedSegment(int index, int& start, int& count) const = 0; | 22   virtual void GetBoundedSegment(int index, int& start, int& count) const = 0; | 
| 23   virtual void GetRects(int index, CFX_RectArray& rects) const = 0; | 23   virtual void GetRects(int index, CFX_RectArray& rects) const = 0; | 
| 24 }; | 24 }; | 
| 25 | 25 | 
| 26 #endif  // CORE_FPDFTEXT_INCLUDE_IPDF_LINKEXTRACT_H_ | 26 #endif  // CORE_FPDFTEXT_INCLUDE_IPDF_LINKEXTRACT_H_ | 
| OLD | NEW | 
|---|