~ubuntu-branches/ubuntu/hardy/texmacs/hardy

« back to all changes in this revision

Viewing changes to src/Typeset/Format/stack_border.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Ralf Treinen
  • Date: 2004-04-19 20:34:00 UTC
  • Revision ID: james.westby@ubuntu.com-20040419203400-g4e34ih0315wcn8v
Tags: upstream-1.0.3-R2
ImportĀ upstreamĀ versionĀ 1.0.3-R2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/******************************************************************************
 
3
* MODULE     : stack_border.hpp
 
4
* DESCRIPTION: Border properties of a stack of page items
 
5
* COPYRIGHT  : (C) 1999  Joris van der Hoeven
 
6
*******************************************************************************
 
7
* This software falls under the GNU general public license and comes WITHOUT
 
8
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
 
9
* If you don't have this file, write to the Free Software Foundation, Inc.,
 
10
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
11
******************************************************************************/
 
12
 
 
13
#ifndef STACK_BORDER_H
 
14
#define STACK_BORDER_H
 
15
#include "space.hpp"
 
16
 
 
17
class stack_border_rep: public concrete_struct {
 
18
public:
 
19
  SI    height;  // default distance between successive base lines
 
20
  SI    sep;     // minimal separation of ink
 
21
  SI    hor_sep; // min. hor. ink sep. when lines are shoved into each other
 
22
  SI    bot;     // logical bottom of lines
 
23
  SI    top;     // logical top of lines
 
24
 
 
25
  space vspc_before, vspc_after;
 
26
  bool  nobr_before, nobr_after;
 
27
 
 
28
  inline stack_border_rep ():
 
29
    height (0), sep (0), hor_sep (0), bot (0), top (0),
 
30
    vspc_before (0), vspc_after (0),
 
31
    nobr_before (false), nobr_after (false) {}
 
32
};
 
33
 
 
34
class stack_border {
 
35
  CONCRETE(stack_border);
 
36
  inline stack_border (): rep (new stack_border_rep ()) {}
 
37
};
 
38
CONCRETE_CODE(stack_border);
 
39
 
 
40
#endif // defined STACK_BORDER_H