Q_OBJECT
public:
- ViewSourceWidget(GuiViewSource &);
+ ViewSourceWidget();
+ ///
+ void setBufferView(BufferView const * bv);
public Q_SLOTS:
// update content
void updateView();
+ ///
+ void updateDefaultFormat();
+ ///
+ void contentsChanged();
private:
///
- GuiViewSource & controller_;
+ BufferView const * bv_;
///
QTextDocument * document_;
/// LaTeX syntax highlighter
LaTeXHighlighter * highlighter_;
+ ///
+ bool force_getcontent_;
};
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_;