Debian Codegraph @

sys/HyperPage.cpp

raw symbols SCIP
1 /* HyperPage.cpp
2 *
3 * Copyright (C) 1996-2026 Paul Boersma
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include "HyperPage.h"cxx . . $ `<file>/sys/HyperPage.h`/
20 #include "Printer.h"cxx . . $ `<file>/sys/Printer.h`/
21 #include "machine.h"cxx . . $ `<file>/sys/machine.h`/
22 #include "GuiP.h"cxx . . $ `<file>/sys/GuiP.h`/
23
24 #include "praat.h"cxx . . $ `<file>/sys/praat.h`/
25 #include "EditorM.h"cxx . . $ `<file>/sys/EditorM.h`/
26
27 Thing_implementcxx . . $ `sys/Thing.h:65:9`! (HyperPage, Editor, 0);
28
29 #include "Prefs_define.h"cxx . . $ `<file>/sys/Prefs_define.h`/
30 #include "HyperPage_prefs.h"cxx . . $ `<file>/sys/HyperPage_prefs.h`/
31 #include "Prefs_install.h"cxx . . $ `<file>/sys/Prefs_install.h`/
32 #include "HyperPage_prefs.h"cxx . . $ `<file>/sys/HyperPage_prefs.h`/
33 #include "Prefs_copyToInstance.h"cxx . . $ `<file>/sys/Prefs_copyToInstance.h`/
34 #include "HyperPage_prefs.h"cxx . . $ `<file>/sys/HyperPage_prefs.h`/
35
36 #define PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! 320.0
37 #define SCREEN_HEIGHTcxx . . $ `sys/HyperPage.cpp:37:9`! 18.0
38 #define PAPER_TOPcxx . . $ `sys/HyperPage.cpp:38:9`! 12.0
39 #define TOP_MARGINcxx . . $ `sys/HyperPage.cpp:39:9`! 0.8
40 #define PAPER_BOTTOMcxx . . $ `sys/HyperPage.cpp:40:9`! (13.0 - (double) thePrinter. paperHeight / thePrinter. resolution)
41 #define BOTTOM_MARGINcxx . . $ `sys/HyperPage.cpp:41:9`! 0.5
42 static double resolutioncxx . . $ resolution.;
43
44 /********** class HyperLink **********/
45
46 Thing_implementcxx . . $ `sys/Thing.h:65:9`! (HyperLink, Daata, 0);
47
48 autoHyperLinkcxx . . $ autoHyperLink# HyperLink_createcxx . . $ HyperLink_create(7b0ce42fd0f00ef4). (conststring32cxx . . $ conststring32# name, double x1DC, double x2DC, double y1DC, double y2DC) {
49 autoHyperLinkcxx . . $ autoHyperLink# me = Thing_newcxx . . $ `sys/Thing.h:514:9`! (HyperLink);
50 Thing_setNamecxx . . $ Thing_setName(b5a42e5e01c267b5). (me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), name);
51 mycxx . . $ `melder/melder.h:44:9`! x1DCcxx . . $ structHyperLink#x1DC. = x1DC, mycxx . . $ `melder/melder.h:44:9`! x2DCcxx . . $ structHyperLink#x2DC. = x2DC, mycxx . . $ `melder/melder.h:44:9`! y1DCcxx . . $ structHyperLink#y1DC. = y1DC, mycxx . . $ `melder/melder.h:44:9`! y2DCcxx . . $ structHyperLink#y2DC. = y2DC;
52 return mecxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f).;
53 }
54
55 static void saveHistorycxx . . $ saveHistory(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# title) {
56 if (! title)
57 return;
58
59 /*
60 The page title will be saved at the top. Go there.
61 */
62 while (mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer. < 19 && mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer.]. pagecxx . . $ structHyperPage#$anonymous_type_0#page.)
63 mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer. ++;
64
65 /*
66 If the page title to be saved is already at the top, ignore it.
67 */
68 if (mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer.]. pagecxx . . $ structHyperPage#$anonymous_type_0#page.) {
69 if (str32equcxx . . $ `melder/melder_str32.h:122:9`! (mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer.]. pagecxx . . $ structHyperPage#$anonymous_type_0#page..getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), title)) return;
70 } else if (mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer. > 0 && str32equcxx . . $ `melder/melder_str32.h:122:9`! (mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer. - 1]. pagecxx . . $ structHyperPage#$anonymous_type_0#page..getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), title)) {
71 mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer. --;
72 return;
73 }
74
75 /*
76 If the history buffer is full, shift it.
77 */
78 if (mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer. == 19 && mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer.]. pagecxx . . $ structHyperPage#$anonymous_type_0#page.) {
79 for (int i = 0; i < 19; i ++)
80 mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [i] =cxx . . $ structHyperPage#$anonymous_type_0#`operator=`(144cc6ac5752f930). stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26). (mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [i + 1]);
81 mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [19]. pagecxx . . $ structHyperPage#$anonymous_type_0#page.. resetcxx . . $ _autostring#reset(49f6e7a06ebc5aa8).();
82 }
83
84 /*
85 Add the page title to the top of the history list.
86 */
87 mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer.]. pagecxx . . $ structHyperPage#$anonymous_type_0#page. =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (title);
88 }
89
90 /********************************************************************************
91 *
92 * Before drawing or printing.
93 *
94 */
95
96 void HyperPage_initSheetOfPapercxx . . $ HyperPage_initSheetOfPaper(1c8dff632c204718). (HyperPagecxx . . $ HyperPage# me) {
97 int reflect = mycxx . . $ `melder/melder.h:44:9`! mirrorcxx . . $ structHyperPage#mirror. && (mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumbercxx . . $ structHyperPage#d_printingPageNumber. & 1) == 0;
98 conststring32cxx . . $ conststring32# leftHeader = reflect ? mycxx . . $ `melder/melder.h:44:9`! outsideHeadercxx . . $ structHyperPage#outsideHeader. : mycxx . . $ `melder/melder.h:44:9`! insideHeadercxx . . $ structHyperPage#insideHeader.;
99 conststring32cxx . . $ conststring32# rightHeader = reflect ? mycxx . . $ `melder/melder.h:44:9`! insideHeadercxx . . $ structHyperPage#insideHeader. : mycxx . . $ `melder/melder.h:44:9`! outsideHeadercxx . . $ structHyperPage#outsideHeader.;
100 conststring32cxx . . $ conststring32# leftFooter = reflect ? mycxx . . $ `melder/melder.h:44:9`! outsideFootercxx . . $ structHyperPage#outsideFooter. : mycxx . . $ `melder/melder.h:44:9`! insideFootercxx . . $ structHyperPage#insideFooter.;
101 conststring32cxx . . $ conststring32# rightFooter = reflect ? mycxx . . $ `melder/melder.h:44:9`! insideFootercxx . . $ structHyperPage#insideFooter. : mycxx . . $ `melder/melder.h:44:9`! outsideFootercxx . . $ structHyperPage#outsideFooter.;
102
103 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. = PAPER_TOPcxx . . $ `sys/HyperPage.cpp:38:9`! - TOP_MARGINcxx . . $ `sys/HyperPage.cpp:39:9`!;
104 mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x. = 0.0;
105 mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. = 0.0;
106 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., kGraphics_fontcxx . . $ kGraphics_font#::TIMEScxx . . $ kGraphics_font#TIMES.);
107 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 12);
108 Graphics_setFontStylecxx . . $ Graphics_setFontStyle(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_ITALICcxx . . $ `sys/Graphics.h:263:9`!);
109 if (leftHeader) {
110 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_TOPcxx . . $ `sys/Graphics.h:254:9`!);
111 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.7, PAPER_TOPcxx . . $ `sys/HyperPage.cpp:38:9`!, leftHeader);
112 }
113 if (mycxx . . $ `melder/melder.h:44:9`! middleHeadercxx . . $ structHyperPage#middleHeader.) {
114 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_TOPcxx . . $ `sys/Graphics.h:254:9`!);
115 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.7 + 3, PAPER_TOPcxx . . $ `sys/HyperPage.cpp:38:9`!, mycxx . . $ `melder/melder.h:44:9`! middleHeadercxx . . $ structHyperPage#middleHeader.);
116 }
117 if (rightHeader) {
118 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_RIGHTcxx . . $ `sys/Graphics.h:251:9`!, Graphics_TOPcxx . . $ `sys/Graphics.h:254:9`!);
119 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.7 + 6, PAPER_TOPcxx . . $ `sys/HyperPage.cpp:38:9`!, rightHeader);
120 }
121 if (leftFooter) {
122 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
123 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.7, PAPER_BOTTOMcxx . . $ `sys/HyperPage.cpp:40:9`!, leftFooter);
124 }
125 if (mycxx . . $ `melder/melder.h:44:9`! middleFootercxx . . $ structHyperPage#middleFooter.) {
126 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
127 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.7 + 3, PAPER_BOTTOMcxx . . $ `sys/HyperPage.cpp:40:9`!, mycxx . . $ `melder/melder.h:44:9`! middleFootercxx . . $ structHyperPage#middleFooter.);
128 }
129 if (rightFooter) {
130 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_RIGHTcxx . . $ `sys/Graphics.h:251:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
131 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.7 + 6, PAPER_BOTTOMcxx . . $ `sys/HyperPage.cpp:40:9`!, rightFooter);
132 }
133 Graphics_setFontStylecxx . . $ Graphics_setFontStyle(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_NORMALcxx . . $ `sys/Graphics.h:261:9`!);
134 if (mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumbercxx . . $ structHyperPage#d_printingPageNumber.)
135 Graphics_textcxx . . $ Graphics_text(bd267f534253e388). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.7 + ( reflect ? 0 : 6 ), PAPER_BOTTOMcxx . . $ `sys/HyperPage.cpp:40:9`!, mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumbercxx . . $ structHyperPage#d_printingPageNumber.);
136 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
137 }
138
139 static void updateVerticalScrollBarcxx . . $ updateVerticalScrollBar(1c8dff632c204718). (HyperPagecxx . . $ HyperPage# me);
140
141 void HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text, kGraphics_fontcxx . . $ kGraphics_font# font, double size, int style, double minFooterDistance,
142 double x, double secondIndent, double topSpacing, double bottomSpacing, uint32cxx . . $ uint32# method)
143 {
144 if (mycxx . . $ `melder/melder.h:44:9`! rightMargincxx . . $ structHyperPage#rightMargin. == 0.0)
145 return; // no infinite heights please
146 const double heightGuess = size * (1.2/72) * ((integercxx . . $ integer#) size * Melder_lengthcxx . . $ Melder_length(3fae411214b133ad). (text) / (int) (mycxx . . $ `melder/melder.h:44:9`! rightMargincxx . . $ structHyperPage#rightMargin. * 150));
147
148 if (! mycxx . . $ `melder/melder.h:44:9`! printingcxx . . $ structHyperPage#printing.) {
149 Graphics_Linkcxx . . $ Graphics_Link# *paragraphLinks;
150 int numberOfParagraphLinks, ilink;
151 if (mycxx . . $ `melder/melder.h:44:9`! entryHintcxx . . $ structHyperPage#entryHint. && (method & HyperPage_USE_ENTRY_HINTcxx . . $ `sys/HyperPage.h:84:9`!) && str32equcxx . . $ `melder/melder_str32.h:122:9`! (text, mycxx . . $ `melder/melder.h:44:9`! entryHintcxx . . $ structHyperPage#entryHint..getcxx . . $ _autostring#get(5a2a78a048fb49a8).()))
152 mycxx . . $ `melder/melder.h:44:9`! entryPositioncxx . . $ structHyperPage#entryPosition. = mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y.;
153 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= ( mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. > topSpacing ? mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. : topSpacing ) * size / 12.0;
154 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= size * (1.2/72);
155 mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x. = x;
156
157 if (/* my d_y > PAGE_HEIGHT + 2.0 + heightGuess || */ mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. < PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! - SCREEN_HEIGHTcxx . . $ `sys/HyperPage.cpp:37:9`!) {
158 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= heightGuess;
159 } else {
160 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), font);
161 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), size);
162 //if (method & HyperPage_EXECUTABLE)
163 // Graphics_setColour (my graphics.get(), Melder_GREEN);
164 //else
165 // Graphics_setColour (my graphics.get(), Melder_BLACK);
166 Graphics_setWrapWidthcxx . . $ Graphics_setWrapWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! rightMargincxx . . $ structHyperPage#rightMargin. - x - 0.1);
167 Graphics_setSecondIndentcxx . . $ Graphics_setSecondIndent(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), secondIndent);
168 Graphics_setFontStylecxx . . $ Graphics_setFontStyle(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), style);
169 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x., mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y., text);
170 numberOfParagraphLinks = Graphics_getLinkscxx . . $ Graphics_getLinks(52bc958f6c9f5dbe). (& paragraphLinks);
171 for (ilink = 1; ilink <= numberOfParagraphLinks; ilink ++) {
172 autoHyperLinkcxx . . $ autoHyperLink# link = HyperLink_createcxx . . $ HyperLink_create(7b0ce42fd0f00ef4). (paragraphLinks [ilink]. namecxx . . $ $anonymous_type_5b6ec70e96eeadfb_3#name.,
173 paragraphLinks [ilink]. x1cxx . . $ $anonymous_type_5b6ec70e96eeadfb_3#x1., paragraphLinks [ilink]. x2cxx . . $ $anonymous_type_5b6ec70e96eeadfb_3#x2.,
174 paragraphLinks [ilink]. y1cxx . . $ $anonymous_type_5b6ec70e96eeadfb_3#y1., paragraphLinks [ilink]. y2cxx . . $ $anonymous_type_5b6ec70e96eeadfb_3#y2.
175 );
176 mycxx . . $ `melder/melder.h:44:9`! linkscxx . . $ structHyperPage#links.. addItem_movecxx . . $ CollectionOf#addItem_move(bcc0cff787be24fe). (linkcxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f)..movecxx . . $ autoSomeThing#move(25acc3554b7d1642).());
177 }
178 if (method & HyperPage_ADD_BORDERcxx . . $ `sys/HyperPage.h:83:9`!) {
179 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 2.0);
180 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.0, mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y., mycxx . . $ `melder/melder.h:44:9`! rightMargincxx . . $ structHyperPage#rightMargin., mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y.);
181 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 1.0);
182 }
183 /*
184 The text may have wrapped.
185 Ask the Graphics manager by how much, and update our text position accordingly.
186 */
187 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. = Graphics_inqTextYcxx . . $ Graphics_inqTextY(f906975acce41a59). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
188 }
189 } else {
190 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., font);
191 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., size);
192 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= ( mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. == PAPER_TOPcxx . . $ `sys/HyperPage.cpp:38:9`! - TOP_MARGINcxx . . $ `sys/HyperPage.cpp:39:9`! ? 0 : ( mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. > topSpacing ? mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. : topSpacing ) * size / 12.0 );
193 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= size * (1.2/72);
194 if (mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. < PAPER_BOTTOMcxx . . $ `sys/HyperPage.cpp:40:9`! + BOTTOM_MARGINcxx . . $ `sys/HyperPage.cpp:41:9`! + minFooterDistance + size * (1.2/72) * (Melder_lengthcxx . . $ Melder_length(3fae411214b133ad). (text) / (6.0 * 10))) {
195 Graphics_nextSheetOfPapercxx . . $ Graphics_nextSheetOfPaper(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps.);
196 if (mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumbercxx . . $ structHyperPage#d_printingPageNumber. != 0)
197 mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumbercxx . . $ structHyperPage#d_printingPageNumber. ++;
198 HyperPage_initSheetOfPapercxx . . $ HyperPage_initSheetOfPaper(1c8dff632c204718). (me);
199 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., font);
200 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., size);
201 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= size * (1.2/72);
202 }
203 mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x. = 0.7 + x;
204 Graphics_setWrapWidthcxx . . $ Graphics_setWrapWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 6.0 - x);
205 Graphics_setSecondIndentcxx . . $ Graphics_setSecondIndent(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., secondIndent);
206 Graphics_setFontStylecxx . . $ Graphics_setFontStyle(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., style);
207 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x., mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y., text);
208 if (method & HyperPage_ADD_BORDERcxx . . $ `sys/HyperPage.h:83:9`!) {
209 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 3.0);
210 /*Graphics_line (my ps, 0.7, my d_y, 6.7, my d_y);*/
211 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.7, mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. + size * (1.2/72) + 0.07, 6.7, mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. + size * (1.2/72) + 0.07);
212 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 1.0);
213 }
214 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. = Graphics_inqTextYcxx . . $ Graphics_inqTextY(f906975acce41a59). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps.);
215 }
216 mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. = bottomSpacing;
217 }
218
219 void HyperPage_pageTitlecxx . . $ HyperPage_pageTitle(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# title) {
220 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, title, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 2.0, 0,
221 2.0, 0.0, 0.0, mycxx . . $ `melder/melder.h:44:9`! printingcxx . . $ structHyperPage#printing. ? 0.4/2 : 0.2/2, 0.3/2, HyperPage_ADD_BORDERcxx . . $ `sys/HyperPage.h:83:9`!);
222 }
223 void HyperPage_introcxx . . $ HyperPage_intro(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
224 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.0, 0.03, 0.0, 0.1, 0.1, 0);
225 }
226 void HyperPage_entrycxx . . $ HyperPage_entry(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# title) {
227 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, title, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 1.4, Graphics_BOLDcxx . . $ `sys/Graphics.h:262:9`!, 0.5, 0.0, 0.0, 0.25/1.4, 0.1/1.4, HyperPage_USE_ENTRY_HINTcxx . . $ `sys/HyperPage.h:84:9`!);
228 }
229 void HyperPage_subheadercxx . . $ HyperPage_subheader(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# title) {
230 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, title, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 1.2, Graphics_BOLDcxx . . $ `sys/Graphics.h:262:9`!, 0.4, 0.0, 0.0, 0.25/1.2, 0.1/1.2, HyperPage_USE_ENTRY_HINTcxx . . $ `sys/HyperPage.h:84:9`!);
231 }
232 void HyperPage_paragraphcxx . . $ HyperPage_paragraph(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
233 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.0, 0.03, 0.0, 0.1, 0.1, 0);
234 }
235 void HyperPage_listItemcxx . . $ HyperPage_listItem(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
236 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.0, 0.30, 0.2, 0.0, 0.0, 0);
237 }
238 void HyperPage_listItem1cxx . . $ HyperPage_listItem1(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
239 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.0, 0.57, 0.2, 0.0, 0.0, 0);
240 }
241 void HyperPage_listItem2cxx . . $ HyperPage_listItem2(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
242 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.0, 0.84, 0.2, 0.0, 0.0, 0);
243 }
244 void HyperPage_listItem3cxx . . $ HyperPage_listItem3(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
245 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.0, 1.11, 0.2, 0.0, 0.0, 0);
246 }
247 void HyperPage_listTagcxx . . $ HyperPage_listTag(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
248 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.2, 0.03, 0.0, 0.1, 0.03, 0);
249 }
250 void HyperPage_listTag1cxx . . $ HyperPage_listTag1(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
251 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.2, 0.50, 0.0, 0.05, 0.03, 0);
252 }
253 void HyperPage_listTag2cxx . . $ HyperPage_listTag2(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
254 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.2, 0.97, 0.0, 0.03, 0.03, 0);
255 }
256 void HyperPage_listTag3cxx . . $ HyperPage_listTag3(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
257 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.2, 1.44, 0.0, 0.03, 0.03, 0);
258 }
259 void HyperPage_definitioncxx . . $ HyperPage_definition(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
260 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.0, 0.5, 0.0, 0.03, 0.1, 0);
261 }
262 void HyperPage_definition1cxx . . $ HyperPage_definition1(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
263 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.0, 0.97, 0.0, 0.03, 0.05, 0);
264 }
265 void HyperPage_definition2cxx . . $ HyperPage_definition2(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
266 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.0, 1.44, 0.0, 0.03, 0.03, 0);
267 }
268 void HyperPage_definition3cxx . . $ HyperPage_definition3(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
269 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.0, 1.93, 0.0, 0.03, 0.03, 0);
270 }
271 void HyperPage_code0cxx . . $ HyperPage_code0(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
272 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, kGraphics_fontcxx . . $ kGraphics_font#::COURIERcxx . . $ kGraphics_font#COURIER., mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86, 0, 0.0, 0.0, 0.5, 0.0, 0.0, 0);
273 }
274 void HyperPage_codecxx . . $ HyperPage_code(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
275 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, kGraphics_fontcxx . . $ kGraphics_font#::COURIERcxx . . $ kGraphics_font#COURIER., mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86, 0, 0.0, 0.3, 0.5, 0.0, 0.0, HyperPage_EXECUTABLEcxx . . $ `sys/HyperPage.h:85:9`!);
276 }
277 void HyperPage_code1cxx . . $ HyperPage_code1(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
278 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, kGraphics_fontcxx . . $ kGraphics_font#::COURIERcxx . . $ kGraphics_font#COURIER., mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86, 0, 0.0, 0.6, 0.5, 0.0, 0.0, 0);
279 }
280 void HyperPage_code2cxx . . $ HyperPage_code2(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
281 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, kGraphics_fontcxx . . $ kGraphics_font#::COURIERcxx . . $ kGraphics_font#COURIER., mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86, 0, 0.0, 0.9, 0.5, 0.0, 0.0, 0);
282 }
283 void HyperPage_code3cxx . . $ HyperPage_code3(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
284 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, kGraphics_fontcxx . . $ kGraphics_font#::COURIERcxx . . $ kGraphics_font#COURIER., mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86, 0, 0.0, 1.2, 0.5, 0.0, 0.0, 0);
285 }
286 void HyperPage_code4cxx . . $ HyperPage_code4(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
287 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, kGraphics_fontcxx . . $ kGraphics_font#::COURIERcxx . . $ kGraphics_font#COURIER., mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86, 0, 0.0, 1.5, 0.5, 0.0, 0.0, 0);
288 }
289 void HyperPage_code5cxx . . $ HyperPage_code5(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
290 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, kGraphics_fontcxx . . $ kGraphics_font#::COURIERcxx . . $ kGraphics_font#COURIER., mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86, 0, 0.0, 1.8, 0.5, 0.0, 0.0, 0);
291 }
292 void HyperPage_captioncxx . . $ HyperPage_caption(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
293 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86, 0, 0.0, 0.5, 0.5, 0.0, 0.2, 0);
294 }
295 void HyperPage_quotecxx . . $ HyperPage_quote(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
296 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86, 0, 0.0, 0.5, 0.0, 0.1, 0.1, 0);
297 }
298 void HyperPage_quote1cxx . . $ HyperPage_quote1(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
299 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86, 0, 0.0, 1.0, 0.0, 0.1, 0.1, 0);
300 }
301 void HyperPage_quote2cxx . . $ HyperPage_quote2(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
302 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86, 0, 0.0, 1.5, 0.0, 0.1, 0.1, 0);
303 }
304 void HyperPage_quote3cxx . . $ HyperPage_quote3(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
305 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86, 0, 0.0, 2.0, 0.0, 0.1, 0.1, 0);
306 }
307 void HyperPage_prototypecxx . . $ HyperPage_prototype(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# text) {
308 HyperPage_anycxx . . $ HyperPage_any(c88eb68d76615c12). (me, text, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).(), 0, 0.0, 0.03, 0.5, 0.0, 0.0, 0);
309 }
310 void HyperPage_formulacxx . . $ HyperPage_formula(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# formula) {
311 constexpr double topSpacing = 0.2, bottomSpacing = 0.2, minFooterDistance = 0.0;
312 const kGraphics_fontcxx . . $ kGraphics_font# font = mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).();
313 const double size = mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).();
314 if (! mycxx . . $ `melder/melder.h:44:9`! printingcxx . . $ structHyperPage#printing.) {
315 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= ( mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. > topSpacing ? mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. : topSpacing ) * size / 12.0;
316 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= size * (1.2/72);
317 if (mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. > PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! + 2.0 || mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. < PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! - SCREEN_HEIGHTcxx . . $ `sys/HyperPage.cpp:37:9`!) {
318 } else {
319 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), font);
320 Graphics_setFontStylecxx . . $ Graphics_setFontStyle(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0);
321 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), size);
322 Graphics_setWrapWidthcxx . . $ Graphics_setWrapWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.0);
323 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
324 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.5 * mycxx . . $ `melder/melder.h:44:9`! rightMargincxx . . $ structHyperPage#rightMargin., mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y., formula);
325 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
326 }
327 } else {
328 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., font);
329 Graphics_setFontStylecxx . . $ Graphics_setFontStyle(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0);
330 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., size);
331 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= ( mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. == PAPER_TOPcxx . . $ `sys/HyperPage.cpp:38:9`! - TOP_MARGINcxx . . $ `sys/HyperPage.cpp:39:9`! ? 0 : ( mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. > topSpacing ? mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. : topSpacing ) * size / 12.0 );
332 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= size * (1.2/72);
333 if (mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. < PAPER_BOTTOMcxx . . $ `sys/HyperPage.cpp:40:9`! + BOTTOM_MARGINcxx . . $ `sys/HyperPage.cpp:41:9`! + minFooterDistance) {
334 Graphics_nextSheetOfPapercxx . . $ Graphics_nextSheetOfPaper(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps.);
335 if (mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumbercxx . . $ structHyperPage#d_printingPageNumber.) mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumbercxx . . $ structHyperPage#d_printingPageNumber. ++;
336 HyperPage_initSheetOfPapercxx . . $ HyperPage_initSheetOfPaper(1c8dff632c204718). (me);
337 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., font);
338 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., size);
339 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= size * (1.2/72);
340 }
341 Graphics_setWrapWidthcxx . . $ Graphics_setWrapWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.0);
342 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
343 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 3.7, mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y., formula);
344 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
345 }
346 mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. = bottomSpacing;
347 }
348
349 void HyperPage_picturecxx . . $ HyperPage_picture(33f50d1d203ff172). (HyperPagecxx . . $ HyperPage# me, double width_inches, double height_inches, void (*draw) (Graphicscxx . . $ Graphics# g)) {
350 constexpr double topSpacing = 0.1, bottomSpacing = 0.1, minFooterDistance = 0.0;
351 const kGraphics_fontcxx . . $ kGraphics_font# font = mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).();
352 const int size = mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).();
353 width_inches *= ( width_inches < 0.0 ? -1.0 : size / 12.0 );
354 height_inches *= ( height_inches < 0.0 ? -1.0 : size / 12.0 );
355 if (! mycxx . . $ `melder/melder.h:44:9`! printingcxx . . $ structHyperPage#printing.) {
356 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= ( mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. > topSpacing ? mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. : topSpacing ) * size / 12.0;
357 if (mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. > PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! + height_inches || mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. < PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! - SCREEN_HEIGHTcxx . . $ `sys/HyperPage.cpp:37:9`!) {
358 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= height_inches;
359 } else {
360 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= height_inches;
361 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), font);
362 Graphics_setFontStylecxx . . $ Graphics_setFontStyle(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0);
363 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), size);
364 mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x. = ( width_inches > mycxx . . $ `melder/melder.h:44:9`! rightMargincxx . . $ structHyperPage#rightMargin. ? 0.0 : 0.5 * (mycxx . . $ `melder/melder.h:44:9`! rightMargincxx . . $ structHyperPage#rightMargin. - width_inches) );
365 Graphics_setWrapWidthcxx . . $ Graphics_setWrapWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.0);
366 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x., mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x. + width_inches, mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y., mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. + height_inches);
367 draw (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
368 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.0, 1.0, 0.0, 1.0);
369 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.0, 1.0, 0.0, 1.0);
370 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
371 }
372 } else {
373 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., font);
374 Graphics_setFontStylecxx . . $ Graphics_setFontStyle(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0);
375 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., size);
376 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= ( mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. == PAPER_TOPcxx . . $ `sys/HyperPage.cpp:38:9`! - TOP_MARGINcxx . . $ `sys/HyperPage.cpp:39:9`! ? 0.0 : ( mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. > topSpacing ? mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. : topSpacing ) * size / 12.0 );
377 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= height_inches;
378 if (mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. < PAPER_BOTTOMcxx . . $ `sys/HyperPage.cpp:40:9`! + BOTTOM_MARGINcxx . . $ `sys/HyperPage.cpp:41:9`! + minFooterDistance) {
379 Graphics_nextSheetOfPapercxx . . $ Graphics_nextSheetOfPaper(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps.);
380 if (mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumbercxx . . $ structHyperPage#d_printingPageNumber.) mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumbercxx . . $ structHyperPage#d_printingPageNumber. ++;
381 HyperPage_initSheetOfPapercxx . . $ HyperPage_initSheetOfPaper(1c8dff632c204718). (me);
382 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., font);
383 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., size);
384 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= height_inches;
385 }
386 mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x. = Melder_clippedLeftcxx . . $ Melder_clippedLeft(f80f7d6260b3ee3a). (0.0, 3.7 - 0.5 * width_inches);
387 Graphics_setWrapWidthcxx . . $ Graphics_setWrapWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.0);
388 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x., mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x. + width_inches, mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y., mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. + height_inches);
389 draw (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps.);
390 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.0, 1.0, 0.0, 1.0);
391 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.0, 1.0, 0.0, 1.0);
392 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
393 }
394 mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. = bottomSpacing;
395 }
396
397 void HyperPage_scriptcxx . . $ HyperPage_script(917ab09bfd2ea667). (HyperPagecxx . . $ HyperPage# me, double width_inches, double height_inches, conststring32cxx . . $ conststring32# script,
398 Graphicscxx . . $ Graphics# cacheGraphics, conststring32cxx . . $ conststring32# cacheInfo)
399 {
400 if (cacheInfo && cacheInfo [0] != U'\0') {
401 const double fontSize = mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() * 0.86; // as in CODE
402 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_MAGENTAcxx . . $ Melder_MAGENTA.);
403 HyperPage_code0cxx . . $ HyperPage_code0(9d6e0dd96656f536). (me, U"\\#{=>}");
404 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLACKcxx . . $ Melder_BLACK.);
405 //my d_y -= fontSize * (1.0/72); // some empty space between the code and the output
406 static MelderStringcxx . . $ MelderString# buffer;
407 MelderString_emptycxx . . $ MelderString_empty(93db1090f27e5462). (& buffer);
408 for (const char32cxx . . $ char32# *p = & cacheInfo [0]; *p != U'\0'; p ++) {
409 if (Melder_isEndOfLinecxx . . $ Melder_isEndOfLine(b8d0204ce8416907). (*p)) {
410 if (
411 str32strcxx . . $ str32str(2de17cd8f7c584a6). (buffer.stringcxx . . $ MelderString#string., U"**AN ERROR OCCURRED IN THIS CODE CHUNK:**") ||
412 str32strcxx . . $ str32str(2de17cd8f7c584a6). (buffer.stringcxx . . $ MelderString#string., U"**ERROR** This code chunk was not run,")
413 )
414 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_REDcxx . . $ Melder_RED.);
415 if (str32chrcxx . . $ str32chr(328a9ede0fba853a). (buffer.stringcxx . . $ MelderString#string., U'\t')) // is there a tab *anywhere* in the line?
416 HyperPage_codecxx . . $ HyperPage_code(9d6e0dd96656f536). (me, Melder_catcxx . . $ Melder_cat(7fbf27f4d367f442). (U"\t", buffer.stringcxx . . $ MelderString#string.)); // ... then make sure that the first column is also tabbed
417 else
418 HyperPage_codecxx . . $ HyperPage_code(9d6e0dd96656f536). (me, buffer.stringcxx . . $ MelderString#string.);
419 MelderString_emptycxx . . $ MelderString_empty(93db1090f27e5462). (& buffer);
420 } else {
421 MelderString_appendCharactercxx . . $ MelderString_appendCharacter(f4ab64866cffe712). (& buffer, *p);
422 }
423 }
424 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLACKcxx . . $ Melder_BLACK.);
425 }
426 autostring32cxx . . $ autostring32# text = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (script);
427 constexpr double topSpacing = 0.1, bottomSpacing = 0.1, minFooterDistance = 0.0;
428 const kGraphics_fontcxx . . $ kGraphics_font# font = mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).();
429 const double fontSize = mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).();
430 const double true_width_inches = width_inches * ( width_inches < 0.0 ? -1.0 : fontSize / 12.0 );
431 const double true_height_inches = height_inches * ( height_inches < 0.0 ? -1.0 : fontSize / 12.0 );
432 if (! mycxx . . $ `melder/melder.h:44:9`! printingcxx . . $ structHyperPage#printing.) {
433 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= ( mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. > topSpacing ? mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. : topSpacing ) * fontSize / 12.0;
434 if (mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. > PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! + true_height_inches || mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. < PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! - SCREEN_HEIGHTcxx . . $ `sys/HyperPage.cpp:37:9`!) {
435 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= true_height_inches;
436 } else {
437 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= true_height_inches;
438 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), font);
439 Graphics_setFontStylecxx . . $ Graphics_setFontStyle(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0);
440 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), fontSize);
441 mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x. = ( true_width_inches > mycxx . . $ `melder/melder.h:44:9`! rightMargincxx . . $ structHyperPage#rightMargin. ? 0.0 : 0.5 * (mycxx . . $ `melder/melder.h:44:9`! rightMargincxx . . $ structHyperPage#rightMargin. - true_width_inches) );
442 Graphics_setWrapWidthcxx . . $ Graphics_setWrapWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.0);
443 integercxx . . $ integer# x1DCold, x2DCold, y1DCold, y2DCold;
444 Graphics_inqWsViewportcxx . . $ Graphics_inqWsViewport(17f6d84cadd6c860). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), & x1DCold, & x2DCold, & y1DCold, & y2DCold);
445 double x1NDCold, x2NDCold, y1NDCold, y2NDCold;
446 Graphics_inqWsWindowcxx . . $ Graphics_inqWsWindow(962850f2031ce0d0). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), & x1NDCold, & x2NDCold, & y1NDCold, & y2NDCold);
447 {
448 if (! mycxx . . $ `melder/melder.h:44:9`! praatApplicationcxx . . $ structHyperPage#praatApplication.)
449 mycxx . . $ `melder/melder.h:44:9`! praatApplicationcxx . . $ structHyperPage#praatApplication. = Melder_calloc_fcxx . . $ `melder/melder_alloc.h:36:9`! (structPraatApplication, 1);
450 if (! mycxx . . $ `melder/melder.h:44:9`! praatObjectscxx . . $ structHyperPage#praatObjects.)
451 mycxx . . $ `melder/melder.h:44:9`! praatObjectscxx . . $ structHyperPage#praatObjects. = Melder_calloc_fcxx . . $ `melder/melder_alloc.h:36:9`! (structPraatObjects, 1);
452 if (! mycxx . . $ `melder/melder.h:44:9`! praatPicturecxx . . $ structHyperPage#praatPicture.)
453 mycxx . . $ `melder/melder.h:44:9`! praatPicturecxx . . $ structHyperPage#praatPicture. = Melder_calloc_fcxx . . $ `melder/melder_alloc.h:36:9`! (structPraatPicture, 1);
454 theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. = mycxx . . $ `melder/melder.h:44:9`! praatApplicationcxx . . $ structHyperPage#praatApplication.;
455 theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch. = true; // prevent creation of editor windows
456 theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> topShellcxx . . $ structPraatApplication#topShell. = theForegroundPraatApplicationcxx . . $ theForegroundPraatApplication.. topShellcxx . . $ structPraatApplication#topShell.; // needed for UiForm_create () in dialogs
457 theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. = mycxx . . $ `melder/melder.h:44:9`! praatObjectscxx . . $ structHyperPage#praatObjects.;
458 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. = mycxx . . $ `melder/melder.h:44:9`! praatPicturecxx . . $ structHyperPage#praatPicture.;
459 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> graphicscxx . . $ structPraatPicture#graphics. = mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(); // has to draw into HyperPage rather than Picture window
460 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font. = font;
461 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. = fontSize;
462 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType. = Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!;
463 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour. =cxx . . $ MelderColour#`operator=`(3ab3c3f6bc5cdda1). Melder_BLACKcxx . . $ Melder_BLACK.;
464 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineWidthcxx . . $ structPraatPicture#lineWidth. = 1.0;
465 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> arrowSizecxx . . $ structPraatPicture#arrowSize. = 1.0;
466 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> speckleSizecxx . . $ structPraatPicture#speckleSize. = 1.0;
467 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC. = mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x.;
468 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. = mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x. + true_width_inches;
469 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. = mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y.;
470 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. = mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. + true_height_inches;
471
472 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
473 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.0, 1.0, 0.0, 1.0);
474 integercxx . . $ integer# x1DC, y1DC, x2DC, y2DC;
475 Graphics_WCtoDCcxx . . $ Graphics_WCtoDC(fcc4c7f5705d306f). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.0, 0.0, & x1DC, & y2DC);
476 Graphics_WCtoDCcxx . . $ Graphics_WCtoDC(fcc4c7f5705d306f). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 1.0, 1.0, & x2DC, & y1DC);
477 Graphics_resetWsViewportcxx . . $ Graphics_resetWsViewport(4ffe5bb10b2fb6bd). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), x1DC, x2DC, y1DC, y2DC);
478 Graphics_setWsWindowcxx . . $ Graphics_setWsWindow(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0, width_inches, 0, height_inches);
479 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC. = 0.0;
480 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. = width_inches;
481 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. = 0.0;
482 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. = height_inches;
483 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
484
485 {// scope
486 autoMelderProgressOffcxx . . $ autoMelderProgressOff# progresscxx . . $ autoMelderProgressOff#autoMelderProgressOff(49f6e7a06ebc5aa8).;
487 autoMelderWarningOffcxx . . $ autoMelderWarningOff# nowarncxx . . $ autoMelderWarningOff#autoMelderWarningOff(49f6e7a06ebc5aa8).;
488 autoMelderSaveCurrentFoldercxx . . $ autoMelderSaveCurrentFolder# saveFoldercxx . . $ autoMelderSaveCurrentFolder#autoMelderSaveCurrentFolder(49f6e7a06ebc5aa8).;
489 if (! MelderFolder_isNullcxx . . $ MelderFolder_isNull(f2f3cbeb84a71ab3). (& mycxx . . $ `melder/melder.h:44:9`! rootDirectorycxx . . $ structHyperPage#rootDirectory.))
490 Melder_setCurrentFoldercxx . . $ Melder_setCurrentFolder(63f38d3b6b86d1dc). (& mycxx . . $ `melder/melder.h:44:9`! rootDirectorycxx . . $ structHyperPage#rootDirectory.);
491 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (cacheGraphics);
492 const bool dollarSignWasCode = mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics. ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). dollarSignIsCodecxx . . $ structGraphics#dollarSignIsCode.;
493 const bool backquoteWasVerbatim = mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics. ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). backquoteIsVerbatimcxx . . $ structGraphics#backquoteIsVerbatim.;
494 const bool atSignWasLink = mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics. ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). atSignIsLinkcxx . . $ structGraphics#atSignIsLink.;
495 Graphics_setDollarSignIsCodecxx . . $ Graphics_setDollarSignIsCode(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false);
496 Graphics_setBackquoteIsVerbatimcxx . . $ Graphics_setBackquoteIsVerbatim(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false);
497 Graphics_setAtSignIsLinkcxx . . $ Graphics_setAtSignIsLink(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false);
498 Graphics_playcxx . . $ Graphics_play(381ee972040461e0). (cacheGraphics, mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
499 if (dollarSignWasCode)
500 Graphics_setDollarSignIsCodecxx . . $ Graphics_setDollarSignIsCode(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), true);
501 if (backquoteWasVerbatim)
502 Graphics_setBackquoteIsVerbatimcxx . . $ Graphics_setBackquoteIsVerbatim(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), true);
503 if (atSignWasLink)
504 Graphics_setAtSignIsLinkcxx . . $ Graphics_setAtSignIsLink(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), true);
505 }
506 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
507 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 1.0);
508 Graphics_setArrowSizecxx . . $ Graphics_setArrowSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 1.0);
509 Graphics_setSpeckleSizecxx . . $ Graphics_setSpeckleSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 1.0);
510 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLACKcxx . . $ Melder_BLACK.);
511 theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. = & theForegroundPraatApplicationcxx . . $ theForegroundPraatApplication.;
512 theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. = & theForegroundPraatObjectscxx . . $ theForegroundPraatObjects.;
513 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. = & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.;
514 }
515 Graphics_resetWsViewportcxx . . $ Graphics_resetWsViewport(4ffe5bb10b2fb6bd). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), x1DCold, x2DCold, y1DCold, y2DCold);
516 Graphics_setWsWindowcxx . . $ Graphics_setWsWindow(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), x1NDCold, x2NDCold, y1NDCold, y2NDCold);
517 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.0, 1.0, 0.0, 1.0);
518 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.0, 1.0, 0.0, 1.0);
519 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
520 }
521 } else {
522 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., font);
523 Graphics_setFontStylecxx . . $ Graphics_setFontStyle(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0);
524 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., fontSize);
525 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= ( mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. == PAPER_TOPcxx . . $ `sys/HyperPage.cpp:38:9`! - TOP_MARGINcxx . . $ `sys/HyperPage.cpp:39:9`! ? 0.0 : ( mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. > topSpacing ? mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. : topSpacing ) * fontSize / 12.0 );
526 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= true_height_inches;
527 if (mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. < PAPER_BOTTOMcxx . . $ `sys/HyperPage.cpp:40:9`! + BOTTOM_MARGINcxx . . $ `sys/HyperPage.cpp:41:9`! + minFooterDistance) {
528 Graphics_nextSheetOfPapercxx . . $ Graphics_nextSheetOfPaper(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps.);
529 if (mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumbercxx . . $ structHyperPage#d_printingPageNumber.) mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumbercxx . . $ structHyperPage#d_printingPageNumber. ++;
530 HyperPage_initSheetOfPapercxx . . $ HyperPage_initSheetOfPaper(1c8dff632c204718). (me);
531 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., font);
532 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., fontSize);
533 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. -= true_height_inches;
534 }
535 mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x. = Melder_clippedLeftcxx . . $ Melder_clippedLeft(f80f7d6260b3ee3a). (0.0, 3.7 - 0.5 * true_width_inches);
536 Graphics_setWrapWidthcxx . . $ Graphics_setWrapWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.0);
537 integercxx . . $ integer# x1DCold, x2DCold, y1DCold, y2DCold;
538 Graphics_inqWsViewportcxx . . $ Graphics_inqWsViewport(17f6d84cadd6c860). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., & x1DCold, & x2DCold, & y1DCold, & y2DCold);
539 double x1NDCold, x2NDCold, y1NDCold, y2NDCold;
540 Graphics_inqWsWindowcxx . . $ Graphics_inqWsWindow(962850f2031ce0d0). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., & x1NDCold, & x2NDCold, & y1NDCold, & y2NDCold);
541 {
542 if (! mycxx . . $ `melder/melder.h:44:9`! praatApplicationcxx . . $ structHyperPage#praatApplication.)
543 mycxx . . $ `melder/melder.h:44:9`! praatApplicationcxx . . $ structHyperPage#praatApplication. = Melder_calloc_fcxx . . $ `melder/melder_alloc.h:36:9`! (structPraatApplication, 1);
544 if (! mycxx . . $ `melder/melder.h:44:9`! praatObjectscxx . . $ structHyperPage#praatObjects.)
545 mycxx . . $ `melder/melder.h:44:9`! praatObjectscxx . . $ structHyperPage#praatObjects. = Melder_calloc_fcxx . . $ `melder/melder_alloc.h:36:9`! (structPraatObjects, 1);
546 if (! mycxx . . $ `melder/melder.h:44:9`! praatPicturecxx . . $ structHyperPage#praatPicture.)
547 mycxx . . $ `melder/melder.h:44:9`! praatPicturecxx . . $ structHyperPage#praatPicture. = Melder_calloc_fcxx . . $ `melder/melder_alloc.h:36:9`! (structPraatPicture, 1);
548 theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. = mycxx . . $ `melder/melder.h:44:9`! praatApplicationcxx . . $ structHyperPage#praatApplication.;
549 theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch. = true;
550 theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> topShellcxx . . $ structPraatApplication#topShell. = theForegroundPraatApplicationcxx . . $ theForegroundPraatApplication.. topShellcxx . . $ structPraatApplication#topShell.; // needed for UiForm_create () in dialogs
551 theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. = mycxx . . $ `melder/melder.h:44:9`! praatObjectscxx . . $ structHyperPage#praatObjects.;
552 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. = mycxx . . $ `melder/melder.h:44:9`! praatPicturecxx . . $ structHyperPage#praatPicture.;
553 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> graphicscxx . . $ structPraatPicture#graphics. = mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps.;
554 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font. = font;
555 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. = fontSize;
556 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType. = Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!;
557 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour. =cxx . . $ MelderColour#`operator=`(3ab3c3f6bc5cdda1). Melder_BLACKcxx . . $ Melder_BLACK.;
558 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineWidthcxx . . $ structPraatPicture#lineWidth. = 1.0;
559 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> arrowSizecxx . . $ structPraatPicture#arrowSize. = 1.0;
560 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> speckleSizecxx . . $ structPraatPicture#speckleSize. = 1.0;
561 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC. = mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x.;
562 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. = mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x. + true_width_inches;
563 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. = mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y.;
564 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. = mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. + true_height_inches;
565
566 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
567 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.0, 1.0, 0.0, 1.0);
568 integercxx . . $ integer# x1DC, y1DC, x2DC, y2DC;
569 Graphics_WCtoDCcxx . . $ Graphics_WCtoDC(fcc4c7f5705d306f). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.0, 0.0, & x1DC, & y2DC);
570 Graphics_WCtoDCcxx . . $ Graphics_WCtoDC(fcc4c7f5705d306f). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 1.0, 1.0, & x2DC, & y1DC);
571 integercxx . . $ integer# shift = (integercxx . . $ integer#) (Graphics_getResolutioncxx . . $ Graphics_getResolution(d4bbe1b9daaaf11b). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps.) * true_height_inches) + (y1DCold - y2DCold);
572 #if cocoacxx . . $ `sys/Gui.h:35:10`!
573 shift = 0; // this is a FIX
574 #endif
575 Graphics_resetWsViewportcxx . . $ Graphics_resetWsViewport(4ffe5bb10b2fb6bd). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., x1DC, x2DC, y1DC + shift, y2DC + shift);
576 Graphics_setWsWindowcxx . . $ Graphics_setWsWindow(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0, width_inches, 0, height_inches);
577 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC. = 0.0;
578 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. = width_inches;
579 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. = 0.0;
580 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. = height_inches;
581 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
582
583 {// scope
584 autoMelderProgressOffcxx . . $ autoMelderProgressOff# progresscxx . . $ autoMelderProgressOff#autoMelderProgressOff(49f6e7a06ebc5aa8).;
585 autoMelderWarningOffcxx . . $ autoMelderWarningOff# nowarncxx . . $ autoMelderWarningOff#autoMelderWarningOff(49f6e7a06ebc5aa8).;
586 autoMelderSaveCurrentFoldercxx . . $ autoMelderSaveCurrentFolder# saveFoldercxx . . $ autoMelderSaveCurrentFolder#autoMelderSaveCurrentFolder(49f6e7a06ebc5aa8).;
587 if (! MelderFolder_isNullcxx . . $ MelderFolder_isNull(f2f3cbeb84a71ab3). (& mycxx . . $ `melder/melder.h:44:9`! rootDirectorycxx . . $ structHyperPage#rootDirectory.))
588 Melder_setCurrentFoldercxx . . $ Melder_setCurrentFolder(63f38d3b6b86d1dc). (& mycxx . . $ `melder/melder.h:44:9`! rootDirectorycxx . . $ structHyperPage#rootDirectory.);
589 try {
590 //Interpreter_run (interpreter, text.move(), false); // BUG: implement
591 } catch (MelderErrorcxx . . $ MelderError#) {
592 Melder_clearErrorcxx . . $ Melder_clearError(49f6e7a06ebc5aa8). ();
593 }
594 }
595 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
596 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 1.0);
597 Graphics_setArrowSizecxx . . $ Graphics_setArrowSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 1.0);
598 Graphics_setSpeckleSizecxx . . $ Graphics_setSpeckleSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 1.0);
599 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Melder_BLACKcxx . . $ Melder_BLACK.);
600 theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. = & theForegroundPraatApplicationcxx . . $ theForegroundPraatApplication.;
601 theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. = & theForegroundPraatObjectscxx . . $ theForegroundPraatObjects.;
602 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. = & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.;
603 }
604 Graphics_resetWsViewportcxx . . $ Graphics_resetWsViewport(4ffe5bb10b2fb6bd). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., x1DCold, x2DCold, y1DCold, y2DCold);
605 Graphics_setWsWindowcxx . . $ Graphics_setWsWindow(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., x1NDCold, x2NDCold, y1NDCold, y2NDCold);
606 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.0, 1.0, 0.0, 1.0);
607 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., 0.0, 1.0, 0.0, 1.0);
608 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps., Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
609 }
610 mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. = bottomSpacing;
611 }
612
613 static void printcxx . . $ print(a20fea2f25bbab6f). (void *void_me, Graphicscxx . . $ Graphics# graphics) {
614 iamcxx . . $ `melder/melder.h:50:9`! (HyperPage);
615 mycxx . . $ `melder/melder.h:44:9`! pscxx . . $ structHyperPage#ps. = graphics;
616 Graphics_setDollarSignIsCodecxx . . $ Graphics_setDollarSignIsCode(b5ae742079ad918c). (graphics, true); // for manuals
617 Graphics_setBackquoteIsVerbatimcxx . . $ Graphics_setBackquoteIsVerbatim(b5ae742079ad918c). (graphics, true); // for notebooks
618 Graphics_setAtSignIsLinkcxx . . $ Graphics_setAtSignIsLink(b5ae742079ad918c). (graphics, true);
619 mycxx . . $ `melder/melder.h:44:9`! printingcxx . . $ structHyperPage#printing. = true;
620 HyperPage_initSheetOfPapercxx . . $ HyperPage_initSheetOfPaper(1c8dff632c204718). (me);
621 mycxx . . $ `melder/melder.h:44:9`! v_drawcxx . . $ structHyperPage#v_draw(49f6e7a06ebc5aa8). ();
622 mycxx . . $ `melder/melder.h:44:9`! printingcxx . . $ structHyperPage#printing. = false;
623 }
624
625 /********** class HyperPage **********/
626
627 void structHyperPagecxx . . $ structHyperPage# :: v9_destroycxx . . $ structHyperPage#v9_destroy(ced63f7c635d850d). () noexcept {
628 if (ourcxx . . $ `melder/melder.h:42:9`! praatApplicationcxx . . $ structHyperPage#praatApplication.) {
629 for (integercxx . . $ integer# iobject = ((PraatObjectscxx . . $ PraatObjects#) ourcxx . . $ `melder/melder.h:42:9`! praatObjectscxx . . $ structHyperPage#praatObjects.) -> ncxx . . $ structPraatObjects#n.; iobject >= 1; iobject --) {
630 ((PraatObjectscxx . . $ PraatObjects#) ourcxx . . $ `melder/melder.h:42:9`! praatObjectscxx . . $ structHyperPage#praatObjects.) -> listcxx . . $ structPraatObjects#list. [iobject]. namecxx . . $ structPraat_Object#name.. resetcxx . . $ _autostring#reset(49f6e7a06ebc5aa8).();
631 forgetcxx . . $ `sys/Thing.h:158:9`! (((PraatObjects) ourcxx . . $ `melder/melder.h:42:9`! praatObjects) -> list [iobject]. object);
632 }
633 Melder_freecxx . . $ `melder/melder_alloc.h:38:9`! (ourcxx . . $ `melder/melder.h:42:9`! praatApplication);
634 Melder_freecxx . . $ `melder/melder_alloc.h:38:9`! (ourcxx . . $ `melder/melder.h:42:9`! praatObjects);
635 Melder_freecxx . . $ `melder/melder_alloc.h:38:9`! (ourcxx . . $ `melder/melder.h:42:9`! praatPicture);
636 }
637 ourcxx . . $ `melder/melder.h:42:9`! HyperPage_Parentcxx . . $ HyperPage_Parent# :: v9_destroycxx . . $ structEditor#v9_destroy(ced63f7c635d850d). ();
638 }
639
640 static void gui_drawingarea_cb_exposecxx . . $ gui_drawingarea_cb_expose(887d5c09b94b82f1). (HyperPagecxx . . $ HyperPage# me, GuiDrawingArea_ExposeEventcxx . . $ GuiDrawingArea_ExposeEvent# /* event */) {
641 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"HyperPage: gui_drawingarea_cb_expose");
642 if (! mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics.)
643 return; // could be the case in the very beginning
644 if (mycxx . . $ `melder/melder.h:44:9`! entryHintcxx . . $ structHyperPage#entryHint. && mycxx . . $ `melder/melder.h:44:9`! entryPositioncxx . . $ structHyperPage#entryPosition. != 0.0) {
645 mycxx . . $ `melder/melder.h:44:9`! entryHintcxx . . $ structHyperPage#entryHint.. resetcxx . . $ _autostring#reset(49f6e7a06ebc5aa8).();
646 mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top. = 5.0 * (PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! - mycxx . . $ `melder/melder.h:44:9`! entryPositioncxx . . $ structHyperPage#entryPosition.);
647 Melder_clipLeftcxx . . $ Melder_clipLeft(6245cd023a7d1552). (0.0, & mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top.);
648 }
649 mycxx . . $ `melder/melder.h:44:9`! d_ycxx . . $ structHyperPage#d_y. = PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! + mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top. / 5.0;
650 mycxx . . $ `melder/melder.h:44:9`! d_xcxx . . $ structHyperPage#d_x. = 0.0;
651 mycxx . . $ `melder/melder.h:44:9`! previousBottomSpacingcxx . . $ structHyperPage#previousBottomSpacing. = 0.0;
652 mycxx . . $ `melder/melder.h:44:9`! linkscxx . . $ structHyperPage#links.. removeAllItemscxx . . $ CollectionOf#removeAllItems(49f6e7a06ebc5aa8). ();
653 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"going to draw");
654 Graphics_clearWscxx . . $ Graphics_clearWs(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
655 mycxx . . $ `melder/melder.h:44:9`! v_drawcxx . . $ structHyperPage#v_draw(49f6e7a06ebc5aa8). ();
656 }
657
658 static void gui_drawingarea_cb_mousecxx . . $ gui_drawingarea_cb_mouse(16e47f5adaca7417). (HyperPagecxx . . $ HyperPage# me, GuiDrawingArea_MouseEventcxx . . $ GuiDrawingArea_MouseEvent# event) {
659 if (! event -> isClickcxx . . $ structGuiDrawingArea_MouseEvent#isClick(50ce9a9e25b4a850).())
660 return;
661 if (! mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics.)
662 return; // could be the case in the very beginning
663 for (integercxx . . $ integer# ilink = 1; ilink <= mycxx . . $ `melder/melder.h:44:9`! linkscxx . . $ structHyperPage#links..sizecxx . . $ CollectionOf#size.; ilink ++) {
664 HyperLinkcxx . . $ HyperLink# link = mycxx . . $ `melder/melder.h:44:9`! linkscxx . . $ structHyperPage#links..atcxx . . $ CollectionOf#at. [cxx . . $ ArrayOf#`operator[]`(a7f36fee1ae21897).ilink];
665 if (! link)
666 Melder_crashcxx . . $ `melder/melder_error.h:98:9`! (U"gui_drawingarea_cb_click: empty link ", ilink, U"/", mycxx . . $ `melder/melder.h:44:9`! links.size, U".");
667 if (event -> ycxx . . $ structGuiDrawingArea_MouseEvent#y. > link -> y2DCcxx . . $ structHyperLink#y2DC. && event -> ycxx . . $ structGuiDrawingArea_MouseEvent#y. < link -> y1DCcxx . . $ structHyperLink#y1DC. && event -> xcxx . . $ structGuiDrawingArea_MouseEvent#x. > link -> x1DCcxx . . $ structHyperLink#x1DC. && event -> xcxx . . $ structGuiDrawingArea_MouseEvent#x. < link -> x2DCcxx . . $ structHyperLink#x2DC.) {
668 saveHistorycxx . . $ saveHistory(9d6e0dd96656f536). (me, mycxx . . $ `melder/melder.h:44:9`! optionalCurrentPageTitlecxx . . $ structHyperPage#optionalCurrentPageTitle..getcxx . . $ _autostring#get(5a2a78a048fb49a8).());
669 try {
670 HyperPage_goToPagecxx . . $ HyperPage_goToPage(a68791b56910ee9e). (me, link -> namecxx . . $ structThing#name..getcxx . . $ _autostring#get(5a2a78a048fb49a8).());
671 } catch (MelderErrorcxx . . $ MelderError#) {
672 Melder_flushErrorcxx . . $ Melder_flushError(49f6e7a06ebc5aa8). ();
673 }
674 return;
675 }
676 }
677 }
678
679 extern "C" void GRAPHICS_PostScript_settings (UiFormcxx . . $ UiForm# sendingForm, int narg, Stackelcxx . . $ Stackel# args, conststring32cxx . . $ conststring32# sendingString, Interpretercxx . . $ Interpreter# interpreter, conststring32cxx . . $ conststring32# invokingButtonTitle, bool modified, void *buttonClosure);
680
681 static void menu_cb_postScriptSettingscxx . . $ menu_cb_postScriptSettings(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
682 (void) me;
683 (void) cmd;
684 GRAPHICS_PostScript_settings (_sendingForm_, _narg_, _args_, _sendingString_, optionalInterpreter, nullptr, false, nullptr);
685 }
686
687 #ifdef macintosh
688 static void menu_cb_pageSetup (HyperPage me, EDITOR_ARGS) {
689 (void) me;
690 Printer_pageSetup ();
691 }
692 #endif
693
694 static void menu_cb_printcxx . . $ menu_cb_print(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
695 EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Print", nullptr)
696 SENTENCE_FIELDcxx . . $ `sys/EditorM.h:192:9`! (mycxx . . $ `melder/melder.h:44:9`! insideHeader, U"Left or inside header", U"")
697 SENTENCE_FIELDcxx . . $ `sys/EditorM.h:192:9`! (mycxx . . $ `melder/melder.h:44:9`! middleHeader, U"Middle header", U"")
698 TEXTFIELD_FIELDcxx . . $ `sys/EditorM.h:270:9`! (mycxx . . $ `melder/melder.h:44:9`! outsideHeader, U"Right or outside header", U"", 2)
699 SENTENCE_FIELDcxx . . $ `sys/EditorM.h:192:9`! (mycxx . . $ `melder/melder.h:44:9`! insideFooter, U"Left or inside footer", U"")
700 SENTENCE_FIELDcxx . . $ `sys/EditorM.h:192:9`! (mycxx . . $ `melder/melder.h:44:9`! middleFooter, U"Middle footer", U"")
701 SENTENCE_FIELDcxx . . $ `sys/EditorM.h:192:9`! (mycxx . . $ `melder/melder.h:44:9`! outsideFooter, U"Right or outside footer", U"")
702 BOOLEAN_FIELDcxx . . $ `sys/EditorM.h:225:9`! (mycxx . . $ `melder/melder.h:44:9`! mirror, U"Mirror even/odd headers", true)
703 INTEGER_FIELDcxx . . $ `sys/EditorM.h:136:9`! (mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumber, U"First page number", U"0 (= no page numbers)")
704 EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`!
705 mycxx . . $ `melder/melder.h:44:9`! v_defaultHeaderscxx . . $ structHyperPage#v_defaultHeaders(2b98fae8e13abb61). (cmd);
706 if (mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumbercxx . . $ structHyperPage#d_printingPageNumber. != 0)
707 SET_INTEGERcxx . . $ `sys/EditorM.h:465:9`! (mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumber, mycxx . . $ `melder/melder.h:44:9`! d_printingPageNumber + 1)
708 EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`!
709 Printer_printcxx . . $ Printer_print(7a79f403cb57796b). (printcxx . . $ print(a20fea2f25bbab6f)., me);
710 EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`!
711 }
712
713 static void menu_cb_fontcxx . . $ menu_cb_font(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
714 EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Font", nullptr)
715 CHOICEcxx . . $ `sys/EditorM.h:361:9`! (font, U"Font", 1)
716 OPTIONcxx . . $ `sys/EditorM.h:387:9`! (U"Times")
717 OPTIONcxx . . $ `sys/EditorM.h:387:9`! (U"Helvetica")
718 EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`!
719 SET_OPTIONcxx . . $ `sys/EditorM.h:474:9`! (font, mycxx . . $ `melder/melder.h:44:9`! instancePref_font() == kGraphics_font::TIMES ? 1 :
720 mycxx . . $ `melder/melder.h:44:9`! instancePref_font() == kGraphics_font::HELVETICA ? 2 : mycxx . . $ `melder/melder.h:44:9`! instancePref_font() == kGraphics_font::PALATINO ? 3 : 1);
721 EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`!
722 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_fontcxx . . $ structHyperPage#setInstancePref_font(c81105140237f157). ( font == 1 ? kGraphics_fontcxx . . $ kGraphics_font#::TIMEScxx . . $ kGraphics_font#TIMES. : kGraphics_fontcxx . . $ kGraphics_font#::HELVETICAcxx . . $ kGraphics_font#HELVETICA. );
723 Editor_dataChangedcxx . . $ Editor_dataChanged(27010ae97811c311). (me, me);
724 if (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics.)
725 Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
726 EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`!
727 }
728
729 static void updateSizeMenucxx . . $ updateSizeMenu(1c8dff632c204718). (HyperPagecxx . . $ HyperPage# me) {
730 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (mycxx . . $ `melder/melder.h:44:9`! fontSizeButton_10cxx . . $ structHyperPage#fontSizeButton_10., mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() == 10);
731 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (mycxx . . $ `melder/melder.h:44:9`! fontSizeButton_12cxx . . $ structHyperPage#fontSizeButton_12., mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() == 12);
732 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (mycxx . . $ `melder/melder.h:44:9`! fontSizeButton_14cxx . . $ structHyperPage#fontSizeButton_14., mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() == 14);
733 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (mycxx . . $ `melder/melder.h:44:9`! fontSizeButton_18cxx . . $ structHyperPage#fontSizeButton_18., mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() == 18);
734 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (mycxx . . $ `melder/melder.h:44:9`! fontSizeButton_24cxx . . $ structHyperPage#fontSizeButton_24., mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSizecxx . . $ structHyperPage#instancePref_fontSize(21b6c25e127938e2).() == 24);
735 }
736 static void setFontSizecxx . . $ setFontSize(dc34e1dd948bdaf). (HyperPagecxx . . $ HyperPage# me, double fontSize) {
737 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_fontSizecxx . . $ structHyperPage#setInstancePref_fontSize(ba8836b59fb42830). (fontSize);
738 Editor_dataChangedcxx . . $ Editor_dataChanged(27010ae97811c311). (me, me);
739 updateSizeMenucxx . . $ updateSizeMenu(1c8dff632c204718). (me);
740 if (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics.)
741 Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
742 }
743
744 static void menu_cb_10cxx . . $ menu_cb_10(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { setFontSizecxx . . $ setFontSize(dc34e1dd948bdaf). (me, 10.0); }
745 static void menu_cb_12cxx . . $ menu_cb_12(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { setFontSizecxx . . $ setFontSize(dc34e1dd948bdaf). (me, 12.0); }
746 static void menu_cb_14cxx . . $ menu_cb_14(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { setFontSizecxx . . $ setFontSize(dc34e1dd948bdaf). (me, 14.0); }
747 static void menu_cb_18cxx . . $ menu_cb_18(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { setFontSizecxx . . $ setFontSize(dc34e1dd948bdaf). (me, 18.0); }
748 static void menu_cb_24cxx . . $ menu_cb_24(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { setFontSizecxx . . $ setFontSize(dc34e1dd948bdaf). (me, 24.0); }
749
750 static void menu_cb_fontSizecxx . . $ menu_cb_fontSize(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
751 EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Font size", nullptr)
752 POSITIVEcxx . . $ `sys/EditorM.h:117:9`! (fontSize, U"Font size (points)", mycxx . . $ `melder/melder.h:44:9`! default_fontSize ())
753 EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`!
754 SET_REALcxx . . $ `sys/EditorM.h:462:9`! (fontSize, mycxx . . $ `melder/melder.h:44:9`! instancePref_fontSize())
755 EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`!
756 setFontSizecxx . . $ setFontSize(dc34e1dd948bdaf). (me, fontSize);
757 EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`!
758 }
759
760 static void menu_cb_searchForPagecxx . . $ menu_cb_searchForPage(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
761 EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Search for page", nullptr)
762 TEXTFIELDcxx . . $ `sys/EditorM.h:273:9`! (page, U"Page", U"a", 2)
763 EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`!
764 EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`!
765 HyperPage_goToPagecxx . . $ HyperPage_goToPage(a68791b56910ee9e). (me, page);
766 EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`!
767 }
768
769 /********************************************************************************
770 *
771 * The vertical scroll bar controls and/or mirrors
772 * the position of the viewable area within the page.
773 * A page can be PAGE_HEIGHT inches high, so 'my top' (and the scroll-bar 'value')
774 * may take on values between 0 and PAGE_HEIGHT * 5 (fifth inches).
775 * Hence, the 'minimum' is 0.
776 * The viewable area shows a certain number of fifth inches;
777 * hence the 'sliderSize' is height / resolution * 5,
778 * and the 'maximum' is PAGE_HEIGHT * 5.
779 * The 'increment' is 1, so the arrows move the page by one fifth of an inch.
780 * The 'pageIncrement' is sliderSize - 1.
781 */
782
783 static void gui_cb_verticalScrollcxx . . $ gui_cb_verticalScroll(8932ac99e9cf4dd0). (HyperPagecxx . . $ HyperPage# me, GuiScrollBarEventcxx . . $ GuiScrollBarEvent# event) {
784 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"gui_cb_verticalScroll");
785 const double value = GuiScrollBar_getValuecxx . . $ GuiScrollBar_getValue(fa861a4bcb1a88a7). (event -> scrollBarcxx . . $ structGuiScrollBarEvent#scrollBar.);
786 if (value != mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top.) {
787 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"scroll from ", mycxx . . $ `melder/melder.h:44:9`! top, U" to ", value);
788 mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top. = value;
789 updateVerticalScrollBarcxx . . $ updateVerticalScrollBar(1c8dff632c204718). (me);
790 Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
791 }
792 }
793
794 static void createVerticalScrollBarcxx . . $ createVerticalScrollBar(866e1d72c3695141). (HyperPagecxx . . $ HyperPage# me, GuiFormcxx . . $ GuiForm# parent) {
795 const int height = Machine_getTextHeightcxx . . $ Machine_getTextHeight(b126dc7c1de90089). ();
796 mycxx . . $ `melder/melder.h:44:9`! verticalScrollBarcxx . . $ structHyperPage#verticalScrollBar. = GuiScrollBar_createShowncxx . . $ GuiScrollBar_createShown(571c696f46086cf0). (parent,
797 - Machine_getScrollBarWidthcxx . . $ Machine_getScrollBarWidth(b126dc7c1de90089). (), 0,
798 Machine_getMenuBarBottomcxx . . $ Machine_getMenuBarBottom(b126dc7c1de90089). () + (mycxx . . $ `melder/melder.h:44:9`! d_hasExtraRowOfToolscxx . . $ structHyperPage#d_hasExtraRowOfTools. ? 2 * height + 19 : height + 12), - Machine_getScrollBarWidthcxx . . $ Machine_getScrollBarWidth(b126dc7c1de90089). (),
799 0, PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! * 5, 0, 25, 1, 24,
800 gui_cb_verticalScrollcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., me, 0
801 );
802 }
803
804 static void updateVerticalScrollBarcxx . . $ updateVerticalScrollBar(1c8dff632c204718). (HyperPagecxx . . $ HyperPage# me)
805 /* We cannot call this immediately after creation. */
806 /* This has to be called after changing `my top`. */
807 {
808 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"updateVerticalScrollBar");
809 const int sliderSize = 25;
810 GuiScrollBar_setcxx . . $ GuiScrollBar_set(bfc251e32db14223). (mycxx . . $ `melder/melder.h:44:9`! verticalScrollBarcxx . . $ structHyperPage#verticalScrollBar., undefinedcxx . . $ undefined., undefinedcxx . . $ undefined., mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top., sliderSize, 1, sliderSize - 1);
811 mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer.]. topcxx . . $ structHyperPage#$anonymous_type_0#top. = 0/*my top*/;
812 }
813
814 static void menu_cb_pageUpcxx . . $ menu_cb_pageUp(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
815 if (! mycxx . . $ `melder/melder.h:44:9`! verticalScrollBarcxx . . $ structHyperPage#verticalScrollBar.)
816 return;
817 const double value = Melder_clippedLeftcxx . . $ Melder_clippedLeft(f80f7d6260b3ee3a). (0.0, GuiScrollBar_getValuecxx . . $ GuiScrollBar_getValue(fa861a4bcb1a88a7). (mycxx . . $ `melder/melder.h:44:9`! verticalScrollBarcxx . . $ structHyperPage#verticalScrollBar.) - 24.0);
818 if (value != mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top.) {
819 mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top. = value;
820 updateVerticalScrollBarcxx . . $ updateVerticalScrollBar(1c8dff632c204718). (me);
821 Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
822 }
823 }
824
825 static void menu_cb_pageDowncxx . . $ menu_cb_pageDown(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
826 if (! mycxx . . $ `melder/melder.h:44:9`! verticalScrollBarcxx . . $ structHyperPage#verticalScrollBar.)
827 return;
828 const double value = Melder_clippedRightcxx . . $ Melder_clippedRight(f80f7d6260b3ee3a). (GuiScrollBar_getValuecxx . . $ GuiScrollBar_getValue(fa861a4bcb1a88a7). (mycxx . . $ `melder/melder.h:44:9`! verticalScrollBarcxx . . $ structHyperPage#verticalScrollBar.) + 24.0, (PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! * 5.0) - 25.0);
829 if (value != mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top.) {
830 mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top. = value;
831 updateVerticalScrollBarcxx . . $ updateVerticalScrollBar(1c8dff632c204718). (me);
832 Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
833 }
834 }
835
836 /********** **********/
837
838 static void do_backcxx . . $ do_back(1c8dff632c204718). (HyperPagecxx . . $ HyperPage# me) {
839 if (mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer. <= 0)
840 return;
841 autostring32cxx . . $ autostring32# pageTitle = Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [-- mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer.]. pagecxx . . $ structHyperPage#$anonymous_type_0#page..getcxx . . $ _autostring#get(5a2a78a048fb49a8).()); // temporary, because pointer will be moved
842 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (pageTitle);
843 const double top = mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer.]. topcxx . . $ structHyperPage#$anonymous_type_0#top.;
844 if (mycxx . . $ `melder/melder.h:44:9`! v_goToPagecxx . . $ structHyperPage#v_goToPage(e049ab16a3067c7). (pageTitle.getcxx . . $ _autostring#get(5a2a78a048fb49a8).())) {
845 mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top. = top;
846 updateVerticalScrollBarcxx . . $ updateVerticalScrollBar(1c8dff632c204718). (me);
847 HyperPage_clearcxx . . $ HyperPage_clear(1c8dff632c204718). (me);
848 }
849 }
850
851 static void menu_cb_backcxx . . $ menu_cb_back(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
852 do_backcxx . . $ do_back(1c8dff632c204718). (me);
853 }
854
855 static void gui_button_cb_backcxx . . $ gui_button_cb_back(4d12355dcf3cc621). (HyperPagecxx . . $ HyperPage# me, GuiButtonEventcxx . . $ GuiButtonEvent# /* event */) {
856 do_backcxx . . $ do_back(1c8dff632c204718). (me);
857 }
858
859 static void do_forthcxx . . $ do_forth(1c8dff632c204718). (HyperPagecxx . . $ HyperPage# me) {
860 if (mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer. >= 19 || ! mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer. + 1]. pagecxx . . $ structHyperPage#$anonymous_type_0#page.)
861 return;
862 autostring32cxx . . $ autostring32# pageTitle = Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [++ mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer.]. pagecxx . . $ structHyperPage#$anonymous_type_0#page..getcxx . . $ _autostring#get(5a2a78a048fb49a8).());
863 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (pageTitle);
864 const double top = mycxx . . $ `melder/melder.h:44:9`! historycxx . . $ structHyperPage#history. [mycxx . . $ `melder/melder.h:44:9`! historyPointercxx . . $ structHyperPage#historyPointer.]. topcxx . . $ structHyperPage#$anonymous_type_0#top.;
865 if (mycxx . . $ `melder/melder.h:44:9`! v_goToPagecxx . . $ structHyperPage#v_goToPage(e049ab16a3067c7). (pageTitle.getcxx . . $ _autostring#get(5a2a78a048fb49a8).())) {
866 mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top. = top;
867 updateVerticalScrollBarcxx . . $ updateVerticalScrollBar(1c8dff632c204718). (me);
868 HyperPage_clearcxx . . $ HyperPage_clear(1c8dff632c204718). (me);
869 }
870 }
871
872 static void menu_cb_forthcxx . . $ menu_cb_forth(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
873 do_forthcxx . . $ do_forth(1c8dff632c204718). (me);
874 }
875
876 static void gui_button_cb_forthcxx . . $ gui_button_cb_forth(4d12355dcf3cc621). (HyperPagecxx . . $ HyperPage# me, GuiButtonEventcxx . . $ GuiButtonEvent# /* event */) {
877 do_forthcxx . . $ do_forth(1c8dff632c204718). (me);
878 }
879
880 static void menu_cb_previousPagecxx . . $ menu_cb_previousPage(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
881 HyperPage_goToPage_numbercxx . . $ HyperPage_goToPage_number(ad43c06d8a9a8078). (me, mycxx . . $ `melder/melder.h:44:9`! v_getCurrentPageNumbercxx . . $ structHyperPage#v_getCurrentPageNumber(da6335ded91d79c2). () > 1 ?
882 mycxx . . $ `melder/melder.h:44:9`! v_getCurrentPageNumbercxx . . $ structHyperPage#v_getCurrentPageNumber(da6335ded91d79c2). () - 1 : mycxx . . $ `melder/melder.h:44:9`! v_getNumberOfPagescxx . . $ structHyperPage#v_getNumberOfPages(da6335ded91d79c2). ());
883 }
884
885 static void gui_button_cb_previousPagecxx . . $ gui_button_cb_previousPage(4d12355dcf3cc621). (HyperPagecxx . . $ HyperPage# me, GuiButtonEventcxx . . $ GuiButtonEvent# /* event */) {
886 HyperPage_goToPage_numbercxx . . $ HyperPage_goToPage_number(ad43c06d8a9a8078). (me, mycxx . . $ `melder/melder.h:44:9`! v_getCurrentPageNumbercxx . . $ structHyperPage#v_getCurrentPageNumber(da6335ded91d79c2). () > 1 ?
887 mycxx . . $ `melder/melder.h:44:9`! v_getCurrentPageNumbercxx . . $ structHyperPage#v_getCurrentPageNumber(da6335ded91d79c2). () - 1 : mycxx . . $ `melder/melder.h:44:9`! v_getNumberOfPagescxx . . $ structHyperPage#v_getNumberOfPages(da6335ded91d79c2). ());
888 }
889
890 static void menu_cb_nextPagecxx . . $ menu_cb_nextPage(e17babe9b838f2ba). (HyperPagecxx . . $ HyperPage# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
891 const integercxx . . $ integer# currentPageNumber = mycxx . . $ `melder/melder.h:44:9`! v_getCurrentPageNumbercxx . . $ structHyperPage#v_getCurrentPageNumber(da6335ded91d79c2). ();
892 HyperPage_goToPage_numbercxx . . $ HyperPage_goToPage_number(ad43c06d8a9a8078). (me, currentPageNumber < mycxx . . $ `melder/melder.h:44:9`! v_getNumberOfPagescxx . . $ structHyperPage#v_getNumberOfPages(da6335ded91d79c2). () ? currentPageNumber + 1 : 1);
893 }
894
895 static void gui_button_cb_nextPagecxx . . $ gui_button_cb_nextPage(4d12355dcf3cc621). (HyperPagecxx . . $ HyperPage# me, GuiButtonEventcxx . . $ GuiButtonEvent# /* event */) {
896 const integercxx . . $ integer# currentPageNumber = mycxx . . $ `melder/melder.h:44:9`! v_getCurrentPageNumbercxx . . $ structHyperPage#v_getCurrentPageNumber(da6335ded91d79c2). ();
897 HyperPage_goToPage_numbercxx . . $ HyperPage_goToPage_number(ad43c06d8a9a8078). (me, currentPageNumber < mycxx . . $ `melder/melder.h:44:9`! v_getNumberOfPagescxx . . $ structHyperPage#v_getNumberOfPages(da6335ded91d79c2). () ? currentPageNumber + 1 : 1);
898 }
899
900 void structHyperPagecxx . . $ structHyperPage# :: v_createMenuscxx . . $ structHyperPage#v_createMenus(49f6e7a06ebc5aa8). () {
901 HyperPage_Parentcxx . . $ HyperPage_Parent# :: v_createMenuscxx . . $ structEditor#v_createMenus(49f6e7a06ebc5aa8). ();
902
903 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"File", U"PostScript settings...", GuiMenu_HIDDENcxx . . $ `sys/Gui.h:869:9`!, menu_cb_postScriptSettingscxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
904 #ifdef macintosh
905 Editor_addCommand (this, U"File", U"Page setup...", GuiMenu_HIDDEN, menu_cb_pageSetup);
906 #endif
907 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"File", U"Print page...", GuiMenu_HIDDENcxx . . $ `sys/Gui.h:869:9`!, menu_cb_printcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
908 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"File", U"-- close --", GuiMenu_HIDDENcxx . . $ `sys/Gui.h:869:9`!, nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112).);
909
910 if (ourcxx . . $ `melder/melder.h:42:9`! v_hasHistorycxx . . $ structHyperPage#v_hasHistory(c9857a73d68e59ba). ()) {
911 Editor_addMenucxx . . $ Editor_addMenu(8b39ac34ca8e016f). (this, U"Go to", 0);
912 #ifdef _WIN32
913 Editor_addCommand (this, U"Go to", U"Back", GuiMenu_COMMAND | GuiMenu_LEFT_ARROW, menu_cb_back); // TODO: this actually captures the Alt key; why?
914 Editor_addCommand (this, U"Go to", U"Forward", GuiMenu_COMMAND | GuiMenu_RIGHT_ARROW, menu_cb_forth);
915 #else
916 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Go to", U"Back", GuiMenu_OPTIONcxx . . $ `sys/Gui.h:810:9`! | GuiMenu_LEFT_ARROWcxx . . $ `sys/Gui.h:821:9`!, menu_cb_backcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
917 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Go to", U"Forward", GuiMenu_OPTIONcxx . . $ `sys/Gui.h:810:9`! | GuiMenu_RIGHT_ARROWcxx . . $ `sys/Gui.h:822:9`!, menu_cb_forthcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
918 #endif
919 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Go to", U"-- browse --", 0, nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112).);
920 #ifdef _WIN32
921 Editor_addCommand (this, U"Go to", U"Previous page", GuiMenu_COMMAND | GuiMenu_SHIFT | GuiMenu_LEFT_ARROW, menu_cb_previousPage);
922 Editor_addCommand (this, U"Go to", U"Next page", GuiMenu_COMMAND | GuiMenu_SHIFT | GuiMenu_RIGHT_ARROW, menu_cb_nextPage);
923 #else
924 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Go to", U"Previous page", GuiMenu_COMMANDcxx . . $ `sys/Gui.h:812:9`! | GuiMenu_LEFT_ARROWcxx . . $ `sys/Gui.h:821:9`!, menu_cb_previousPagecxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
925 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Go to", U"Next page", GuiMenu_COMMANDcxx . . $ `sys/Gui.h:812:9`! | GuiMenu_RIGHT_ARROWcxx . . $ `sys/Gui.h:822:9`!, menu_cb_nextPagecxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
926 #endif
927 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Go to", U"-- page --", 0, nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112).);
928 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Go to", U"Page up", GuiMenu_PAGE_UPcxx . . $ `sys/Gui.h:834:9`!, menu_cb_pageUpcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
929 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Go to", U"Page down", GuiMenu_PAGE_DOWNcxx . . $ `sys/Gui.h:835:9`!, menu_cb_pageDowncxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
930 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Go to", U"-- page --", 0, nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112).);
931 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Go to", U"Search for page...", 0, menu_cb_searchForPagecxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
932 }
933
934 Editor_addMenucxx . . $ Editor_addMenu(8b39ac34ca8e016f). (this, U"Font", 0);
935 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Font", U"Font size...", 0, menu_cb_fontSizecxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
936 fontSizeButton_10cxx . . $ structHyperPage#fontSizeButton_10. = Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Font", U"10", GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, menu_cb_10cxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
937 fontSizeButton_12cxx . . $ structHyperPage#fontSizeButton_12. = Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Font", U"12", GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, menu_cb_12cxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
938 fontSizeButton_14cxx . . $ structHyperPage#fontSizeButton_14. = Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Font", U"14", GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, menu_cb_14cxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
939 fontSizeButton_18cxx . . $ structHyperPage#fontSizeButton_18. = Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Font", U"18", GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, menu_cb_18cxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
940 fontSizeButton_24cxx . . $ structHyperPage#fontSizeButton_24. = Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Font", U"24", GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, menu_cb_24cxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
941 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Font", U"-- font --", 0, nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112).);
942 Editor_addCommandcxx . . $ Editor_addCommand(d7f2c642863274c0). (this, U"Font", U"Font...", 0, menu_cb_fontcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
943 }
944
945 /********** **********/
946
947 static void gui_drawingarea_cb_resizecxx . . $ gui_drawingarea_cb_resize(af7cd9b734175386). (HyperPagecxx . . $ HyperPage# me, GuiDrawingArea_ResizeEventcxx . . $ GuiDrawingArea_ResizeEvent# event) {
948 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"HyperPage: gui_drawingarea_cb_resize");
949 if (! mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics.)
950 return;
951 Graphics_setWsViewportcxx . . $ Graphics_setWsViewport(4ffe5bb10b2fb6bd). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.0, event -> widthcxx . . $ structGuiDrawingArea_ResizeEvent#width., 0.0, event -> heightcxx . . $ structGuiDrawingArea_ResizeEvent#height.);
952 Graphics_setWsWindowcxx . . $ Graphics_setWsWindow(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.0, mycxx . . $ `melder/melder.h:44:9`! rightMargincxx . . $ structHyperPage#rightMargin. = event -> widthcxx . . $ structGuiDrawingArea_ResizeEvent#width. / resolutioncxx . . $ resolution.,
953 PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`! - event -> heightcxx . . $ structGuiDrawingArea_ResizeEvent#height. / resolutioncxx . . $ resolution., PAGE_HEIGHTcxx . . $ `sys/HyperPage.cpp:36:9`!);
954 //updateVerticalScrollBar (me);
955 //Graphics_updateWs (my graphics.get());
956 }
957
958 void structHyperPagecxx . . $ structHyperPage# :: v_createChildrencxx . . $ structHyperPage#v_createChildren(49f6e7a06ebc5aa8). () {
959 const int height = Machine_getTextHeightcxx . . $ Machine_getTextHeight(b126dc7c1de90089). ();
960 const int y = Machine_getMenuBarBottomcxx . . $ Machine_getMenuBarBottom(b126dc7c1de90089). () + 4;
961
962 /***** Create navigation buttons. *****/
963
964 if (ourcxx . . $ `melder/melder.h:42:9`! v_hasHistorycxx . . $ structHyperPage#v_hasHistory(c9857a73d68e59ba). ()) {
965 GuiButton_createShowncxx . . $ GuiButton_createShown(653ed9987c16d9c1). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., 4, 48, y, y + height,
966 U"<", gui_button_cb_backcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this, 0);
967 GuiButton_createShowncxx . . $ GuiButton_createShown(653ed9987c16d9c1). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., 54, 98, y, y + height,
968 U">", gui_button_cb_forthcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this, 0);
969 }
970 if (ourcxx . . $ `melder/melder.h:42:9`! v_isOrderedcxx . . $ structHyperPage#v_isOrdered(c9857a73d68e59ba). ()) {
971 GuiButton_createShowncxx . . $ GuiButton_createShown(653ed9987c16d9c1). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., 174, 218, y, y + height,
972 U"< 1", gui_button_cb_previousPagecxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this, 0);
973 GuiButton_createShowncxx . . $ GuiButton_createShown(653ed9987c16d9c1). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., 224, 268, y, y + height,
974 U"1 >", gui_button_cb_nextPagecxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this, 0);
975 }
976
977 /***** Create scroll bar. *****/
978
979 createVerticalScrollBarcxx . . $ createVerticalScrollBar(866e1d72c3695141). (this, ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm.);
980
981 /***** Create drawing area. *****/
982
983 drawingAreacxx . . $ structHyperPage#drawingArea. = GuiDrawingArea_createShowncxx . . $ GuiDrawingArea_createShown(5a210e61ba6a237d). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm.,
984 0, - Machine_getScrollBarWidthcxx . . $ Machine_getScrollBarWidth(b126dc7c1de90089). (),
985 y + ( ourcxx . . $ `melder/melder.h:42:9`! d_hasExtraRowOfToolscxx . . $ structHyperPage#d_hasExtraRowOfTools. ? 2 * height + 16 : height + 9 ), - Machine_getScrollBarWidthcxx . . $ Machine_getScrollBarWidth(b126dc7c1de90089). (),
986 gui_drawingarea_cb_exposecxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., gui_drawingarea_cb_mousecxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).,
987 nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112)., gui_drawingarea_cb_resizecxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112)., this, GuiDrawingArea_BORDERcxx . . $ `sys/Gui.h:622:9`!
988 );
989 GuiDrawingArea_setSwipablecxx . . $ GuiDrawingArea_setSwipable(7e7a359b55bf9e27). (drawingAreacxx . . $ structHyperPage#drawingArea., nullptr, ourcxx . . $ `melder/melder.h:42:9`! verticalScrollBarcxx . . $ structHyperPage#verticalScrollBar.);
990 }
991
992 void HyperPage_init1cxx . . $ HyperPage_init1(140736bbc728348d). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# title, Daatacxx . . $ Daata# data, bool backquoteIsVerbatim) {
993 resolutioncxx . . $ resolution. = Gui_getResolutioncxx . . $ Gui_getResolution(dedf1e9b1c614a07). (nullptr);
994 const int width = 760; // used to be (int) floor (6 * resolution + 30)
995 Editor_initcxx . . $ Editor_init(13f379e38ac41ed6). (me, 0, 0, width, 800, title, data);
996 #if motifcxx . . $ `sys/Gui.h:34:10`!
997 Melder_assert (XtWindow (my drawingArea -> d_widget));
998 #endif
999 mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics. =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). Graphics_create_xmdrawingareacxx . . $ Graphics_create_xmdrawingarea(51b1c75797a7dddf). (mycxx . . $ `melder/melder.h:44:9`! drawingAreacxx . . $ structHyperPage#drawingArea.);
1000 Graphics_setDollarSignIsCodecxx . . $ Graphics_setDollarSignIsCode(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), true); // for manuals
1001 if (backquoteIsVerbatim)
1002 Graphics_setBackquoteIsVerbatimcxx . . $ Graphics_setBackquoteIsVerbatim(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), true); // for notebooks
1003 Graphics_setAtSignIsLinkcxx . . $ Graphics_setAtSignIsLink(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), true);
1004 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), kGraphics_fontcxx . . $ kGraphics_font#::TIMEScxx . . $ kGraphics_font#TIMES.);
1005 if (mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).() != kGraphics_fontcxx . . $ kGraphics_font#::TIMEScxx . . $ kGraphics_font#TIMES. && mycxx . . $ `melder/melder.h:44:9`! instancePref_fontcxx . . $ structHyperPage#instancePref_font(4c2ae844ad7b2533).() != kGraphics_fontcxx . . $ kGraphics_font#::HELVETICAcxx . . $ kGraphics_font#HELVETICA.)
1006 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_fontcxx . . $ structHyperPage#setInstancePref_font(c81105140237f157). (kGraphics_fontcxx . . $ kGraphics_font#::TIMEScxx . . $ kGraphics_font#TIMES.); // ensure Unicode compatibility
1007 }
1008 void HyperPage_init2cxx . . $ HyperPage_init2(7b1f2c4aafa3d0ec). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# /* title */, Daatacxx . . $ Daata# /* data */) {
1009 /*
1010 Relevant parts from the dataChanged message:
1011 */
1012 updateSizeMenucxx . . $ updateSizeMenu(1c8dff632c204718). (me);
1013 Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
1014
1015 struct structGuiDrawingArea_ResizeEventcxx . . $ structGuiDrawingArea_ResizeEvent# event { mycxx . . $ `melder/melder.h:44:9`! drawingAreacxx . . $ structHyperPage#drawingArea., 0, 0 };
1016 event. widthcxx . . $ structGuiDrawingArea_ResizeEvent#width. = GuiControl_getWidthcxx . . $ GuiControl_getWidth(1227891e76fac374). (mycxx . . $ `melder/melder.h:44:9`! drawingAreacxx . . $ structHyperPage#drawingArea.);
1017 event. heightcxx . . $ structGuiDrawingArea_ResizeEvent#height. = GuiControl_getHeightcxx . . $ GuiControl_getHeight(1227891e76fac374). (mycxx . . $ `melder/melder.h:44:9`! drawingAreacxx . . $ structHyperPage#drawingArea.);
1018 gui_drawingarea_cb_resizecxx . . $ gui_drawingarea_cb_resize(af7cd9b734175386). (me, & event);
1019
1020 updateVerticalScrollBarcxx . . $ updateVerticalScrollBar(1c8dff632c204718). (me); // scroll to the top (my top == 0)
1021 }
1022 void HyperPage_initcxx . . $ HyperPage_init(7b1f2c4aafa3d0ec). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# title, Daatacxx . . $ Daata# data) {
1023 HyperPage_init1cxx . . $ HyperPage_init1(140736bbc728348d). (me, title, data, false);
1024 HyperPage_init2cxx . . $ HyperPage_init2(7b1f2c4aafa3d0ec). (me, title, data);
1025 }
1026
1027 void HyperPage_clearcxx . . $ HyperPage_clear(1c8dff632c204718). (HyperPagecxx . . $ HyperPage# me) {
1028 mycxx . . $ `melder/melder.h:44:9`! linkscxx . . $ structHyperPage#links.. removeAllItemscxx . . $ CollectionOf#removeAllItems(49f6e7a06ebc5aa8).();
1029 Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structHyperPage#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
1030 }
1031
1032 void structHyperPagecxx . . $ structHyperPage# :: v1_dataChangedcxx . . $ structHyperPage#v1_dataChanged(c0154a85f79216c7). (Editorcxx . . $ Editor# /* sender */) {
1033 const bool oldError = Melder_hasErrorcxx . . $ Melder_hasError(c9857a73d68e59ba). (); // this method can be called during error time
1034 (void) ourcxx . . $ `melder/melder.h:42:9`! v_goToPagecxx . . $ structHyperPage#v_goToPage(e049ab16a3067c7). (ourcxx . . $ `melder/melder.h:42:9`! optionalCurrentPageTitlecxx . . $ structHyperPage#optionalCurrentPageTitle..getcxx . . $ _autostring#get(5a2a78a048fb49a8).());
1035 if (Melder_hasErrorcxx . . $ Melder_hasError(c9857a73d68e59ba). () && ! oldError)
1036 Melder_flushErrorcxx . . $ Melder_flushError(49f6e7a06ebc5aa8). ();
1037 updateVerticalScrollBarcxx . . $ updateVerticalScrollBar(1c8dff632c204718). (this);
1038 HyperPage_clearcxx . . $ HyperPage_clear(1c8dff632c204718). (this);
1039 }
1040
1041 int HyperPage_goToPagecxx . . $ HyperPage_goToPage(a68791b56910ee9e). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# pageTitle) {
1042 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (pageTitle);
1043 switch (mycxx . . $ `melder/melder.h:44:9`! v_goToPagecxx . . $ structHyperPage#v_goToPage(e049ab16a3067c7). (pageTitle)) {
1044 case -1: return 0;
1045 case 0: HyperPage_clearcxx . . $ HyperPage_clear(1c8dff632c204718). (me); return 0;
1046 }
1047 saveHistorycxx . . $ saveHistory(9d6e0dd96656f536). (me, pageTitle); // last chance: HyperPage_clear will destroy "title" !!!
1048 mycxx . . $ `melder/melder.h:44:9`! optionalCurrentPageTitlecxx . . $ structHyperPage#optionalCurrentPageTitle. =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (pageTitle);
1049 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (mycxx . . $ `melder/melder.h:44:9`! optionalCurrentPageTitle);
1050 mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top. = 0.0;
1051 updateVerticalScrollBarcxx . . $ updateVerticalScrollBar(1c8dff632c204718). (me); // scroll to the top (my top == 0)
1052 HyperPage_clearcxx . . $ HyperPage_clear(1c8dff632c204718). (me);
1053 return 1;
1054 }
1055
1056 void HyperPage_goToPage_numbercxx . . $ HyperPage_goToPage_number(ad43c06d8a9a8078). (HyperPagecxx . . $ HyperPage# me, integercxx . . $ integer# optionalPageNumber) {
1057 mycxx . . $ `melder/melder.h:44:9`! v_goToPage_numbercxx . . $ structHyperPage#v_goToPage_number(1624ee8275b10bda). (optionalPageNumber); // catch -> HyperPage_clear (me); ?
1058 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (! optionalPageNumber || mycxx . . $ `melder/melder.h:44:9`! optionalCurrentPageTitle); // only page 0 has no title
1059 mycxx . . $ `melder/melder.h:44:9`! topcxx . . $ structHyperPage#top. = 0.0;
1060 updateVerticalScrollBarcxx . . $ updateVerticalScrollBar(1c8dff632c204718). (me); // scroll to the top (my top == 0.0)
1061 HyperPage_clearcxx . . $ HyperPage_clear(1c8dff632c204718). (me);
1062 }
1063
1064 void HyperPage_setEntryHintcxx . . $ HyperPage_setEntryHint(9d6e0dd96656f536). (HyperPagecxx . . $ HyperPage# me, conststring32cxx . . $ conststring32# hint) {
1065 mycxx . . $ `melder/melder.h:44:9`! entryHintcxx . . $ structHyperPage#entryHint. =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (hint);
1066 }
1067
1068 /* End of file HyperPage.cpp */