mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
38fce2feac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7059 a592a061-630c-0410-9148-cb99ea01b6c8
41 lines
765 B
C++
41 lines
765 B
C++
// -*- C++ -*-
|
|
#ifndef MATH_MAKEBOXINSET_H
|
|
#define MATH_MAKEBOXINSET_H
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
/** Extra nesting: \\makebox.
|
|
* \author Ling Li
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
// consolidate with MathFrameboxInset?
|
|
|
|
class MathMakeboxInset : public MathNestInset {
|
|
public:
|
|
///
|
|
MathMakeboxInset();
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
Dimension metrics(MetricsInfo & mi) const;
|
|
///
|
|
void draw(PainterInfo & pi, int x, int y) const;
|
|
///
|
|
void write(WriteStream & os) const;
|
|
/// write normalized content
|
|
void normalize(NormalStream & ns) const;
|
|
///
|
|
mode_type currentMode() const { return TEXT_MODE; }
|
|
private:
|
|
/// width of '[' in current font
|
|
mutable int w_;
|
|
};
|
|
|
|
#endif
|