From a25d7f90ce84ef7d2ff6daa33da9ad080d729826 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 21 Sep 2001 16:23:31 +0000 Subject: [PATCH] The reference dialog now disconnects from the inset on Apply. Its behaviour is now analogous to that of the citation dialog. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2786 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/controllers/ChangeLog | 5 +++++ src/frontends/controllers/ControlRef.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/frontends/controllers/ChangeLog b/src/frontends/controllers/ChangeLog index 34341e89cd..d4b52a8a77 100644 --- a/src/frontends/controllers/ChangeLog +++ b/src/frontends/controllers/ChangeLog @@ -1,3 +1,8 @@ +2001-09-21 Angus Leeming + + * ControlReferences.h (disconnectOnApply): new method. Set to true. + Perhaps make this user-modifiable? + 2001-09-14 Jürgen Spitzmüller * ControlGraphics.C (Browse): add "jpg" to list of recognized file diff --git a/src/frontends/controllers/ControlRef.h b/src/frontends/controllers/ControlRef.h index 0fab7431c5..7e8dc44d4b 100644 --- a/src/frontends/controllers/ControlRef.h +++ b/src/frontends/controllers/ControlRef.h @@ -38,6 +38,11 @@ public: std::vector const getBufferList() const; /// int getBufferNum() const; + +private: + /** disconnect from the inset when the Apply button is pressed. + Allows easy insertion of multiple references. */ + virtual bool disconnectOnApply() { return true; } }; #endif // CONTROLREF_H -- 2.39.2