home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 3 / CD_Magazyn_EXEC_nr_3.iso / Recent / misc / edu / WhirlDisc.lha / WhirlDisc / Source / article.h < prev    next >
C/C++ Source or Header  |  2000-08-09  |  2KB  |  89 lines

  1. /*
  2.  
  3. File: article.h
  4. Author: Neil Cafferkey
  5. Copyright (C) 2000 Neil Cafferkey
  6.  
  7. This program is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU General Public License
  9. as published by the Free Software Foundation; either version 2
  10. of the License, or (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. 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 program; if not, write to the Free Software
  19. Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  20. MA 02111-1307, USA.
  21.  
  22. */
  23.  
  24. #ifndef _article_h
  25. #define _article_h
  26.  
  27.  
  28. #include <exec/types.h>
  29. #include <intuition/intuition.h>
  30. #include "section.h"
  31. #include "sequence.h"
  32. #include <exec/nodes.h>
  33.  
  34. #define NT_ARTICLE NT_USER
  35.  
  36. typedef struct
  37.    {
  38.    struct Node node;
  39.    Sequence data;
  40.    TEXT *title;
  41.    Section *sections;
  42.    UBYTE section_count;
  43.    UBYTE something29_count;
  44.    UWORD reference_count;
  45.    UBYTE something2b_count;
  46.    UWORD something2c_count;
  47.    UWORD something2e_count;
  48.    UWORD string_block_length;
  49.    UWORD body_length;
  50.    UBYTE something48_count;
  51.    struct Window *window;
  52.    UWORD left;
  53.    UWORD top;
  54.    UWORD width;
  55.    UWORD height;
  56.    UWORD current_section_no;
  57.    UWORD current_paragraph_no;
  58.    UWORD current_line_no;
  59.    UWORD current_pixel_no;
  60.    UWORD current_char;
  61.    struct Gadget *scroll_bar;
  62.    struct PropInfo *prop_info;
  63.    struct Image *knob_image;
  64.    UWORD line_count;
  65.    UWORD window_line_count;
  66.    struct Image *size_image;
  67.    struct Image *up_image;
  68.    struct Image *down_image;
  69.    struct Gadget *up_button;
  70.    struct Gadget *down_button;
  71.    struct TextFont *font;
  72.    UWORD max_section_no;
  73.    UWORD max_line_no;
  74.    UBYTE max_pixel_no;
  75.    BOOL new_size;
  76.    ULONG old_pixel_position;
  77.    struct Gadget *current_gadget;
  78.    UWORD tick_count;
  79.    UBYTE button_resolution;
  80.    }
  81.    Article_imp;
  82.  
  83. typedef Article_imp *Article;
  84.  
  85.  
  86. #endif
  87.  
  88.  
  89.