mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Move Lexer to support/ directory (and lyx::support namespace)
This requires quite a bit of trivial code shuffling.
This commit is contained in:
parent
ed2f3cb9cf
commit
2660df9b99
@ -41,7 +41,6 @@
|
|||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "LaTeX.h"
|
#include "LaTeX.h"
|
||||||
#include "Layout.h"
|
#include "Layout.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyXAction.h"
|
#include "LyXAction.h"
|
||||||
#include "LyX.h"
|
#include "LyX.h"
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
@ -95,6 +94,7 @@
|
|||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/gzstream.h"
|
#include "support/gzstream.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/mutex.h"
|
#include "support/mutex.h"
|
||||||
#include "support/os.h"
|
#include "support/os.h"
|
||||||
|
@ -39,7 +39,6 @@ class FuncRequest;
|
|||||||
class FuncStatus;
|
class FuncStatus;
|
||||||
class Inset;
|
class Inset;
|
||||||
class InsetLabel;
|
class InsetLabel;
|
||||||
class Lexer;
|
|
||||||
class Text;
|
class Text;
|
||||||
class LyXVC;
|
class LyXVC;
|
||||||
class LaTeXFeatures;
|
class LaTeXFeatures;
|
||||||
@ -67,6 +66,7 @@ namespace support {
|
|||||||
class DocFileName;
|
class DocFileName;
|
||||||
class FileName;
|
class FileName;
|
||||||
class FileNameList;
|
class FileNameList;
|
||||||
|
class Lexer;
|
||||||
} // namespace support
|
} // namespace support
|
||||||
|
|
||||||
namespace graphics {
|
namespace graphics {
|
||||||
@ -226,7 +226,7 @@ public:
|
|||||||
//FIXME: The following function should be private
|
//FIXME: The following function should be private
|
||||||
//private:
|
//private:
|
||||||
/// read the header, returns number of unknown tokens
|
/// read the header, returns number of unknown tokens
|
||||||
int readHeader(Lexer & lex);
|
int readHeader(support::Lexer & lex);
|
||||||
|
|
||||||
double fontScalingFactor() const;
|
double fontScalingFactor() const;
|
||||||
/// check for active synctex support:
|
/// check for active synctex support:
|
||||||
@ -247,14 +247,14 @@ private:
|
|||||||
/// Reads a file without header.
|
/// Reads a file without header.
|
||||||
/// \param par if != 0 insert the file.
|
/// \param par if != 0 insert the file.
|
||||||
/// \return \c true if file is not completely read.
|
/// \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
|
/// Try to extract the file from a version control container
|
||||||
/// before reading if the file cannot be found.
|
/// before reading if the file cannot be found.
|
||||||
/// \sa LyXVC::file_not_found_hook
|
/// \sa LyXVC::file_not_found_hook
|
||||||
ReadStatus extractFromVC();
|
ReadStatus extractFromVC();
|
||||||
/// Reads the first tag of a LyX File and
|
/// Reads the first tag of a LyX File and
|
||||||
/// returns the file format number.
|
/// 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;
|
int & file_format) const;
|
||||||
/// Convert the LyX file to the LYX_FORMAT using
|
/// Convert the LyX file to the LYX_FORMAT using
|
||||||
/// the lyx2lyx script and returns the filename
|
/// the lyx2lyx script and returns the filename
|
||||||
|
@ -33,7 +33,6 @@
|
|||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "LaTeXFonts.h"
|
#include "LaTeXFonts.h"
|
||||||
#include "Font.h"
|
#include "Font.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
#include "OutputParams.h"
|
#include "OutputParams.h"
|
||||||
#include "Spacing.h"
|
#include "Spacing.h"
|
||||||
@ -53,6 +52,7 @@
|
|||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/Length.h"
|
#include "support/Length.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/Messages.h"
|
#include "support/Messages.h"
|
||||||
#include "support/mutex.h"
|
#include "support/mutex.h"
|
||||||
#include "support/Package.h"
|
#include "support/Package.h"
|
||||||
|
@ -31,7 +31,10 @@
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
namespace support { class FileName; }
|
namespace support {
|
||||||
|
class FileName;
|
||||||
|
class Lexer;
|
||||||
|
}
|
||||||
|
|
||||||
class Author;
|
class Author;
|
||||||
class AuthorList;
|
class AuthorList;
|
||||||
@ -48,7 +51,6 @@ class LaTeXFeatures;
|
|||||||
class LayoutFile;
|
class LayoutFile;
|
||||||
class LayoutFileIndex;
|
class LayoutFileIndex;
|
||||||
class Length;
|
class Length;
|
||||||
class Lexer;
|
|
||||||
class OutputParams;
|
class OutputParams;
|
||||||
class otexstream;
|
class otexstream;
|
||||||
class PDFOptions;
|
class PDFOptions;
|
||||||
@ -79,7 +81,7 @@ public:
|
|||||||
docstring B_(std::string const & l10n) const;
|
docstring B_(std::string const & l10n) const;
|
||||||
|
|
||||||
/// read a header token, if unrecognised, return it or an unknown class name
|
/// 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.
|
std::string const & token, ///< token to read.
|
||||||
support::FileName const & filename);
|
support::FileName const & filename);
|
||||||
|
|
||||||
@ -629,25 +631,25 @@ public:
|
|||||||
|
|
||||||
private:
|
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
|
/// A cache for the default flavors
|
||||||
typedef std::map<std::string, Flavor> DefaultFlavorCache;
|
typedef std::map<std::string, Flavor> DefaultFlavorCache;
|
||||||
///
|
///
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
#include "Intl.h"
|
#include "Intl.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "LayoutFile.h"
|
#include "LayoutFile.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyX.h"
|
#include "LyX.h"
|
||||||
#include "LyXAction.h"
|
#include "LyXAction.h"
|
||||||
#include "lyxfind.h"
|
#include "lyxfind.h"
|
||||||
@ -75,6 +74,7 @@
|
|||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/lassert.h"
|
#include "support/lassert.h"
|
||||||
#include "support/Length.h"
|
#include "support/Length.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/lyxlib.h"
|
#include "support/lyxlib.h"
|
||||||
#include "support/types.h"
|
#include "support/types.h"
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
#include "CiteEnginesList.h"
|
#include "CiteEnginesList.h"
|
||||||
|
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/Translator.h"
|
#include "support/Translator.h"
|
||||||
|
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
|
|
||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "LyXAction.h"
|
#include "LyXAction.h"
|
||||||
#include "Lexer.h"
|
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@ -15,13 +15,13 @@
|
|||||||
#include "ConverterCache.h"
|
#include "ConverterCache.h"
|
||||||
|
|
||||||
#include "Format.h"
|
#include "Format.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
#include "Mover.h"
|
#include "Mover.h"
|
||||||
|
|
||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lyxtime.h"
|
#include "support/lyxtime.h"
|
||||||
#include "support/Package.h"
|
#include "support/Package.h"
|
||||||
|
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
#include "Counters.h"
|
#include "Counters.h"
|
||||||
#include "Layout.h"
|
#include "Layout.h"
|
||||||
#include "Lexer.h"
|
|
||||||
|
|
||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
#include "support/counter_reps.h"
|
#include "support/counter_reps.h"
|
||||||
@ -23,6 +22,7 @@
|
|||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/lassert.h"
|
#include "support/lassert.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -26,7 +26,8 @@
|
|||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
class Layout;
|
class Layout;
|
||||||
class Lexer;
|
|
||||||
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
/// This represents a single counter.
|
/// This represents a single counter.
|
||||||
class Counter {
|
class Counter {
|
||||||
@ -38,7 +39,7 @@ public:
|
|||||||
docstring const & lsa, docstring const & prettyformat,
|
docstring const & lsa, docstring const & prettyformat,
|
||||||
docstring const & guiname);
|
docstring const & guiname);
|
||||||
/// \return true on success
|
/// \return true on success
|
||||||
bool read(Lexer & lex);
|
bool read(support::Lexer & lex);
|
||||||
///
|
///
|
||||||
void set(int v);
|
void set(int v);
|
||||||
///
|
///
|
||||||
@ -142,7 +143,7 @@ public:
|
|||||||
/// \param makeNew whether to make a new counter if one
|
/// \param makeNew whether to make a new counter if one
|
||||||
/// doesn't already exist
|
/// doesn't already exist
|
||||||
/// \return true on success
|
/// \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);
|
void set(docstring const & ctr, int val);
|
||||||
///
|
///
|
||||||
|
@ -14,11 +14,10 @@
|
|||||||
|
|
||||||
#include "Encoding.h"
|
#include "Encoding.h"
|
||||||
|
|
||||||
#include "Lexer.h"
|
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/mutex.h"
|
#include "support/mutex.h"
|
||||||
#include "support/textutils.h"
|
#include "support/textutils.h"
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#include "Encoding.h"
|
#include "Encoding.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
#include "output_latex.h"
|
#include "output_latex.h"
|
||||||
#include "OutputParams.h"
|
#include "OutputParams.h"
|
||||||
@ -31,6 +30,7 @@
|
|||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
@ -17,13 +17,13 @@
|
|||||||
#include "FontInfo.h"
|
#include "FontInfo.h"
|
||||||
|
|
||||||
#include "ColorSet.h"
|
#include "ColorSet.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
|
|
||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
class Lexer;
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
///
|
///
|
||||||
class FontInfo
|
class FontInfo
|
||||||
@ -257,7 +257,7 @@ void setLyXColor(std::string const &, FontInfo &);
|
|||||||
FontState setLyXMisc(std::string const &);
|
FontState setLyXMisc(std::string const &);
|
||||||
|
|
||||||
/// Read a font specification from Lexer. Used for layout files.
|
/// 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.
|
/// Write a font specification. Used for layout files.
|
||||||
void lyxWrite(std::ostream &, FontInfo const &, std::string const &, int);
|
void lyxWrite(std::ostream &, FontInfo const &, std::string const &, int);
|
||||||
|
@ -17,13 +17,13 @@
|
|||||||
|
|
||||||
#include "KeySequence.h"
|
#include "KeySequence.h"
|
||||||
#include "LyXAction.h"
|
#include "LyXAction.h"
|
||||||
#include "Lexer.h"
|
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/TempFile.h"
|
#include "support/TempFile.h"
|
||||||
|
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
#include "LaTeXFonts.h"
|
#include "LaTeXFonts.h"
|
||||||
|
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
|
|
||||||
#include "frontends/alert.h"
|
#include "frontends/alert.h"
|
||||||
|
|
||||||
@ -23,6 +22,7 @@
|
|||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
class Lexer;
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
/// LaTeX Font definition
|
/// LaTeX Font definition
|
||||||
class LaTeXFont {
|
class LaTeXFont {
|
||||||
@ -96,9 +96,9 @@ public:
|
|||||||
/// Return the actually used package
|
/// Return the actually used package
|
||||||
docstring const getUsedPackage(bool ot1, bool complete, bool nomath) const;
|
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:
|
private:
|
||||||
/// Return the preferred available package
|
/// Return the preferred available package
|
||||||
std::string const getAvailablePackage(bool dryrun) const;
|
std::string const getAvailablePackage(bool dryrun) const;
|
||||||
|
@ -16,13 +16,12 @@
|
|||||||
|
|
||||||
#include "LaTeXPackages.h"
|
#include "LaTeXPackages.h"
|
||||||
|
|
||||||
#include "Lexer.h"
|
|
||||||
|
|
||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/Package.h"
|
#include "support/Package.h"
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#include "BufferParams.h"
|
#include "BufferParams.h"
|
||||||
#include "Encoding.h"
|
#include "Encoding.h"
|
||||||
#include "LaTeXFonts.h"
|
#include "LaTeXFonts.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
@ -26,6 +25,7 @@
|
|||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/lassert.h"
|
#include "support/lassert.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/qstring_helpers.h"
|
#include "support/qstring_helpers.h"
|
||||||
#include "support/Messages.h"
|
#include "support/Messages.h"
|
||||||
|
@ -25,11 +25,13 @@
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
namespace support { class FileName; }
|
namespace support {
|
||||||
|
class FileName;
|
||||||
|
class Lexer;
|
||||||
|
}
|
||||||
|
|
||||||
class BufferParams;
|
class BufferParams;
|
||||||
class Encoding;
|
class Encoding;
|
||||||
class Lexer;
|
|
||||||
|
|
||||||
///
|
///
|
||||||
class Language {
|
class Language {
|
||||||
@ -99,9 +101,9 @@ public:
|
|||||||
/// This language corresponds to a translation of the GUI
|
/// This language corresponds to a translation of the GUI
|
||||||
bool hasGuiSupport() const { return has_gui_support_; }
|
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;
|
typedef std::map<trivstring, trivdocstring> TranslationMap;
|
||||||
///
|
///
|
||||||
|
@ -13,13 +13,13 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "Layout.h"
|
#include "Layout.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "output_xhtml.h"
|
#include "output_xhtml.h"
|
||||||
#include "TextClass.h"
|
#include "TextClass.h"
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/lassert.h"
|
#include "support/lassert.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/textutils.h"
|
#include "support/textutils.h"
|
||||||
|
|
||||||
|
23
src/Layout.h
23
src/Layout.h
@ -26,7 +26,8 @@
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
class Lexer;
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
class TextClass;
|
class TextClass;
|
||||||
|
|
||||||
/* Fixed labels are printed flushright, manual labels flushleft.
|
/* Fixed labels are printed flushright, manual labels flushleft.
|
||||||
@ -58,23 +59,23 @@ public:
|
|||||||
void setUnknown(bool unknown) { unknown_ = unknown; }
|
void setUnknown(bool unknown) { unknown_ = unknown; }
|
||||||
/// Reads a layout definition from file
|
/// Reads a layout definition from file
|
||||||
/// \return true on success.
|
/// \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
|
/// Write a layout definition in utf8 encoding
|
||||||
void write(std::ostream &) const;
|
void write(std::ostream &) const;
|
||||||
///
|
///
|
||||||
@ -439,7 +440,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
/// Reads a layout definition from file
|
/// Reads a layout definition from file
|
||||||
/// \return true on success.
|
/// \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
|
/// generates the default CSS for this layout
|
||||||
void makeDefaultCSS() const;
|
void makeDefaultCSS() const;
|
||||||
///
|
///
|
||||||
|
@ -12,13 +12,13 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "LayoutFile.h"
|
#include "LayoutFile.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "TextClass.h"
|
#include "TextClass.h"
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/lassert.h"
|
#include "support/lassert.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/TempFile.h"
|
#include "support/TempFile.h"
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#include "Format.h"
|
#include "Format.h"
|
||||||
#include "FuncCode.h"
|
#include "FuncCode.h"
|
||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyX.h"
|
#include "LyX.h"
|
||||||
#include "Mover.h"
|
#include "Mover.h"
|
||||||
#include "SpellChecker.h"
|
#include "SpellChecker.h"
|
||||||
@ -36,6 +35,7 @@
|
|||||||
#include "support/environment.h"
|
#include "support/environment.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/os.h"
|
#include "support/os.h"
|
||||||
#include "support/Package.h"
|
#include "support/Package.h"
|
||||||
|
@ -31,9 +31,10 @@
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
namespace support { class FileName; }
|
namespace support {
|
||||||
|
class FileName;
|
||||||
class Lexer;
|
class Lexer;
|
||||||
|
}
|
||||||
|
|
||||||
/// This contains the runtime configuration of LyX
|
/// This contains the runtime configuration of LyX
|
||||||
class LyXRC
|
class LyXRC
|
||||||
@ -212,7 +213,7 @@ private:
|
|||||||
FormatMismatch
|
FormatMismatch
|
||||||
};
|
};
|
||||||
///
|
///
|
||||||
ReturnValues read(Lexer &, bool check_format);
|
ReturnValues read(support::Lexer &, bool check_format);
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
typedef std::set<std::string> CommandSet;
|
typedef std::set<std::string> CommandSet;
|
||||||
|
@ -147,7 +147,6 @@ SOURCEFILESCORE = \
|
|||||||
LaTeXPackages.cpp \
|
LaTeXPackages.cpp \
|
||||||
LayoutFile.cpp \
|
LayoutFile.cpp \
|
||||||
LayoutModuleList.cpp \
|
LayoutModuleList.cpp \
|
||||||
Lexer.cpp \
|
|
||||||
LyX.cpp \
|
LyX.cpp \
|
||||||
LyXAction.cpp \
|
LyXAction.cpp \
|
||||||
lyxfind.cpp \
|
lyxfind.cpp \
|
||||||
@ -247,7 +246,6 @@ HEADERFILESCORE = \
|
|||||||
LayoutEnums.h \
|
LayoutEnums.h \
|
||||||
LayoutFile.h \
|
LayoutFile.h \
|
||||||
LayoutModuleList.h \
|
LayoutModuleList.h \
|
||||||
Lexer.h \
|
|
||||||
LyXAction.h \
|
LyXAction.h \
|
||||||
lyxfind.h \
|
lyxfind.h \
|
||||||
LyX.h \
|
LyX.h \
|
||||||
|
@ -14,12 +14,12 @@
|
|||||||
#include "ModuleList.h"
|
#include "ModuleList.h"
|
||||||
|
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
#include "Encoding.h"
|
#include "Encoding.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "OutputParams.h"
|
#include "OutputParams.h"
|
||||||
#include "texstream.h"
|
#include "texstream.h"
|
||||||
|
|
||||||
@ -23,6 +22,7 @@
|
|||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
@ -16,10 +16,11 @@
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
class Lexer;
|
|
||||||
class OutputParams;
|
class OutputParams;
|
||||||
class otexstream;
|
class otexstream;
|
||||||
|
|
||||||
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
// FIXME UNICODE
|
// FIXME UNICODE
|
||||||
// Write functions need to use odostream instead of ostream before
|
// Write functions need to use odostream instead of ostream before
|
||||||
// we can use docstring instead of string.
|
// we can use docstring instead of string.
|
||||||
@ -37,7 +38,7 @@ public:
|
|||||||
void writeLaTeX(OutputParams &, otexstream &,
|
void writeLaTeX(OutputParams &, otexstream &,
|
||||||
bool hyperref_already_provided) const;
|
bool hyperref_already_provided) const;
|
||||||
/// read tokens from lyx header
|
/// 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
|
/// set implicit settings for hyperref
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
|
@ -17,11 +17,11 @@
|
|||||||
#include "ParagraphParameters.h"
|
#include "ParagraphParameters.h"
|
||||||
|
|
||||||
#include "Layout.h"
|
#include "Layout.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "Paragraph.h"
|
#include "Paragraph.h"
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
@ -25,9 +25,10 @@
|
|||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
class Layout;
|
class Layout;
|
||||||
class Lexer;
|
|
||||||
class Paragraph;
|
class Paragraph;
|
||||||
|
|
||||||
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
|
|
||||||
///
|
///
|
||||||
class ParagraphParameters {
|
class ParagraphParameters {
|
||||||
@ -79,7 +80,7 @@ public:
|
|||||||
void read (std::string const & str, bool merge = true);
|
void read (std::string const & str, bool merge = true);
|
||||||
|
|
||||||
/// read the parameters from a lex
|
/// 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);
|
void apply(ParagraphParameters const & params, Layout const & layout);
|
||||||
|
@ -45,7 +45,6 @@
|
|||||||
#include "Intl.h"
|
#include "Intl.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "Layout.h"
|
#include "Layout.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyX.h"
|
#include "LyX.h"
|
||||||
#include "LyXAction.h"
|
#include "LyXAction.h"
|
||||||
#include "lyxfind.h"
|
#include "lyxfind.h"
|
||||||
@ -95,6 +94,7 @@
|
|||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/lassert.h"
|
#include "support/lassert.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/limited_stack.h"
|
#include "support/limited_stack.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/lyxtime.h"
|
#include "support/lyxtime.h"
|
||||||
|
@ -33,10 +33,11 @@ class FuncRequest;
|
|||||||
class FuncStatus;
|
class FuncStatus;
|
||||||
class Inset;
|
class Inset;
|
||||||
class InsetText;
|
class InsetText;
|
||||||
class Lexer;
|
|
||||||
class Paragraph;
|
class Paragraph;
|
||||||
class ParagraphParameters;
|
class ParagraphParameters;
|
||||||
|
|
||||||
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
/// This class encapsulates the main text data and operations in LyX.
|
/// This class encapsulates the main text data and operations in LyX.
|
||||||
/// This is more or less the private implementation of InsetText.
|
/// This is more or less the private implementation of InsetText.
|
||||||
class Text {
|
class Text {
|
||||||
@ -299,7 +300,7 @@ public:
|
|||||||
void write(std::ostream & os) const;
|
void write(std::ostream & os) const;
|
||||||
/// returns true if \end_document has not been read
|
/// returns true if \end_document has not been read
|
||||||
/// insetPtr is the containing Inset
|
/// insetPtr is the containing Inset
|
||||||
bool read(Lexer & lex, ErrorList & errorList,
|
bool read(support::Lexer & lex, ErrorList & errorList,
|
||||||
InsetText * insetPtr);
|
InsetText * insetPtr);
|
||||||
|
|
||||||
/// delete double spaces, leading spaces, and empty paragraphs around old cursor.
|
/// delete double spaces, leading spaces, and empty paragraphs around old cursor.
|
||||||
@ -381,10 +382,10 @@ private:
|
|||||||
void pasteString(Cursor & cur, docstring const & str,
|
void pasteString(Cursor & cur, docstring const & str,
|
||||||
bool asParagraphs);
|
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);
|
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
|
/// Set Label Width string to all paragraphs of the same layout
|
||||||
/// and depth in a sequence.
|
/// and depth in a sequence.
|
||||||
void setLabelWidthStringToSequence(Cursor const & cur, docstring const & s);
|
void setLabelWidthStringToSequence(Cursor const & cur, docstring const & s);
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#include "FloatList.h"
|
#include "FloatList.h"
|
||||||
#include "Layout.h"
|
#include "Layout.h"
|
||||||
#include "LayoutFile.h"
|
#include "LayoutFile.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "ModuleList.h"
|
#include "ModuleList.h"
|
||||||
|
|
||||||
#include "frontends/alert.h"
|
#include "frontends/alert.h"
|
||||||
@ -32,6 +31,7 @@
|
|||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/os.h"
|
#include "support/os.h"
|
||||||
#include "support/TempFile.h"
|
#include "support/TempFile.h"
|
||||||
|
@ -35,12 +35,14 @@
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
namespace support { class FileName; }
|
namespace support {
|
||||||
|
class FileName;
|
||||||
|
class Lexer;
|
||||||
|
}
|
||||||
|
|
||||||
class FloatList;
|
class FloatList;
|
||||||
class Layout;
|
class Layout;
|
||||||
class LayoutFile;
|
class LayoutFile;
|
||||||
class Lexer;
|
|
||||||
|
|
||||||
/// Based upon ideas in boost::noncopyable, inheriting from this
|
/// Based upon ideas in boost::noncopyable, inheriting from this
|
||||||
/// class effectively makes the copy constructor protected but the
|
/// 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(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
|
/// validates the layout information passed in str
|
||||||
static ReturnValues validate(std::string const & str);
|
static ReturnValues validate(std::string const & str);
|
||||||
/// \return the conversion of \param str to the latest layout format
|
/// \return the conversion of \param str to the latest layout format
|
||||||
@ -387,29 +389,29 @@ private:
|
|||||||
/// Reads the layout file without running layout2layout.
|
/// Reads the layout file without running layout2layout.
|
||||||
ReturnValues readWithoutConv(support::FileName const & filename, ReadType rt);
|
ReturnValues readWithoutConv(support::FileName const & filename, ReadType rt);
|
||||||
/// \return true for success.
|
/// \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;
|
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 &);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,13 +13,13 @@
|
|||||||
|
|
||||||
#include "Trans.h"
|
#include "Trans.h"
|
||||||
|
|
||||||
#include "Lexer.h"
|
|
||||||
#include "Text.h"
|
#include "Text.h"
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@ -26,9 +26,10 @@ namespace lyx {
|
|||||||
|
|
||||||
class Cursor;
|
class Cursor;
|
||||||
class Text;
|
class Text;
|
||||||
class Lexer;
|
|
||||||
class TransManager;
|
class TransManager;
|
||||||
|
|
||||||
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
///
|
///
|
||||||
enum tex_accent {
|
enum tex_accent {
|
||||||
///
|
///
|
||||||
@ -149,7 +150,7 @@ private:
|
|||||||
///
|
///
|
||||||
void freeKeymap();
|
void freeKeymap();
|
||||||
///
|
///
|
||||||
int load(Lexer &);
|
int load(support::Lexer &);
|
||||||
///
|
///
|
||||||
docstring const & match(char_type c);
|
docstring const & match(char_type c);
|
||||||
///
|
///
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
#include "factory.h"
|
#include "factory.h"
|
||||||
|
|
||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyX.h"
|
#include "LyX.h"
|
||||||
|
|
||||||
#include "insets/InsetBibitem.h"
|
#include "insets/InsetBibitem.h"
|
||||||
@ -65,6 +64,7 @@
|
|||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/ExceptionMessage.h"
|
#include "support/ExceptionMessage.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/unique_ptr.h"
|
#include "support/unique_ptr.h"
|
||||||
|
|
||||||
|
@ -17,14 +17,14 @@ namespace lyx {
|
|||||||
class Buffer;
|
class Buffer;
|
||||||
class FuncRequest;
|
class FuncRequest;
|
||||||
class Inset;
|
class Inset;
|
||||||
class Lexer;
|
|
||||||
|
|
||||||
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
/// creates inset according to 'cmd'
|
/// creates inset according to 'cmd'
|
||||||
Inset * createInset(Buffer * buf, FuncRequest const & cmd);
|
Inset * createInset(Buffer * buf, FuncRequest const & cmd);
|
||||||
|
|
||||||
/// read inset from a file
|
/// read inset from a file
|
||||||
Inset * readInset(Lexer & lex, Buffer * buf);
|
Inset * readInset(support::Lexer & lex, Buffer * buf);
|
||||||
|
|
||||||
|
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
@ -46,7 +46,6 @@
|
|||||||
#include "KeyMap.h"
|
#include "KeyMap.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "LaTeXPackages.h"
|
#include "LaTeXPackages.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyX.h"
|
#include "LyX.h"
|
||||||
#include "LyXAction.h"
|
#include "LyXAction.h"
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
@ -69,6 +68,7 @@
|
|||||||
#include "support/ForkedCalls.h"
|
#include "support/ForkedCalls.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/lassert.h"
|
#include "support/lassert.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/lyxalgo.h" // sorted
|
#include "support/lyxalgo.h" // sorted
|
||||||
#include "support/mute_warning.h"
|
#include "support/mute_warning.h"
|
||||||
|
@ -16,12 +16,12 @@
|
|||||||
|
|
||||||
#include "GuiApplication.h"
|
#include "GuiApplication.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
#include "Lexer.h"
|
|
||||||
|
|
||||||
#include "frontends/Clipboard.h"
|
#include "frontends/Clipboard.h"
|
||||||
|
|
||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <QTextBrowser>
|
#include <QTextBrowser>
|
||||||
|
@ -24,13 +24,12 @@
|
|||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "GuiView.h"
|
#include "GuiView.h"
|
||||||
#include "Layout.h"
|
#include "Layout.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "Paragraph.h"
|
#include "Paragraph.h"
|
||||||
#include "ParagraphParameters.h"
|
#include "ParagraphParameters.h"
|
||||||
#include "Spacing.h"
|
#include "Spacing.h"
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/gettext.h"
|
#include "support/Lexer.h"
|
||||||
|
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
|
@ -34,7 +34,6 @@
|
|||||||
#include "TocModel.h"
|
#include "TocModel.h"
|
||||||
|
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
#include "support/filetools.h"
|
|
||||||
|
|
||||||
#include "frontends/alert.h"
|
#include "frontends/alert.h"
|
||||||
#include "frontends/KeySymbol.h"
|
#include "frontends/KeySymbol.h"
|
||||||
@ -56,7 +55,6 @@
|
|||||||
#include "KeySymbol.h"
|
#include "KeySymbol.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "LayoutFile.h"
|
#include "LayoutFile.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyXAction.h"
|
#include "LyXAction.h"
|
||||||
#include "LyX.h"
|
#include "LyX.h"
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
@ -75,9 +73,11 @@
|
|||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/ExceptionMessage.h"
|
#include "support/ExceptionMessage.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/gettext.h"
|
#include "support/filetools.h"
|
||||||
#include "support/ForkedCalls.h"
|
#include "support/ForkedCalls.h"
|
||||||
|
#include "support/gettext.h"
|
||||||
#include "support/lassert.h"
|
#include "support/lassert.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/os.h"
|
#include "support/os.h"
|
||||||
#include "support/Package.h"
|
#include "support/Package.h"
|
||||||
|
@ -42,7 +42,6 @@
|
|||||||
#include "KeyMap.h"
|
#include "KeyMap.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "Layout.h"
|
#include "Layout.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyXAction.h"
|
#include "LyXAction.h"
|
||||||
#include "LyX.h"
|
#include "LyX.h"
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
@ -64,12 +63,13 @@
|
|||||||
#include "insets/InsetInfo.h"
|
#include "insets/InsetInfo.h"
|
||||||
#include "insets/InsetQuotes.h"
|
#include "insets/InsetQuotes.h"
|
||||||
|
|
||||||
#include "support/lassert.h"
|
|
||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstring_list.h"
|
#include "support/docstring_list.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/lassert.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <QCursor>
|
#include <QCursor>
|
||||||
|
@ -22,9 +22,10 @@ namespace lyx {
|
|||||||
|
|
||||||
class BufferView;
|
class BufferView;
|
||||||
class docstring_list;
|
class docstring_list;
|
||||||
class Lexer;
|
|
||||||
class FuncRequest;
|
class FuncRequest;
|
||||||
|
|
||||||
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
class GuiView;
|
class GuiView;
|
||||||
@ -79,7 +80,7 @@ public:
|
|||||||
Menu * menu(QString const & name, GuiView & view, bool keyboard = false);
|
Menu * menu(QString const & name, GuiView & view, bool keyboard = false);
|
||||||
|
|
||||||
///
|
///
|
||||||
void read(Lexer &);
|
void read(support::Lexer &);
|
||||||
|
|
||||||
///
|
///
|
||||||
void updateMenu(Menu * qmenu);
|
void updateMenu(Menu * qmenu);
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
#include "Converter.h"
|
#include "Converter.h"
|
||||||
#include "Format.h"
|
#include "Format.h"
|
||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyXAction.h"
|
#include "LyXAction.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -23,7 +23,8 @@
|
|||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
class FuncRequest;
|
class FuncRequest;
|
||||||
class Lexer;
|
|
||||||
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
@ -92,7 +93,7 @@ public:
|
|||||||
Items items;
|
Items items;
|
||||||
|
|
||||||
/// read a toolbar from the file
|
/// read a toolbar from the file
|
||||||
ToolbarInfo & read(Lexer &);
|
ToolbarInfo & read(support::Lexer &);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// add toolbar item
|
/// add toolbar item
|
||||||
@ -140,10 +141,10 @@ public:
|
|||||||
Infos::iterator end() { return toolbar_info_.end(); }
|
Infos::iterator end() { return toolbar_info_.end(); }
|
||||||
|
|
||||||
/// read toolbars from the file
|
/// read toolbars from the file
|
||||||
void readToolbars(Lexer &);
|
void readToolbars(support::Lexer &);
|
||||||
|
|
||||||
/// read ui toolbar settings
|
/// read ui toolbar settings
|
||||||
void readToolbarSettings(Lexer &);
|
void readToolbarSettings(support::Lexer &);
|
||||||
|
|
||||||
///
|
///
|
||||||
ToolbarInfo const * info(std::string const & name) const;
|
ToolbarInfo const * info(std::string const & name) const;
|
||||||
|
@ -13,10 +13,10 @@
|
|||||||
|
|
||||||
#include "ExternalTemplate.h"
|
#include "ExternalTemplate.h"
|
||||||
|
|
||||||
#include "Lexer.h"
|
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/Package.h"
|
#include "support/Package.h"
|
||||||
#include "support/PathChanger.h"
|
#include "support/PathChanger.h"
|
||||||
|
@ -19,9 +19,10 @@
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
namespace support { class FileName; }
|
namespace support {
|
||||||
|
class FileName;
|
||||||
class Lexer;
|
class Lexer;
|
||||||
|
}
|
||||||
|
|
||||||
enum PreviewMode {
|
enum PreviewMode {
|
||||||
PREVIEW_OFF = 0,
|
PREVIEW_OFF = 0,
|
||||||
@ -36,7 +37,7 @@ public:
|
|||||||
/// We have to have default commands for safety reasons!
|
/// We have to have default commands for safety reasons!
|
||||||
Template();
|
Template();
|
||||||
///
|
///
|
||||||
void readTemplate(Lexer &);
|
void readTemplate(support::Lexer &);
|
||||||
///
|
///
|
||||||
void dumpFormats(std::ostream &) const;
|
void dumpFormats(std::ostream &) const;
|
||||||
|
|
||||||
@ -72,7 +73,7 @@ public:
|
|||||||
public:
|
public:
|
||||||
Format();
|
Format();
|
||||||
///
|
///
|
||||||
void readFormat(Lexer &);
|
void readFormat(support::Lexer &);
|
||||||
|
|
||||||
/// The text that should be inserted into the exported file
|
/// The text that should be inserted into the exported file
|
||||||
std::string product;
|
std::string product;
|
||||||
|
@ -56,7 +56,6 @@ class InsetTabular;
|
|||||||
class InsetText;
|
class InsetText;
|
||||||
class Language;
|
class Language;
|
||||||
class LaTeXFeatures;
|
class LaTeXFeatures;
|
||||||
class Lexer;
|
|
||||||
class MathAtom;
|
class MathAtom;
|
||||||
class MetricsInfo;
|
class MetricsInfo;
|
||||||
class PainterInfo;
|
class PainterInfo;
|
||||||
@ -68,7 +67,10 @@ class otexstream;
|
|||||||
|
|
||||||
namespace graphics { class PreviewLoader; }
|
namespace graphics { class PreviewLoader; }
|
||||||
|
|
||||||
namespace support {class FileNameList; }
|
namespace support {
|
||||||
|
class FileNameList;
|
||||||
|
class Lexer;
|
||||||
|
}
|
||||||
|
|
||||||
/// returns the InsetCode corresponding to the \c name.
|
/// returns the InsetCode corresponding to the \c name.
|
||||||
/// Eg, insetCode("branch") == BRANCH_CODE
|
/// Eg, insetCode("branch") == BRANCH_CODE
|
||||||
@ -501,7 +503,7 @@ public:
|
|||||||
/// write inset in .lyx format
|
/// write inset in .lyx format
|
||||||
virtual void write(std::ostream &) const {}
|
virtual void write(std::ostream &) const {}
|
||||||
/// read inset in .lyx format
|
/// read inset in .lyx format
|
||||||
virtual void read(Lexer &) {}
|
virtual void read(support::Lexer &) {}
|
||||||
/** Export the inset to LaTeX.
|
/** Export the inset to LaTeX.
|
||||||
* Don't use a temporary stringstream if the final output is
|
* Don't use a temporary stringstream if the final output is
|
||||||
* supposed to go to a file.
|
* supposed to go to a file.
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#include "InsetList.h"
|
#include "InsetList.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "Layout.h"
|
#include "Layout.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "ParIterator.h"
|
#include "ParIterator.h"
|
||||||
#include "TexRow.h"
|
#include "TexRow.h"
|
||||||
#include "texstream.h"
|
#include "texstream.h"
|
||||||
@ -33,12 +32,14 @@
|
|||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
|
using support::Lexer;
|
||||||
|
|
||||||
InsetArgument::InsetArgument(Buffer * buf, string const & name)
|
InsetArgument::InsetArgument(Buffer * buf, string const & name)
|
||||||
: InsetCollapsible(buf), name_(name), labelstring_(docstring()),
|
: InsetCollapsible(buf), name_(name), labelstring_(docstring()),
|
||||||
|
@ -68,7 +68,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const override;
|
void write(std::ostream & os) const override;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex) override;
|
void read(support::Lexer & lex) override;
|
||||||
///
|
///
|
||||||
bool neverIndent() const override { return true; }
|
bool neverIndent() const override { return true; }
|
||||||
///
|
///
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
#include "InsetIterator.h"
|
#include "InsetIterator.h"
|
||||||
#include "InsetList.h"
|
#include "InsetList.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "output_xhtml.h"
|
#include "output_xhtml.h"
|
||||||
#include "Paragraph.h"
|
#include "Paragraph.h"
|
||||||
#include "ParagraphList.h"
|
#include "ParagraphList.h"
|
||||||
@ -40,6 +39,7 @@
|
|||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/mutex.h"
|
#include "support/mutex.h"
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ public:
|
|||||||
///
|
///
|
||||||
bool isLabeled() const override { return true; }
|
bool isLabeled() const override { return true; }
|
||||||
///
|
///
|
||||||
void read(Lexer & lex) override;
|
void read(support::Lexer & lex) override;
|
||||||
///
|
///
|
||||||
int plaintext(odocstringstream &, OutputParams const &,
|
int plaintext(odocstringstream &, OutputParams const &,
|
||||||
size_t max_length = INT_MAX) const override;
|
size_t max_length = INT_MAX) const override;
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "output_docbook.h"
|
#include "output_docbook.h"
|
||||||
#include "output_xhtml.h"
|
#include "output_xhtml.h"
|
||||||
@ -36,6 +35,7 @@
|
|||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/Translator.h"
|
#include "support/Translator.h"
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const;
|
void write(std::ostream & os) const;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex);
|
void read(support::Lexer & lex);
|
||||||
|
|
||||||
///
|
///
|
||||||
std::string type;
|
std::string type;
|
||||||
@ -108,7 +108,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream &) const override;
|
void write(std::ostream &) const override;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex) override;
|
void read(support::Lexer & lex) override;
|
||||||
///
|
///
|
||||||
void metrics(MetricsInfo &, Dimension &) const override;
|
void metrics(MetricsInfo &, Dimension &) const override;
|
||||||
///
|
///
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "Inset.h"
|
#include "Inset.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyX.h"
|
#include "LyX.h"
|
||||||
#include "output_docbook.h"
|
#include "output_docbook.h"
|
||||||
#include "output_xhtml.h"
|
#include "output_xhtml.h"
|
||||||
@ -33,6 +32,7 @@
|
|||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include "frontends/alert.h"
|
#include "frontends/alert.h"
|
||||||
@ -45,6 +45,8 @@ using namespace std;
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
|
using support::Lexer;
|
||||||
|
|
||||||
InsetBranch::InsetBranch(Buffer * buf, InsetBranchParams const & params)
|
InsetBranch::InsetBranch(Buffer * buf, InsetBranchParams const & params)
|
||||||
: InsetCollapsible(buf, InsetText::DefaultLayout), params_(params)
|
: InsetCollapsible(buf, InsetText::DefaultLayout), params_(params)
|
||||||
{}
|
{}
|
||||||
|
@ -26,7 +26,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const;
|
void write(std::ostream & os) const;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex);
|
void read(support::Lexer & lex);
|
||||||
///
|
///
|
||||||
docstring branch;
|
docstring branch;
|
||||||
///
|
///
|
||||||
@ -65,7 +65,7 @@ private:
|
|||||||
///
|
///
|
||||||
void write(std::ostream &) const override;
|
void write(std::ostream &) const override;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex) override;
|
void read(support::Lexer & lex) override;
|
||||||
///
|
///
|
||||||
docstring const buttonLabel(BufferView const &) const override;
|
docstring const buttonLabel(BufferView const &) const override;
|
||||||
///
|
///
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "InsetLayout.h"
|
#include "InsetLayout.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "TextClass.h"
|
#include "TextClass.h"
|
||||||
#include "TocBackend.h"
|
#include "TocBackend.h"
|
||||||
@ -37,6 +36,7 @@
|
|||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/lassert.h"
|
#include "support/lassert.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/Changer.h"
|
#include "support/Changer.h"
|
||||||
#include "support/TempFile.h"
|
#include "support/TempFile.h"
|
||||||
@ -46,6 +46,8 @@ using namespace std;
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
|
using support::Lexer;
|
||||||
|
|
||||||
InsetCollapsible::InsetCollapsible(Buffer * buf, InsetText::UsePlain ltype)
|
InsetCollapsible::InsetCollapsible(Buffer * buf, InsetText::UsePlain ltype)
|
||||||
: InsetText(buf, ltype), status_(Open)
|
: InsetText(buf, ltype), status_(Open)
|
||||||
{
|
{
|
||||||
|
@ -53,7 +53,7 @@ public:
|
|||||||
///
|
///
|
||||||
docstring layoutName() const override { return from_ascii("Collapsible"); }
|
docstring layoutName() const override { return from_ascii("Collapsible"); }
|
||||||
///
|
///
|
||||||
void read(Lexer &) override;
|
void read(support::Lexer &) override;
|
||||||
///
|
///
|
||||||
void write(std::ostream &) const override;
|
void write(std::ostream &) const override;
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "InsetIterator.h"
|
#include "InsetIterator.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyX.h"
|
#include "LyX.h"
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "texstream.h"
|
#include "texstream.h"
|
||||||
@ -41,6 +40,7 @@
|
|||||||
#include "insets/InsetWrap.h"
|
#include "insets/InsetWrap.h"
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include "frontends/Application.h"
|
#include "frontends/Application.h"
|
||||||
|
@ -72,7 +72,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const override { p_.write(os); }
|
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;
|
void doDispatch(Cursor & cur, FuncRequest & cmd) override;
|
||||||
///
|
///
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
|
|
||||||
#include "Buffer.h"
|
#include "Buffer.h"
|
||||||
#include "Encoding.h"
|
#include "Encoding.h"
|
||||||
#include "Lexer.h"
|
|
||||||
|
|
||||||
#include "frontends/alert.h"
|
#include "frontends/alert.h"
|
||||||
|
|
||||||
@ -38,9 +37,9 @@
|
|||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/ExceptionMessage.h"
|
#include "support/ExceptionMessage.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/lstrings.h"
|
|
||||||
|
|
||||||
#include "support/lassert.h"
|
#include "support/lassert.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
@ -26,9 +26,10 @@
|
|||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
class Buffer;
|
class Buffer;
|
||||||
class Lexer;
|
|
||||||
class OutputParams;
|
class OutputParams;
|
||||||
|
|
||||||
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
class ParamInfo {
|
class ParamInfo {
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
@ -128,9 +129,9 @@ public:
|
|||||||
///
|
///
|
||||||
InsetCode code() const { return insetCode_; }
|
InsetCode code() const { return insetCode_; }
|
||||||
/// Parse the command
|
/// 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;
|
void write(std::ostream &) const;
|
||||||
///
|
///
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "InsetLayout.h"
|
#include "InsetLayout.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "xml.h"
|
#include "xml.h"
|
||||||
#include "ParagraphParameters.h"
|
#include "ParagraphParameters.h"
|
||||||
#include "Paragraph.h"
|
#include "Paragraph.h"
|
||||||
@ -26,6 +25,7 @@
|
|||||||
|
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/TempFile.h"
|
#include "support/TempFile.h"
|
||||||
#include "Encoding.h"
|
#include "Encoding.h"
|
||||||
|
@ -25,8 +25,6 @@
|
|||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyX.h" // use_gui
|
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "output_latex.h"
|
#include "output_latex.h"
|
||||||
@ -46,6 +44,7 @@
|
|||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/lassert.h"
|
#include "support/lassert.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/lyxlib.h"
|
#include "support/lyxlib.h"
|
||||||
#include "support/TempFile.h"
|
#include "support/TempFile.h"
|
||||||
|
@ -51,7 +51,7 @@ public:
|
|||||||
InsetExternalParams();
|
InsetExternalParams();
|
||||||
|
|
||||||
void write(Buffer const &, std::ostream &) const;
|
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.
|
/// The name of the tempfile used for manipulations.
|
||||||
support::FileName tempname() const { return tempname_(); }
|
support::FileName tempname() const { return tempname_(); }
|
||||||
@ -141,7 +141,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream &) const override;
|
void write(std::ostream &) const override;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex) override;
|
void read(support::Lexer & lex) override;
|
||||||
///
|
///
|
||||||
int plaintext(odocstringstream & ods, OutputParams const & op,
|
int plaintext(odocstringstream & ods, OutputParams const & op,
|
||||||
size_t max_length = INT_MAX) const override;
|
size_t max_length = INT_MAX) const override;
|
||||||
|
@ -20,12 +20,12 @@
|
|||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "ParIterator.h"
|
#include "ParIterator.h"
|
||||||
#include "TextClass.h"
|
#include "TextClass.h"
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "xml.h"
|
#include "xml.h"
|
||||||
#include "output_docbook.h"
|
#include "output_docbook.h"
|
||||||
#include "output_xhtml.h"
|
#include "output_xhtml.h"
|
||||||
@ -43,6 +42,7 @@
|
|||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include "frontends/Application.h"
|
#include "frontends/Application.h"
|
||||||
|
@ -30,7 +30,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const;
|
void write(std::ostream & os) const;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex);
|
void read(support::Lexer & lex);
|
||||||
///
|
///
|
||||||
std::string type;
|
std::string type;
|
||||||
///
|
///
|
||||||
@ -88,7 +88,7 @@ private:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const override;
|
void write(std::ostream & os) const override;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex) override;
|
void read(support::Lexer & lex) override;
|
||||||
///
|
///
|
||||||
void validate(LaTeXFeatures & features) const override;
|
void validate(LaTeXFeatures & features) const override;
|
||||||
///
|
///
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "Paragraph.h"
|
#include "Paragraph.h"
|
||||||
#include "output_xhtml.h"
|
#include "output_xhtml.h"
|
||||||
#include "texstream.h"
|
#include "texstream.h"
|
||||||
@ -32,6 +31,7 @@
|
|||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
@ -36,7 +36,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream &) const override;
|
void write(std::ostream &) const override;
|
||||||
///
|
///
|
||||||
void read(Lexer &) override;
|
void read(support::Lexer &) override;
|
||||||
///
|
///
|
||||||
void latex(otexstream &, OutputParams const &) const override;
|
void latex(otexstream &, OutputParams const &) const override;
|
||||||
///
|
///
|
||||||
|
@ -63,7 +63,6 @@ TODO
|
|||||||
#include "InsetIterator.h"
|
#include "InsetIterator.h"
|
||||||
#include "LaTeX.h"
|
#include "LaTeX.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "Mover.h"
|
#include "Mover.h"
|
||||||
#include "output_docbook.h"
|
#include "output_docbook.h"
|
||||||
@ -86,6 +85,7 @@ TODO
|
|||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/Length.h"
|
#include "support/Length.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lyxlib.h"
|
#include "support/lyxlib.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/os.h"
|
#include "support/os.h"
|
||||||
|
@ -68,7 +68,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream &) const override;
|
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.
|
/** returns the number of rows (\n's) of generated tex code.
|
||||||
#fragile == true# means, that the inset should take care about
|
#fragile == true# means, that the inset should take care about
|
||||||
fragile commands by adding a #\protect# before.
|
fragile commands by adding a #\protect# before.
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
#include "Buffer.h"
|
#include "Buffer.h"
|
||||||
#include "LyX.h" // for use_gui
|
#include "LyX.h" // for use_gui
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
|
|
||||||
#include "graphics/epstools.h"
|
#include "graphics/epstools.h"
|
||||||
@ -24,6 +23,7 @@
|
|||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/lyxlib.h"
|
#include "support/lyxlib.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/Translator.h"
|
#include "support/Translator.h"
|
||||||
|
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
namespace graphics { class Params; }
|
namespace graphics { class Params; }
|
||||||
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
class Lexer;
|
|
||||||
class Buffer;
|
class Buffer;
|
||||||
|
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ public:
|
|||||||
/// Buffer is needed to figure out if a figure is embedded.
|
/// Buffer is needed to figure out if a figure is embedded.
|
||||||
void Write(std::ostream & os, Buffer const & buf) const;
|
void Write(std::ostream & os, Buffer const & buf) const;
|
||||||
/// If the token belongs to our parameters, read it.
|
/// 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);
|
bool allowOrigin);
|
||||||
/// convert
|
/// convert
|
||||||
// Only a subset of InsetGraphicsParams is needed for display purposes.
|
// Only a subset of InsetGraphicsParams is needed for display purposes.
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "RenderPreview.h"
|
#include "RenderPreview.h"
|
||||||
#include "texstream.h"
|
#include "texstream.h"
|
||||||
@ -28,6 +27,8 @@
|
|||||||
|
|
||||||
#include "graphics/PreviewImage.h"
|
#include "graphics/PreviewImage.h"
|
||||||
|
|
||||||
|
#include "support/Lexer.h"
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "InsetLayout.h"
|
#include "InsetLayout.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "xml.h"
|
#include "xml.h"
|
||||||
#include "texstream.h"
|
#include "texstream.h"
|
||||||
@ -32,12 +31,15 @@
|
|||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/Translator.h"
|
#include "support/Translator.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
|
using support::Lexer;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
typedef Translator<string, InsetIPADecoParams::Type> IPADecoTranslator;
|
typedef Translator<string, InsetIPADecoParams::Type> IPADecoTranslator;
|
||||||
|
@ -33,7 +33,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const;
|
void write(std::ostream & os) const;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex);
|
void read(support::Lexer & lex);
|
||||||
///
|
///
|
||||||
Type type;
|
Type type;
|
||||||
};
|
};
|
||||||
@ -70,7 +70,7 @@ private:
|
|||||||
///
|
///
|
||||||
void write(std::ostream &) const override;
|
void write(std::ostream &) const override;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex) override;
|
void read(support::Lexer & lex) override;
|
||||||
///
|
///
|
||||||
bool neverIndent() const override { return true; }
|
bool neverIndent() const override { return true; }
|
||||||
///
|
///
|
||||||
@ -143,7 +143,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream &) const override;
|
void write(std::ostream &) const override;
|
||||||
/// Will not be used when lyxf3
|
/// Will not be used when lyxf3
|
||||||
void read(Lexer & lex) override;
|
void read(support::Lexer & lex) override;
|
||||||
///
|
///
|
||||||
void latex(otexstream &, OutputParams const &) const override;
|
void latex(otexstream &, OutputParams const &) const override;
|
||||||
///
|
///
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
#include "Paragraph.h"
|
#include "Paragraph.h"
|
||||||
#include "LaTeX.h"
|
#include "LaTeX.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyX.h"
|
#include "LyX.h"
|
||||||
#include "output_latex.h"
|
#include "output_latex.h"
|
||||||
#include "output_xhtml.h"
|
#include "output_xhtml.h"
|
||||||
@ -43,6 +42,7 @@
|
|||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/Translator.h"
|
#include "support/Translator.h"
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const;
|
void write(std::ostream & os) const;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex);
|
void read(support::Lexer & lex);
|
||||||
///
|
///
|
||||||
docstring index;
|
docstring index;
|
||||||
///
|
///
|
||||||
@ -72,7 +72,7 @@ private:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const override;
|
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;
|
void docbook(XMLStream &, OutputParams const &) const override;
|
||||||
///
|
///
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#include "InsetList.h"
|
#include "InsetList.h"
|
||||||
#include "LaTeX.h"
|
#include "LaTeX.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "xml.h"
|
#include "xml.h"
|
||||||
#include "texstream.h"
|
#include "texstream.h"
|
||||||
@ -35,6 +34,7 @@
|
|||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/Translator.h"
|
#include "support/Translator.h"
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const;
|
void write(std::ostream & os) const;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex);
|
void read(support::Lexer & lex);
|
||||||
///
|
///
|
||||||
Type type;
|
Type type;
|
||||||
};
|
};
|
||||||
@ -76,7 +76,7 @@ private:
|
|||||||
///
|
///
|
||||||
void write(std::ostream &) const override;
|
void write(std::ostream &) const override;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex) override;
|
void read(support::Lexer & lex) override;
|
||||||
///
|
///
|
||||||
bool neverIndent() const override { return true; }
|
bool neverIndent() const override { return true; }
|
||||||
/// We do not output anything directly to the stream
|
/// We do not output anything directly to the stream
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
#include "LyXAction.h"
|
#include "LyXAction.h"
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
#include "LyXVC.h"
|
#include "LyXVC.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "output_docbook.h"
|
#include "output_docbook.h"
|
||||||
#include "Paragraph.h"
|
#include "Paragraph.h"
|
||||||
#include "ParIterator.h"
|
#include "ParIterator.h"
|
||||||
@ -49,6 +48,7 @@
|
|||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
#include "support/Length.h"
|
#include "support/Length.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/Messages.h"
|
#include "support/Messages.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/qstring_helpers.h"
|
#include "support/qstring_helpers.h"
|
||||||
|
@ -178,7 +178,7 @@ public:
|
|||||||
///
|
///
|
||||||
bool hasSettings() const override { return true; }
|
bool hasSettings() const override { return true; }
|
||||||
///
|
///
|
||||||
void read(Lexer & lex) override;
|
void read(support::Lexer & lex) override;
|
||||||
///
|
///
|
||||||
void write(std::ostream & os) const override;
|
void write(std::ostream & os) const override;
|
||||||
///
|
///
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
#include "InsetLayout.h"
|
#include "InsetLayout.h"
|
||||||
|
|
||||||
#include "ColorSet.h"
|
#include "ColorSet.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "TextClass.h"
|
#include "TextClass.h"
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/textutils.h"
|
#include "support/textutils.h"
|
||||||
|
|
||||||
|
@ -24,9 +24,9 @@
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
class Lexer;
|
|
||||||
class TextClass;
|
class TextClass;
|
||||||
|
|
||||||
|
namespace support { class Lexer; }
|
||||||
|
|
||||||
enum class InsetDecoration : int {
|
enum class InsetDecoration : int {
|
||||||
CLASSIC,
|
CLASSIC,
|
||||||
@ -57,7 +57,7 @@ public:
|
|||||||
///
|
///
|
||||||
InsetLayout() { labelfont_.setColor(Color_insetlabel); }
|
InsetLayout() { labelfont_.setColor(Color_insetlabel); }
|
||||||
///
|
///
|
||||||
bool read(Lexer & lexrc, TextClass const & tclass,
|
bool read(support::Lexer & lexrc, TextClass const & tclass,
|
||||||
bool validating = false);
|
bool validating = false);
|
||||||
///
|
///
|
||||||
docstring name() const { return name_; }
|
docstring name() const { return name_; }
|
||||||
@ -266,7 +266,7 @@ private:
|
|||||||
///
|
///
|
||||||
std::string defaultCSSClass() const;
|
std::string defaultCSSClass() const;
|
||||||
///
|
///
|
||||||
void readArgument(Lexer &);
|
void readArgument(support::Lexer &);
|
||||||
///
|
///
|
||||||
docstring name_ = from_ascii("undefined");
|
docstring name_ = from_ascii("undefined");
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#include "InsetLayout.h"
|
#include "InsetLayout.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "output_latex.h"
|
#include "output_latex.h"
|
||||||
#include "output_docbook.h"
|
#include "output_docbook.h"
|
||||||
#include "output_xhtml.h"
|
#include "output_xhtml.h"
|
||||||
@ -35,6 +34,7 @@
|
|||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/lassert.h"
|
#include "support/lassert.h"
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ private:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const override;
|
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;
|
void latex(otexstream &, OutputParams const &) const override;
|
||||||
///
|
///
|
||||||
|
@ -13,11 +13,10 @@
|
|||||||
|
|
||||||
#include "InsetListingsParams.h"
|
#include "InsetListingsParams.h"
|
||||||
|
|
||||||
#include "support/Length.h"
|
|
||||||
#include "Lexer.h"
|
|
||||||
|
|
||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Length.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/textutils.h"
|
#include "support/textutils.h"
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ public:
|
|||||||
void write(std::ostream &) const;
|
void write(std::ostream &) const;
|
||||||
|
|
||||||
/// read parameters from an ostream
|
/// read parameters from an ostream
|
||||||
void read(Lexer &);
|
void read(support::Lexer &);
|
||||||
|
|
||||||
/// valid parameter string
|
/// valid parameter string
|
||||||
std::string params(std::string const & sep=",") const;
|
std::string params(std::string const & sep=",") const;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include "Dimension.h"
|
#include "Dimension.h"
|
||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "output_docbook.h"
|
#include "output_docbook.h"
|
||||||
#include "output_xhtml.h"
|
#include "output_xhtml.h"
|
||||||
@ -30,11 +29,14 @@
|
|||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
|
using support::Lexer;
|
||||||
|
|
||||||
InsetNewline::InsetNewline() : Inset(nullptr)
|
InsetNewline::InsetNewline() : Inset(nullptr)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const;
|
void write(std::ostream & os) const;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex);
|
void read(support::Lexer & lex);
|
||||||
///
|
///
|
||||||
Kind kind;
|
Kind kind;
|
||||||
};
|
};
|
||||||
@ -69,7 +69,7 @@ private:
|
|||||||
///
|
///
|
||||||
docstring xhtml(XMLStream &, OutputParams const &) const override;
|
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;
|
void write(std::ostream & os) const override;
|
||||||
/// is this equivalent to a space (which is BTW different from
|
/// is this equivalent to a space (which is BTW different from
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include "Cursor.h"
|
#include "Cursor.h"
|
||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "xml.h"
|
#include "xml.h"
|
||||||
#include "texstream.h"
|
#include "texstream.h"
|
||||||
@ -30,13 +29,15 @@
|
|||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
InsetNewpage::InsetNewpage() : Inset(nullptr)
|
using support::Lexer;
|
||||||
|
|
||||||
|
InsetNewpage::InsetNewpage() : Inset(nullptr)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const;
|
void write(std::ostream & os) const;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex);
|
void read(support::Lexer & lex);
|
||||||
///
|
///
|
||||||
Kind kind;
|
Kind kind;
|
||||||
};
|
};
|
||||||
@ -72,7 +72,7 @@ private:
|
|||||||
///
|
///
|
||||||
docstring xhtml(XMLStream &, OutputParams const &) const override;
|
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;
|
void write(std::ostream & os) const override;
|
||||||
///
|
///
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "InsetLayout.h"
|
#include "InsetLayout.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
#include "output_docbook.h"
|
#include "output_docbook.h"
|
||||||
#include "output_latex.h"
|
#include "output_latex.h"
|
||||||
@ -33,6 +32,7 @@
|
|||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/Translator.h"
|
#include "support/Translator.h"
|
||||||
|
|
||||||
@ -45,6 +45,8 @@ using namespace std;
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
|
using support::Lexer;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
typedef Translator<string, InsetNoteParams::Type> NoteTranslator;
|
typedef Translator<string, InsetNoteParams::Type> NoteTranslator;
|
||||||
|
@ -30,7 +30,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const;
|
void write(std::ostream & os) const;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex);
|
void read(support::Lexer & lex);
|
||||||
///
|
///
|
||||||
Type type;
|
Type type;
|
||||||
};
|
};
|
||||||
@ -71,7 +71,7 @@ private:
|
|||||||
///
|
///
|
||||||
void write(std::ostream &) const override;
|
void write(std::ostream &) const override;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex) override;
|
void read(support::Lexer & lex) override;
|
||||||
/// show the note dialog
|
/// show the note dialog
|
||||||
bool showInsetDialog(BufferView * bv) const override;
|
bool showInsetDialog(BufferView * bv) const override;
|
||||||
///
|
///
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "texstream.h"
|
#include "texstream.h"
|
||||||
#include "TextClass.h"
|
#include "TextClass.h"
|
||||||
@ -34,6 +33,7 @@
|
|||||||
|
|
||||||
#include "frontends/Application.h"
|
#include "frontends/Application.h"
|
||||||
#include "frontends/FontMetrics.h"
|
#include "frontends/FontMetrics.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "frontends/Painter.h"
|
#include "frontends/Painter.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
@ -43,6 +43,8 @@ using namespace std;
|
|||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
|
using support::Lexer;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
typedef Translator<string, InsetPhantomParams::Type> PhantomTranslator;
|
typedef Translator<string, InsetPhantomParams::Type> PhantomTranslator;
|
||||||
|
@ -30,7 +30,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(std::ostream & os) const;
|
void write(std::ostream & os) const;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex);
|
void read(support::Lexer & lex);
|
||||||
///
|
///
|
||||||
Type type;
|
Type type;
|
||||||
};
|
};
|
||||||
@ -66,7 +66,7 @@ private:
|
|||||||
///
|
///
|
||||||
void write(std::ostream &) const override;
|
void write(std::ostream &) const override;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex) override;
|
void read(support::Lexer & lex) override;
|
||||||
///
|
///
|
||||||
void setButtonLabel() override;
|
void setButtonLabel() override;
|
||||||
/// show the phantom dialog
|
/// show the phantom dialog
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "Paragraph.h"
|
#include "Paragraph.h"
|
||||||
@ -39,6 +38,7 @@
|
|||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/gettext.h"
|
#include "support/gettext.h"
|
||||||
|
#include "support/Lexer.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/textutils.h"
|
#include "support/textutils.h"
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user