mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Whitespace ONLY!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4101 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5431577846
commit
c72a67965a
@ -1,3 +1,7 @@
|
|||||||
|
2002-05-01 Angus Leeming <a.leeming@ic.ac.uk>
|
||||||
|
|
||||||
|
* InsetgraphicsParams.[Ch]: whitespace.
|
||||||
|
|
||||||
2002-04-28 Dekel Tsur <dekelts@tau.ac.il>
|
2002-04-28 Dekel Tsur <dekelts@tau.ac.il>
|
||||||
|
|
||||||
* insetfloatlist.C (getScreenLabel): Fix crash in the case where
|
* insetfloatlist.C (getScreenLabel): Fix crash in the case where
|
||||||
|
@ -129,27 +129,27 @@ bool operator==(InsetGraphicsParams const & left,
|
|||||||
InsetGraphicsParams const & right)
|
InsetGraphicsParams const & right)
|
||||||
{
|
{
|
||||||
if (left.filename == right.filename &&
|
if (left.filename == right.filename &&
|
||||||
left.bb == right.bb &&
|
left.bb == right.bb &&
|
||||||
left.draft == right.draft &&
|
left.draft == right.draft &&
|
||||||
left.clip == right.clip &&
|
left.clip == right.clip &&
|
||||||
left.display == right.display &&
|
left.display == right.display &&
|
||||||
left.subcaption == right.subcaption &&
|
left.subcaption == right.subcaption &&
|
||||||
left.noUnzip == right.noUnzip &&
|
left.noUnzip == right.noUnzip &&
|
||||||
left.subcaptionText == right.subcaptionText &&
|
left.subcaptionText == right.subcaptionText &&
|
||||||
left.keepAspectRatio == right.keepAspectRatio &&
|
left.keepAspectRatio == right.keepAspectRatio &&
|
||||||
left.width == right.width &&
|
left.width == right.width &&
|
||||||
left.height == right.height &&
|
left.height == right.height &&
|
||||||
left.scale == right.scale &&
|
left.scale == right.scale &&
|
||||||
left.size_type == right.size_type &&
|
left.size_type == right.size_type &&
|
||||||
left.lyxsize_type == right.lyxsize_type &&
|
left.lyxsize_type == right.lyxsize_type &&
|
||||||
left.lyxwidth == right.lyxwidth &&
|
left.lyxwidth == right.lyxwidth &&
|
||||||
left.lyxheight == right.lyxheight &&
|
left.lyxheight == right.lyxheight &&
|
||||||
left.lyxscale == right.lyxscale &&
|
left.lyxscale == right.lyxscale &&
|
||||||
left.rotate == right.rotate &&
|
left.rotate == right.rotate &&
|
||||||
left.rotateOrigin == right.rotateOrigin &&
|
left.rotateOrigin == right.rotateOrigin &&
|
||||||
lyx::float_equal(left.rotateAngle, right.rotateAngle, 0.001 &&
|
lyx::float_equal(left.rotateAngle, right.rotateAngle, 0.001 &&
|
||||||
left.special == right.special)
|
left.special == right.special)
|
||||||
)
|
)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@ -178,22 +178,22 @@ void InsetGraphicsParams::Write(ostream & os) const
|
|||||||
os << "\tdisplay " << displayTranslator.find(display) << '\n';
|
os << "\tdisplay " << displayTranslator.find(display) << '\n';
|
||||||
// Save the subcaption status
|
// Save the subcaption status
|
||||||
if (subcaption)
|
if (subcaption)
|
||||||
os << "\tsubcaption\n";
|
os << "\tsubcaption\n";
|
||||||
if (!subcaptionText.empty())
|
if (!subcaptionText.empty())
|
||||||
os << "\tsubcaptionText \"" << subcaptionText << '\"' << '\n';
|
os << "\tsubcaptionText \"" << subcaptionText << '\"' << '\n';
|
||||||
if (noUnzip)
|
if (noUnzip)
|
||||||
os << "\tnoUnzip\n";
|
os << "\tnoUnzip\n";
|
||||||
// we always need the size type
|
// we always need the size type
|
||||||
// 0: no special
|
// 0: no special
|
||||||
// 1: width/height combination
|
// 1: width/height combination
|
||||||
// 2: scale
|
// 2: scale
|
||||||
os << "\tsize_type " << size_type << '\n';
|
os << "\tsize_type " << size_type << '\n';
|
||||||
if (!width.zero())
|
if (!width.zero())
|
||||||
os << "\twidth " << width.asString() << '\n';
|
os << "\twidth " << width.asString() << '\n';
|
||||||
if (!height.zero())
|
if (!height.zero())
|
||||||
os << "\theight " << height.asString() << '\n';
|
os << "\theight " << height.asString() << '\n';
|
||||||
if (scale != 0)
|
if (scale != 0)
|
||||||
os << "\tscale " << scale << '\n';
|
os << "\tscale " << scale << '\n';
|
||||||
if (keepAspectRatio)
|
if (keepAspectRatio)
|
||||||
os << "\tkeepAspectRatio\n";
|
os << "\tkeepAspectRatio\n";
|
||||||
if (rotate)
|
if (rotate)
|
||||||
@ -207,11 +207,11 @@ void InsetGraphicsParams::Write(ostream & os) const
|
|||||||
// the values for the view in lyx
|
// the values for the view in lyx
|
||||||
os << "\tlyxsize_type " << lyxsize_type << '\n';
|
os << "\tlyxsize_type " << lyxsize_type << '\n';
|
||||||
if (!lyxwidth.zero()) // the lyx-viewsize
|
if (!lyxwidth.zero()) // the lyx-viewsize
|
||||||
os << "\tlyxwidth " << lyxwidth.asString() << '\n';
|
os << "\tlyxwidth " << lyxwidth.asString() << '\n';
|
||||||
if (!lyxheight.zero())
|
if (!lyxheight.zero())
|
||||||
os << "\tlyxheight " << lyxheight.asString();
|
os << "\tlyxheight " << lyxheight.asString();
|
||||||
if (lyxscale != 0)
|
if (lyxscale != 0)
|
||||||
os << "\tlyxscale " << lyxscale << '\n';
|
os << "\tlyxscale " << lyxscale << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -222,8 +222,8 @@ bool InsetGraphicsParams::Read(LyXLex & lex, string const& token)
|
|||||||
filename = lex.getString();
|
filename = lex.getString();
|
||||||
} else if (token == "BoundingBox") {
|
} else if (token == "BoundingBox") {
|
||||||
for (int i=0; i<4 ;i++) {
|
for (int i=0; i<4 ;i++) {
|
||||||
lex.next();
|
lex.next();
|
||||||
bb += (lex.getString()+" ");
|
bb += (lex.getString()+" ");
|
||||||
}
|
}
|
||||||
} else if (token == "clip") {
|
} else if (token == "clip") {
|
||||||
clip = true;
|
clip = true;
|
||||||
@ -243,11 +243,15 @@ bool InsetGraphicsParams::Read(LyXLex & lex, string const& token)
|
|||||||
} else if (token == "size_type") {
|
} else if (token == "size_type") {
|
||||||
lex.next();
|
lex.next();
|
||||||
switch (lex.getInteger()) {
|
switch (lex.getInteger()) {
|
||||||
case 0 : size_type = DEFAULT_SIZE;
|
case 0:
|
||||||
|
size_type = DEFAULT_SIZE;
|
||||||
break;
|
break;
|
||||||
case 1 : size_type = WH;
|
case 1:
|
||||||
|
size_type = WH;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
size_type = SCALE;
|
||||||
break;
|
break;
|
||||||
case 2 : size_type = SCALE;
|
|
||||||
}
|
}
|
||||||
} else if (token == "width") {
|
} else if (token == "width") {
|
||||||
lex.next();
|
lex.next();
|
||||||
@ -273,11 +277,15 @@ bool InsetGraphicsParams::Read(LyXLex & lex, string const& token)
|
|||||||
} else if (token == "lyxsize_type") {
|
} else if (token == "lyxsize_type") {
|
||||||
lex.next();
|
lex.next();
|
||||||
switch (lex.getInteger()) {
|
switch (lex.getInteger()) {
|
||||||
case 0 : lyxsize_type = DEFAULT_SIZE;
|
case 0:
|
||||||
|
lyxsize_type = DEFAULT_SIZE;
|
||||||
break;
|
break;
|
||||||
case 1 : lyxsize_type = WH;
|
case 1:
|
||||||
|
lyxsize_type = WH;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
lyxsize_type = SCALE;
|
||||||
break;
|
break;
|
||||||
case 2 : lyxsize_type = SCALE;
|
|
||||||
}
|
}
|
||||||
} else if (token == "lyxwidth") {
|
} else if (token == "lyxwidth") {
|
||||||
lex.next();
|
lex.next();
|
||||||
|
@ -73,9 +73,9 @@ struct InsetGraphicsParams
|
|||||||
string special;
|
string special;
|
||||||
/// How to display the image inside lyx
|
/// How to display the image inside lyx
|
||||||
DisplayType display;
|
DisplayType display;
|
||||||
/// the size for the view inside lyx
|
|
||||||
/// Typ of the LyXView, same as for latex
|
/// Typ of the LyXView, same as for latex
|
||||||
sizeType lyxsize_type;
|
sizeType lyxsize_type;
|
||||||
|
/// the size for the view inside lyx
|
||||||
LyXLength lyxwidth;
|
LyXLength lyxwidth;
|
||||||
///
|
///
|
||||||
LyXLength lyxheight;
|
LyXLength lyxheight;
|
||||||
|
Loading…
Reference in New Issue
Block a user