mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
* 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:
parent
36f6966af7
commit
48ab3bd01e
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user