namespace lyx {
-namespace support { class FileName; }
+namespace support {
+class FileName;
+class Lexer;
+}
class Author;
class AuthorList;
class LayoutFile;
class LayoutFileIndex;
class Length;
-class Lexer;
+class OutputParams;
class otexstream;
class PDFOptions;
class Spacing;
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);
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;
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
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;
///
support::copied_ptr<Impl, MemoryTraits> pimpl_;
};
+
+///
+BufferParams const & defaultBufferParams();
+
} // namespace lyx
#endif