comparison mupdf-source/thirdparty/tesseract/src/ccmain/pgedit.h @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 ///////////////////////////////////////////////////////////////////////
2 // File: pgedit.h
3 // Description: Page structure file editor
4 // Author: Joern Wanke
5 //
6 // (C) Copyright 2007, Google Inc.
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17 ///////////////////////////////////////////////////////////////////////
18
19 #ifndef PGEDIT_H
20 #define PGEDIT_H
21
22 #include "params.h" // for INT_VAR_H, IntParam, STRING_VAR_H, StringParam
23 #include "scrollview.h" // for SVEvent (ptr only), SVEventHandler, ScrollView
24
25 namespace tesseract {
26
27 class BLOCK_LIST;
28 class PAGE_RES;
29
30 class Tesseract;
31
32 #ifndef GRAPHICS_DISABLED
33 // A small event handler class to process incoming events to
34 // this window.
35 class PGEventHandler : public SVEventHandler {
36 public:
37 PGEventHandler(tesseract::Tesseract *tess) : tess_(tess) {}
38 void Notify(const SVEvent *sve) override;
39
40 private:
41 tesseract::Tesseract *tess_;
42 };
43 #endif // !GRAPHICS_DISABLED
44
45 extern BLOCK_LIST *current_block_list;
46 extern STRING_VAR_H(editor_image_win_name);
47 extern INT_VAR_H(editor_image_xpos);
48 extern INT_VAR_H(editor_image_ypos);
49 extern INT_VAR_H(editor_image_word_bb_color);
50 extern INT_VAR_H(editor_image_blob_bb_color);
51 extern STRING_VAR_H(editor_word_name);
52 extern INT_VAR_H(editor_word_xpos);
53 extern INT_VAR_H(editor_word_ypos);
54 extern INT_VAR_H(editor_word_height);
55 extern INT_VAR_H(editor_word_width);
56
57 } // namespace tesseract
58
59 #endif