From 7cfc541c63418ff128f3b61e86f58626a35f1e7a Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sun, 10 Jan 2010 16:50:30 +0000 Subject: [PATCH] Move it to the context of others lfuns. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32946 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LyXAction.cpp | 72 +++++++++++++++++++++++------------------------ 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index bcf4210886..ce771f8ca1 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -1083,6 +1083,17 @@ void LyXAction::init() */ { LFUN_INSET_SELECT_ALL, "inset-select-all", ReadOnly, Edit }, +/*! + * \var lyx::FuncCode lyx::LFUN_SECTION_SELECT + * \li Action: Selects the whole section. + * \li Notion: The cursor should be in a section heading + before calling this lfun. + * \li Syntax: section-select + * \li Origin: vfr, 05 May 2009 + * \endvar + */ + { LFUN_SECTION_SELECT, "section-select", ReadOnly, Edit }, + /*! * \var lyx::FuncCode lyx::LFUN_LINE_BEGIN * \li Action: Move the cursor to the begining of the (screen) line. @@ -2374,6 +2385,31 @@ void LyXAction::init() * \endvar */ { LFUN_ALL_INSETS_TOGGLE, "all-insets-toggle", ReadOnly, Edit }, +/*! + * \var lyx::FuncCode lyx::LFUN_INSET_FORALL + * \li Action: Apply the given commands on insets of a given name. + * \li Notion: WARNING: use at your own risks; this function gives + you too many ways of shooting yourself in the foot. + A typical example is + inset-forall Note note-insert + which starts an infinite loop. This is mitigated by the fact + that the number of actions is arbitrarily limited to 10000. + * \li Syntax: inset-forall \n + : Type of Inset. If is *, all insets are matched. + The name is used like for InsetLayout in layout files: "Note" + matches all note insets, while "Note:Note" only matches LyX + yellow note insets. + * \li Sample: Remove all index insets: \n + inset-forall Index delete-char-forward \n + Close all Notes (also works for a particular branch, for example): \n + inset-forall Note inset-toggle close \n + Try to put LyX in an infinite loop if there is at least a Note: \n + inset-forall Note char-backward + * \li Origin: lasgouttes, 27 Nov 2009 + * \endvar + */ + { LFUN_INSET_FORALL, "inset-forall", ReadOnly, Edit }, + /*! * \var lyx::FuncCode lyx::LFUN_GRAPHICS_RELOAD * \li Action: Reloads the image if necessary. @@ -3434,42 +3470,6 @@ void LyXAction::init() */ { LFUN_BUFFER_ZOOM_OUT, "buffer-zoom-out", ReadOnly, Buffer }, -/*! - * \var lyx::FuncCode lyx::LFUN_SECTION_SELECT - * \li Action: Selects the whole section. - * \li Notion: The cursor should be in a section heading - before calling this lfun. - * \li Syntax: section-select - * \li Origin: vfr, 05 May 2009 - * \endvar - */ - { LFUN_SECTION_SELECT, "section-select", ReadOnly, Edit }, - - -/*! - * \var lyx::FuncCode lyx::LFUN_INSET_FORALL - * \li Action: Apply the given commands on insets of a given name. - * \li Notion: WARNING: use at your own risks; this function gives - you too many ways of shooting yourself in the foot. - A typical example is - inset-forall Note note-insert - which starts an infinite loop. This is mitigated by the fact - that the number of actions is arbitrarily limited to 10000. - * \li Syntax: inset-forall \n - : Type of Inset. If is *, all insets are matched. - The name is used like for InsetLayout in layout files: "Note" - matches all note insets, while "Note:Note" only matches LyX - yellow note insets. - * \li Sample: Remove all index insets: \n - inset-forall Index delete-char-forward \n - Close all Notes (also works for a particular branch, for example): \n - inset-forall Note inset-toggle close \n - Try to put LyX in an infinite loop if there is at least a Note: \n - inset-forall Note char-backward - * \li Origin: lasgouttes, 27 Nov 2009 - * \endvar - */ - { LFUN_INSET_FORALL, "inset-forall", ReadOnly, Edit }, { LFUN_NOACTION, "", Noop, Hidden }