]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetIPA.h
Do not output deleted rows columns if show changes in output is false
[lyx.git] / src / insets / InsetIPA.h
index 783871d8a465e2cb367bb373a9e14c5f638c71e7..d499edfdc81ccfe7ad07d222d763092b03fa8105 100644 (file)
@@ -16,7 +16,8 @@
 
 #include "Dimension.h"
 
-#include <boost/scoped_ptr.hpp>
+#include "support/unique_ptr.h"
+
 
 namespace lyx {
 
@@ -28,10 +29,10 @@ namespace graphics {
 
 /// An IPA inset with instant preview
 class InsetIPA : public InsetText {
-       
+
 public:
        ///
-       InsetIPA(Buffer *);
+       explicit InsetIPA(Buffer *);
        ///
        ~InsetIPA();
        ///
@@ -44,11 +45,13 @@ public:
        Inset * clone() const { return new InsetIPA(*this); }
 
        bool neverIndent() const { return true; }
-       
+
+       bool forceLocalFontSwitch() const { return true; }
+
        InsetCode lyxCode() const { return IPA_CODE; }
-       
+
        docstring layoutName() const { return from_ascii("IPA"); }
-       
+
        bool descendable(BufferView const & /*bv*/) const { return true; }
 
        void metrics(MetricsInfo & mi, Dimension & dim) const;
@@ -70,7 +73,7 @@ public:
        void write(std::ostream & os) const;
 
        void edit(Cursor & cur, bool front, EntryDirection entry_from);
-       
+
        ///
        void latex(otexstream &, OutputParams const &) const;
        ///
@@ -82,7 +85,7 @@ public:
        ///
        bool insetAllowed(InsetCode code) const;
        //@}
-       
+
 protected:
        /// Retrieves the preview state. Returns true if preview
        /// is enabled and the preview image is availabled.
@@ -93,7 +96,7 @@ protected:
        void preparePreview(DocIterator const & pos) const;
 
        ///
-       boost::scoped_ptr<RenderPreview> preview_;
+       unique_ptr<RenderPreview> preview_;
 };