- encapsulate within MATH_MBOX macro.
- implement default constructor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17309
a592a061-630c-0410-9148-
cb99ea01b6c8
using std::endl;
+InsetMathMBox::InsetMathMBox()
+{
+ text_.paragraphs().clear();
+ text_.paragraphs().push_back(Paragraph());
+}
+
+
InsetMathMBox::InsetMathMBox(LyXLayout_ptr const & layout)
{
text_.paragraphs().clear();
* Full author contact details are available in file CREDITS.
*/
+#define MATH_MBOX
+
+#ifdef MATH_MBOX
+
#ifndef MATH_MBOXINSET_H
#define MATH_MBOXINSET_H
class InsetMathMBox : public InsetMathDim {
public:
///
+ explicit InsetMathMBox();
explicit InsetMathMBox(LyXLayout_ptr const & layout);
+
/// this stores metrics information in cache_
bool metrics(MetricsInfo & mi, Dimension & dim) const;
/// draw according to cached metrics
} // namespace lyx
-#endif
+
+#endif //MATH_MBOXINSET_H
+
+#endif //MATH_MBOX