#include "GuiDocument.h"
+#include "GuiView.h"
+
#include "BranchList.h"
#include "buffer_funcs.h"
#include "Buffer.h"
#include "Encoding.h"
#include "FloatPlacement.h"
#include "FuncRequest.h"
-#include "gettext.h"
+#include "support/gettext.h"
#include "GuiBranches.h"
#include "Language.h"
#include "LaTeXFeatures.h"
#include "insets/InsetListingsParams.h"
+#include "support/FileName.h"
+#include "support/filetools.h"
#include "support/lstrings.h"
#include <boost/bind.hpp>
-GuiDocument::GuiDocument(LyXView & lv)
+GuiDocument::GuiDocument(GuiView & lv)
: GuiDialog(lv, "document")
{
setupUi(this);
// Embedded files
// FIXME
+
+ // GuiDocument is special because some change in there might affect other
+ // dialogs. It is then better to make sure that all dialogs are in sync
+ // with current document settings.
+ lyxview().updateBufferDependent(true);
+ lyxview().updateLayoutList();
+ lyxview().updateToolbars();
}
}
-Dialog * createGuiDocument(LyXView & lv) { return new GuiDocument(lv); }
+Dialog * createGuiDocument(GuiView & lv) { return new GuiDocument(lv); }
} // namespace frontend