X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiViewSource.h;h=d5553ac2ea49a606234bdb7f470f9a7f0fc48e95;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=c409f7cff84ed1b67529e100b9aa69c1606dc0fd;hpb=42d79d543b236e56edd3fb9b83157a90a7d85094;p=lyx.git diff --git a/src/frontends/qt4/GuiViewSource.h b/src/frontends/qt4/GuiViewSource.h index c409f7cff8..d5553ac2ea 100644 --- a/src/frontends/qt4/GuiViewSource.h +++ b/src/frontends/qt4/GuiViewSource.h @@ -20,8 +20,6 @@ #include "GuiView.h" #include "qt_helpers.h" -#include "support/debug.h" - #include #include #include @@ -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 @@ -77,19 +77,14 @@ public: bool canApplyToReadOnly() const { return true; } void updateView(); 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_;