Third present for Bo: Add syntax highlighting to the LateX preamble.

TODO: extract the latexHighlighter class into its own .[Ch] files.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17553 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-03-25 16:13:14 +00:00
parent 68e8329644
commit be3fc71676

View File

@ -24,6 +24,8 @@
#include "Qt2BC.h"
#include "checkedwidgets.h"
#include "qt_helpers.h"
// For latexHighlighter use in the preamble.
#include "QViewSource.h"
#include "bufferparams.h"
#include "encoding.h"
@ -373,6 +375,9 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
// preamble
preambleModule = new UiWidget<Ui::PreambleUi>;
connect(preambleModule->preambleTE, SIGNAL(textChanged()), this, SLOT(change_adaptor()));
// This is not a memory leak. The object will be destroyed
// with preambleModule.
new latexHighlighter(preambleModule->preambleTE->document());
// bullets