add capability to remember page breaks generated by, e.g. pdftotext, and use them to start an external viewer on a match page

This commit is contained in:
Jean-Francois Dockes 2012-08-21 15:03:02 +02:00
parent a0398a6afd
commit c96b5d11f0
15 changed files with 292 additions and 85 deletions

View file

@ -20,10 +20,8 @@
#include <string>
#include <vector>
#ifndef NO_NAMESPACES
using std::string;
using std::vector;
#endif
class Utf8Iter;
@ -78,6 +76,12 @@ public:
int bte // byte offset of first char after term
) = 0;
/** Called when we encounter formfeed \f 0x0c. Override to use the event.
* Mostly or exclusively used with pdftoxx output. Other filters mostly
* just don't know about pages. */
virtual void newpage(int /*pos*/)
{
}
// Static utility functions: