mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
99d1627a47
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6138 a592a061-630c-0410-9148-cb99ea01b6c8
63 lines
1.0 KiB
C++
63 lines
1.0 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file QMath.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author John Levon
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#ifndef QMATH_H
|
|
#define QMATH_H
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
class QMathDialog;
|
|
|
|
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
|
|
void insert(string const & name);
|
|
|
|
/// insert a cube root
|
|
void insertCubeRoot();
|
|
|
|
/// insert a matrix
|
|
void insertMatrix(string const & str);
|
|
|
|
/// insert delim
|
|
void insertDelim(string const & str);
|
|
|
|
/// add a subscript
|
|
void subscript();
|
|
|
|
/// add a superscript
|
|
void superscript();
|
|
|
|
/// switch between display and inline
|
|
void toggleDisplay();
|
|
private:
|
|
/// Apply changes
|
|
virtual void apply() {}
|
|
/// update
|
|
virtual void update_contents() {}
|
|
|
|
// FIXME: temp
|
|
QMathDialog * dialog_;
|
|
};
|
|
|
|
#endif // QMATH_H
|