lyx_mirror/src/mathed/math_atom.h
André Pönitz 86c2cf6f65 translate '\int_0^1 e^x dx' to 'int(e^(x),x=0..1)'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2999 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-09 16:27:44 +00:00

63 lines
1018 B
C++

// -*- C++ -*-
#ifndef MATH_ATOM_H
#define MATH_ATOM_H
#ifdef __GNUG__
#pragma interface
#endif
/**
The 'atom' is the major blob in math typesetting. And 'atom' consists
of a nucleus, an optional superscript, and an optional subscript.
Exactly where the subscript and superscript are drawn depends on the
size, and type, of the nucleus they are attached to.
Jules
--
Ok: Implementing it thusly is not feasible since cursor movement gets
hackish. We use MathAtom only as a wrapper around MathInset * with value
semantics.
Andre'
*/
class MathInset;
class MathAtom {
public:
///
MathAtom();
///
MathAtom(MathAtom const &);
///
explicit MathAtom(MathInset * p);
///
virtual ~MathAtom();
///
void operator=(MathAtom const &);
///
void reset(MathInset * p);
///
bool hasNucleus() const;
///
MathInset * nucleus() const;
///
MathInset * operator->() const;
private:
///
MathInset * nucleus_;
/// raw copy
void copy(MathAtom const & p);
/// raw destruction
void done();
};
#endif