]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
* remove various xforms relicts, in particular:
[lyx.git] / src / BufferView.h
index 357ab9acbb34c595d1ce888b8098641bd3abf711..924637e10c1832713f24c2d28c3bc9dacb10130f 100644 (file)
@@ -34,13 +34,7 @@ class LCursor;
 class LyXText;
 class LyXView;
 class ParIterator;
-
-namespace lyx {
-namespace frontend {
-class Painter;
-class WorkArea;
-}
-}
+class ViewMetricsInfo;
 
 namespace Update {
        enum flags {
@@ -94,7 +88,7 @@ public:
         * Create a view with the given owner main window,
         * of the given dimensions.
         */
-       BufferView(LyXView * owner, lyx::frontend::WorkArea * workArea);
+       BufferView(LyXView * owner);
 
        ~BufferView();
 
@@ -103,9 +97,6 @@ public:
        /// 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;
 
@@ -187,13 +178,6 @@ public:
        /// 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
@@ -239,11 +223,9 @@ public:
         */
        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;