]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiViewSource.h
Fix the tab ordering of GuiDocument components.
[lyx.git] / src / frontends / qt4 / GuiViewSource.h
index be476471b2d74bb8c75faf557d229066b6bb82ea..e3c7a814e5b142eb021bb1ba72f6489e9d070bea 100644 (file)
@@ -37,19 +37,27 @@ class ViewSourceWidget : public QWidget, public Ui::ViewSourceUi
        Q_OBJECT
 
 public:
-       ViewSourceWidget(GuiViewSource &);
+       ViewSourceWidget();
+       ///
+       void setBufferView(BufferView const * bv);
 
 public Q_SLOTS:
        // update content
        void updateView();
+       ///
+       void updateDefaultFormat();
+       ///
+       void fullSourceChanged();
 
 private:
        ///
-       GuiViewSource & controller_;    
+       BufferView const * bv_;
        ///
        QTextDocument * document_;
        /// LaTeX syntax highlighter
        LaTeXHighlighter * highlighter_;
+       ///
+       bool force_getcontent_;
 };
 
 
@@ -83,14 +91,6 @@ public:
        /// 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_;