class Buffer;
class BufferParams;
-struct Language;
+class Language;
/** The packages and commands that a buffer needs. This class
- contains a list<string>. Each of the LaTeX packages that a buffer needs
- should be added with void require(string const & name).
-
- i.e require("amssymb")
-
- 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.
-*/
+ * contains a list<string>. Each of the LaTeX packages that a buffer needs
+ * should be added with void require(string const & name).
+ *
+ * i.e require("amssymb")
+ *
+ * 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:
///
///
Buffer const & buffer() const;
///
+ void setBuffer(Buffer const &);
+ ///
BufferParams const & bufferParams() const;
/// the return value is dependent upon both LyXRC and LaTeXFeatures.
bool useBabel() const;
typedef std::map<std::string , std::string> FileMap;
///
FileMap IncludedFiles_;
- ///
- Buffer const & buffer_;
+ /** Buffer of the file being processed.
+ * This may be a child buffer of the to-be-exported file and
+ * therefore may not be the buffer that belongs to params_.
+ * Only needed by InsetInclude::validate().
+ */
+ Buffer const * buffer_;
///
BufferParams const & params_;
/** If we are writing a nice LaTeX file or not.