Move Lexer to support/ directory (and lyx::support namespace)

This requires quite a bit of trivial code shuffling.
This commit is contained in:
Jean-Marc Lasgouttes 2024-04-28 00:24:46 +02:00
parent ed2f3cb9cf
commit 2660df9b99
126 changed files with 277 additions and 230 deletions

View File

@ -41,7 +41,6 @@
#include "LaTeXFeatures.h"
#include "LaTeX.h"
#include "Layout.h"
#include "Lexer.h"
#include "LyXAction.h"
#include "LyX.h"
#include "LyXRC.h"
@ -95,6 +94,7 @@
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/gzstream.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/mutex.h"
#include "support/os.h"

View File

@ -39,7 +39,6 @@ class FuncRequest;
class FuncStatus;
class Inset;
class InsetLabel;
class Lexer;
class Text;
class LyXVC;
class LaTeXFeatures;
@ -67,6 +66,7 @@ namespace support {
class DocFileName;
class FileName;
class FileNameList;
class Lexer;
} // namespace support
namespace graphics {
@ -226,7 +226,7 @@ public:
//FIXME: The following function should be private
//private:
/// read the header, returns number of unknown tokens
int readHeader(Lexer & lex);
int readHeader(support::Lexer & lex);
double fontScalingFactor() const;
/// check for active synctex support:
@ -247,14 +247,14 @@ private:
/// Reads a file without header.
/// \param par if != 0 insert the file.
/// \return \c true if file is not completely read.
bool readDocument(Lexer &);
bool readDocument(support::Lexer &);
/// Try to extract the file from a version control container
/// before reading if the file cannot be found.
/// \sa LyXVC::file_not_found_hook
ReadStatus extractFromVC();
/// Reads the first tag of a LyX File and
/// returns the file format number.
ReadStatus parseLyXFormat(Lexer & lex, support::FileName const & fn,
ReadStatus parseLyXFormat(support::Lexer & lex, support::FileName const & fn,
int & file_format) const;
/// Convert the LyX file to the LYX_FORMAT using
/// the lyx2lyx script and returns the filename

View File

@ -33,7 +33,6 @@
#include "LaTeXFeatures.h"
#include "LaTeXFonts.h"
#include "Font.h"
#include "Lexer.h"
#include "LyXRC.h"
#include "OutputParams.h"
#include "Spacing.h"
@ -53,6 +52,7 @@
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/Length.h"
#include "support/Lexer.h"
#include "support/Messages.h"
#include "support/mutex.h"
#include "support/Package.h"

View File

@ -31,7 +31,10 @@
namespace lyx {
namespace support { class FileName; }
namespace support {
class FileName;
class Lexer;
}
class Author;
class AuthorList;
@ -48,7 +51,6 @@ class LaTeXFeatures;
class LayoutFile;
class LayoutFileIndex;
class Length;
class Lexer;
class OutputParams;
class otexstream;
class PDFOptions;
@ -79,7 +81,7 @@ public:
docstring B_(std::string const & l10n) const;
/// read a header token, if unrecognised, return it or an unknown class name
std::string readToken(Lexer & lex,
std::string readToken(support::Lexer & lex,
std::string const & token, ///< token to read.
support::FileName const & filename);
@ -629,25 +631,25 @@ public:
private:
///
void readPreamble(Lexer &);
void readPreamble(support::Lexer &);
///
void readDocumentMetadata(Lexer &);
void readDocumentMetadata(support::Lexer &);
///
void readLocalLayout(Lexer &, bool);
void readLocalLayout(support::Lexer &, bool);
///
void readLanguage(Lexer &);
void readLanguage(support::Lexer &);
///
void readGraphicsDriver(Lexer &);
void readGraphicsDriver(support::Lexer &);
///
void readBullets(Lexer &);
void readBullets(support::Lexer &);
///
void readBulletsLaTeX(Lexer &);
void readBulletsLaTeX(support::Lexer &);
///
void readModules(Lexer &);
void readModules(support::Lexer &);
///
void readRemovedModules(Lexer &);
void readRemovedModules(support::Lexer &);
///
void readIncludeonly(Lexer &);
void readIncludeonly(support::Lexer &);
/// A cache for the default flavors
typedef std::map<std::string, Flavor> DefaultFlavorCache;
///

View File

@ -31,7 +31,6 @@
#include "Intl.h"
#include "Language.h"
#include "LayoutFile.h"
#include "Lexer.h"
#include "LyX.h"
#include "LyXAction.h"
#include "lyxfind.h"
@ -75,6 +74,7 @@
#include "support/gettext.h"
#include "support/lassert.h"
#include "support/Length.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/lyxlib.h"
#include "support/types.h"

View File

@ -15,12 +15,12 @@
#include "CiteEnginesList.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "support/debug.h"
#include "support/FileName.h"
#include "support/gettext.h"
#include "support/filetools.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/Translator.h"

View File

@ -14,11 +14,11 @@
#include "FuncRequest.h"
#include "LyXAction.h"
#include "Lexer.h"
#include "support/debug.h"
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <string>

View File

@ -15,13 +15,13 @@
#include "ConverterCache.h"
#include "Format.h"
#include "Lexer.h"
#include "LyXRC.h"
#include "Mover.h"
#include "support/convert.h"
#include "support/debug.h"
#include "support/filetools.h"
#include "support/Lexer.h"
#include "support/lyxtime.h"
#include "support/Package.h"

View File

@ -15,7 +15,6 @@
#include "Counters.h"
#include "Layout.h"
#include "Lexer.h"
#include "support/convert.h"
#include "support/counter_reps.h"
@ -23,6 +22,7 @@
#include "support/docstring.h"
#include "support/gettext.h"
#include "support/lassert.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <algorithm>

View File

@ -26,7 +26,8 @@
namespace lyx {
class Layout;
class Lexer;
namespace support { class Lexer; }
/// This represents a single counter.
class Counter {
@ -38,7 +39,7 @@ public:
docstring const & lsa, docstring const & prettyformat,
docstring const & guiname);
/// \return true on success
bool read(Lexer & lex);
bool read(support::Lexer & lex);
///
void set(int v);
///
@ -142,7 +143,7 @@ public:
/// \param makeNew whether to make a new counter if one
/// doesn't already exist
/// \return true on success
bool read(Lexer & lex, docstring const & name, bool makenew);
bool read(support::Lexer & lex, docstring const & name, bool makenew);
///
void set(docstring const & ctr, int val);
///

View File

@ -14,11 +14,10 @@
#include "Encoding.h"
#include "Lexer.h"
#include "support/debug.h"
#include "support/docstring.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/mutex.h"
#include "support/textutils.h"

View File

@ -21,7 +21,6 @@
#include "Encoding.h"
#include "Language.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "LyXRC.h"
#include "output_latex.h"
#include "OutputParams.h"
@ -31,6 +30,7 @@
#include "support/convert.h"
#include "support/debug.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <cstring>

View File

@ -17,13 +17,13 @@
#include "FontInfo.h"
#include "ColorSet.h"
#include "Lexer.h"
#include "LyXRC.h"
#include "support/convert.h"
#include "support/debug.h"
#include "support/docstring.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <algorithm>

View File

@ -25,7 +25,7 @@
namespace lyx {
class Lexer;
namespace support { class Lexer; }
///
class FontInfo
@ -257,7 +257,7 @@ void setLyXColor(std::string const &, FontInfo &);
FontState setLyXMisc(std::string const &);
/// Read a font specification from Lexer. Used for layout files.
FontInfo lyxRead(Lexer &, FontInfo const & fi = sane_font);
FontInfo lyxRead(support::Lexer &, FontInfo const & fi = sane_font);
/// Write a font specification. Used for layout files.
void lyxWrite(std::ostream &, FontInfo const &, std::string const &, int);

View File

@ -17,13 +17,13 @@
#include "KeySequence.h"
#include "LyXAction.h"
#include "Lexer.h"
#include "support/debug.h"
#include "support/docstream.h"
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/TempFile.h"

View File

@ -13,7 +13,6 @@
#include "LaTeXFonts.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "frontends/alert.h"
@ -23,6 +22,7 @@
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"

View File

@ -20,7 +20,7 @@
namespace lyx {
class Lexer;
namespace support { class Lexer; }
/// LaTeX Font definition
class LaTeXFont {
@ -96,9 +96,9 @@ public:
/// Return the actually used package
docstring const getUsedPackage(bool ot1, bool complete, bool nomath) const;
///
bool read(Lexer & lex);
bool read(support::Lexer & lex);
///
bool readFont(Lexer & lex);
bool readFont(support::Lexer & lex);
private:
/// Return the preferred available package
std::string const getAvailablePackage(bool dryrun) const;

View File

@ -16,13 +16,12 @@
#include "LaTeXPackages.h"
#include "Lexer.h"
#include "support/convert.h"
#include "support/debug.h"
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/Package.h"

View File

@ -18,7 +18,6 @@
#include "BufferParams.h"
#include "Encoding.h"
#include "LaTeXFonts.h"
#include "Lexer.h"
#include "LyXRC.h"
#include "support/debug.h"
@ -26,6 +25,7 @@
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/lassert.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/qstring_helpers.h"
#include "support/Messages.h"

View File

@ -25,11 +25,13 @@
namespace lyx {
namespace support { class FileName; }
namespace support {
class FileName;
class Lexer;
}
class BufferParams;
class Encoding;
class Lexer;
///
class Language {
@ -99,9 +101,9 @@ public:
/// This language corresponds to a translation of the GUI
bool hasGuiSupport() const { return has_gui_support_; }
///
bool read(Lexer & lex);
bool read(support::Lexer & lex);
///
bool readLanguage(Lexer & lex);
bool readLanguage(support::Lexer & lex);
///
typedef std::map<trivstring, trivdocstring> TranslationMap;
///

View File

@ -13,13 +13,13 @@
#include <config.h>
#include "Layout.h"
#include "Lexer.h"
#include "output_xhtml.h"
#include "TextClass.h"
#include "support/debug.h"
#include "support/docstream.h"
#include "support/lassert.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/textutils.h"

View File

@ -26,7 +26,8 @@
namespace lyx {
class Lexer;
namespace support { class Lexer; }
class TextClass;
/* Fixed labels are printed flushright, manual labels flushleft.
@ -58,23 +59,23 @@ public:
void setUnknown(bool unknown) { unknown_ = unknown; }
/// Reads a layout definition from file
/// \return true on success.
bool read(Lexer &, TextClass const &, bool validating = false);
bool read(support::Lexer &, TextClass const &, bool validating = false);
///
void readAlign(Lexer &);
void readAlign(support::Lexer &);
///
void readAlignPossible(Lexer &);
void readAlignPossible(support::Lexer &);
///
void readLabelType(Lexer &);
void readLabelType(support::Lexer &);
///
void readEndLabelType(Lexer &);
void readEndLabelType(support::Lexer &);
///
void readMargin(Lexer &);
void readMargin(support::Lexer &);
///
void readLatexType(Lexer &);
void readLatexType(support::Lexer &);
///
void readSpacing(Lexer &);
void readSpacing(support::Lexer &);
///
void readArgument(Lexer &, bool);
void readArgument(support::Lexer &, bool);
/// Write a layout definition in utf8 encoding
void write(std::ostream &) const;
///
@ -439,7 +440,7 @@ public:
private:
/// Reads a layout definition from file
/// \return true on success.
bool readIgnoreForcelocal(Lexer &, TextClass const &, bool validating);
bool readIgnoreForcelocal(support::Lexer &, TextClass const &, bool validating);
/// generates the default CSS for this layout
void makeDefaultCSS() const;
///

View File

@ -12,13 +12,13 @@
#include <config.h>
#include "LayoutFile.h"
#include "Lexer.h"
#include "TextClass.h"
#include "support/debug.h"
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/lassert.h"
#include "support/Lexer.h"
#include "support/TempFile.h"
#include <fstream>

View File

@ -25,7 +25,6 @@
#include "Format.h"
#include "FuncCode.h"
#include "FuncRequest.h"
#include "Lexer.h"
#include "LyX.h"
#include "Mover.h"
#include "SpellChecker.h"
@ -36,6 +35,7 @@
#include "support/environment.h"
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/os.h"
#include "support/Package.h"

View File

@ -31,9 +31,10 @@
namespace lyx {
namespace support { class FileName; }
namespace support {
class FileName;
class Lexer;
}
/// This contains the runtime configuration of LyX
class LyXRC
@ -212,7 +213,7 @@ private:
FormatMismatch
};
///
ReturnValues read(Lexer &, bool check_format);
ReturnValues read(support::Lexer &, bool check_format);
public:
///
typedef std::set<std::string> CommandSet;

View File

@ -147,7 +147,6 @@ SOURCEFILESCORE = \
LaTeXPackages.cpp \
LayoutFile.cpp \
LayoutModuleList.cpp \
Lexer.cpp \
LyX.cpp \
LyXAction.cpp \
lyxfind.cpp \
@ -247,7 +246,6 @@ HEADERFILESCORE = \
LayoutEnums.h \
LayoutFile.h \
LayoutModuleList.h \
Lexer.h \
LyXAction.h \
lyxfind.h \
LyX.h \

View File

@ -14,12 +14,12 @@
#include "ModuleList.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "support/debug.h"
#include "support/FileName.h"
#include "support/gettext.h"
#include "support/filetools.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <algorithm>

View File

@ -15,7 +15,6 @@
#include "Encoding.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "OutputParams.h"
#include "texstream.h"
@ -23,6 +22,7 @@
#include "support/debug.h"
#include "support/docstream.h"
#include "support/docstring.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <sstream>

View File

@ -16,10 +16,11 @@
namespace lyx {
class Lexer;
class OutputParams;
class otexstream;
namespace support { class Lexer; }
// FIXME UNICODE
// Write functions need to use odostream instead of ostream before
// we can use docstring instead of string.
@ -37,7 +38,7 @@ public:
void writeLaTeX(OutputParams &, otexstream &,
bool hyperref_already_provided) const;
/// read tokens from lyx header
std::string readToken(Lexer &lex, std::string const & token);
std::string readToken(support::Lexer &lex, std::string const & token);
/// set implicit settings for hyperref
void clear();

View File

@ -17,11 +17,11 @@
#include "ParagraphParameters.h"
#include "Layout.h"
#include "Lexer.h"
#include "Paragraph.h"
#include "support/debug.h"
#include "support/docstring.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <sstream>

View File

@ -25,9 +25,10 @@
namespace lyx {
class Layout;
class Lexer;
class Paragraph;
namespace support { class Lexer; }
///
class ParagraphParameters {
@ -79,7 +80,7 @@ public:
void read (std::string const & str, bool merge = true);
/// read the parameters from a lex
void read(Lexer & lex, bool merge = true);
void read(support::Lexer & lex, bool merge = true);
///
void apply(ParagraphParameters const & params, Layout const & layout);

View File

@ -45,7 +45,6 @@
#include "Intl.h"
#include "Language.h"
#include "Layout.h"
#include "Lexer.h"
#include "LyX.h"
#include "LyXAction.h"
#include "lyxfind.h"
@ -95,6 +94,7 @@
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/lassert.h"
#include "support/Lexer.h"
#include "support/limited_stack.h"
#include "support/lstrings.h"
#include "support/lyxtime.h"

View File

@ -33,10 +33,11 @@ class FuncRequest;
class FuncStatus;
class Inset;
class InsetText;
class Lexer;
class Paragraph;
class ParagraphParameters;
namespace support { class Lexer; }
/// This class encapsulates the main text data and operations in LyX.
/// This is more or less the private implementation of InsetText.
class Text {
@ -299,7 +300,7 @@ public:
void write(std::ostream & os) const;
/// returns true if \end_document has not been read
/// insetPtr is the containing Inset
bool read(Lexer & lex, ErrorList & errorList,
bool read(support::Lexer & lex, ErrorList & errorList,
InsetText * insetPtr);
/// delete double spaces, leading spaces, and empty paragraphs around old cursor.
@ -381,10 +382,10 @@ private:
void pasteString(Cursor & cur, docstring const & str,
bool asParagraphs);
///
void readParToken(Paragraph & par, Lexer & lex, std::string const & token,
void readParToken(Paragraph & par, support::Lexer & lex, std::string const & token,
Font & font, Change & change, ErrorList & errorList);
///
void readParagraph(Paragraph & par, Lexer & lex, ErrorList & errorList);
void readParagraph(Paragraph & par, support::Lexer & lex, ErrorList & errorList);
/// Set Label Width string to all paragraphs of the same layout
/// and depth in a sequence.
void setLabelWidthStringToSequence(Cursor const & cur, docstring const & s);

View File

@ -22,7 +22,6 @@
#include "FloatList.h"
#include "Layout.h"
#include "LayoutFile.h"
#include "Lexer.h"
#include "ModuleList.h"
#include "frontends/alert.h"
@ -32,6 +31,7 @@
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/os.h"
#include "support/TempFile.h"

View File

@ -35,12 +35,14 @@
namespace lyx {
namespace support { class FileName; }
namespace support {
class FileName;
class Lexer;
}
class FloatList;
class Layout;
class LayoutFile;
class Lexer;
/// Based upon ideas in boost::noncopyable, inheriting from this
/// class effectively makes the copy constructor protected but the
@ -167,7 +169,7 @@ public:
///
ReturnValues read(std::string const & str, ReadType rt = MODULE);
///
ReturnValues read(Lexer & lex, ReadType rt = BASECLASS);
ReturnValues read(support::Lexer & lex, ReadType rt = BASECLASS);
/// validates the layout information passed in str
static ReturnValues validate(std::string const & str);
/// \return the conversion of \param str to the latest layout format
@ -387,29 +389,29 @@ private:
/// Reads the layout file without running layout2layout.
ReturnValues readWithoutConv(support::FileName const & filename, ReadType rt);
/// \return true for success.
bool readStyle(Lexer &, Layout &, ReadType) const;
bool readStyle(support::Lexer &, Layout &, ReadType) const;
///
void readOutputType(Lexer &);
void readOutputType(support::Lexer &);
///
void readTitleType(Lexer &);
void readTitleType(support::Lexer &);
///
void readMaxCounter(Lexer &);
void readMaxCounter(support::Lexer &);
///
void readClassOptions(Lexer &);
void readClassOptions(support::Lexer &);
///
void readCharStyle(Lexer &, std::string const &);
void readCharStyle(support::Lexer &, std::string const &);
///
bool readFloat(Lexer &);
bool readFloat(support::Lexer &);
///
std::vector<CitationStyle> const & getCiteStyles(CiteEngineType const &) const;
///
bool readCiteEngine(Lexer &, ReadType, bool const add = false);
bool readCiteEngine(support::Lexer &, ReadType, bool const add = false);
///
int readCiteEngineType(Lexer &) const;
int readCiteEngineType(support::Lexer &) const;
///
bool readCiteFormat(Lexer &, ReadType);
bool readCiteFormat(support::Lexer &, ReadType);
///
bool readOutlinerName(Lexer &);
bool readOutlinerName(support::Lexer &);
};

View File

@ -13,13 +13,13 @@
#include "Trans.h"
#include "Lexer.h"
#include "Text.h"
#include "support/debug.h"
#include "support/docstream.h"
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
using namespace std;

View File

@ -26,9 +26,10 @@ namespace lyx {
class Cursor;
class Text;
class Lexer;
class TransManager;
namespace support { class Lexer; }
///
enum tex_accent {
///
@ -149,7 +150,7 @@ private:
///
void freeKeymap();
///
int load(Lexer &);
int load(support::Lexer &);
///
docstring const & match(char_type c);
///

View File

@ -13,7 +13,6 @@
#include "factory.h"
#include "FuncRequest.h"
#include "Lexer.h"
#include "LyX.h"
#include "insets/InsetBibitem.h"
@ -65,6 +64,7 @@
#include "support/debug.h"
#include "support/ExceptionMessage.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/unique_ptr.h"

View File

@ -17,14 +17,14 @@ namespace lyx {
class Buffer;
class FuncRequest;
class Inset;
class Lexer;
namespace support { class Lexer; }
/// creates inset according to 'cmd'
Inset * createInset(Buffer * buf, FuncRequest const & cmd);
/// read inset from a file
Inset * readInset(Lexer & lex, Buffer * buf);
Inset * readInset(support::Lexer & lex, Buffer * buf);
} // namespace lyx

View File

@ -46,7 +46,6 @@
#include "KeyMap.h"
#include "Language.h"
#include "LaTeXPackages.h"
#include "Lexer.h"
#include "LyX.h"
#include "LyXAction.h"
#include "LyXRC.h"
@ -69,6 +68,7 @@
#include "support/ForkedCalls.h"
#include "support/gettext.h"
#include "support/lassert.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/lyxalgo.h" // sorted
#include "support/mute_warning.h"

View File

@ -16,12 +16,12 @@
#include "GuiApplication.h"
#include "qt_helpers.h"
#include "Lexer.h"
#include "frontends/Clipboard.h"
#include "support/docstring.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <QTextBrowser>

View File

@ -24,13 +24,12 @@
#include "FuncRequest.h"
#include "GuiView.h"
#include "Layout.h"
#include "Lexer.h"
#include "Paragraph.h"
#include "ParagraphParameters.h"
#include "Spacing.h"
#include "support/debug.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include <QCheckBox>
#include <QDialogButtonBox>

View File

@ -34,7 +34,6 @@
#include "TocModel.h"
#include "qt_helpers.h"
#include "support/filetools.h"
#include "frontends/alert.h"
#include "frontends/KeySymbol.h"
@ -56,7 +55,6 @@
#include "KeySymbol.h"
#include "Language.h"
#include "LayoutFile.h"
#include "Lexer.h"
#include "LyXAction.h"
#include "LyX.h"
#include "LyXRC.h"
@ -75,9 +73,11 @@
#include "support/debug.h"
#include "support/ExceptionMessage.h"
#include "support/FileName.h"
#include "support/gettext.h"
#include "support/filetools.h"
#include "support/ForkedCalls.h"
#include "support/gettext.h"
#include "support/lassert.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/os.h"
#include "support/Package.h"

View File

@ -42,7 +42,6 @@
#include "KeyMap.h"
#include "Language.h"
#include "Layout.h"
#include "Lexer.h"
#include "LyXAction.h"
#include "LyX.h"
#include "LyXRC.h"
@ -64,12 +63,13 @@
#include "insets/InsetInfo.h"
#include "insets/InsetQuotes.h"
#include "support/lassert.h"
#include "support/convert.h"
#include "support/debug.h"
#include "support/docstring_list.h"
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/lassert.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <QCursor>

View File

@ -22,9 +22,10 @@ namespace lyx {
class BufferView;
class docstring_list;
class Lexer;
class FuncRequest;
namespace support { class Lexer; }
namespace frontend {
class GuiView;
@ -79,7 +80,7 @@ public:
Menu * menu(QString const & name, GuiView & view, bool keyboard = false);
///
void read(Lexer &);
void read(support::Lexer &);
///
void updateMenu(Menu * qmenu);

View File

@ -15,12 +15,12 @@
#include "Converter.h"
#include "Format.h"
#include "FuncRequest.h"
#include "Lexer.h"
#include "LyXAction.h"
#include "qt_helpers.h"
#include "support/debug.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <algorithm>

View File

@ -23,7 +23,8 @@
namespace lyx {
class FuncRequest;
class Lexer;
namespace support { class Lexer; }
namespace frontend {
@ -92,7 +93,7 @@ public:
Items items;
/// read a toolbar from the file
ToolbarInfo & read(Lexer &);
ToolbarInfo & read(support::Lexer &);
private:
/// add toolbar item
@ -140,10 +141,10 @@ public:
Infos::iterator end() { return toolbar_info_.end(); }
/// read toolbars from the file
void readToolbars(Lexer &);
void readToolbars(support::Lexer &);
/// read ui toolbar settings
void readToolbarSettings(Lexer &);
void readToolbarSettings(support::Lexer &);
///
ToolbarInfo const * info(std::string const & name) const;

View File

@ -13,10 +13,10 @@
#include "ExternalTemplate.h"
#include "Lexer.h"
#include "support/debug.h"
#include "support/filetools.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/Package.h"
#include "support/PathChanger.h"

View File

@ -19,9 +19,10 @@
namespace lyx {
namespace support { class FileName; }
namespace support {
class FileName;
class Lexer;
}
enum PreviewMode {
PREVIEW_OFF = 0,
@ -36,7 +37,7 @@ public:
/// We have to have default commands for safety reasons!
Template();
///
void readTemplate(Lexer &);
void readTemplate(support::Lexer &);
///
void dumpFormats(std::ostream &) const;
@ -72,7 +73,7 @@ public:
public:
Format();
///
void readFormat(Lexer &);
void readFormat(support::Lexer &);
/// The text that should be inserted into the exported file
std::string product;

View File

@ -56,7 +56,6 @@ class InsetTabular;
class InsetText;
class Language;
class LaTeXFeatures;
class Lexer;
class MathAtom;
class MetricsInfo;
class PainterInfo;
@ -68,7 +67,10 @@ class otexstream;
namespace graphics { class PreviewLoader; }
namespace support {class FileNameList; }
namespace support {
class FileNameList;
class Lexer;
}
/// returns the InsetCode corresponding to the \c name.
/// Eg, insetCode("branch") == BRANCH_CODE
@ -501,7 +503,7 @@ public:
/// write inset in .lyx format
virtual void write(std::ostream &) const {}
/// read inset in .lyx format
virtual void read(Lexer &) {}
virtual void read(support::Lexer &) {}
/** Export the inset to LaTeX.
* Don't use a temporary stringstream if the final output is
* supposed to go to a file.

View File

@ -22,7 +22,6 @@
#include "InsetList.h"
#include "Language.h"
#include "Layout.h"
#include "Lexer.h"
#include "ParIterator.h"
#include "TexRow.h"
#include "texstream.h"
@ -33,12 +32,14 @@
#include "support/debug.h"
#include "support/docstream.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
using namespace std;
namespace lyx {
using support::Lexer;
InsetArgument::InsetArgument(Buffer * buf, string const & name)
: InsetCollapsible(buf), name_(name), labelstring_(docstring()),

View File

@ -68,7 +68,7 @@ public:
///
void write(std::ostream & os) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
bool neverIndent() const override { return true; }
///

View File

@ -26,7 +26,6 @@
#include "InsetIterator.h"
#include "InsetList.h"
#include "Language.h"
#include "Lexer.h"
#include "output_xhtml.h"
#include "Paragraph.h"
#include "ParagraphList.h"
@ -40,6 +39,7 @@
#include "support/debug.h"
#include "support/docstream.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/mutex.h"

View File

@ -51,7 +51,7 @@ public:
///
bool isLabeled() const override { return true; }
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
int plaintext(odocstringstream &, OutputParams const &,
size_t max_length = INT_MAX) const override;

View File

@ -24,7 +24,6 @@
#include "FuncStatus.h"
#include "FuncRequest.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "MetricsInfo.h"
#include "output_docbook.h"
#include "output_xhtml.h"
@ -36,6 +35,7 @@
#include "support/docstream.h"
#include "support/FileName.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/Translator.h"

View File

@ -29,7 +29,7 @@ public:
///
void write(std::ostream & os) const;
///
void read(Lexer & lex);
void read(support::Lexer & lex);
///
std::string type;
@ -108,7 +108,7 @@ public:
///
void write(std::ostream &) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
void metrics(MetricsInfo &, Dimension &) const override;
///

View File

@ -23,7 +23,6 @@
#include "FuncStatus.h"
#include "Inset.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "LyX.h"
#include "output_docbook.h"
#include "output_xhtml.h"
@ -33,6 +32,7 @@
#include "support/convert.h"
#include "support/debug.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "frontends/alert.h"
@ -45,6 +45,8 @@ using namespace std;
namespace lyx {
using support::Lexer;
InsetBranch::InsetBranch(Buffer * buf, InsetBranchParams const & params)
: InsetCollapsible(buf, InsetText::DefaultLayout), params_(params)
{}

View File

@ -26,7 +26,7 @@ public:
///
void write(std::ostream & os) const;
///
void read(Lexer & lex);
void read(support::Lexer & lex);
///
docstring branch;
///
@ -65,7 +65,7 @@ private:
///
void write(std::ostream &) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
docstring const buttonLabel(BufferView const &) const override;
///

View File

@ -24,7 +24,6 @@
#include "FuncRequest.h"
#include "FuncStatus.h"
#include "InsetLayout.h"
#include "Lexer.h"
#include "MetricsInfo.h"
#include "TextClass.h"
#include "TocBackend.h"
@ -37,6 +36,7 @@
#include "support/FileName.h"
#include "support/gettext.h"
#include "support/lassert.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/Changer.h"
#include "support/TempFile.h"
@ -46,6 +46,8 @@ using namespace std;
namespace lyx {
using support::Lexer;
InsetCollapsible::InsetCollapsible(Buffer * buf, InsetText::UsePlain ltype)
: InsetText(buf, ltype), status_(Open)
{

View File

@ -53,7 +53,7 @@ public:
///
docstring layoutName() const override { return from_ascii("Collapsible"); }
///
void read(Lexer &) override;
void read(support::Lexer &) override;
///
void write(std::ostream &) const override;

View File

@ -21,7 +21,6 @@
#include "FuncRequest.h"
#include "FuncStatus.h"
#include "InsetIterator.h"
#include "Lexer.h"
#include "LyX.h"
#include "MetricsInfo.h"
#include "texstream.h"
@ -41,6 +40,7 @@
#include "insets/InsetWrap.h"
#include "support/debug.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "frontends/Application.h"

View File

@ -72,7 +72,7 @@ public:
///
void write(std::ostream & os) const override { p_.write(os); }
///
void read(Lexer & lex) override { p_.Read(lex, &buffer()); }
void read(support::Lexer & lex) override { p_.Read(lex, &buffer()); }
///
void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///

View File

@ -30,7 +30,6 @@
#include "Buffer.h"
#include "Encoding.h"
#include "Lexer.h"
#include "frontends/alert.h"
@ -38,9 +37,9 @@
#include "support/docstream.h"
#include "support/ExceptionMessage.h"
#include "support/gettext.h"
#include "support/lstrings.h"
#include "support/lassert.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <algorithm>
#include <functional>

View File

@ -26,9 +26,10 @@
namespace lyx {
class Buffer;
class Lexer;
class OutputParams;
namespace support { class Lexer; }
class ParamInfo {
public:
///
@ -128,9 +129,9 @@ public:
///
InsetCode code() const { return insetCode_; }
/// Parse the command
void read(Lexer &);
void read(support::Lexer &);
///
void Read(Lexer &, Buffer const *);
void Read(support::Lexer &, Buffer const *);
///
void write(std::ostream &) const;
///

View File

@ -18,7 +18,6 @@
#include "FuncStatus.h"
#include "InsetLayout.h"
#include "Language.h"
#include "Lexer.h"
#include "xml.h"
#include "ParagraphParameters.h"
#include "Paragraph.h"
@ -26,6 +25,7 @@
#include "support/docstream.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/TempFile.h"
#include "Encoding.h"

View File

@ -25,8 +25,6 @@
#include "FuncStatus.h"
#include "FuncRequest.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "LyX.h" // use_gui
#include "LyXRC.h"
#include "MetricsInfo.h"
#include "output_latex.h"
@ -46,6 +44,7 @@
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/lassert.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/lyxlib.h"
#include "support/TempFile.h"

View File

@ -51,7 +51,7 @@ public:
InsetExternalParams();
void write(Buffer const &, std::ostream &) const;
bool read(Buffer const &, Lexer &);
bool read(Buffer const &, support::Lexer &);
/// The name of the tempfile used for manipulations.
support::FileName tempname() const { return tempname_(); }
@ -141,7 +141,7 @@ public:
///
void write(std::ostream &) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
size_t max_length = INT_MAX) const override;

View File

@ -20,12 +20,12 @@
#include "FuncRequest.h"
#include "FuncStatus.h"
#include "Language.h"
#include "Lexer.h"
#include "ParIterator.h"
#include "TextClass.h"
#include "support/debug.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <ostream>

View File

@ -30,7 +30,6 @@
#include "FuncRequest.h"
#include "FuncStatus.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "xml.h"
#include "output_docbook.h"
#include "output_xhtml.h"
@ -43,6 +42,7 @@
#include "support/debug.h"
#include "support/docstream.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "frontends/Application.h"

View File

@ -30,7 +30,7 @@ public:
///
void write(std::ostream & os) const;
///
void read(Lexer & lex);
void read(support::Lexer & lex);
///
std::string type;
///
@ -88,7 +88,7 @@ private:
///
void write(std::ostream & os) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
void validate(LaTeXFeatures & features) const override;
///

View File

@ -23,7 +23,6 @@
#include "FuncRequest.h"
#include "Language.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "Paragraph.h"
#include "output_xhtml.h"
#include "texstream.h"
@ -32,6 +31,7 @@
#include "support/debug.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include <ostream>

View File

@ -36,7 +36,7 @@ public:
///
void write(std::ostream &) const override;
///
void read(Lexer &) override;
void read(support::Lexer &) override;
///
void latex(otexstream &, OutputParams const &) const override;
///

View File

@ -63,7 +63,6 @@ TODO
#include "InsetIterator.h"
#include "LaTeX.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "MetricsInfo.h"
#include "Mover.h"
#include "output_docbook.h"
@ -86,6 +85,7 @@ TODO
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/Length.h"
#include "support/Lexer.h"
#include "support/lyxlib.h"
#include "support/lstrings.h"
#include "support/os.h"

View File

@ -68,7 +68,7 @@ public:
///
void write(std::ostream &) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
/** returns the number of rows (\n's) of generated tex code.
#fragile == true# means, that the inset should take care about
fragile commands by adding a #\protect# before.

View File

@ -15,7 +15,6 @@
#include "Buffer.h"
#include "LyX.h" // for use_gui
#include "Lexer.h"
#include "LyXRC.h"
#include "graphics/epstools.h"
@ -24,6 +23,7 @@
#include "support/convert.h"
#include "support/debug.h"
#include "support/lyxlib.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/Translator.h"

View File

@ -23,8 +23,8 @@
namespace lyx {
namespace graphics { class Params; }
namespace support { class Lexer; }
class Lexer;
class Buffer;
@ -77,7 +77,7 @@ public:
/// Buffer is needed to figure out if a figure is embedded.
void Write(std::ostream & os, Buffer const & buf) const;
/// If the token belongs to our parameters, read it.
bool Read(Lexer & lex, std::string const & token, Buffer const & buf,
bool Read(support::Lexer & lex, std::string const & token, Buffer const & buf,
bool allowOrigin);
/// convert
// Only a subset of InsetGraphicsParams is needed for display purposes.

View File

@ -19,7 +19,6 @@
#include "FuncRequest.h"
#include "FuncStatus.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "MetricsInfo.h"
#include "RenderPreview.h"
#include "texstream.h"
@ -28,6 +27,8 @@
#include "graphics/PreviewImage.h"
#include "support/Lexer.h"
#include <sstream>
using namespace std;

View File

@ -21,7 +21,6 @@
#include "FuncStatus.h"
#include "InsetLayout.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "MetricsInfo.h"
#include "xml.h"
#include "texstream.h"
@ -32,12 +31,15 @@
#include "support/debug.h"
#include "support/docstream.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/Translator.h"
using namespace std;
namespace lyx {
using support::Lexer;
namespace {
typedef Translator<string, InsetIPADecoParams::Type> IPADecoTranslator;

View File

@ -33,7 +33,7 @@ public:
///
void write(std::ostream & os) const;
///
void read(Lexer & lex);
void read(support::Lexer & lex);
///
Type type;
};
@ -70,7 +70,7 @@ private:
///
void write(std::ostream &) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
bool neverIndent() const override { return true; }
///
@ -143,7 +143,7 @@ public:
///
void write(std::ostream &) const override;
/// Will not be used when lyxf3
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
void latex(otexstream &, OutputParams const &) const override;
///

View File

@ -30,7 +30,6 @@
#include "Paragraph.h"
#include "LaTeX.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "LyX.h"
#include "output_latex.h"
#include "output_xhtml.h"
@ -43,6 +42,7 @@
#include "support/docstream.h"
#include "support/FileName.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/Translator.h"

View File

@ -34,7 +34,7 @@ public:
///
void write(std::ostream & os) const;
///
void read(Lexer & lex);
void read(support::Lexer & lex);
///
docstring index;
///
@ -72,7 +72,7 @@ private:
///
void write(std::ostream & os) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
void docbook(XMLStream &, OutputParams const &) const override;
///

View File

@ -25,7 +25,6 @@
#include "InsetList.h"
#include "LaTeX.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "MetricsInfo.h"
#include "xml.h"
#include "texstream.h"
@ -35,6 +34,7 @@
#include "support/debug.h"
#include "support/docstream.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/Translator.h"

View File

@ -35,7 +35,7 @@ public:
///
void write(std::ostream & os) const;
///
void read(Lexer & lex);
void read(support::Lexer & lex);
///
Type type;
};
@ -76,7 +76,7 @@ private:
///
void write(std::ostream &) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
bool neverIndent() const override { return true; }
/// We do not output anything directly to the stream

View File

@ -30,7 +30,6 @@
#include "LyXAction.h"
#include "LyXRC.h"
#include "LyXVC.h"
#include "Lexer.h"
#include "output_docbook.h"
#include "Paragraph.h"
#include "ParIterator.h"
@ -49,6 +48,7 @@
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/Length.h"
#include "support/Lexer.h"
#include "support/Messages.h"
#include "support/lstrings.h"
#include "support/qstring_helpers.h"

View File

@ -178,7 +178,7 @@ public:
///
bool hasSettings() const override { return true; }
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
void write(std::ostream & os) const override;
///

View File

@ -15,10 +15,10 @@
#include "InsetLayout.h"
#include "ColorSet.h"
#include "Lexer.h"
#include "TextClass.h"
#include "support/debug.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/textutils.h"

View File

@ -24,9 +24,9 @@
namespace lyx {
class Lexer;
class TextClass;
namespace support { class Lexer; }
enum class InsetDecoration : int {
CLASSIC,
@ -57,7 +57,7 @@ public:
///
InsetLayout() { labelfont_.setColor(Color_insetlabel); }
///
bool read(Lexer & lexrc, TextClass const & tclass,
bool read(support::Lexer & lexrc, TextClass const & tclass,
bool validating = false);
///
docstring name() const { return name_; }
@ -266,7 +266,7 @@ private:
///
std::string defaultCSSClass() const;
///
void readArgument(Lexer &);
void readArgument(support::Lexer &);
///
docstring name_ = from_ascii("undefined");
/**

View File

@ -25,7 +25,6 @@
#include "InsetLayout.h"
#include "Language.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "output_latex.h"
#include "output_docbook.h"
#include "output_xhtml.h"
@ -35,6 +34,7 @@
#include "support/debug.h"
#include "support/docstream.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/lassert.h"

View File

@ -52,7 +52,7 @@ private:
///
void write(std::ostream & os) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
void latex(otexstream &, OutputParams const &) const override;
///

View File

@ -13,11 +13,10 @@
#include "InsetListingsParams.h"
#include "support/Length.h"
#include "Lexer.h"
#include "support/convert.h"
#include "support/gettext.h"
#include "support/Length.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/textutils.h"

View File

@ -31,7 +31,7 @@ public:
void write(std::ostream &) const;
/// read parameters from an ostream
void read(Lexer &);
void read(support::Lexer &);
/// valid parameter string
std::string params(std::string const & sep=",") const;

View File

@ -17,7 +17,6 @@
#include "Dimension.h"
#include "FuncRequest.h"
#include "FuncStatus.h"
#include "Lexer.h"
#include "MetricsInfo.h"
#include "output_docbook.h"
#include "output_xhtml.h"
@ -30,11 +29,14 @@
#include "support/debug.h"
#include "support/docstream.h"
#include "support/docstring.h"
#include "support/Lexer.h"
using namespace std;
namespace lyx {
using support::Lexer;
InsetNewline::InsetNewline() : Inset(nullptr)
{}

View File

@ -32,7 +32,7 @@ public:
///
void write(std::ostream & os) const;
///
void read(Lexer & lex);
void read(support::Lexer & lex);
///
Kind kind;
};
@ -69,7 +69,7 @@ private:
///
docstring xhtml(XMLStream &, OutputParams const &) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
void write(std::ostream & os) const override;
/// is this equivalent to a space (which is BTW different from

View File

@ -16,7 +16,6 @@
#include "Cursor.h"
#include "FuncRequest.h"
#include "FuncStatus.h"
#include "Lexer.h"
#include "MetricsInfo.h"
#include "xml.h"
#include "texstream.h"
@ -30,13 +29,15 @@
#include "support/docstring.h"
#include "support/docstream.h"
#include "support/gettext.h"
#include "support/Lexer.h"
using namespace std;
namespace lyx {
InsetNewpage::InsetNewpage() : Inset(nullptr)
using support::Lexer;
InsetNewpage::InsetNewpage() : Inset(nullptr)
{}

View File

@ -38,7 +38,7 @@ public:
///
void write(std::ostream & os) const;
///
void read(Lexer & lex);
void read(support::Lexer & lex);
///
Kind kind;
};
@ -72,7 +72,7 @@ private:
///
docstring xhtml(XMLStream &, OutputParams const &) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
void write(std::ostream & os) const override;
///

View File

@ -25,7 +25,6 @@
#include "FuncStatus.h"
#include "InsetLayout.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "LyXRC.h"
#include "output_docbook.h"
#include "output_latex.h"
@ -33,6 +32,7 @@
#include "support/debug.h"
#include "support/docstream.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/Translator.h"
@ -45,6 +45,8 @@ using namespace std;
namespace lyx {
using support::Lexer;
namespace {
typedef Translator<string, InsetNoteParams::Type> NoteTranslator;

View File

@ -30,7 +30,7 @@ public:
///
void write(std::ostream & os) const;
///
void read(Lexer & lex);
void read(support::Lexer & lex);
///
Type type;
};
@ -71,7 +71,7 @@ private:
///
void write(std::ostream &) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
/// show the note dialog
bool showInsetDialog(BufferView * bv) const override;
///

View File

@ -22,7 +22,6 @@
#include "FuncRequest.h"
#include "FuncStatus.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "MetricsInfo.h"
#include "texstream.h"
#include "TextClass.h"
@ -34,6 +33,7 @@
#include "frontends/Application.h"
#include "frontends/FontMetrics.h"
#include "support/Lexer.h"
#include "frontends/Painter.h"
#include <algorithm>
@ -43,6 +43,8 @@ using namespace std;
namespace lyx {
using support::Lexer;
namespace {
typedef Translator<string, InsetPhantomParams::Type> PhantomTranslator;

View File

@ -30,7 +30,7 @@ public:
///
void write(std::ostream & os) const;
///
void read(Lexer & lex);
void read(support::Lexer & lex);
///
Type type;
};
@ -66,7 +66,7 @@ private:
///
void write(std::ostream &) const override;
///
void read(Lexer & lex) override;
void read(support::Lexer & lex) override;
///
void setButtonLabel() override;
/// show the phantom dialog

View File

@ -24,7 +24,6 @@
#include "FuncRequest.h"
#include "Language.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "LyXRC.h"
#include "MetricsInfo.h"
#include "Paragraph.h"
@ -39,6 +38,7 @@
#include "support/docstring.h"
#include "support/docstream.h"
#include "support/gettext.h"
#include "support/Lexer.h"
#include "support/lstrings.h"
#include "support/textutils.h"

Some files were not shown because too many files have changed in this diff Show More