From 831b74c23690812ad919888b196db24dafef975a Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Fri, 15 May 2009 17:08:15 +0000 Subject: [PATCH] Unify whitespacing for generation. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29677 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LyXAction.cpp | 171 +++++++++++++++++++++++----------------------- 1 file changed, 85 insertions(+), 86 deletions(-) diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index 7c55ecd6a5..0902851717 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -35,7 +35,7 @@ namespace lyx { Here's the set of rules to apply when a new command name is introduced: 1) Use the object.event order. That is, use `word-forward' - instead of `forward-word'. + instead of `forward-word'. 2) Don't introduce an alias for an already named object. Same for events. 3) Forward movement or focus is called `forward' (not `right'). 4) Backward movement or focus is called `backward' (not `left'). @@ -380,7 +380,7 @@ void LyXAction::init() a listings inset. * \li Notion: It also works on a selection - it removes a tab or spaces from the beginning of each line spanned by the selection. This is useful if - you want to indent/unindent multiple lines in one action. + you want to indent/unindent multiple lines in one action. * \li Syntax: tab-delete * \li Origin: vfvanravesteijn, Sep 30 2008 * \endvar @@ -403,11 +403,11 @@ void LyXAction::init() * \li Notion: Apart from lfun arguments you can use the following method: \n 1. input the type and argument of this inset, e.g. "menu paste", in the work area.\n - 2. select the text and run info-insert lfun. + 2. select the text and run info-insert lfun. * \li Syntax: info-insert * \li Params: : shortcut|lyxrc|package|textclass|menu|buffer \n : argument for a given type. Look into InsetInfo.h for detailed - description. + description. * \li Sample: command-sequence info-insert buffer path; info-insert buffer name * \li Origin: bpeng, 7 Oct 2007 * \endvar @@ -440,16 +440,16 @@ void LyXAction::init() class you're using has to load the character styles. There are a few contained in the Logical Markup module. You can also of course create some yourself. \n - For dissolving the element see #LFUN_INSET_DISSOLVE. + For dissolving the element see #LFUN_INSET_DISSOLVE. * \li Syntax: flex-insert * \li Params: TYPE: CharStyle|Custom|Element|Standard \n - Identifies whether this is a Character Style, a - Custom Inset or an XML Element, and which dynamical - sub-menu this flex inset is in on the LyX menu tree. - If Standard (currently unused): none of these. - Name: This name must be defined either in your layout file - or imported by some module. The definition is \n - InsetLayout + Identifies whether this is a Character Style, a + Custom Inset or an XML Element, and which dynamical + sub-menu this flex inset is in on the LyX menu tree. + If Standard (currently unused): none of these.\n + Name: This name must be defined either in your layout file + or imported by some module. The definition is + InsetLayout * \li Sample: flex-insert CharStyle:Code * \endvar */ @@ -807,7 +807,7 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_WORD_BACKWARD_SELECT * \li Action: Moves the cursor to the logically previous beginning of a word, - adding the logically traversed text to the selection. + adding the logically traversed text to the selection. * \li Notion: See also #LFUN_WORD_BACKWARD. * \li Syntax: word-backward-select * \endvar @@ -851,7 +851,7 @@ void LyXAction::init() * \li Syntax: word-find [] * \li Params: : data encoded from Find dialog (see #lyx::find2string()). If no parameter is given, search with last find-dialog - data is used for search (i.e. find-next). + data is used for search (i.e. find-next). * \li Origin: Andre, Jan 7 2004 * \endvar */ @@ -892,7 +892,7 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_WORD_FORWARD_SELECT * \li Action: Moves the cursor to the logically next beginning of a word, - adding the logically traversed text to the selection. + adding the logically traversed text to the selection. * \li Notion: See also #LFUN_WORD_FORWARD. * \li Syntax: word-forward-select * \endvar @@ -902,12 +902,12 @@ void LyXAction::init() * \var lyx::FuncCode lyx::LFUN_WORD_LEFT * \li Action: Moves the cursor to the next beginning of a word "on the left". * \li Notion: This is the action which should be taken when the (e.g., ctrl-) - "left" key is pressed. Generally, it moves the cursor to the - next beginning of a word on the left. However, in Bidi text this - become slightly more complicated, and there are different modes - of cursor movement. In "visual mode", this moves left, plain and - simple. In "logical mode", movement is logically forward in RTL - paragraphs, and logically backwards in LTR paragraphs. + "left" key is pressed. Generally, it moves the cursor to the + next beginning of a word on the left. However, in Bidi text this + become slightly more complicated, and there are different modes + of cursor movement. In "visual mode", this moves left, plain and + simple. In "logical mode", movement is logically forward in RTL + paragraphs, and logically backwards in LTR paragraphs. * \li Syntax: word-left * \li Origin: dov, 28 Oct 2007 * \endvar @@ -916,7 +916,7 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_WORD_LEFT_SELECT * \li Action: Moves the cursor to the next beginning of a word "on the left", - adding *logically* traversed text to the selection. + adding *logically* traversed text to the selection. * \li Notion: See also #LFUN_WORD_LEFT for exact details of the movement. * \li Syntax: word-left-select * \li Origin: dov, 28 Oct 2007 @@ -927,13 +927,13 @@ void LyXAction::init() * \var lyx::FuncCode lyx::LFUN_WORD_RIGHT * \li Action: Moves the cursor to the next beginning of a word "on the right". * \li Notion: This is the action which should be taken when the (e.g., ctrl-) - "right" key is pressed. Generally, it moves the cursor to the - next beginning of a word on the right. However, in Bidi text - this become slightly more complicated, and there are different - modes of cursor movement. In "visual mode", this moves right, - plain and simple. In "logical mode", movement is logically - forward in LTR paragraphs, and logically backwards in RTL - paragraphs. + "right" key is pressed. Generally, it moves the cursor to the + next beginning of a word on the right. However, in Bidi text + this become slightly more complicated, and there are different + modes of cursor movement. In "visual mode", this moves right, + plain and simple. In "logical mode", movement is logically + forward in LTR paragraphs, and logically backwards in RTL + paragraphs. * \li Syntax: word-right * \li Origin: dov, 28 Oct 2007 * \endvar @@ -942,7 +942,7 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_WORD_RIGHT_SELECT * \li Action: Moves the cursor to the next beginning of a word "on the right", - adding *logically* traversed text to the selection. + adding *logically* traversed text to the selection. * \li Notion: See also #LFUN_WORD_RIGHT for exact details of the movement. * \li Syntax: word-right-select * \li Origin: dov, 28 Oct 2007 @@ -1327,9 +1327,9 @@ void LyXAction::init() * \li Syntax: textstyle-update * \li Params: : specifies font atributes, e.g. family, series, shape, size, emph, noun, underbar, number, color, language, - toggleall.\n - Use lyx -dbg action for exact syntax of text-style - dialog parameters. + toggleall.\n + Use lyx -dbg action for exact syntax of text-style + dialog parameters. * \li Origin: leeming, 12 Mar 2003 * \endvar */ @@ -1487,7 +1487,7 @@ void LyXAction::init() * \endvar */ { LFUN_MARK_TOGGLE, "mark-toggle", ReadOnly, Edit }, - + /*! * \var lyx::FuncCode lyx::LFUN_MATH_DELIM * \li Action: Inserts math delimiters (e.g. parentheses, brackets) enclosing expression. @@ -1600,7 +1600,7 @@ void LyXAction::init() * \li Syntax: math-matrix [] * \li Params: : Alignment is a word composed of the vertical alignment (b, c or t) (i.e. 1 char) and the horizontal alignments - (l, c or r) (i.e. chars). + (l, c or r) (i.e. chars). * \li Sample: math-matrix 3 3 bccc * \endvar */ @@ -2016,7 +2016,7 @@ void LyXAction::init() set-special-column|set-special-multi|set-booktabs|unset-booktabs| set-top-space|set-bottom-space|set-interline-space|set-border-lines| tabular-valign-top|tabular-valign-middle|tabular-valign-bottom \n - : additional argument for some commands, use debug mode to explore its values. + : additional argument for some commands, use debug mode to explore its values. * \li Origin: Jug, 28 Jul 2000 * \endvar */ @@ -2050,8 +2050,8 @@ void LyXAction::init() * \li Action: Register the document as an file inside version control system (RCS, CVS). * \li Notion: File is registered inside cvs, svn or rcs repository acording to the existence of cvs/svn/rcs entries in the document's directory. \n - See LyX Additional Features Manual (Version Control Chapter) for additional - information. + See LyX Additional Features Manual (Version Control Chapter) for additional + information. * \li Syntax: vc-register * \li Origin: Lgb, 1 Jul 1997 * \endvar @@ -2098,13 +2098,13 @@ void LyXAction::init() additional VCS commands. * \li Syntax: vc-command * \li Params: : Flags for the command can be combined together.\n - U - dUmmy - no flags \n - D - Doc - need document loaded to proceed \n - I - dIrty - mark document dirty \n - R - Reload - ensure that the document is saved and reload it after command execution \n - M - Message - ask for input string (commit message)\n - : path where to start. $$p will be replaced by the current document path.\n - : command to execute. $$i/$$p/$$m will be replaced by the current document/path/message. + U - dUmmy - no flags \n + D - Doc - need document loaded to proceed \n + I - dIrty - mark document dirty \n + R - Reload - ensure that the document is saved and reload it after command execution \n + M - Message - ask for input string (commit message)\n + : path where to start. $$p will be replaced by the current document path.\n + : command to execute. $$i/$$p/$$m will be replaced by the current document/path/message. * \li Sample: vc-command DR $$p "svn up" * \li Origin: sanda, 13 Jan 2009 * \endvar @@ -2207,7 +2207,7 @@ void LyXAction::init() is dissolved. For example "dissolve" entry in the charstyles sub-menu should only dissolve the charstyle inset, even if the cursor is inside several nested insets of different type.\n - For values see #lyx::InsetLayout::lyxtype_ . + For values see #lyx::InsetLayout::lyxtype_ . * \li Origin: JSpitz, 7 Aug 2006 * \endvar */ @@ -2218,16 +2218,15 @@ void LyXAction::init() * \li Syntax: inset-insert * \li Params: : \n - : depends on the given inset. Use "lyx -dbg action" to - explore. + : depends on the given inset. Use "lyx -dbg action" to explore. * \li Sample: inset-insert ref LatexCommand reference "