mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 16:04:07 +00:00
0024f42724
MathScriptInset/MathBigOpInset git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2220 a592a061-630c-0410-9148-cb99ea01b6c8
47 lines
893 B
C++
47 lines
893 B
C++
// -*- C++ -*-
|
|
#ifndef MATH_BIGOPINSET_H
|
|
#define MATH_BIGOPINSET_H
|
|
|
|
#include "math_updowninset.h"
|
|
|
|
/// big operators
|
|
class MathBigopInset : public MathUpDownInset {
|
|
public:
|
|
///
|
|
MathBigopInset(string const &, int);
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
void Write(std::ostream &, bool fragile) const;
|
|
///
|
|
void WriteNormal(std::ostream &) const;
|
|
///
|
|
void Metrics(MathStyles st, int asc = 0, int des = 0);
|
|
///
|
|
void draw(Painter &, int, int);
|
|
///
|
|
void limits(int);
|
|
///
|
|
int limits() const;
|
|
/// Identifies BigopInsets
|
|
bool isBigopInset() const { return true; }
|
|
private:
|
|
///
|
|
bool hasLimits() const;
|
|
///
|
|
int sym_;
|
|
///
|
|
string ssym_;
|
|
///
|
|
short code_;
|
|
/// 1: \limits, -1: \nolimits, 0: use default
|
|
int limits_;
|
|
/// x offset for drawing the superscript
|
|
int dx0_;
|
|
/// x offset for drawing the subscript
|
|
int dx1_;
|
|
/// x offset for drawing the inner symbol
|
|
int dxx_;
|
|
};
|
|
#endif
|