]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtextclasslist.h
minimal effort implementation of:
[lyx.git] / src / lyxtextclasslist.h
index 80ac1de17b00371a037a039d0cf65abdd8d0437c..76fbaa8e09baf75101cf5faa554029c371eb05d9 100644 (file)
@@ -24,7 +24,7 @@
 class LyXLayout;
 
 /// Reads the style files
-extern void LyXSetStyle();
+extern bool LyXSetStyle();
 
 ///
 class LyXTextClassList : boost::noncopyable {
@@ -47,6 +47,12 @@ public:
 
        /// Read textclass list.  Returns false if this fails.
        bool read();
+       
+       /// add a textclass from user local directory. 
+       /// Return ture/false, and textclass number
+       std::pair<bool, lyx::textclass_type> const
+       addTextClass(std::string const & textclass, std::string const & path);
+
 private:
        ///
        mutable ClassList classlist_;