mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
remove default constructor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1655 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bf6b9d1e18
commit
0452a89961
@ -1,3 +1,11 @@
|
|||||||
|
2001-03-01 Lars Gullik Bjřnnes <larsbj@trylle.birdstep.com>
|
||||||
|
|
||||||
|
* math_macroarg.h: remove default constructor
|
||||||
|
|
||||||
|
* math_macroarg.C: include Lsstream.h instead of debug.h
|
||||||
|
(MathMacroArgument): remove default constructor
|
||||||
|
(Write): add std:: on ostream arg
|
||||||
|
|
||||||
2001-02-23 John Levon <moz@compsoc.man.ac.uk>
|
2001-02-23 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
* math_parser.C:
|
* math_parser.C:
|
||||||
|
@ -6,21 +6,13 @@
|
|||||||
|
|
||||||
#include "math_macroarg.h"
|
#include "math_macroarg.h"
|
||||||
#include "mathed/support.h"
|
#include "mathed/support.h"
|
||||||
#include "debug.h"
|
#include "Lsstream.h"
|
||||||
|
|
||||||
|
|
||||||
MathMacroArgument::MathMacroArgument()
|
|
||||||
: expnd_mode_(false), number_(1)
|
|
||||||
{
|
|
||||||
SetType(LM_OT_MACRO_ARG);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
MathMacroArgument::MathMacroArgument(int n)
|
MathMacroArgument::MathMacroArgument(int n)
|
||||||
: expnd_mode_(false), number_(n)
|
: MathParInset(LM_ST_TEXT, "", LM_OT_MACRO_ARG),
|
||||||
{
|
expnd_mode_(false), number_(n)
|
||||||
SetType(LM_OT_MACRO_ARG);
|
{}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
MathedInset * MathMacroArgument::Clone()
|
MathedInset * MathMacroArgument::Clone()
|
||||||
@ -59,14 +51,15 @@ void MathMacroArgument::Metrics()
|
|||||||
} else {
|
} else {
|
||||||
std::ostringstream ost;
|
std::ostringstream ost;
|
||||||
ost << '#' << number_;
|
ost << '#' << number_;
|
||||||
width = mathed_string_width(LM_TC_TEX, size(), ost.str().c_str());
|
width = mathed_string_width(LM_TC_TEX, size(),
|
||||||
|
ost.str().c_str());
|
||||||
mathed_string_height(LM_TC_TEX, size(), ost.str().c_str(),
|
mathed_string_height(LM_TC_TEX, size(), ost.str().c_str(),
|
||||||
ascent, descent);
|
ascent, descent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MathMacroArgument::Write(ostream & os, bool fragile)
|
void MathMacroArgument::Write(std::ostream & os, bool fragile)
|
||||||
{
|
{
|
||||||
if (expnd_mode_) {
|
if (expnd_mode_) {
|
||||||
MathParInset::Write(os, fragile);
|
MathParInset::Write(os, fragile);
|
||||||
|
@ -13,8 +13,6 @@
|
|||||||
*/
|
*/
|
||||||
class MathMacroArgument : public MathParInset {
|
class MathMacroArgument : public MathParInset {
|
||||||
public:
|
public:
|
||||||
///
|
|
||||||
MathMacroArgument();
|
|
||||||
///
|
///
|
||||||
explicit
|
explicit
|
||||||
MathMacroArgument(int);
|
MathMacroArgument(int);
|
||||||
|
Loading…
Reference in New Issue
Block a user