#include <config.h>
#include "bufferview_funcs.h"
-#include "frontends/LyXView.h"
#include "BufferView.h"
#include "paragraph.h"
#include "lyxfont.h"
#include "author.h"
#include "changes.h"
+#include "frontends/LyXView.h"
#include "frontends/Alert.h"
#include "support/lstrings.h"
+#include "insets/updatableinset.h"
+
#include "BoostFormat.h"
void emph(BufferView * bv)
// Returns the current font and depth as a message.
string const currentState(BufferView * bv)
{
- ostringstream state;
-
if (!bv->available())
return string();
+ ostringstream state;
+
LyXText * text = bv->getLyXText();
Buffer * buffer = bv->buffer();
LyXCursor const & c(text->cursor);
state << _(" at ") << ctime(&change.changetime);
state << " : ";
}
-
+
// I think we should only show changes from the default
// font. (Asger)
LyXFont font = text->real_current_font;