#ifndef BUFFER_VIEW_H
#define BUFFER_VIEW_H
+#include "DocumentClassPtr.h"
#include "update_flags.h"
#include "support/strfwd.h"
/// Ensure that the BufferView cursor is visible.
/// This method will automatically scroll and update the BufferView
/// if needed.
- void showCursor();
+ void showCursor();
/// Ensure the passed cursor \p dit is visible.
/// This method will automatically scroll and update the BufferView
/// if needed.
void clearLastInset(Inset * inset) const;
/// Is the mouse hovering a clickable inset or element?
bool clickableInset() const;
+ ///
+ void makeDocumentClass();
private:
/// noncopyable
/// when it is allowed to scroll below the document.
int minVisiblePart();
- /// Search recursively for the the innermost inset that covers (x, y) position.
+ /// Search recursively for the innermost inset that covers (x, y) position.
/// \retval 0 if no inset is found.
Inset const * getCoveringInset(
Text const & text, //< The Text where we start searching.
void updateHoveredInset() const;
///
- void updateDocumentClass(DocumentClass const * const olddc);
+ void updateDocumentClass(DocumentClassConstPtr olddc);
///
int width_;
///