Index: core/fpdftext/include/ipdf_textpagefind.h |
diff --git a/core/fpdftext/include/ipdf_textpagefind.h b/core/fpdftext/include/ipdf_textpagefind.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..44d8b4730e999b0ac432bb6cfb802ca19e44af5c |
--- /dev/null |
+++ b/core/fpdftext/include/ipdf_textpagefind.h |
@@ -0,0 +1,25 @@ |
+// Copyright 2016 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_INCLUDE_IPDF_TEXTPAGEFIND_H_ |
+#define CORE_FPDFTEXT_INCLUDE_IPDF_TEXTPAGEFIND_H_ |
+ |
+class IPDF_TextPageFind { |
+ public: |
+ static IPDF_TextPageFind* CreatePageFind(const IPDF_TextPage* pTextPage); |
+ virtual ~IPDF_TextPageFind() {} |
+ |
+ virtual FX_BOOL FindFirst(const CFX_WideString& findwhat, |
+ int flags, |
+ int startPos = 0) = 0; |
+ virtual FX_BOOL FindNext() = 0; |
+ virtual FX_BOOL FindPrev() = 0; |
+ virtual void GetRectArray(CFX_RectArray& rects) const = 0; |
+ virtual int GetCurOrder() const = 0; |
+ virtual int GetMatchedCount() const = 0; |
+}; |
+ |
+#endif // CORE_FPDFTEXT_INCLUDE_IPDF_TEXTPAGEFIND_H_ |