]> git.lyx.org Git - lyx.git/blobdiff - src/BufferParams.h
make frontend::Application a bit slimmer
[lyx.git] / src / BufferParams.h
index 4ded0b7cbfde4df47b6b1c7a3bb1d333a024b54f..c24017483dc9ee40afc649728bbec7b786dc5f76 100644 (file)
 #ifndef BUFFERPARAMS_H
 #define BUFFERPARAMS_H
 
+#include "Font.h"
 #include "BiblioInfo.h"
-#include "TextClass.h"
-#include "TextClass_ptr.h"
 #include "paper.h"
+#include "TextClassPtr.h"
 
 #include "insets/InsetQuotes.h"
 
@@ -34,12 +34,14 @@ class AuthorList;
 class BranchList;
 class Bullet;
 class Encoding;
+class Language;
 class Lexer;
 class LatexFeatures;
+class PDFOptions;
 class Spacing;
+class TextClass;
 class TexRow;
 class VSpace;
-class Language;
 
 /** Buffer parameters.
  *  This class contains all the parameters for this buffer's use. Some
@@ -106,8 +108,8 @@ public:
        ///by modules.
        TextClass const & getTextClass() const;
        ///Returns a pointer to the TextClass currently in use: the BaseClass 
-       ///as modified by modules. (See \file TextClass_ptr.h for the typedef.)
-       TextClass_ptr getTextClass_ptr() const;
+       ///as modified by modules. (See \file TextClassPtr.h for the typedef.)
+       TextClassPtr getTextClassPtr() const;
        ///Set the LyX TextClass---layout file---this document is using.
        ///This does NOT call makeTextClass() and so should be used with
        ///care. This is most likely not what you want if you are operating on 
@@ -119,7 +121,7 @@ public:
        /// This bypasses the baseClass and sets the textClass directly.
        /// Should be called with care and would be better not being here,
        /// but it seems to be needed by CutAndPaste::putClipboard().
-       void setTextClass(TextClass_ptr);
+       void setTextClass(TextClassPtr);
        /// List of modules in use
        std::vector<std::string> const & getModules() const;
        /// Add a module to the list of modules in use.
@@ -221,7 +223,7 @@ public:
        /// parameters for the listings package
        std::string listings_params;
        ///
-       TextClass::PageSides sides;
+       PageSides sides;
        ///
        std::string pagestyle;
        /// \param index should lie in the range 0 <= \c index <= 3.
@@ -290,6 +292,10 @@ public:
        ///
        void setCiteEngine(biblio::CiteEngine const);
 
+       /// options for pdf output
+       PDFOptions & pdfoptions();
+       PDFOptions const & pdfoptions() const;
+
 private:
        ///
        void readPreamble(Lexer &);
@@ -313,7 +319,7 @@ private:
        /// the base TextClass associated with the document
        textclass_type baseClass_;
        /// the possibly modular TextClass actually in use
-       TextClass_ptr textClass_;
+       TextClassPtr textClass_;
        ///
        typedef std::vector<std::string> LayoutModuleList;
        ///