Manual.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef _Manual_h_
  2. #define _Manual_h_
  3. /* Manual.h
  4. *
  5. * Copyright (C) 1996-2012,2015 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. #include "HyperPage.h"
  21. #include "ManPages.h"
  22. Thing_define (Manual, HyperPage) {
  23. integer path, numberOfParagraphs;
  24. struct structManPage_Paragraph *paragraphs;
  25. GuiText searchText;
  26. GuiButton homeButton, recordButton, playButton, publishButton;
  27. int numberOfMatches;
  28. integer matches [1 + 20], fromPage, toPage;
  29. int suppressLinksHither;
  30. conststring32 printPagesStartingWith;
  31. bool v_scriptable ()
  32. override { return false; }
  33. void v_createChildren ()
  34. override;
  35. void v_createMenus ()
  36. override;
  37. bool v_hasQueryMenu ()
  38. override { return false; }
  39. void v_createHelpMenuItems (EditorMenu menu)
  40. override;
  41. void v_draw ()
  42. override;
  43. void v_defaultHeaders (EditorCommand cmd)
  44. override;
  45. integer v_getNumberOfPages ()
  46. override;
  47. integer v_getCurrentPageNumber ()
  48. override;
  49. int v_goToPage (conststring32 title)
  50. override;
  51. void v_goToPage_i (integer pageNumber)
  52. override;
  53. bool v_hasHistory ()
  54. override { return true; }
  55. bool v_isOrdered ()
  56. override { return true; }
  57. };
  58. void Manual_init (Manual me, conststring32 title, Daata data, bool ownData);
  59. autoManual Manual_create (conststring32 title, Daata data, bool ownData);
  60. void Manual_search (Manual me, conststring32 query);
  61. /* End of file Manual.h */
  62. #endif