]> git.lyx.org Git - features.git/commitdiff
* InsetMathMBox.h:
authorAbdelrazak Younes <younes@lyx.org>
Fri, 23 Feb 2007 08:27:03 +0000 (08:27 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 23 Feb 2007 08:27:03 +0000 (08:27 +0000)
  - 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

src/mathed/InsetMathMBox.C
src/mathed/InsetMathMBox.h

index 57bcef336968043383b6571a7b21539fb73aa330..864e54cf21fef547134b392b4aff81a5e33b1095 100644 (file)
@@ -34,6 +34,13 @@ using std::auto_ptr;
 using std::endl;
 
 
+InsetMathMBox::InsetMathMBox()
+{
+       text_.paragraphs().clear();
+       text_.paragraphs().push_back(Paragraph());
+}
+
+
 InsetMathMBox::InsetMathMBox(LyXLayout_ptr const & layout)
 {
        text_.paragraphs().clear();
index 3581efa495ea7293c4b9c933eaf6835ffffa2690..a3ee6fbfd405cc790d42e7c699798084735c803b 100644 (file)
@@ -9,6 +9,10 @@
  * Full author contact details are available in file CREDITS.
  */
 
+#define MATH_MBOX
+
+#ifdef MATH_MBOX
+
 #ifndef MATH_MBOXINSET_H
 #define MATH_MBOXINSET_H
 
@@ -26,7 +30,9 @@ class BufferView;
 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
@@ -61,4 +67,7 @@ private:
 
 
 } // namespace lyx
-#endif
+
+#endif //MATH_MBOXINSET_H
+
+#endif //MATH_MBOX