X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferParams.h;h=9e858275aeaadcf0e0121128f7ad2b930d9e4099;hb=0bd0fbf2e379f5470511028d7d58c07a59e7a2f3;hp=c8fe76fe63cbb50a476b3ce848a9c38111ca1d4b;hpb=d8a6b5bfd0baa02a4ba03f8c9e9c618baf41b03f;p=lyx.git diff --git a/src/BufferParams.h b/src/BufferParams.h index c8fe76fe63..9e858275ae 100644 --- a/src/BufferParams.h +++ b/src/BufferParams.h @@ -32,17 +32,17 @@ class FileName; } class AuthorList; -class BaseClassIndex; class BranchList; class Bullet; class DocumentClass; class Encoding; class Language; -class Lexer; class LatexFeatures; +class LayoutFile; +class LayoutFileIndex; +class Lexer; class PDFOptions; class Spacing; -class TextClass; class TexRow; class VSpace; @@ -106,12 +106,15 @@ public: InsetQuotes::quote_times quotes_times; /// std::string fontsize; - ///Get the LyX TextClass (that is, the layout file) this document is using. - BaseClassIndex baseClass() const; - /// Set the LyX TextClass (that is, the layout file) this document is using. + ///Get the LayoutFile this document is using. + LayoutFile const * baseClass() const; + /// + LayoutFileIndex const & baseClassID() const; + /// Set the LyX layout file this document is using. /// NOTE: This does not call makeDocumentClass() to update the local /// DocumentClass. That needs to be done manually. - bool setBaseClass(BaseClassIndex); + /// \param filename the name of the layout file + bool setBaseClass(std::string const & classname); /// Adds the module information to the baseClass information to /// create our local DocumentClass. void makeDocumentClass();