summaryrefslogtreecommitdiff
path: root/core/fpdftext/include/ipdf_textpagefind.h
blob: 88774b6061d24ed857459ef12bcf353b910846de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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_

#include "core/fpdftext/include/ipdf_textpage.h"
#include "core/include/fxcrt/fx_coordinates.h"
#include "core/include/fxcrt/fx_string.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_