Debian Codegraph @

sys/Manual.h

raw symbols SCIP
1 #ifndef _Manual_h_
2 #define _Manual_h_
3 /* Manual.h
4 *
5 * Copyright (C) 1996-2005,2007,2009-2012,2015-2018,2020,2022,2023 Paul Boersma
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include "HyperPage.h"
22 #include "ManPages.h"
23
24 Thing_define (Manual, HyperPage) {
25 ManPages manPages() { return static_cast <ManPages> (our data()); }
26 Interpreter optionalInterpreterReference;
27
28 bool ownManPages;
29 integer visiblePageNumber;
30 GuiText searchText;
31 GuiButton homeButton, recordButton, playButton, publishButton;
32 int numberOfMatches;
33 integer matches [1 + 20], fromPage, toPage;
34 bool suppressLinksHither;
35 conststring32 printPagesStartingWith;
36
37 void v9_destroy () noexcept
38 override;
39 bool v_scriptable ()
40 override { return false; }
41 void v_createChildren ()
42 override;
43 void v_createMenus ()
44 override;
45 bool v_canReportSettings ()
46 override { return false; }
47 void v_createMenuItems_help (EditorMenu menu)
48 override;
49 void v_draw ()
50 override;
51 void v_defaultHeaders (EditorCommand cmd)
52 override;
53 integer v_getNumberOfPages ()
54 override;
55 integer v_getCurrentPageNumber ()
56 override;
57 int v_goToPage (conststring32 title)
58 override;
59 void v_goToPage_number (integer goToPageNumber)
60 override;
61 bool v_hasHistory ()
62 override { return true; }
63 bool v_isOrdered ()
64 override { return true; }
65 };
66
67 autoManual Manual_create (conststring32 openingPageTitle, Interpreter optionalInterpreterReference,
68 ManPages manPages, bool ownManPages, bool backquoteIsVerbatim);
69
70 void Manual_search (Manual me, conststring32 query);
71
72 /* End of file Manual.h */
73 #endif
74