]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiViewSource.h
Compil fix.
[lyx.git] / src / frontends / qt4 / GuiViewSource.h
index 340d1d63b0d9508c09d3c4cc1890b1fca7f43cc0..1b2add4ad91de1dfcac4b57cdf563b9b5a436eab 100644 (file)
@@ -44,8 +44,6 @@ public:
 public Q_SLOTS:
        // update content
        void updateView();
-       ///
-       void update(bool full_source);
 
 private:
        ///
@@ -78,6 +76,9 @@ public:
        bool canApply() const { return true; }
        bool canApplyToReadOnly() const { return true; }
        void updateView();
+       void enableView(bool enable);
+       void saveSession() const;
+       void restoreSession();
        ///@}
 
        /// The title displayed by the dialog reflects source type.
@@ -87,9 +88,9 @@ public:
                \param fullSource get full source code
         */
        QString getContent(bool fullSource);
-       /** get the cursor position in the source code
-        */
-       std::pair<int, int> getRows() const;
+       // cursor position in the source code
+       struct Row { int begin; int end; };
+       Row getRows() const;
 
 private:
        /// The encapsulated widget.