2002-08-30 16:20:27 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QMath.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QMATH_H
|
|
|
|
#define QMATH_H
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class QMath
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
friend class QMathDialog;
|
|
|
|
|
|
|
|
QMath();
|
|
|
|
|
|
|
|
/// temporary
|
|
|
|
void do_show();
|
|
|
|
|
|
|
|
/// build the dialog (should be private)
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
|
|
|
/// insert a math symbol into the doc
|
2002-09-14 20:16:14 +00:00
|
|
|
void insert(string const & name);
|
2002-08-30 16:20:27 +00:00
|
|
|
|
2002-09-14 03:27:07 +00:00
|
|
|
/// insert a cube root
|
|
|
|
void insertCubeRoot();
|
|
|
|
|
2002-09-14 20:16:14 +00:00
|
|
|
/// insert a matrix
|
|
|
|
void insertMatrix();
|
|
|
|
|
2002-09-06 01:44:02 +00:00
|
|
|
/// add a subscript
|
|
|
|
void subscript();
|
|
|
|
|
|
|
|
/// add a superscript
|
|
|
|
void superscript();
|
|
|
|
|
2002-09-14 03:27:07 +00:00
|
|
|
/// switch between display and inline
|
|
|
|
void toggleDisplay();
|
|
|
|
|
2002-08-30 16:20:27 +00:00
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
virtual void apply() {};
|
|
|
|
/// update
|
|
|
|
virtual void update_contents() {};
|
|
|
|
|
|
|
|
// FIXME: temp
|
|
|
|
QMathDialog * dialog_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QMATH_H
|