]> git.lyx.org Git - features.git/blobdiff - src/OutputParams.h
try using std::tr1::shared_ptr instead of boost::shared_ptr
[features.git] / src / OutputParams.h
index 066366b5c3566422da653a5a53f1443a6ea71230..b4bf7f9283affddb7efc62b06348897ace218d5f 100644 (file)
 #ifndef OUTPUTPARAMS_H
 #define OUTPUTPARAMS_H
 
-#include <string>
-
 #include "support/types.h"
-#include <boost/shared_ptr.hpp>
+
 #include "Changes.h"
 
+#include <string>
+#include <tr1/memory>
+
 
 namespace lyx {
 
@@ -35,6 +36,12 @@ public:
                XML
        };
 
+       enum TableCell {
+               NO,
+               PLAIN,
+               ALIGNED
+       };
+
        OutputParams(Encoding const *);
        ~OutputParams();
 
@@ -98,6 +105,10 @@ public:
        */
        bool use_babel;
 
+       /** Are we using japanese (pLaTeX)?
+       */
+       bool use_japanese;
+
        /** Line length to use with plaintext export.
        */
        size_type linelen;
@@ -111,7 +122,7 @@ public:
            This is a hack: Make it possible to add stuff to constant
            OutputParams instances.
        */
-       boost::shared_ptr<ExportData> exportdata;
+       std::tr1::shared_ptr<ExportData> exportdata;
 
        /** Whether we are inside a comment inset. Insets that are including
         *  external files like InsetGraphics, InsetInclude and InsetExternal
@@ -121,6 +132,11 @@ public:
         */
        bool inComment;
 
+       /** Whether we are in a table cell.
+        *  For newline, it matters whether its content is aligned or not.
+         */
+       TableCell inTableCell;
+
        /** Whether we are inside an inset that is logically deleted.
         *  A value > 0 indicates a deleted inset.
          */
@@ -142,6 +158,9 @@ public:
         */
        pit_type par_end;
 
+       /// is this the last paragraph in the current buffer/inset?
+       bool isLastPar;
+
        /** whether or not do actual file copying and image conversion
         *  This mode will be used to preview the source code
         */