mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
99d1627a47
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6138 a592a061-630c-0410-9148-cb99ea01b6c8
36 lines
689 B
C++
36 lines
689 B
C++
// -*- C++ -*-
|
|
|
|
/**
|
|
* \file button_inset.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 BUTTON_INSET_H
|
|
#define BUTTON_INSET_H
|
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
/// try to implement the button-like insets "natively" for mathed
|
|
class ButtonInset: public MathNestInset {
|
|
public:
|
|
///
|
|
ButtonInset();
|
|
///
|
|
void metrics(MathMetricsInfo & mi) const;
|
|
///
|
|
void draw(MathPainterInfo & pi, int x, int y) const;
|
|
|
|
protected:
|
|
/// This should provide the text for the button
|
|
virtual string screenLabel() const = 0;
|
|
};
|
|
|
|
#endif
|