/// An IPA inset with instant preview
class InsetIPA : public InsetText {
-
+
public:
///
- InsetIPA(Buffer *);
+ explicit InsetIPA(Buffer *);
///
~InsetIPA();
///
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;
void write(std::ostream & os) const;
void edit(Cursor & cur, bool front, EntryDirection entry_from);
-
+
///
void latex(otexstream &, OutputParams const &) const;
///
///
bool insetAllowed(InsetCode code) const;
//@}
-
+
protected:
/// Retrieves the preview state. Returns true if preview
/// is enabled and the preview image is availabled.