#include "Language.h"
#include "LaTeX.h"
#include "Layout.h"
+#include "LayoutPtr.h"
#include "LyX.h"
-#include "lyxlayout_ptr_fwd.h"
#include "TextClass.h"
#include "TextClassList.h"
#include "Paragraph.h"
namespace Alert = frontend::Alert;
-bool checkIfLoaded(FileName const & fn)
-{
- return theBufferList().getBuffer(fn.absFilename());
-}
-
-
Buffer * checkAndLoadLyXFile(FileName const & filename)
{
// File already open?
if (theBufferList().close(checkBuffer, false))
// Load it again.
return checkAndLoadLyXFile(filename);
- else
- // The file could not be closed.
- return 0;
+ // The file could not be closed.
+ return 0;
}
if (filename.isReadable()) {
cbuf.tocBackend().update();
if (!childonly)
cbuf.structureChanged();
- // FIXME
- // the embedding signal is emitted with structureChanged signal
- // this is inaccurate so these two will be separated later.
- //cbuf.embeddedFiles().update();
- //cbuf.embeddingChanged();
}