mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
45a03f4f67
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1019 a592a061-630c-0410-9148-cb99ea01b6c8
42 lines
897 B
C++
42 lines
897 B
C++
// -*- C++ -*-
|
|
/* This file is part of*
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 1995 Matthias Ettrich
|
|
* Copyright 2000 The LyX Team.
|
|
*
|
|
* ====================================================== */
|
|
|
|
#ifndef INSET_BUTTON_H
|
|
#define INSET_BUTTON_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "lyxinset.h"
|
|
#include "LString.h"
|
|
|
|
/** Used to provide an inset that looks like a button.
|
|
*/
|
|
class InsetButton: public Inset {
|
|
public:
|
|
///
|
|
int ascent(BufferView *, LyXFont const &) const;
|
|
///
|
|
int descent(BufferView *, LyXFont const &) const;
|
|
///
|
|
int width(BufferView *, LyXFont const &) const;
|
|
///
|
|
void draw(BufferView *, LyXFont const &, int, float &, bool) const;
|
|
|
|
protected:
|
|
/// This should provide the text for the button
|
|
virtual string const getScreenLabel() const = 0;
|
|
};
|
|
|
|
#endif
|
|
|