- ///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.
- /// NOTE: This does not call makeTextClass() to update the local TextClass.
- /// That needs to be done manually.
- bool setBaseClass(BaseClassIndex);
+ ///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);