it is done in-place, into the same directory as the original image.
This needs to be fixed in the src/converter.C file
[ This is presumed to be fixed, needs testing.]
-
+
+ * We do not dither or resize the image in a WYSIWYM way, we load it at
+ its original size and color, resizing is done in the final output,
+ but not in the LyX window.
+
TODO Before initial production release:
* Replace insetfig everywhere
* Read it's file format
#include <algorithm> // For the std::max
#include "support/lyxmanip.h"
#include "debug.h"
+#include "gettext.h"
extern string system_tempdir;
: cacheHandle(0), imageLoaded(false)
{}
+
InsetGraphics::~InsetGraphics()
{
// Emits the hide signal to the dialog connected (if any)
hideDialog();
}
+
char const *
InsetGraphics::statusMessage() const
{
return msg;
}
+
int InsetGraphics::ascent(BufferView *, LyXFont const &) const
{
LyXImage * pixmap = 0;
}
}
+
void InsetGraphics::draw(BufferView * bv, LyXFont const & font,
int baseline, float & x, bool) const
{
updateInset();
}
-static
+
+namespace {
+
void formatResize(ostream & os, string const & key,
InsetGraphicsParams::Resize resizeType, double size)
{
}
}
+} // namespace anon
+
+
string const
InsetGraphics::createLatexOptions() const
{
}
-
string const
InsetGraphics::prepareFile(Buffer const *buf) const
{
return outfile;
}
+
int InsetGraphics::Latex(Buffer const *buf, ostream & os,
bool /*fragile*/, bool/*fs*/) const
{
return 0;
}
+
// For explanation on inserting graphics into DocBook checkout:
// http://linuxdoc.org/LDP/LDP-Author-Guide/inserting-pictures.html
// See also the docbook guide at http://www.docbook.org/
features.subfigure = true;
}
+
// Update the inset after parameters changed (read from file or changed in
// dialog.
void InsetGraphics::updateInset() const
cacheHandle = temp;
}
+
bool InsetGraphics::setParams(InsetGraphicsParams const & params)
{
// If nothing is changed, just return and say so.
return true;
}
+
InsetGraphicsParams InsetGraphics::getParams() const
{
return params;
}
+
Inset * InsetGraphics::Clone(Buffer const &) const
{
+#warning use the copy constructor instead. (Lgb)
InsetGraphics * newInset = new InsetGraphics;
newInset->cacheHandle = cacheHandle;