]> git.lyx.org Git - lyx.git/blobdiff - src/BufferParams.h
Limit the nopassthurchars case in beamer to URL
[lyx.git] / src / BufferParams.h
index 77b4856b4d3bca7b6a435c85c467f1a510354d67..92c1418da1f2cb5e9c58ba2413a40e9c808b25a6 100644 (file)
 
 namespace lyx {
 
-namespace support { class FileName; }
+namespace support {
+class FileName;
+class Lexer;
+}
 
 class Author;
 class AuthorList;
@@ -48,7 +51,7 @@ class LaTeXFeatures;
 class LayoutFile;
 class LayoutFileIndex;
 class Length;
-class Lexer;
+class OutputParams;
 class otexstream;
 class PDFOptions;
 class Spacing;
@@ -78,7 +81,7 @@ public:
        docstring B_(std::string const & l10n) const;
 
        /// read a header token, if unrecognised, return it or an unknown class name
-       std::string readToken(Lexer & lex,
+       std::string readToken(support::Lexer & lex,
                std::string const & token, ///< token to read.
                support::FileName const & filename);
 
@@ -194,6 +197,12 @@ public:
        bool isLatex() const;
        /// returns \c true if the buffer contains a Wed document
        bool isLiterate() const;
+       /// Is this package option requested?
+       bool hasPackageOption(std::string const package, std::string const opt) const;
+       /// Get the options requested for a given package
+       std::string getPackageOptions(std::string const package) const;
+       /// Do we use the bidi package (which does some reordering and stuff)?
+       bool useBidiPackage(OutputParams const & rp) const;
 
        /// return the format of the buffer on a string
        std::string bufferFormat() const;
@@ -601,6 +610,8 @@ public:
        std::string output_sync_macro;
        /// use refstyle? or prettyref?
        bool use_refstyle;
+       /// use formatted references in the workarea?
+       bool use_formatted_ref;
        /// use minted? or listings?
        bool use_minted;
        //output line numbering
@@ -620,25 +631,25 @@ public:
 
 private:
        ///
-       void readPreamble(Lexer &);
+       void readPreamble(support::Lexer &);
        ///
-       void readDocumentMetadata(Lexer &);
+       void readDocumentMetadata(support::Lexer &);
        ///
-       void readLocalLayout(Lexer &, bool);
+       void readLocalLayout(support::Lexer &, bool);
        ///
-       void readLanguage(Lexer &);
+       void readLanguage(support::Lexer &);
        ///
-       void readGraphicsDriver(Lexer &);
+       void readGraphicsDriver(support::Lexer &);
        ///
-       void readBullets(Lexer &);
+       void readBullets(support::Lexer &);
        ///
-       void readBulletsLaTeX(Lexer &);
+       void readBulletsLaTeX(support::Lexer &);
        ///
-       void readModules(Lexer &);
+       void readModules(support::Lexer &);
        ///
-       void readRemovedModules(Lexer &);
+       void readRemovedModules(support::Lexer &);
        ///
-       void readIncludeonly(Lexer &);
+       void readIncludeonly(support::Lexer &);
        /// A cache for the default flavors
        typedef std::map<std::string, Flavor> DefaultFlavorCache;
        ///