X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLaTeXFeatures.h;h=7f010b33ca94522ba397e4ff098683c600a7df1c;hb=d1e3d75da226311cb290fc4be3686d6deef7b967;hp=1a484f730c470921b08b27ba5c96123e8de7dcf9;hpb=4331cbf30f6b5e9089cd79ba1d0183d1135b9587;p=lyx.git diff --git a/src/LaTeXFeatures.h b/src/LaTeXFeatures.h index 1a484f730c..7f010b33ca 100644 --- a/src/LaTeXFeatures.h +++ b/src/LaTeXFeatures.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * \author Jean-Marc Lasgouttes * * Full author contact details are available in file CREDITS. @@ -56,6 +56,8 @@ public: std::string const getBabelOptions() const; /// The definitions needed by the document's textclass docstring const getTClassPreamble() const; + /// The language dependent definitions needed by the document's textclass + docstring const getTClassI18nPreamble(bool use_babel) const; /// The sgml definitions needed by the document (docbook) docstring const getLyXSGMLEntities() const; /// The SGML Required to include the files added with includeFile(); @@ -103,6 +105,10 @@ public: BufferParams const & bufferParams() const; /// the return value is dependent upon both LyXRC and LaTeXFeatures. bool useBabel() const; + /// are we in a float? + bool inFloat() const { return in_float_; } + /// are we in a float? + void inFloat(bool const b) { in_float_ = b; } /// Runparams that will be used for exporting this file. OutputParams const & runparams() const { return runparams_; } @@ -145,6 +151,8 @@ private: * in validate(). */ OutputParams const & runparams_; + /// + bool in_float_; };