mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 07:57:22 +00:00
44cd0fc9a1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7862 a592a061-630c-0410-9148-cb99ea01b6c8
52 lines
1.0 KiB
C++
52 lines
1.0 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file math_parboxinset.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author André Pönitz
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef MATH_PARBOXINSET_H
|
|
#define MATH_PARBOXINSET_H
|
|
|
|
|
|
#include "math_textinset.h"
|
|
|
|
// implements support for \parbox
|
|
|
|
class MathParboxInset : public MathTextInset {
|
|
public:
|
|
///
|
|
MathParboxInset();
|
|
///
|
|
MathParboxInset * asParboxInset() { return this; }
|
|
///
|
|
virtual std::auto_ptr<InsetBase> clone() const;
|
|
///
|
|
mode_type currentMode() const { return TEXT_MODE; }
|
|
///
|
|
void metrics(MetricsInfo & mi, Dimension & dim) const;
|
|
///
|
|
void draw(PainterInfo &, int x, int y) const;
|
|
///
|
|
void infoize(std::ostream & os) const;
|
|
///
|
|
void write(WriteStream & os) const;
|
|
///
|
|
void setWidth(std::string const & width);
|
|
///
|
|
void setPosition(std::string const & pos);
|
|
private:
|
|
/// width on screen
|
|
int lyx_width_;
|
|
/// width for TeX
|
|
std::string tex_width_;
|
|
/// one of htb
|
|
char position_;
|
|
};
|
|
|
|
#endif
|