summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
24319e6)
* src/mathed/math_fracinset.[Ch]
(MathFracInset::extraBraces): new, return true for \atop
* src/mathed/math_binominset.[Ch]
(MathBinomInset::extraBraces): new, return true for \choose
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14470
a592a061-630c-0410-9148-
cb99ea01b6c8
+bool MathBinomInset::extraBraces() const
+{
+ return choose_;
+}
+
+
void MathBinomInset::write(WriteStream & os) const
{
if (choose_)
void MathBinomInset::write(WriteStream & os) const
{
if (choose_)
void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void draw(PainterInfo &, int x, int y) const;
void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void draw(PainterInfo &, int x, int y) const;
+ ///
+ bool extraBraces() const;
private:
virtual std::auto_ptr<InsetBase> doClone() const;
///
private:
virtual std::auto_ptr<InsetBase> doClone() const;
///
+bool MathFracInset::extraBraces() const
+{
+ return kind_ == ATOP;
+}
+
+
void MathFracInset::maple(MapleStream & os) const
{
os << '(' << cell(0) << ")/(" << cell(1) << ')';
void MathFracInset::maple(MapleStream & os) const
{
os << '(' << cell(0) << ")/(" << cell(1) << ')';
MathFracInset const * asFracInset() const;
///
std::string name() const;
MathFracInset const * asFracInset() const;
///
std::string name() const;
+ ///
+ bool extraBraces() const;
///
void write(WriteStream & os) const;
///
void write(WriteStream & os) const;