mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 12:26:59 +00:00
0facb603fe
we run into assertions. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30634 a592a061-630c-0410-9148-cb99ea01b6c8
75 lines
1.4 KiB
C++
75 lines
1.4 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file InsetMathRef.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 REF_INSET_H
|
|
#define REF_INSET_H
|
|
|
|
|
|
#include "CommandInset.h"
|
|
|
|
|
|
namespace lyx {
|
|
class Buffer;
|
|
|
|
// for \ref
|
|
class InsetMathRef : public CommandInset {
|
|
public:
|
|
///
|
|
InsetMathRef();
|
|
///
|
|
explicit InsetMathRef(docstring const & data);
|
|
///
|
|
//void write(WriteStream & os) const;
|
|
///
|
|
void infoize(odocstream & os) const;
|
|
///
|
|
docstring const screenLabel() const;
|
|
///
|
|
void validate(LaTeXFeatures & features) const;
|
|
///
|
|
virtual InsetMathRef * asRefInset() { return this; }
|
|
|
|
/// docbook output
|
|
int docbook(odocstream & os, OutputParams const &) const;
|
|
/// generate something that will be understood by the Dialogs.
|
|
std::string const createDialogStr(std::string const & name) const;
|
|
|
|
struct ref_type_info {
|
|
///
|
|
docstring latex_name;
|
|
///
|
|
docstring gui_name;
|
|
///
|
|
docstring short_gui_name;
|
|
};
|
|
static ref_type_info types[];
|
|
///
|
|
static int getType(docstring const & name);
|
|
///
|
|
static docstring const & getName(int type);
|
|
///
|
|
InsetCode lyxCode() const { return MATH_REF_CODE; }
|
|
|
|
protected:
|
|
///
|
|
virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
|
|
///
|
|
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
|
|
private:
|
|
///
|
|
virtual Inset * clone() const;
|
|
};
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
#endif
|