]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.h
Embedding: saving inzip name to .lyx file so that embedded files can always be found...
[lyx.git] / src / output_latex.h
index f108f1b360c7591cf4ff26143764933d3d1f2ca3..886306fdd3ba872d07115c20c33d76e2308b78b6 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef OUTPUT_LATEX_H
 #define OUTPUT_LATEX_H
 
+#include <utility>
+
 #include "support/docstream.h"
 
 
@@ -42,11 +44,11 @@ void latexParagraphs(Buffer const & buf,
                     OutputParams const &,
                     std::string const & everypar = std::string());
 
-/// Switch the encoding of \p os from \p oldEnc to \p newEnc if needed.
-/// \return the number of characters written to \p os.
-int switchEncoding(odocstream & os, BufferParams const & bparams,
-                  bool moving_arg, Encoding const & oldEnc,
-                  Encoding const & newEnc);
+/// Switch the encoding of \p os from runparams.encoding to \p newEnc if needed.
+/// \return (did the encoding change?, number of characters written to \p os)
+std::pair<bool, int> switchEncoding(odocstream & os,
+                    BufferParams const & bparams,
+                    OutputParams const &, Encoding const & newEnc);
 
 } // namespace lyx