Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. /*=============================================================================
  3.    GNU UnRTF, a command-line program to convert RTF documents to other formats.
  4.    Copyright (C) 2000,2001 Zachary Thayer Smith
  5.  
  6.    This program is free software; you can redistribute it and/or modify
  7.    it under the terms of the GNU General Public License as published by
  8.    the Free Software Foundation; either version 2 of the License, or
  9.    (at your option) any later version.
  10.  
  11.    This program is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.    GNU General Public License for more details.
  15.  
  16.    You should have received a copy of the GNU General Public License
  17.    along with this program; if not, write to the Free Software
  18.    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  19.  
  20.    The author is reachable by electronic mail at tuorfa@yahoo.com.
  21. =============================================================================*/
  22.  
  23.  
  24. /*----------------------------------------------------------------------
  25.  * Module name:    attr
  26.  * Author name:    Zach Smith
  27.  * Create date:    1 Aug 2001
  28.  * Purpose:        Definitions for attribute stack module.
  29.  *----------------------------------------------------------------------
  30.  * Changes:
  31.  * 01 Aug 01, tuorfa@yahoo.com: moved code over from convert.c
  32.  * 06 Aug 01, tuorfa@yahoo.com: added several attributes
  33.  * 18 Sep 01, tuorfa@yahoo.com: updates for AttrStack paradigm
  34.  *--------------------------------------------------------------------*/
  35.  
  36. enum {
  37.         ATTR_NONE=0,
  38.         ATTR_BOLD, ATTR_ITALIC,
  39.  
  40.         ATTR_UNDERLINE, ATTR_DOUBLE_UL, ATTR_WORD_UL,
  41.  
  42.         ATTR_THICK_UL, ATTR_WAVE_UL,
  43.  
  44.         ATTR_DOT_UL, ATTR_DASH_UL, ATTR_DOT_DASH_UL, ATTR_2DOT_DASH_UL,
  45.  
  46.         ATTR_FONTSIZE, ATTR_STD_FONTSIZE,
  47.         ATTR_FONTFACE,
  48.         ATTR_FOREGROUND, ATTR_BACKGROUND,
  49.         ATTR_CAPS,
  50.         ATTR_SMALLCAPS,
  51.  
  52.         ATTR_SHADOW,
  53.         ATTR_OUTLINE,
  54.         ATTR_EMBOSS,
  55.         ATTR_ENGRAVE,
  56.  
  57.         ATTR_SUPER, ATTR_SUB,
  58.         ATTR_STRIKE,
  59.         ATTR_DBL_STRIKE,
  60.  
  61.         ATTR_EXPAND,
  62.         /* ATTR_CONDENSE */
  63. };
  64.  
  65.  
  66.  
  67. extern void attr_push_core (int attr, char* param);
  68.  
  69. extern void attr_pop_core (int attr);
  70.  
  71. extern void attr_push(int attr, char* param);
  72.  
  73. extern void attrstack_push();
  74. extern void attrstack_drop();
  75. extern void attrstack_express_all();
  76.  
  77. extern int attr_pop(int attr);
  78.  
  79. extern int attr_read();
  80.  
  81. extern void attr_drop_all ();
  82.  
  83. extern void attr_pop_all();
  84.  
  85. extern void attr_pop_dump();
  86.  
  87.  
  88.  
  89.