2022-06-08 21:38:26 +08:00
|
|
|
/*
|
|
|
|
Copyright (c) 2008-2022 Jan W. Krieger (<jan@jkrieger.de>)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This software is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Lesser General Public License (LGPL) as published by
|
|
|
|
the Free Software Foundation, either version 2.1 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Lesser General Public License (LGPL) for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License (LGPL)
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "jkqtmathtext/nodes/jkqtmathtextdecoratednode.h"
|
|
|
|
#include "jkqtmathtext/jkqtmathtexttools.h"
|
|
|
|
#include "jkqtmathtext/jkqtmathtext.h"
|
|
|
|
#include "jkqtcommon/jkqtpcodestructuring.h"
|
|
|
|
#include "jkqtcommon/jkqtpstringtools.h"
|
|
|
|
#include <cmath>
|
|
|
|
#include <QFontMetricsF>
|
|
|
|
#include <QDebug>
|
|
|
|
#include <QFontDatabase>
|
|
|
|
#include <QFontInfo>
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QFont>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-10 02:32:16 +08:00
|
|
|
QString JKQTMathTextDecoratedNode::DecorationType2String(JKQTMathTextDecoratedNode::DecorationType mode)
|
|
|
|
{
|
|
|
|
switch(mode) {
|
|
|
|
case MTDvec:
|
|
|
|
return "vec";
|
|
|
|
case MTDtilde:
|
|
|
|
return "tilde";
|
|
|
|
case MTDbreve:
|
|
|
|
return "breve";
|
|
|
|
case MTDwidetilde:
|
|
|
|
return "widetilde";
|
|
|
|
case MTDhat:
|
|
|
|
return "hat";
|
|
|
|
case MTDwidehat:
|
|
|
|
return "widehat";
|
|
|
|
case MTDcheck:
|
|
|
|
return "check";
|
|
|
|
case MTDwidecheck:
|
|
|
|
return "widecheck";
|
|
|
|
case MTDocirc:
|
|
|
|
return "ocirc";
|
|
|
|
case MTDdot:
|
|
|
|
return "dot";
|
|
|
|
case MTDddot:
|
|
|
|
return "ddot";
|
|
|
|
case MTDbar:
|
|
|
|
return "bar";
|
|
|
|
case MTDarrow:
|
|
|
|
return "arrow";
|
|
|
|
case MTDoverline:
|
|
|
|
return "overline";
|
|
|
|
case MTDdoubleoverline:
|
|
|
|
return "double overline";
|
|
|
|
case MTDunderline:
|
|
|
|
return "underline";
|
|
|
|
case MTDdoubleunderline:
|
|
|
|
return "double underline";
|
|
|
|
case MTDcancel:
|
|
|
|
return "cancel";
|
|
|
|
case MTDbcancel:
|
|
|
|
return "bcancel";
|
|
|
|
case MTDxcancel:
|
|
|
|
return "xcancel";
|
|
|
|
case MTDstrike:
|
|
|
|
return "strike";
|
|
|
|
}
|
|
|
|
return "unknown";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-06-08 21:38:26 +08:00
|
|
|
|
2022-06-10 02:32:16 +08:00
|
|
|
JKQTMathTextDecoratedNode::JKQTMathTextDecoratedNode(JKQTMathText* _parent, DecorationType decoration, JKQTMathTextNode* child):
|
2022-06-09 05:52:22 +08:00
|
|
|
JKQTMathTextSingleChildNode(child, _parent)
|
2022-06-08 21:38:26 +08:00
|
|
|
{
|
|
|
|
this->decoration=decoration;
|
|
|
|
}
|
|
|
|
|
|
|
|
JKQTMathTextDecoratedNode::~JKQTMathTextDecoratedNode() {
|
|
|
|
}
|
|
|
|
|
|
|
|
void JKQTMathTextDecoratedNode::getSizeInternal(QPainter& painter, JKQTMathTextEnvironment currentEv, double& width, double& baselineHeight, double& overallHeight, double& strikeoutPos, const JKQTMathTextNodeSize* /*prevNodeSize*/) {
|
2022-06-29 05:14:31 +08:00
|
|
|
JKQTMathTextEnvironment ev=currentEv;
|
|
|
|
double cwidth=0, cbaselineHeight=0, coverallHeight=0, cstrikeoutPos=0;
|
|
|
|
getChild()->getSize(painter, ev, cwidth, cbaselineHeight, coverallHeight, cstrikeoutPos);
|
|
|
|
const double cDescent=coverallHeight-cbaselineHeight;
|
|
|
|
const QFont font=ev.getFont(parentMathText);
|
|
|
|
const QFontMetricsF fm(font, painter.device());
|
|
|
|
const double decoSeparation=parentMathText->getDecorationSeparationFactor()*fm.ascent();
|
|
|
|
const double deco_height=parentMathText->getDecorationHeightFactor()*fm.ascent();
|
|
|
|
const double deco_ypos=cbaselineHeight+decoSeparation;
|
|
|
|
const double decoAboveAscent_ypos=fm.ascent()+decoSeparation;
|
|
|
|
const double decobelow_ypos=cDescent+decoSeparation;
|
|
|
|
const double italic_xcorrection=getNonItalicXCorretion(painter, cwidth, ev, getChild());
|
2022-06-08 21:38:26 +08:00
|
|
|
const double deco_miniwidth=((decoration==MTDtilde||decoration==MTDbreve)?fm.boundingRect("~").width():fm.boundingRect("^").width())-italic_xcorrection;
|
2022-06-29 05:14:31 +08:00
|
|
|
const double linewidth=qMax(parentMathText->ABS_MIN_LINEWIDTH, fm.lineWidth());
|
2022-06-08 21:38:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-29 05:14:31 +08:00
|
|
|
double descent=coverallHeight-cbaselineHeight;
|
|
|
|
double ascent=cbaselineHeight;
|
2022-06-08 21:38:26 +08:00
|
|
|
if (decoration==MTDbar) {
|
2022-06-29 05:14:31 +08:00
|
|
|
ascent=std::max<double>(baselineHeight+decoSeparation, decoAboveAscent_ypos)+linewidth/2.0;
|
|
|
|
} else if (decoration==MTDunderline) {
|
|
|
|
descent=std::max<double>(decobelow_ypos, cDescent)+linewidth/2.0;
|
|
|
|
} else if (decoration==MTDdoubleunderline) {
|
|
|
|
descent=std::max<double>(decobelow_ypos, cDescent)+2.5*linewidth;
|
|
|
|
} else {
|
|
|
|
ascent=deco_ypos+deco_height;
|
2022-06-08 21:38:26 +08:00
|
|
|
}
|
2022-06-29 05:14:31 +08:00
|
|
|
overallHeight=ascent+descent;
|
|
|
|
baselineHeight=ascent;
|
|
|
|
strikeoutPos=cstrikeoutPos;
|
|
|
|
width=std::max<double>(deco_miniwidth,cwidth);
|
2022-06-08 21:38:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
double JKQTMathTextDecoratedNode::draw(QPainter& painter, double x, double y, JKQTMathTextEnvironment currentEv, const JKQTMathTextNodeSize* /*prevNodeSize*/) {
|
|
|
|
doDrawBoxes(painter, x, y, currentEv);
|
|
|
|
JKQTMathTextEnvironment ev=currentEv;
|
2022-06-29 05:14:31 +08:00
|
|
|
double cwidth=0, cbaselineHeight=0, coverallHeight=0, cstrikeoutPos=0;
|
|
|
|
getChild()->getSize(painter, ev, cwidth, cbaselineHeight, coverallHeight, cstrikeoutPos);
|
|
|
|
const double cDescent=coverallHeight-cbaselineHeight;
|
2022-06-09 05:52:22 +08:00
|
|
|
const QFont font=ev.getFont(parentMathText);
|
2022-06-08 21:38:26 +08:00
|
|
|
const QFontMetricsF fm(font, painter.device());
|
|
|
|
const double width_X=fm.boundingRect("X").width();
|
|
|
|
const double width_x=fm.boundingRect("x").width();
|
|
|
|
const double width_dot=fm.boundingRect(".").width()/2.0;
|
2022-06-29 05:14:31 +08:00
|
|
|
const double decoSeparation=parentMathText->getDecorationSeparationFactor()*fm.ascent();
|
|
|
|
const double linewidth=qMax(parentMathText->ABS_MIN_LINEWIDTH, fm.lineWidth());
|
|
|
|
const double deco_height=parentMathText->getDecorationHeightFactor()*fm.ascent();
|
|
|
|
const double decoAboveAscent_ypos=y-fm.ascent()-decoSeparation;
|
|
|
|
const double strike_ypos=y-cbaselineHeight/2.0;
|
|
|
|
const double decobelow_ypos=y+cDescent+decoSeparation;
|
|
|
|
const double italic_xcorrection=getNonItalicXCorretion(painter, cwidth, ev, getChild());
|
2022-06-09 05:52:22 +08:00
|
|
|
const double deco_xoffset=parentMathText->getDecorationWidthReductionXFactor()*width_X/2.0;
|
2022-06-29 05:14:31 +08:00
|
|
|
const double deco_width=std::max<double>(width_x*0.5,cwidth-2.0*deco_xoffset-italic_xcorrection);
|
2022-06-08 21:38:26 +08:00
|
|
|
const double deco_vecwidth=width_x*0.33;
|
2022-06-29 05:14:31 +08:00
|
|
|
const double deco_vecheight=deco_height*0.33;
|
|
|
|
const double deco_miniwidth=((decoration==MTDtilde||decoration==MTDbreve)?fm.boundingRect("j").width():fm.boundingRect("^").width())-italic_xcorrection;
|
|
|
|
const double decotop_xcenter=x+italic_xcorrection+(cwidth-italic_xcorrection)/2.0;
|
|
|
|
const double decotop_xstart=decotop_xcenter-deco_width/2.0+linewidth/2.0;
|
|
|
|
const double decotop_xend=decotop_xcenter+deco_width/2.0-linewidth/2.0;
|
|
|
|
const double decobot_xstart=x+linewidth/2.0;
|
|
|
|
const double decobot_xend=x+cwidth-italic_xcorrection-linewidth/2.0;
|
2022-06-08 21:38:26 +08:00
|
|
|
const double decobot_xcenter=(decobot_xstart+decobot_xend)/2.0;
|
2022-06-29 05:14:31 +08:00
|
|
|
const double deco_ypos=y-cbaselineHeight-decoSeparation-linewidth/2.0;
|
|
|
|
const double deco_ytop=y-cbaselineHeight-decoSeparation-deco_height+linewidth/2.0;
|
|
|
|
const double deco_ycenter=y-cbaselineHeight-decoSeparation-deco_height/2.0;
|
2022-06-08 21:38:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QPen pold=painter.pen();
|
|
|
|
QPen p=pold;
|
|
|
|
p.setColor(ev.color);
|
2022-06-29 05:14:31 +08:00
|
|
|
p.setWidthF(linewidth);//ceil(currentEv.fontSize/16.0));
|
|
|
|
p.setCapStyle(Qt::RoundCap);
|
|
|
|
p.setJoinStyle(Qt::RoundJoin);
|
2022-06-08 21:38:26 +08:00
|
|
|
|
2022-06-20 04:36:38 +08:00
|
|
|
double xnew=getChild()->draw(painter, x, y, ev);
|
2022-06-08 21:38:26 +08:00
|
|
|
|
|
|
|
if (decoration==MTDvec) {
|
|
|
|
painter.setPen(p);
|
|
|
|
QPolygonF poly;
|
2022-06-29 05:14:31 +08:00
|
|
|
poly<<QPointF(decotop_xstart, deco_ypos)<<QPointF(decotop_xend, deco_ypos)<<QPointF(decotop_xend-deco_vecwidth, deco_ypos-deco_vecheight);
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.drawPolyline(poly);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDoverline) {
|
|
|
|
painter.setPen(p);
|
|
|
|
const QLineF l(decotop_xstart, deco_ypos, decotop_xend, deco_ypos);
|
|
|
|
if (l.length()>0) painter.drawLine(l);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDbar) {
|
|
|
|
painter.setPen(p);
|
|
|
|
const QLineF l(decotop_xstart, decoAboveAscent_ypos, decotop_xend, decoAboveAscent_ypos);
|
|
|
|
if (l.length()>0) painter.drawLine(l);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDdoubleoverline) {
|
|
|
|
painter.setPen(p);
|
|
|
|
const QLineF l(decotop_xstart, deco_ypos, decotop_xend, deco_ypos);
|
|
|
|
if (l.length()>0) painter.drawLine(l);
|
|
|
|
const QLineF l2(decotop_xstart, deco_ypos-2.0*p.widthF(), decotop_xend, deco_ypos-2.0*p.widthF());
|
|
|
|
if (l2.length()>0) painter.drawLine(l2);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDunderline) {
|
|
|
|
painter.setPen(p);
|
|
|
|
const QLineF l(decobot_xstart, decobelow_ypos, decobot_xend, decobelow_ypos);
|
|
|
|
if (l.length()>0) painter.drawLine(l);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDdoubleunderline) {
|
|
|
|
painter.setPen(p);
|
|
|
|
const QLineF l(decobot_xstart, decobelow_ypos, decobot_xend, decobelow_ypos);
|
|
|
|
if (l.length()>0) painter.drawLine(l);
|
|
|
|
QLineF l2(decobot_xstart, decobelow_ypos+2.0*p.widthF(), decobot_xend, decobelow_ypos+2.0*p.widthF());
|
|
|
|
if (l2.length()>0) painter.drawLine(l2);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDarrow) {
|
|
|
|
painter.setPen(p);
|
2022-06-29 05:14:31 +08:00
|
|
|
const QLineF l(decotop_xstart, deco_ycenter, decotop_xend, deco_ycenter);
|
2022-06-08 21:38:26 +08:00
|
|
|
if (l.length()>0) painter.drawLine(l);
|
|
|
|
QPolygonF poly;
|
2022-06-29 05:14:31 +08:00
|
|
|
poly<<QPointF(decotop_xend-deco_vecwidth, deco_ypos)<<QPointF(decotop_xend, deco_ycenter)<<QPointF(decotop_xend-deco_vecwidth, deco_ytop);
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.drawPolyline(poly);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDhat) {
|
|
|
|
painter.setPen(p);
|
|
|
|
QPolygonF poly;
|
2022-06-29 05:14:31 +08:00
|
|
|
poly<<QPointF(decotop_xcenter-0.5*deco_miniwidth, deco_ypos)<<QPointF(decotop_xcenter, deco_ycenter)<<QPointF(decotop_xcenter+0.5*deco_miniwidth, deco_ypos);
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.drawPolyline(poly);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDwidehat) {
|
|
|
|
painter.setPen(p);
|
|
|
|
QPolygonF poly;
|
2022-06-29 05:14:31 +08:00
|
|
|
poly<<QPointF(decotop_xstart, deco_ypos)<<QPointF(decotop_xcenter, deco_ytop)<<QPointF(decotop_xend, deco_ypos);
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.drawPolyline(poly);
|
|
|
|
painter.setPen(pold);
|
|
|
|
|
|
|
|
} else if (decoration==MTDcheck) {
|
|
|
|
painter.setPen(p);
|
|
|
|
QPolygonF poly;
|
2022-06-29 05:14:31 +08:00
|
|
|
poly<<QPointF(decotop_xcenter-0.5*deco_miniwidth, deco_ycenter)<<QPointF(decotop_xcenter, deco_ypos)<<QPointF(decotop_xcenter+0.5*deco_miniwidth, deco_ycenter);
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.drawPolyline(poly);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDwidecheck) {
|
|
|
|
painter.setPen(p);
|
|
|
|
QPolygonF poly;
|
2022-06-29 05:14:31 +08:00
|
|
|
poly<<QPointF(decotop_xstart, deco_ytop)<<QPointF(decotop_xcenter, deco_ypos)<<QPointF(decotop_xend, deco_ytop);
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.drawPolyline(poly);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDbreve) {
|
|
|
|
painter.setPen(p);
|
|
|
|
QPainterPath path;
|
|
|
|
const double x0=decotop_xcenter-deco_miniwidth/2.0;
|
|
|
|
const double x1=decotop_xcenter+deco_miniwidth/2.0;
|
|
|
|
path.moveTo(x0, deco_ypos);
|
2022-06-29 05:14:31 +08:00
|
|
|
path.cubicTo(x0, deco_ytop, x1, deco_ytop , x1, deco_ypos);
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.drawPath(path);
|
|
|
|
painter.setPen(pold);
|
|
|
|
|
|
|
|
} else if (decoration==MTDtilde) {
|
2022-06-29 05:14:31 +08:00
|
|
|
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.setPen(p);
|
|
|
|
QPainterPath path;
|
|
|
|
const double x0=decotop_xcenter-deco_miniwidth/2.0;
|
|
|
|
const double x1=decotop_xcenter+deco_miniwidth/2.0;
|
2022-06-29 05:14:31 +08:00
|
|
|
path.moveTo(x0, deco_ycenter);
|
|
|
|
path.cubicTo((x0+x1)/2.0, deco_ypos, (x0+x1)/2.0, deco_ytop , x1, deco_ycenter);
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.drawPath(path);
|
|
|
|
painter.setPen(pold);
|
|
|
|
|
|
|
|
} else if (decoration==MTDwidetilde) {
|
|
|
|
painter.setPen(p);
|
|
|
|
QPainterPath path;
|
|
|
|
const double x0=decotop_xstart;
|
|
|
|
const double x1=decotop_xend;
|
2022-06-29 05:14:31 +08:00
|
|
|
path.moveTo(x0, deco_ycenter);
|
|
|
|
path.cubicTo((x0+x1)/2.0, deco_ypos, (x0+x1)/2.0, deco_ytop , x1, deco_ycenter);
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.drawPath(path);
|
|
|
|
painter.setPen(pold);
|
|
|
|
|
|
|
|
} else if (decoration==MTDocirc) {
|
|
|
|
painter.setPen(p);
|
|
|
|
const QBrush bold=painter.brush();
|
|
|
|
painter.setBrush(Qt::NoBrush);
|
2022-06-29 05:14:31 +08:00
|
|
|
const double r=qMin(width_dot/1.5, deco_height/2.0-linewidth/2.0);
|
|
|
|
painter.drawEllipse(QPointF(decotop_xcenter, deco_ycenter), r, r);
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.setBrush(bold);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDdot) {
|
|
|
|
p.setWidthF(0.01);
|
|
|
|
painter.setPen(p);
|
|
|
|
QBrush b=painter.brush();
|
|
|
|
const QBrush bold=b;
|
|
|
|
b.setColor(ev.color);
|
|
|
|
b.setStyle(Qt::SolidPattern);
|
|
|
|
painter.setBrush(b);
|
2022-06-29 05:14:31 +08:00
|
|
|
painter.drawEllipse(QPointF(decotop_xcenter, deco_ycenter), width_dot/2.0, width_dot/2.0);
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.setBrush(bold);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDddot) {
|
|
|
|
p.setWidthF(0.01);
|
|
|
|
painter.setPen(p);
|
|
|
|
QBrush b=painter.brush();
|
|
|
|
const QBrush bold=b;
|
|
|
|
b.setColor(ev.color);
|
|
|
|
b.setStyle(Qt::SolidPattern);
|
|
|
|
painter.setBrush(b);
|
2022-06-29 05:14:31 +08:00
|
|
|
painter.drawEllipse(QPointF(decotop_xcenter-width_dot, deco_ycenter), width_dot/2.0, width_dot/2.0);
|
|
|
|
painter.drawEllipse(QPointF(decotop_xcenter+width_dot, deco_ycenter), width_dot/2.0, width_dot/2.0);
|
2022-06-08 21:38:26 +08:00
|
|
|
painter.setBrush(bold);
|
|
|
|
painter.setPen(pold);
|
|
|
|
painter.setBrush(bold);
|
|
|
|
} else if (decoration==MTDstrike) {
|
|
|
|
painter.setPen(p);
|
|
|
|
const QLineF l((decotop_xstart+decobot_xstart)/2.0, strike_ypos, (decotop_xend+decobot_xend)/2.0, strike_ypos);
|
|
|
|
if (l.length()>0) painter.drawLine(l);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDcancel) {
|
|
|
|
painter.setPen(p);
|
|
|
|
const QLineF l(decobot_xstart, decobelow_ypos, decotop_xend, deco_ypos);
|
|
|
|
if (l.length()>0) painter.drawLine(l);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDbcancel) {
|
|
|
|
painter.setPen(p);
|
|
|
|
const QLineF l(decobot_xstart, deco_ypos, decotop_xend, decobelow_ypos);
|
|
|
|
if (l.length()>0) painter.drawLine(l);
|
|
|
|
painter.setPen(pold);
|
|
|
|
} else if (decoration==MTDxcancel) {
|
|
|
|
painter.setPen(p);
|
|
|
|
const QLineF l(decobot_xstart, deco_ypos, decotop_xend, decobelow_ypos);
|
|
|
|
if (l.length()>0) painter.drawLine(l);
|
|
|
|
const QLineF l1(decobot_xstart, decobelow_ypos, decotop_xend, deco_ypos);
|
|
|
|
if (l1.length()>0) painter.drawLine(l1);
|
|
|
|
painter.setPen(pold);
|
|
|
|
}
|
|
|
|
return xnew;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool JKQTMathTextDecoratedNode::toHtml(QString &/*html*/, JKQTMathTextEnvironment /*currentEv*/, JKQTMathTextEnvironment /*defaultEv*/) {
|
|
|
|
//QString f;
|
|
|
|
//JKQTMathTextEnvironment ev=currentEv;
|
|
|
|
|
|
|
|
//bool ok=child->toHtml(html, ev, defaultEv);
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString JKQTMathTextDecoratedNode::getTypeName() const
|
|
|
|
{
|
|
|
|
return "MTdecoratedNode";
|
|
|
|
}
|
|
|
|
|
2022-06-10 02:32:16 +08:00
|
|
|
JKQTMathTextDecoratedNode::DecorationType JKQTMathTextDecoratedNode::getDecoration() const {
|
2022-06-08 21:38:26 +08:00
|
|
|
return this->decoration;
|
|
|
|
}
|
|
|
|
|
|
|
|
|