#include "insets/InsetBibtex.h"
#include "insets/InsetBranch.h"
#include "insets/InsetInclude.h"
-#include "insets/InsetTabular.h"
#include "insets/InsetText.h"
#include "mathed/InsetMathHull.h"
it.pop_back();
continue;
}
-
- if (iit->inset->asInsetTabular()) {
- CursorSlice slice(*iit->inset);
- size_t const numcells = slice.nargs();
- for (; slice.idx() < numcells; slice.forwardIdx()) {
- it.push_back(slice);
- updateMacros(it, scope);
- it.pop_back();
- }
- continue;
- }
// is it an external file?
if (iit->inset->lyxCode() == INCLUDE_CODE) {
static QSet<Buffer const *> busyBuffers;
static docstring previewAndDestroy(Buffer const * orig, Buffer * buffer, string const & format);
static docstring exportAndDestroy(Buffer const * orig, Buffer * buffer, string const & format);
- static docstring compileAndDestroy(Buffer const * orig, Buffer * buffer, string const & format);
static docstring saveAndDestroy(Buffer const * orig, Buffer * buffer, FileName const & fname);
// TODO syncFunc/previewFunc: use bind
#if (QT_VERSION >= 0x040400)
-docstring GuiView::GuiViewPrivate::compileAndDestroy(Buffer const * orig, Buffer * buffer, string const & format)
-{
- bool const update_unincluded =
- buffer->params().maintain_unincluded_children
- && !buffer->params().getIncludedChildren().empty();
- bool const success = buffer->doExport(format, true, update_unincluded);
- delete buffer;
- busyBuffers.remove(orig);
- return success
- ? bformat(_("Successful compilation to format: %1$s"), from_utf8(format))
- : bformat(_("Error compiling format: %1$s"), from_utf8(format));
-}
-
-
docstring GuiView::GuiViewPrivate::exportAndDestroy(Buffer const * orig, Buffer * buffer, string const & format)
{
bool const update_unincluded =
buffer->params().maintain_unincluded_children
&& !buffer->params().getIncludedChildren().empty();
- bool const success = buffer->doExport(format, false, update_unincluded);
+ bool const success = buffer->doExport(format, true, update_unincluded);
delete buffer;
busyBuffers.remove(orig);
return success
d.asyncBufferProcessing(argument,
doc_buffer,
_("Exporting ..."),
- &GuiViewPrivate::compileAndDestroy,
+ &GuiViewPrivate::exportAndDestroy,
&Buffer::doExport,
0);
break;
d.asyncBufferProcessing(argument,
(doc_buffer ? doc_buffer->masterBuffer() : 0),
docstring(),
- &GuiViewPrivate::compileAndDestroy,
+ &GuiViewPrivate::exportAndDestroy,
&Buffer::doExport,
0);
break;