- ///Get the LyX TextClass (that is, the layout file) this document is using.
- textclass_type getBaseClass() const;
- ///Set the LyX TextClass (that is, the layout file) this document is using.
- ///NOTE This also calls makeTextClass(), to update the local
- ///TextClass.
- bool setBaseClass(textclass_type);
- ///Returns the TextClass currently in use: the BaseClass as modified
- ///by modules.
- TextClass const & getTextClass() const;
- ///Returns a pointer to the TextClass currently in use: the BaseClass
- ///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
- ///BufferParams that are actually associatd with a Buffer. If, on the
- ///other hand, you are using a temporary set of BufferParams---say, in
- ///a controller, it may well be, since in that case the local TextClass
- ///has nothing to do.
- void setJustBaseClass(textclass_type);
+ ///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.
+ /// \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();
+ /// Returns the DocumentClass currently in use: the BaseClass as modified
+ /// by modules.
+ DocumentClass const & documentClass() const;
+ /// \return A pointer to the DocumentClass currently in use: the BaseClass
+ /// as modified by modules.
+ DocumentClass const * documentClassPtr() const;