- //@Man: Packages
- //@{
- ///
- bool color; // color.sty
-#ifdef USE_GRAPHICX
- ///
- bool graphicx; // graphicx.sty
-#else
- ///
- bool graphics; // graphics.sty
-#endif
- ///
- bool setspace; // setspace.sty
- ///
- bool makeidx; // makeind.sty
- ///
- bool verbatim; // verbatim.sty
- ///
- bool longtable; // longtable.sty
- ///
- bool algorithm; // algorithm.sty
+ To add support you should only need to require() the package name as
+ packages which don't have special requirements are handled automatically.
+ If your new package does need special consideration you'll need to alter
+ string const getPackages() const;
+ Remember to update the validate function in buffer.C and paragraph.C
+ when you do so.
+*/
+class LaTeXFeatures {
+public:
+ ///
+ LaTeXFeatures(BufferParams const &);
+ /// The packages needed by the document
+ string const getPackages() const;
+ /// The macros definitions needed by the document
+ string const getMacros() const;
+ /// The definitions needed by the document's textclass
+ string const getTClassPreamble() const;
+ /// The sgml definitions needed by the document (dobook/linuxdoc)
+ string const getLyXSGMLEntities() const;
+ /// The SGML Required to include the files added with includeFile();
+ string const getIncludedFiles(string const & fname) const;
+ /// Include a file for use with the SGML entities
+ void includeFile(string const & key, string const & name);
+ /// The float definitions.
+ void getFloatDefinitions(std::ostream & os) const;
+ /// Print requirements to lyxerr
+ void showStruct() const;