]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiViewSource.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiViewSource.h
index 1b2add4ad91de1dfcac4b57cdf563b9b5a436eab..d5553ac2ea49a606234bdb7f470f9a7f0fc48e95 100644 (file)
@@ -20,8 +20,6 @@
 #include "GuiView.h"
 #include "qt_helpers.h"
 
-#include "support/debug.h"
-
 #include <QDockWidget>
 #include <QString>
 #include <QTextCharFormat>
@@ -39,7 +37,9 @@ class ViewSourceWidget : public QWidget, public Ui::ViewSourceUi
        Q_OBJECT
 
 public:
-       ViewSourceWidget(GuiViewSource &);
+       ViewSourceWidget();
+       ///
+       void setBufferView(BufferView const * bv);
 
 public Q_SLOTS:
        // update content
@@ -47,7 +47,7 @@ public Q_SLOTS:
 
 private:
        ///
-       GuiViewSource & controller_;    
+       BufferView const * bv_;
        ///
        QTextDocument * document_;
        /// LaTeX syntax highlighter
@@ -79,19 +79,12 @@ public:
        void enableView(bool enable);
        void saveSession() const;
        void restoreSession();
+       bool wantInitialFocus() const { return false; }
        ///@}
 
        /// The title displayed by the dialog reflects source type.
        QString title() const;
 
-       /** get the source code of selected paragraphs, or the whole document
-               \param fullSource get full source code
-        */
-       QString getContent(bool fullSource);
-       // cursor position in the source code
-       struct Row { int begin; int end; };
-       Row getRows() const;
-
 private:
        /// The encapsulated widget.
        ViewSourceWidget * widget_;