#ifndef BUFFER_VIEW_H
#define BUFFER_VIEW_H
+#include "DocumentClassPtr.h"
#include "update_flags.h"
#include "support/strfwd.h"
/// Scroll to the cursor.
/// \param recenter Whether the cursor should be centered on screen
bool scrollToCursor(DocIterator const & dit, bool recenter);
- /// LFUN_SCROLL Helper.
- void lfunScroll(FuncRequest const & cmd);
/// scroll down document by the given number of pixels.
int scrollDown(int pixels);
/// scroll up document by the given number of pixels.
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_;
///