| 1 | #cxx . . $ `<file>/sys/ManPage.h`/ifndef _ManPage_h_ |
| 2 | #define _ManPage_h_cxx . . $ `sys/ManPage.h:2:9`! |
| 3 | /* ManPage.h |
| 4 | * |
| 5 | * Copyright (C) 1996-2008,2011,2012,2014-2020,2023,2024 Paul Boersma |
| 6 | * |
| 7 | * This code is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or (at |
| 10 | * your option) any later version. |
| 11 | * |
| 12 | * This code is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 15 | * See the GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #include "Graphics.h"cxx . . $ `<file>/sys/Graphics.h`/ |
| 22 | |
| 23 | #include "ManPage_enums.h"cxx . . $ `<file>/sys/ManPage_enums.h`/ |
| 24 | |
| 25 | Thing_declarecxx . . $ autoSoundList# (SoundList); |
| 26 | |
| 27 | typedef struct structManPage_Paragraphcxx . . $ structManPage_Paragraph# { |
| 28 | enum kManPage_typecxx . . $ kManPage_type# typecxx . . $ structManPage_Paragraph#type.; |
| 29 | conststring32cxx . . $ conststring32# textcxx . . $ structManPage_Paragraph#text.; // not an autostring32, because it could be a string literal (if not dynamic) |
| 30 | double widthcxx . . $ structManPage_Paragraph#width., heightcxx . . $ structManPage_Paragraph#height.; // for machine-code pictures and script chunks with pictures |
| 31 | void (*drawcxx . . $ structManPage_Paragraph#draw.) (Graphicscxx . . $ Graphics# g); // for machine-code pictures |
| 32 | autoGraphicscxx . . $ autoGraphics# cacheGraphicscxx . . $ structManPage_Paragraph#cacheGraphics.; // for script chunks that output a picture |
| 33 | autoMelderStringcxx . . $ autoMelderString# cacheInfocxx . . $ structManPage_Paragraph#cacheInfo.; // for script chunks that output info text |
| 34 | SoundListcxx . . $ SoundList# cacheAudiocxx . . $ structManPage_Paragraph#cacheAudio.; // for script chunks with playable output |
| 35 | void invalidateCachecxx . . $ structManPage_Paragraph#invalidateCache(ced63f7c635d850d). () noexcept { |
| 36 | ourcxx . . $ `melder/melder.h:42:9`! cacheGraphicscxx . . $ structManPage_Paragraph#cacheGraphics.. resetcxx . . $ autoSomeThing#reset(ced63f7c635d850d).(); |
| 37 | } |
| 38 | bool couldVerbatimcxx . . $ structManPage_Paragraph#couldVerbatim(3482b152b9333168). () const noexcept { |
| 39 | return ourcxx . . $ `melder/melder.h:42:9`! typecxx . . $ structManPage_Paragraph#type. == kManPage_typecxx . . $ kManPage_type#::SCRIPTcxx . . $ kManPage_type#SCRIPT. || ourcxx . . $ `melder/melder.h:42:9`! typecxx . . $ structManPage_Paragraph#type. == kManPage_typecxx . . $ kManPage_type#::CODEcxx . . $ kManPage_type#CODE. || |
| 40 | ourcxx . . $ `melder/melder.h:42:9`! typecxx . . $ structManPage_Paragraph#type. >= kManPage_typecxx . . $ kManPage_type#::CODE1cxx . . $ kManPage_type#CODE1. && ourcxx . . $ `melder/melder.h:42:9`! typecxx . . $ structManPage_Paragraph#type. <= kManPage_typecxx . . $ kManPage_type#::CODE5cxx . . $ kManPage_type#CODE5.; |
| 41 | } |
| 42 | } *ManPage_Paragraphcxx . . $ ManPage_Paragraph#; |
| 43 | |
| 44 | Thing_definecxx . . $ SomeThingHandle# (ManPage, Thing) { |
| 45 | autostring32cxx . . $ autostring32# titlecxx . . $ structManPage#title., signaturecxx . . $ structManPage#signature.; |
| 46 | autovectorcxx . . $ autovector# <structManPage_Paragraphcxx . . $ structManPage_Paragraph#> paragraphscxx . . $ structManPage#paragraphs.; |
| 47 | autoINTVECcxx . . $ autoINTVEC# linksHithercxx . . $ structManPage#linksHither., linksThithercxx . . $ structManPage#linksThither.; |
| 48 | double recordingTimecxx . . $ structManPage#recordingTime.; |
| 49 | bool verbatimAwarecxx . . $ structManPage#verbatimAware.; |
| 50 | void invalidateCachecxx . . $ structManPage#invalidateCache(ced63f7c635d850d). () noexcept { |
| 51 | for (integercxx . . $ integer# i = 1; i <= ourcxx . . $ `melder/melder.h:42:9`! paragraphscxx . . $ structManPage#paragraphs..sizecxx . . $ autovector#size.; i ++) |
| 52 | ourcxx . . $ `melder/melder.h:42:9`! paragraphscxx . . $ structManPage#paragraphs. [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).i]. invalidateCachecxx . . $ structManPage_Paragraph#invalidateCache(ced63f7c635d850d). (); |
| 53 | } |
| 54 | }; |
| 55 | |
| 56 | Thing_declarecxx . . $ autoSomeThing# (Interpreter); |
| 57 | Thing_declarecxx . . $ autoSomeThing# (PraatApplication); |
| 58 | Thing_declarecxx . . $ mutablePraatObjects# (PraatObjects); |
| 59 | Thing_declarecxx . . $ theClassInfo_PraatPicture. (PraatPicture); |
| 60 | |
| 61 | void ManPage_runAllChunksToCachecxx . . $ ManPage_runAllChunksToCache(ff13b59e6b589edf). ( |
| 62 | ManPagecxx . . $ ManPage# me, |
| 63 | Interpretercxx . . $ Interpreter# optionalInterpreterReference, |
| 64 | const kGraphics_fontcxx . . $ kGraphics_font# font, |
| 65 | const double fontSize, |
| 66 | PraatApplicationcxx . . $ PraatApplication# praatApplication, |
| 67 | PraatObjectscxx . . $ PraatObjects# praatObjects, |
| 68 | PraatPicturecxx . . $ PraatPicture# praatPicture, |
| 69 | MelderFoldercxx . . $ MelderFolder# rootDirectory |
| 70 | ); |
| 71 | |
| 72 | /* End of file ManPage.h */ |
| 73 | #endif |