* InsetMathMBox.h:

- 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
This commit is contained in:
Abdelrazak Younes 2007-02-23 08:27:03 +00:00
parent 36f6966af7
commit 48ab3bd01e
2 changed files with 17 additions and 1 deletions

View 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();

View 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