class LyXModule;
class TextClass;
+namespace support {
+ class TempFile;
+}
+
namespace frontend {
class FloatPlacement;
class FontModule;
///
-typedef void const * BufferId;
+typedef Buffer const * BufferId;
template<class UI>
class UiWidget : public QWidget, public UI
void slotOK();
// Apply button clicked
void slotApply();
+ void slotButtonBox(QAbstractButton *);
private Q_SLOTS:
void updateNumbering();
PreambleModule(QWidget * parent);
void update(BufferParams const & params, BufferId id);
void apply(BufferParams & params);
+ bool editing() const { return (bool)tempfile_; }
Q_SIGNALS:
/// signal that something's changed in the Widget.
void closeEvent(QCloseEvent *);
void on_preambleTE_textChanged() { changed(); }
-private:
typedef std::map<BufferId, std::pair<int,int> > Coords;
Coords preamble_coords_;
BufferId current_id_;
+ unique_ptr<support::TempFile> tempfile_;
+
+private Q_SLOTS:
+ ///
+ void checkFindButton();
+ void findText();
+ void editExternal();
};
void update(BufferParams const & params, BufferId id);
void apply(BufferParams & params);
bool isValid() const { return validated_; }
+ bool editing() const { return (bool)tempfile_; }
Q_SIGNALS:
/// signal that something's changed in the Widget.
void textChanged();
void validatePressed();
void convertPressed();
+ void editExternal();
private:
BufferId current_id_;
bool validated_;
+ unique_ptr<support::TempFile> tempfile_;
};