+ ///Returns a pointer to the TextClass currently in use: the BaseClass
+ ///as modified by modules. (See \file TextClass.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);
+ /// 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(TextClassPtr);
+ /// List of modules in use
+ std::vector<std::string> const & getModules() const;
+ /// Add a module to the list of modules in use.
+ /// Returns true if module was successfully added.
+ bool addLayoutModule(std::string modName, bool makeClass = true);
+ /// Add a list of modules.
+ /// Returns true if all modules were successfully added.
+ bool addLayoutModules(std::vector<std::string>modNames);
+ /// Clear the list
+ void clearLayoutModules();