// -*- C++ -*- /* This file is part of * ====================================================== * * LyX, The Document Processor * * Copyright (C) 1995 1996 Matthias Ettrich * and the LyX Team. *
*======================================================*/
#ifndef _VSPACE_H_ #define _VSPACE_H_
#ifdef __GNUG__ #pragma interface #endif
#include <stdio.h>
/// LyXLength Class class LyXLength { public: /// length units enum UNIT { /// Scaled point (65536sp = 1pt) TeX's smallest unit.
SP, /// Point = 1/72.27in = 0.351mm
PT, /// Big point (72bp = 1in), also PostScript point
BP, /// Didot point = 1/72 of a French inch, = 0.376mm
DD, /// Millimeter = 2.845pt
MM, /// Pica = 12pt = 4.218mm
PC, /// Cicero = 12dd = 4.531mm
CC, /// Centimeter = 10mm = 2.371pc
CM, /// Inch = 25.4mm = 72.27pt = 6.022pc
IN, /// Height of a small "x" for the current font.
EX, /// Width of capital "M" in current font.
EM, /// Math unit (18mu = 1em) for positioning in math mode
MU, /// no unit
UNIT_NONE
};
/** If "data" is valid, the length represented by it is
stored into "result", if that is not NULL. */ friendbool isValidLength(LString const & data,
LyXLength* result=NULL);
/// LyXGlueLength class class LyXGlueLength : public LyXLength { public: //@Man: constructors //@{ ///
LyXGlueLength(float v, LyXLength::UNIT u, float pv=0.0, LyXLength::UNIT pu=LyXLength::UNIT_NONE, float mv=0.0, LyXLength::UNIT mu=LyXLength::UNIT_NONE)
: LyXLength (v, u),
plus_val(pv), minus_val(mv),
plus_uni(pu), minus_uni(mu) {};
/** "data" must be a decimal number, followed by a unit, and optional "glue" indicated by "+" and "-". You may abbreviate reasonably. Examples: 1.2 cm // 4mm +2pt // 2cm -4mm +2mm // 4+0.1-0.2cm The traditional Latex format is also accepted, like
4cm plus 10pt minus 10pt */
LyXGlueLength(LString const & data); //@}
/** If "data" is valid, the length represented by it is
stored into "result", if that is not NULL. */ friendbool isValidGlueLength(LString const & data,
LyXGlueLength* result=NULL);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.