mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
dff2911bda
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2966 a592a061-630c-0410-9148-cb99ea01b6c8
47 lines
796 B
C++
47 lines
796 B
C++
// -*- C++ -*-
|
|
#ifndef MATH_STRINGINSET_H
|
|
#define MATH_STRINGINSET_H
|
|
|
|
#include "math_inset.h"
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
/** Some cllection of chars with similar properties
|
|
\author André Pönitz
|
|
*/
|
|
|
|
class MathStringInset : public MathInset {
|
|
public:
|
|
///
|
|
MathStringInset(string const & s, MathTextCodes t);
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
void metrics(MathMetricsInfo const & st) const;
|
|
///
|
|
void draw(Painter &, int x, int y) const;
|
|
///
|
|
void write(MathWriteInfo & os) const;
|
|
///
|
|
void writeNormal(std::ostream &) const;
|
|
///
|
|
int ascent() const;
|
|
///
|
|
int descent() const;
|
|
///
|
|
int width() const;
|
|
///
|
|
string & str();
|
|
|
|
private:
|
|
/// the string
|
|
string str_;
|
|
/// the font to be used on screen
|
|
MathTextCodes code_;
|
|
///
|
|
mutable MathMetricsInfo mi_;
|
|
};
|
|
#endif
|