]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.h
Fulfill promise to Andre: TextClass_ptr --> TextClassPtr.
[lyx.git] / src / output_latex.h
index f108f1b360c7591cf4ff26143764933d3d1f2ca3..008564ed7942aede56fc44e352ad99be6d46bb64 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef OUTPUT_LATEX_H
 #define OUTPUT_LATEX_H
 
+#include <utility>
+
 #include "support/docstream.h"
 
 
@@ -43,10 +45,11 @@ void latexParagraphs(Buffer const & buf,
                     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);
+/// \return (did the encoding change?, number of characters written to \p os)
+std::pair<bool, int> switchEncoding(odocstream & os, 
+                    BufferParams const & bparams,
+                    bool moving_arg, Encoding const & oldEnc,
+                    Encoding const & newEnc);
 
 } // namespace lyx