Compare commits

...

4 Commits

Author SHA1 Message Date
Pavel Sanda
df1ba8ee59 Little ugly, but we can get rid of QString as well. 2024-10-24 20:11:05 +02:00
Pavel Sanda
6e832efbde QHeaderView is unecessarily heavy to include everywhere 2024-10-24 19:53:01 +02:00
Pavel Sanda
b2d157a4da No need to include Buffer.h everywhere 2024-10-24 19:44:06 +02:00
Jean-Marc Lasgouttes
a2c1229ac1 Handle backslash at end of line
This occurs when importing the sampleart.ltx file from ltugboat document class.
2024-10-24 17:35:00 +02:00
11 changed files with 19 additions and 3 deletions

View File

@ -24,6 +24,7 @@
#include <QLabel> #include <QLabel>
#include <QList> #include <QList>
#include <QTabWidget> #include <QTabWidget>
#include <QTabBar>
#include <QValidator> #include <QValidator>

View File

@ -26,6 +26,7 @@
#include <QClipboard> #include <QClipboard>
#include <QDate> #include <QDate>
#include <QFile> #include <QFile>
#include <QRegularExpression>
#include <QTextStream> #include <QTextStream>
using namespace lyx::support; using namespace lyx::support;

View File

@ -113,6 +113,7 @@
#include <QSocketNotifier> #include <QSocketNotifier>
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QStyle>
#include <QSvgRenderer> #include <QSvgRenderer>
#include <QTimer> #include <QTimer>
#include <QTranslator> #include <QTranslator>

View File

@ -22,6 +22,7 @@
#include <QCloseEvent> #include <QCloseEvent>
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QColorDialog> #include <QColorDialog>
#include <QRegularExpression>
using namespace std; using namespace std;

View File

@ -28,6 +28,7 @@
#include "support/pmprof.h" #include "support/pmprof.h"
#include <QByteArray> #include <QByteArray>
#include <QFontInfo>
#include <QRawFont> #include <QRawFont>
#include <QtEndian> #include <QtEndian>

View File

@ -24,6 +24,7 @@
#include "support/Lexer.h" #include "support/Lexer.h"
#include "support/lstrings.h" #include "support/lstrings.h"
#include "Buffer.h"
#include "BufferParams.h" #include "BufferParams.h"
#include "IndicesList.h" #include "IndicesList.h"

View File

@ -13,6 +13,8 @@
#include "LaTeXHighlighter.h" #include "LaTeXHighlighter.h"
#include "qt_helpers.h" #include "qt_helpers.h"
#include <QPalette>
#include <QRegularExpression>
#include <QString> #include <QString>
#include <QTextDocument> #include <QTextDocument>

View File

@ -16,6 +16,8 @@
#include "Format.h" #include "Format.h"
#include "FuncRequest.h" #include "FuncRequest.h"
#include "LyXAction.h" #include "LyXAction.h"
#include <QString>
#include "qt_helpers.h" #include "qt_helpers.h"
#include "support/debug.h" #include "support/debug.h"

View File

@ -12,8 +12,10 @@
#include <config.h> #include <config.h>
#include <QString>
#include "qt_helpers.h" #include "qt_helpers.h"
#include "Buffer.h"
#include "Format.h" #include "Format.h"
#include "LengthCombo.h" #include "LengthCombo.h"
#include "LyXRC.h" #include "LyXRC.h"
@ -33,6 +35,7 @@
#include <QComboBox> #include <QComboBox>
#include <QDesktopServices> #include <QDesktopServices>
#include <QDir> #include <QDir>
#include <QHeaderView>
#include <QInputDialog> #include <QInputDialog>
#include <QLineEdit> #include <QLineEdit>
#include <QMessageBox> #include <QMessageBox>

View File

@ -13,7 +13,6 @@
#ifndef QTHELPERS_H #ifndef QTHELPERS_H
#define QTHELPERS_H #define QTHELPERS_H
#include "Buffer.h"
#include "ColorSet.h" #include "ColorSet.h"
#include "support/Length.h" #include "support/Length.h"
#include "support/qstring_helpers.h" #include "support/qstring_helpers.h"
@ -22,15 +21,16 @@
#include <list> #include <list>
#include <QHeaderView>
class QComboBox; class QComboBox;
class QLineEdit; class QLineEdit;
class QString; class QString;
class QWidget; class QWidget;
class QAbstractItemView;
namespace lyx { namespace lyx {
class Buffer;
namespace support { class FileName; } namespace support { class FileName; }
namespace frontend { namespace frontend {

View File

@ -882,6 +882,9 @@ void Parser::tokenize_one()
if (!is_) { if (!is_) {
error("unexpected end of input"); error("unexpected end of input");
} else { } else {
// A single \ at the end of a line is like "\ "
if (catcode(c) == catNewline)
c = ' ';
docstring s(1, c); docstring s(1, c);
if (catcode(c) == catLetter) { if (catcode(c) == catLetter) {
// collect letters // collect letters