class LyXText;
class LyXView;
class ParIterator;
-
-namespace lyx {
-namespace frontend {
-class Painter;
-class WorkArea;
-}
-}
+class ViewMetricsInfo;
namespace Update {
enum flags {
* Create a view with the given owner main window,
* of the given dimensions.
*/
- BufferView(LyXView * owner, lyx::frontend::WorkArea * workArea);
+ BufferView(LyXView * owner);
~BufferView();
/// return the buffer being viewed
Buffer * buffer() const;
- /// return the painter object for drawing onto the view
- lyx::frontend::Painter & painter() const;
-
/// return the owning main view
LyXView * owner() const;
/// switch between primary and secondary keymaps for RTL entry
void switchKeyMap();
- /// get the contents of the window system clipboard
- std::string const getClipboard() const;
- /// fill the window system clipboard
- void stuffClipboard(std::string const &) const;
- /// tell the window system we have a selection
- void haveSelection(bool sel);
-
/// return true for events that will handle
FuncStatus getStatus(FuncRequest const & cmd);
/// execute the given function
*/
void putSelectionAt(DocIterator const & cur,
int length, bool backwards);
- ///
- bool const repaintAll() const;
- ///
- void const repaintAll(bool r) const;
+ ///
+ ViewMetricsInfo const & viewMetricsInfo();
private:
///
class Pimpl;