#include "dimension.h"
#include "ParagraphList_fwd.h"
+
class Buffer;
-class EnumLColor;
+class LColor_color;
class FuncRequest;
class LatexRunParams;
class LyXCursor;
///
NEWLINE_CODE,
///
- BRANCH_CODE
+ BRANCH_CODE,
+ ///
+ BOX_CODE
};
///
HIGHLY_EDITABLE
};
- ///
- typedef dispatch_result RESULT;
-
///
InsetOld();
///
///
int width() const;
/// what appears in the minibuffer when opening
- virtual string const editMessage() const;
+ virtual std::string const editMessage() const;
///
virtual EDITABLE editable() const;
///
virtual bool directWrite() const;
///
- void setInsetName(string const & s) { name_ = s; }
+ void setInsetName(std::string const & s) { name_ = s; }
///
- string const & getInsetName() const { return name_; }
+ std::string const & getInsetName() const { return name_; }
///
void setOwner(UpdatableInset * inset) { owner_ = inset; }
///
UpdatableInset * owner() const { return owner_; }
///
- void setBackgroundColor(EnumLColor);
+ void setBackgroundColor(LColor_color);
///
- EnumLColor backgroundColor() const;
+ LColor_color backgroundColor() const;
///
int x() const { return top_x; }
///
* defaults to empty.
*/
virtual void addPreview(lyx::graphics::PreviewLoader &) const {}
-
- /** Find the PreviewLoader, add a LaTeX snippet to it and
- * start the loading process.
- *
- * Most insets have no interest in this capability, so the method
- * defaults to empty.
- */
- virtual void generatePreview() const {}
-
protected:
///
mutable int top_x;
///
UpdatableInset * owner_;
///
- string name_;
+ std::string name_;
/** We store the LColor::color value as an int to get LColor.h out
* of the header file.
*/
};
+/** \c InsetOld_code is a wrapper for InsetOld::Code.
+ * It can be forward-declared and passed as a function argument without
+ * having to expose inset.h.
+ */
+class InsetOld_code {
+ InsetOld::Code val_;
+public:
+ InsetOld_code(InsetOld::Code val) : val_(val) {}
+ operator InsetOld::Code() const{ return val_; }
+};
+
+
/**
* returns true if pointer argument is valid
* and points to an editable inset