diff --git a/src/BiblioInfo.h b/src/BiblioInfo.h index 162cad19f2..61e525d2d9 100644 --- a/src/BiblioInfo.h +++ b/src/BiblioInfo.h @@ -59,7 +59,7 @@ public: /// used for sorting. /// This will be translated to the UI language if buf is null /// otherwise, it will be translated to the buffer language. - docstring const getAuthorOrEditorList(Buffer const * buf = 0, + docstring const getAuthorOrEditorList(Buffer const * buf = 0, bool full = false, bool forceshort = false) const; /// Same for a specific author role (editor, author etc.) docstring const getAuthorList(Buffer const * buf, docstring const & author, diff --git a/src/BufferParams.h b/src/BufferParams.h index 9f20ce14c6..c20601e2ac 100644 --- a/src/BufferParams.h +++ b/src/BufferParams.h @@ -161,7 +161,7 @@ public: { return removed_modules_; } /// /// Add a module to the list of modules in use. This checks only that the - /// module is not already in the list, so use layoutModuleCanBeAdeed first + /// module is not already in the list, so use layoutModuleCanBeAdeed first /// if you want to check for compatibility. /// \return true if module was successfully added. bool addLayoutModule(std::string const & modName); diff --git a/src/CmdDef.h b/src/CmdDef.h index fa24fe7615..5fb6e366b6 100644 --- a/src/CmdDef.h +++ b/src/CmdDef.h @@ -59,7 +59,7 @@ private: * Add a new command definition. * @param name internal recursion level */ - newCmdDefResult newCmdDef(std::string const & name, + newCmdDefResult newCmdDef(std::string const & name, std::string const & def); /// diff --git a/src/ColorCode.h b/src/ColorCode.h index 180e5444c7..f98ecf8008 100644 --- a/src/ColorCode.h +++ b/src/ColorCode.h @@ -142,11 +142,11 @@ enum ColorCode { Color_mathmacrolabel, /// Macro math frame color Color_mathmacroframe, - /// Macro math blended color + /// Macro math blended color Color_mathmacroblend, - /// Macro template color for old parameters + /// Macro template color for old parameters Color_mathmacrooldarg, - /// Macro template color for new parameters + /// Macro template color for new parameters Color_mathmacronewarg, /// Math inset frame color under focus Color_mathframe, diff --git a/src/ColorSet.h b/src/ColorSet.h index 6ee8f40105..2e49d07b68 100644 --- a/src/ColorSet.h +++ b/src/ColorSet.h @@ -78,7 +78,7 @@ public: private: /// - void addColor(ColorCode c, std::string const & lyxname); + void addColor(ColorCode c, std::string const & lyxname); /// class Information { public: diff --git a/src/Compare.h b/src/Compare.h index c1956c13cc..40ecf5c23a 100644 --- a/src/Compare.h +++ b/src/Compare.h @@ -22,7 +22,7 @@ namespace lyx { -/** +/** * The options that are used by the Comparison algorithm * and are set in the GuiCompare Dialog. */ @@ -32,7 +32,7 @@ public: CompareOptions() : settings_from_new(0) {} - + /// Copy the settings from the new or old document bool settings_from_new; }; @@ -89,14 +89,14 @@ public: private: /// Starts the comparison algorithm int doCompare(); - + /// The new document's buffer Buffer const * const new_buffer; /// The old document's buffer Buffer const * const old_buffer; /// The buffer with the differences marked with track changes Buffer * const dest_buffer; - + /// The options that are set in the GuiCompare dialog CompareOptions options_; diff --git a/src/Converter.h b/src/Converter.h index 1ea73279b2..da3136a69c 100644 --- a/src/Converter.h +++ b/src/Converter.h @@ -138,7 +138,7 @@ public: // void erase(std::string const & from, std::string const & to); /// - FormatList const + FormatList const getReachableTo(std::string const & target, bool clear_visited); /// FormatList const diff --git a/src/Counters.h b/src/Counters.h index 360e297070..536dcc17a6 100644 --- a/src/Counters.h +++ b/src/Counters.h @@ -34,7 +34,7 @@ public: /// Counter(); /// - Counter(docstring const & mc, docstring const & ls, + Counter(docstring const & mc, docstring const & ls, docstring const & lsa); /// \return true on success bool read(Lexer & lex); @@ -54,7 +54,7 @@ public: /// it. This is used when a counter is deleted. /// \return whether we removed the master. bool checkAndRemoveMaster(docstring const & cnt); - /// Returns a LaTeX-like string to format the counter. + /// Returns a LaTeX-like string to format the counter. /** This is similar to what one gets in LaTeX when using * "\the". The \c in_appendix bool tells whether we * want the version shown in an appendix. @@ -63,8 +63,8 @@ public: /// Similar, but used for formatted references in XHTML output. /// E.g., for a section counter it might be "section \thesection" docstring const & prettyFormat() const { return prettyformat_; } - - /// Returns a map of LaTeX-like strings to format the counter. + + /// Returns a map of LaTeX-like strings to format the counter. /** For each language, the string is similar to what one gets * in LaTeX when using "\the". The \c in_appendix * bool tells whether we want the version shown in an @@ -91,10 +91,10 @@ private: docstring labelstringappendix_; /// Similar, but used for formatted references in XHTML output docstring prettyformat_; - /// Cache of the labelstring with \\the expressions expanded, + /// Cache of the labelstring with \\the expressions expanded, /// indexed by language mutable StringMap flatlabelstring_; - /// Cache of the appendix labelstring with \\the expressions expanded, + /// Cache of the appendix labelstring with \\the expressions expanded, /// indexed by language mutable StringMap flatlabelstringappendix_; }; @@ -109,7 +109,7 @@ public: /// from the document class (e.g., which ones are defined). /// Instead, call Counters::reset(). Counters(); - /// Add new counter newc having masterc as its master, + /// Add new counter newc having masterc as its master, /// ls as its label, and lsa as its appendix label. void newCounter(docstring const & newc, docstring const & masterc, @@ -118,7 +118,7 @@ public: /// Checks whether the given counter exists. bool hasCounter(docstring const & c) const; /// reads the counter name - /// \param makeNew whether to make a new counter if one + /// \param makeNew whether to make a new counter if one /// doesn't already exist /// \return true on success bool read(Lexer & lex, docstring const & name, bool makenew); @@ -160,7 +160,7 @@ public: */ docstring counterLabel(docstring const & format, std::string const & lang) const; - /// returns a formatted version of the counter, using the + /// returns a formatted version of the counter, using the /// format given by Counter::prettyFormat(). docstring prettyCounter(docstring const & cntr, std::string const & lang) const; @@ -180,8 +180,8 @@ public: bool isLongtable() const { return longtable_; } /// Set the state variable indicating whether we are in a longtable. void isLongtable(bool s) { longtable_ = s; } - - /// \name refstepcounter + + /// \name refstepcounter // @{ /// The currently active counter, so far as references go. /// We're trying to track \refstepcounter in LaTeX, more or less. @@ -196,10 +196,10 @@ public: void clearLastLayout() { layout_stack_.push_back(0); } /// Call this when exiting things like footnotes. void restoreLastLayout() { layout_stack_.pop_back(); } - /// + /// void saveLastCounter() { counter_stack_.push_back(counter_stack_.back()); } - /// + /// void restoreLastCounter() { counter_stack_.pop_back(); } // @} private: diff --git a/src/Cursor.h b/src/Cursor.h index 1abc177ca4..d1e13f684e 100644 --- a/src/Cursor.h +++ b/src/Cursor.h @@ -168,12 +168,12 @@ public: /// set selection; this is lower level than (set|clear)Selection void selection(bool sel) { selection_ = sel; } /// do we have a multicell selection? - bool selIsMultiCell() const + bool selIsMultiCell() const { return selection_ && selBegin().idx() != selEnd().idx(); } /// do we have a multiline selection? - bool selIsMultiLine() const + bool selIsMultiLine() const { return selection_ && selBegin().pit() != selEnd().pit(); } - /// + /// void setWordSelection(bool set) { word_selection_ = set; } /// bool wordSelection() { return word_selection_; } @@ -222,7 +222,7 @@ public: void getPos(int & x, int & y) const; /// return logical positions between which the cursor is situated /** - * If the cursor is at the edge of a row, the position which is "over the + * If the cursor is at the edge of a row, the position which is "over the * edge" will be returned as -1. */ void getSurroundingPos(pos_type & left_pos, pos_type & right_pos) const; @@ -251,11 +251,11 @@ public: /// move visually to next/previous row /** * Assuming we were to keep moving left (right) from the current cursor - * position, place the cursor at the rightmost (leftmost) edge of the + * position, place the cursor at the rightmost (leftmost) edge of the * new row to which we would move according to visual-mode cursor movement. * This could be either the next or the previous row, depending on the - * direction in which we're moving, and whether we're in an LTR or RTL - * paragraph. + * direction in which we're moving, and whether we're in an LTR or RTL + * paragraph. * @note: The new position may even be in a new paragraph. * @note: This method will not move out of the current slice. * @return: false if not moved (no more rows to move to in given direction) @@ -407,7 +407,7 @@ public: public: //private: - + /// DocIterator const & beforeDispatchCursor() const { return beforeDispatchCursor_; } /// diff --git a/src/CursorSlice.h b/src/CursorSlice.h index 308b938455..f6d60d8ce6 100644 --- a/src/CursorSlice.h +++ b/src/CursorSlice.h @@ -148,7 +148,7 @@ public: bool at_end() const; /// are we at the start of this slice bool at_begin() const; - + private: /// pointer to 'owning' inset. This is some kind of cache. diff --git a/src/DispatchResult.h b/src/DispatchResult.h index f546be27bc..4b9cbfe757 100644 --- a/src/DispatchResult.h +++ b/src/DispatchResult.h @@ -91,7 +91,7 @@ private: Update::flags update_; /// docstring message_; - /// + /// bool need_buf_update_; /// bool need_msg_update_; diff --git a/src/DocIterator.h b/src/DocIterator.h index cde876cd86..4aff05cd0b 100644 --- a/src/DocIterator.h +++ b/src/DocIterator.h @@ -265,22 +265,22 @@ private: explicit DocIterator(Buffer * buf, Inset * inset); /** * Normally, when the cursor is at position i, it is painted *before* - * the character at position i. However, what if we want the cursor + * the character at position i. However, what if we want the cursor * painted *after* position i? That's what boundary_ is for: if * boundary_==true, the cursor is painted *after* position i-1, instead * of before position i. * * Note 1: Usually, after i-1 or before i are actually the same place! - * However, this is not the case when i-1 and i are not painted + * However, this is not the case when i-1 and i are not painted * contiguously, and in these cases we sometimes do want to have control * over whether to paint before i or after i-1. * Some concrete examples of where this happens: * a. i-1 at the end of one row, i at the beginning of next row * b. in bidi text, at transitions between RTL and LTR or vice versa * - * Note 2: Why i and i-1? Why, if boundary_==false means: *before* i, - * couldn't boundary_==true mean: *after* i? - * Well, the reason is this: cursor position is not used only for + * Note 2: Why i and i-1? Why, if boundary_==false means: *before* i, + * couldn't boundary_==true mean: *after* i? + * Well, the reason is this: cursor position is not used only for * painting the cursor, but it also affects other things, for example: * where the next insertion will be placed (it is inserted at the current * position, pushing anything at the current position and beyond forward). @@ -324,21 +324,21 @@ bool operator<(DocIterator const & p, DocIterator const & q) } -inline +inline bool operator>(DocIterator const & p, DocIterator const & q) { return q < p; } -inline +inline bool operator<=(DocIterator const & p, DocIterator const & q) { return !(q < p); } -inline +inline bool operator>=(DocIterator const & p, DocIterator const & q) { return !(p < q); diff --git a/src/Encoding.h b/src/Encoding.h index 0f6e8ff438..7400127f2d 100644 --- a/src/Encoding.h +++ b/src/Encoding.h @@ -130,7 +130,7 @@ public: /// Represent any of the above packages static int const any; /// - Encoding() : fixedwidth_(true), unsafe_(false), forced_(0), + Encoding() : fixedwidth_(true), unsafe_(false), forced_(0), start_encodable_(0), package_(none), complete_(false) {} /// Encoding(std::string const & n, std::string const & l, diff --git a/src/Floating.h b/src/Floating.h index 3de7d450fc..a5f1ddcd9c 100644 --- a/src/Floating.h +++ b/src/Floating.h @@ -107,13 +107,13 @@ private: bool allowswide_; /// bool allowssideways_; - /// + /// mutable std::string html_tag_; - /// + /// mutable std::string html_attrib_; /// mutable std::string defaultcssclass_; - /// + /// docstring html_style_; }; diff --git a/src/FontInfo.h b/src/FontInfo.h index 4248904854..9f38000e66 100644 --- a/src/FontInfo.h +++ b/src/FontInfo.h @@ -106,7 +106,7 @@ public: /// Is a given font fully resolved? bool resolved() const; - /// The real color of the font. This can be the color that is + /// The real color of the font. This can be the color that is /// set for painting, the color of the font or a default color. Color realColor() const; /// Sets the color which is used during painting diff --git a/src/FuncRequest.h b/src/FuncRequest.h index a5822f4b96..20cd96ab66 100644 --- a/src/FuncRequest.h +++ b/src/FuncRequest.h @@ -37,7 +37,7 @@ public: MENU, // A menu entry TOOLBAR, // A toolbar icon KEYBOARD, // a keyboard binding - COMMANDBUFFER, + COMMANDBUFFER, LYXSERVER, TOC }; @@ -58,7 +58,7 @@ public: /// for changing requests a bit FuncRequest(FuncRequest const & cmd, docstring const & arg, Origin o = INTERNAL); - + /// access the whole argument docstring const & argument() const { return argument_; } /// @@ -75,7 +75,7 @@ public: int y() const { return y_; } /// void set_y(int y) { y_ = y; } - /// + /// mouse_button::state button() const { return button_; } /// KeyModifier modifier() { return modifier_; } @@ -86,9 +86,9 @@ public: /// eating all characters up to the end of the command line std::string getLongArg(unsigned int i) const; - /// + /// static FuncRequest const unknown; - /// + /// static FuncRequest const noaction; private: /// the action diff --git a/src/Graph.h b/src/Graph.h index 50d8bf855d..2f5de3de36 100644 --- a/src/Graph.h +++ b/src/Graph.h @@ -49,17 +49,17 @@ private: /// bool bfs_init(int, bool clear_visited, std::queue & Q); /// these represent the arrows connecting the nodes of the graph. - /// this is the basic representation of the graph: as a bunch of + /// this is the basic representation of the graph: as a bunch of /// arrows. struct Arrow { /// - Arrow(int f, int t, int i): + Arrow(int f, int t, int i): from(f), to(t), id(i) {} /// the vertex at the tail of the arrow int from; /// the vertex at the head int to; - /// an id for this arrow, e.g., for use in describing paths + /// an id for this arrow, e.g., for use in describing paths /// through the graph int id; }; @@ -87,7 +87,7 @@ private: /// of Format, this is easy, since the Format objects already have ints /// as identifiers.) std::vector vertices_; - + /// a counter that we use to assign id's to the arrows /// FIXME This technique assumes a correspondence between the /// ids of the arrows and ids associated with Converters that diff --git a/src/IndicesList.h b/src/IndicesList.h index 69c8b3ef46..7fab436d6b 100644 --- a/src/IndicesList.h +++ b/src/IndicesList.h @@ -34,7 +34,7 @@ namespace lyx { * \class IndicesList * * A class containing a vector of all defined indices within a - * document. It has methods for outputting a '|'-separated string + * document. It has methods for outputting a '|'-separated string * of all elements, and for adding, removing and renaming elements. */ @@ -94,7 +94,7 @@ public: Index * find(docstring const & name); Index const * find(docstring const & name) const; - /** \returns the Index with the shortcut \c shortcut. + /** \returns the Index with the shortcut \c shortcut. * If not found, returns 0. */ Index * findShortcut(docstring const & shortcut); diff --git a/src/KeyMap.h b/src/KeyMap.h index f6a82c082c..95a5f61c5e 100644 --- a/src/KeyMap.h +++ b/src/KeyMap.h @@ -26,7 +26,7 @@ namespace lyx { namespace support { - class FileName; + class FileName; } /// Defines key maps and actions for key sequences @@ -42,7 +42,7 @@ public: }; enum BindReadType { MissingOK, //< It's OK if this file is missing. - Fallback, //< If missing, fallback to default "cua". This should only + Fallback, //< If missing, fallback to default "cua". This should only //< be used when attempting to read the user-secified bind file. Default //< Report error and return. }; @@ -65,7 +65,7 @@ public: unsigned int r = 0); - /// returns the function bound to this key sequence, or + /// returns the function bound to this key sequence, or /// FuncRequest::unknown if no binding exists for it. /// @param r an internal recursion counter // FIXME Surely there's a better way to do that? @@ -74,7 +74,7 @@ public: /// clear all bindings void clear(); - /** Parse a bind file. If a valid unbind_map is given, put \unbind + /** Parse a bind file. If a valid unbind_map is given, put \unbind * bindings to a separate KeyMap. This is used in the Shortcut preference * dialog where main and user bind files are loaded separately so \unbind * in user.bind can not nullify \bind in the master bind file. @@ -83,7 +83,7 @@ public: * @param unbind_map pointer to a KeyMap that holds \unbind bindings * @param rt how to respond if the file can't be found */ - bool read(std::string const & bind_file, KeyMap * unbind_map = 0, + bool read(std::string const & bind_file, KeyMap * unbind_map = 0, BindReadType rt = Default); /** write to a bind file. @@ -126,7 +126,7 @@ public: FuncRequest request; KeySequence sequence; KeyMap::ItemType tag; - }; + }; typedef std::vector BindingList; /** * Return all lfun and their associated bindings. @@ -185,7 +185,7 @@ private: */ Bindings findBindings(FuncRequest const & func, KeySequence const & prefix) const; - + void listBindings(BindingList & list, KeySequence const & prefix, ItemType tag) const; diff --git a/src/KeySequence.h b/src/KeySequence.h index a0eb74eb03..cae65d536f 100644 --- a/src/KeySequence.h +++ b/src/KeySequence.h @@ -66,7 +66,7 @@ public: ForGui, //< use platform specific translations and special characters BindFile //< the format used in lyx bind files }; - + /** * Return the current sequence as a string. * @param format output format diff --git a/src/LaTeX.h b/src/LaTeX.h index 44920c362a..0b46c607af 100644 --- a/src/LaTeX.h +++ b/src/LaTeX.h @@ -192,7 +192,7 @@ private: std::string const & = std::string()); /// - bool runMakeIndexNomencl(support::FileName const &, + bool runMakeIndexNomencl(support::FileName const &, std::string const &, std::string const &); /// @@ -239,7 +239,7 @@ private: /// OutputParams runparams; - + /// Do we use biber? bool biber; diff --git a/src/LaTeXFonts.h b/src/LaTeXFonts.h index 90d91b3519..a77902a580 100644 --- a/src/LaTeXFonts.h +++ b/src/LaTeXFonts.h @@ -64,13 +64,13 @@ public: bool osfDefault() const { return osfdefault_; } /// Is this font available? bool available(bool ot1, bool nomath); - /// Does this font provide an alternative without math? + /// Does this font provide an alternative without math? bool providesNoMath(bool ot1, bool complete); /// Does this font provide Old Style Figures? bool providesOSF(bool ot1, bool complete, bool nomath); /// Does this font provide optional true SmallCaps? bool providesSC(bool ot1, bool complete, bool nomath); - /** does this font provide OSF and Small Caps only via + /** does this font provide OSF and Small Caps only via * a single, undifferentiated expert option? */ bool hasMonolithicExpertSet(bool ot1, bool complete, bool nomath); @@ -89,7 +89,7 @@ public: /// bool readFont(Lexer & lex); private: - /// Return the preferred available package + /// Return the preferred available package std::string const getAvailablePackage(bool dryrun); /// Return the package options std::string const getPackageOptions(bool ot1, @@ -139,8 +139,8 @@ private: /// bool switchdefault_; }; - - + + /** The list of available LaTeX fonts */ class LaTeXFonts { diff --git a/src/Layout.h b/src/Layout.h index ba4d26fb37..90d1b2e8ed 100644 --- a/src/Layout.h +++ b/src/Layout.h @@ -132,7 +132,7 @@ public: /// int requiredArgs() const; /// - docstring const & labelstring(bool in_appendix) const + docstring const & labelstring(bool in_appendix) const { return in_appendix ? labelstring_appendix_ : labelstring_; } /// docstring const & endlabelstring() const { return endlabelstring_; } @@ -160,25 +160,25 @@ public: std::string const & labeltag() const { return labeltag_; } /// std::string const & itemtag() const { return itemtag_; } - /// + /// std::string const & htmltag() const; - /// + /// std::string const & htmlattr() const; - /// + /// std::string const & htmlitemtag() const; - /// + /// std::string const & htmlitemattr() const; - /// + /// std::string const & htmllabeltag() const; - /// + /// std::string const & htmllabelattr() const; /// std::string defaultCSSClass() const; /// bool htmllabelfirst() const { return htmllabelfirst_; } - /// + /// docstring htmlstyle() const; - /// + /// docstring const & htmlpreamble() const { return htmlpreamble_; } /// bool htmltitle() const { return htmltitle_; } @@ -218,7 +218,7 @@ public: /// bool operator==(Layout const &) const; /// - bool operator!=(Layout const & rhs) const + bool operator!=(Layout const & rhs) const { return !(*this == rhs); } //////////////////////////////////////////////////////////////// @@ -356,7 +356,7 @@ private: std::string defaultCSSItemClass() const { return defaultCSSClass() + "_item"; } /// std::string defaultCSSLabelClass() const { return defaultCSSClass() + "_label"; } - + /// Name of the layout/paragraph environment docstring name_; @@ -401,13 +401,13 @@ private: /// Internal tag to surround the item text in a list. std::string itemtag_; /// The interpretation of this tag varies depending upon the latextype. - /// In an environment, it is the tag enclosing all content for this set of - /// paragraphs. So for quote, e.g,. it would be: blockquote. For itemize, + /// In an environment, it is the tag enclosing all content for this set of + /// paragraphs. So for quote, e.g,. it would be: blockquote. For itemize, /// it would be: ul. (You get the idea.) /// /// For a command, it is the tag enclosing the content of the command. /// So, for section, it might be: h2. - /// + /// /// For the paragraph type, it is the tag that will enclose each paragraph. /// /// Defaults to "div". @@ -417,7 +417,7 @@ private: mutable std::string htmlattr_; /// Tag for individual paragraphs in an environment. In lists, this /// would be something like "li". But it also needs to be set for - /// quotation, e.g., since the paragraphs in a quote need to be + /// quotation, e.g., since the paragraphs in a quote need to be /// in "p" tags. Default is "div". /// Note that when I said "environment", I meant it: This has no /// effect for LATEX_PARAGRAPH type layouts. @@ -426,7 +426,7 @@ private: mutable std::string htmlitemattr_; /// Tag for labels, of whatever sort. One use for this is in setting /// descriptions, in which case it would be: dt. Another use is to - /// customize the display of, say, the auto-generated label for + /// customize the display of, say, the auto-generated label for /// sections. Defaults to "span". /// If set to "NONE", this suppresses the printing of the label. mutable std::string htmllabeltag_; diff --git a/src/LayoutFile.h b/src/LayoutFile.h index e911aa5a6b..7fcc820bbf 100644 --- a/src/LayoutFile.h +++ b/src/LayoutFile.h @@ -42,30 +42,30 @@ private: }; /// This class amounts to little more than a `strong typedef'. -/// -/// A LayoutFile represents the layout information that is +/// +/// A LayoutFile represents the layout information that is /// contained in a *.layout file. -/// -/// No document- (that is, Buffer-) specific information should -/// be placed in these objects. They are used as the basis for +/// +/// No document- (that is, Buffer-) specific information should +/// be placed in these objects. They are used as the basis for /// constructing DocumentClass objects, which are what represent -/// the layout information associated with a Buffer. (This is also +/// the layout information associated with a Buffer. (This is also /// a subclass of TextClass, implemented in TextClass.{h,cpp}.) /// Buffer-specific information should therefore be placed in a /// DocumentClass object. -/// +/// class LayoutFile : public TextClass { public: /// check whether the TeX class is available bool isTeXClassAvailable() const { return tex_class_avail_; } /// - LayoutModuleList const & defaultModules() const + LayoutModuleList const & defaultModules() const { return default_modules_; } /// - LayoutModuleList const & providedModules() const + LayoutModuleList const & providedModules() const { return provided_modules_; } /// - LayoutModuleList const & excludedModules() const + LayoutModuleList const & excludedModules() const { return excluded_modules_; } private: /// noncopyable diff --git a/src/LayoutModuleList.h b/src/LayoutModuleList.h index f5741dede1..8b47074a8e 100644 --- a/src/LayoutModuleList.h +++ b/src/LayoutModuleList.h @@ -20,9 +20,9 @@ namespace lyx { class LayoutFile; /** - Represents a list of modules, such as might be associated with + Represents a list of modules, such as might be associated with a particular document. Provides methods for adding modules, checking - if a module can be added, and, importantly, adapting the list to a + if a module can be added, and, importantly, adapting the list to a new DocumentClass. */ class LayoutModuleList { @@ -50,7 +50,7 @@ public: { return lml_.insert(pos, str); } /// void push_back(std::string const & str) { lml_.push_back(str); } - /// + /// size_t size() const { return lml_.size(); } /// This is needed in GuiDocument. It seems better than an /// implicit conversion. diff --git a/src/Lexer.h b/src/Lexer.h index 6335fac8da..149cc7ddf2 100644 --- a/src/Lexer.h +++ b/src/Lexer.h @@ -27,7 +27,7 @@ namespace support { class FileName; } class PushPopHelper; /** A helper structure to describe a keyword for the Lexer. - Usually used bundled in C style arrays and passed to the + Usually used bundled in C style arrays and passed to the Lexer using a LexerKeywordTable object. */ struct LexerKeyword @@ -110,8 +110,8 @@ public: /// returns a lex code int lex(); - /// Read the next string, as delimited by double quotes or - /// whitespace. If esc is true, then we remember that some chars + /// Read the next string, as delimited by double quotes or + /// whitespace. If esc is true, then we remember that some chars /// might be escaped: \" at least. bool next(bool esc = false); @@ -120,7 +120,7 @@ public: /// split a word if it contains a backslash. bool nextToken(); - /// Puts the rest of the line in the buffer, where it will + /// Puts the rest of the line in the buffer, where it will /// be available via getString() or getDocString(). bool eatLine(); diff --git a/src/LyXAction.h b/src/LyXAction.h index bf7bf35638..f61772c56c 100644 --- a/src/LyXAction.h +++ b/src/LyXAction.h @@ -77,7 +77,7 @@ public: * Creates a FuncRequest from a string of the form: * lyx-function [argument] * where the argument is optional and "lyx-function" is in the form you'd - * enter it in the mini-buffer. + * enter it in the mini-buffer. */ FuncRequest lookupFunc(std::string const & func_name) const; diff --git a/src/MetricsInfo.h b/src/MetricsInfo.h index 7534a8e7ca..2a18cf8cff 100644 --- a/src/MetricsInfo.h +++ b/src/MetricsInfo.h @@ -108,13 +108,13 @@ public: /// void draw(int x, int y, docstring const & str); /// Determines the background color for the specified inset based on the - /// selection state, the background color inherited from the parent inset + /// selection state, the background color inherited from the parent inset /// and the inset's own background color. /// \param sel whether to take the selection state into account ColorCode backgroundColor(Inset const * inset, bool sel = true) const; /// Determines the text color based on the intended color, the - /// change tracking state and the selection state. + /// change tracking state and the selection state. /// \param color what the color should be by default Color textColor(Color const & color) const; diff --git a/src/Mover.h b/src/Mover.h index 4bf525e8d9..ff3667e469 100644 --- a/src/Mover.h +++ b/src/Mover.h @@ -50,10 +50,10 @@ public: * directory to the export location, since @c to and @c latex may * not be equal in this case. * \returns true if successful. - * NOTE: Although this routine simply calls do_copy() and + * NOTE: Although this routine simply calls do_copy() and * Mover::do_copy() does not itself make any use of the @c latex argument, * SpecialisedMover overrides do_copy(), so SpecialisedMover::copy(), which - * is just Mover::copy(), calls SpecialisedMover::do_copy(), and the @c latex + * is just Mover::copy(), calls SpecialisedMover::do_copy(), and the @c latex * argument IS in that case used. */ bool @@ -104,9 +104,9 @@ protected: * For example, an Xfig .fig file can contain references to external * picture files. If such a reference has a relative path, then the * copied .fig file will require a transformation of the picture file - * reference if it is to be found by Xfig. + * reference if it is to be found by Xfig. * - * So, in this case, we need three arguments: + * So, in this case, we need three arguments: * (i) @c from the location of the file to be moved * (ii) @c to the location to which it should be moved * (iii) @c latex the identifier that should be used in the sort of @@ -125,9 +125,9 @@ public: * $$i is a placeholder for the name of the file to be moved, * $$o is a placeholder for the name of the file after moving, * $$l is a placeholder for the latex argument, as explained above. - * $$o and $$l can only differ if the file is copied from the temporary - * directory to the export location. If it is copied from the original - * location to the temporary directory, they are the same, so $$l may be + * $$o and $$l can only differ if the file is copied from the temporary + * directory to the export location. If it is copied from the original + * location to the temporary directory, they are the same, so $$l may be * ignored in this case, as it is in the Mover baseclass. */ SpecialisedMover(std::string const & command) diff --git a/src/Paragraph.h b/src/Paragraph.h index ec1c8c8b9a..d462f4c413 100644 --- a/src/Paragraph.h +++ b/src/Paragraph.h @@ -68,7 +68,7 @@ public: { return first < s.first; } - + inline bool operator==(FontSpan const & s) const { return first == s.first && last == s.last; @@ -83,7 +83,7 @@ public: { return empty() ? 0 : last - first; } - + inline FontSpan intersect(FontSpan const & f) const { @@ -100,7 +100,7 @@ public: result.last = last; return result; } - + inline bool empty() const { return first > last; @@ -468,7 +468,7 @@ public: bool mw, ///< pos_type pos, ///< start from here. bool del = true) const; - + void locateWord(pos_type & from, pos_type & to, word_location const loc) const; /// diff --git a/src/ParagraphParameters.h b/src/ParagraphParameters.h index 3a75696249..f651068f06 100644 --- a/src/ParagraphParameters.h +++ b/src/ParagraphParameters.h @@ -80,13 +80,13 @@ public: /// read the parameters from a string void read (std::string str, bool merge = true); - + /// read the parameters from a lex void read(Lexer & lex, bool merge = true); - - /// + + /// void apply(ParagraphParameters const & params, Layout const & layout); - + // It would be nice to have a working version of this method, so that // getStatus() could return information about what was possible. // bool canApply(ParagraphParameters const & params, Layout const & layout) diff --git a/src/SpellChecker.h b/src/SpellChecker.h index f908ba2b47..dd13a76da7 100644 --- a/src/SpellChecker.h +++ b/src/SpellChecker.h @@ -81,7 +81,7 @@ public: /// how many valid dictionaries were found virtual int numDictionaries() const = 0; - + /// if speller can spell check whole paragraph return true virtual bool canCheckParagraph() const { return false; } diff --git a/src/Text.h b/src/Text.h index 2174984b23..fc602fcf97 100644 --- a/src/Text.h +++ b/src/Text.h @@ -127,7 +127,7 @@ public: /// truncates str to maxlenwith an ellipsis and replaces the characters '\n' /// and '\t' with spaces static void shortenForOutliner(docstring & str, size_t const maxlen); - + /// Appends a possibly abbreviated representation of our text to \param os, /// where \param maxlen defines the maximum size of \param os. If \param /// shorten is true, then os is shortened as above. @@ -172,7 +172,7 @@ public: void selectAll(Cursor & cur); /// convenience function get the previous word or an empty string docstring previousWord(CursorSlice const & sl) const; - + /// what type of change operation to make enum ChangeOp { ACCEPT, diff --git a/src/TextClass.h b/src/TextClass.h index b84179fb9a..9fc8b19b42 100644 --- a/src/TextClass.h +++ b/src/TextClass.h @@ -451,7 +451,7 @@ public: /// docstring const & htmlstyles() const { return htmlstyles_; } /// Looks for the layout of "highest level", other than Part (or other - /// layouts with a negative toc number), for use in constructing TOCs and + /// layouts with a negative toc number), for use in constructing TOCs and /// similar information. Layout const & getTOCLayout() const; /// the paragraph style to use for TOCs, Bibliography, etc diff --git a/src/VCBackend.h b/src/VCBackend.h index 636cd9d470..570c4a295f 100644 --- a/src/VCBackend.h +++ b/src/VCBackend.h @@ -106,7 +106,7 @@ public: /// Check the directory of file and all parent directories /// for the existence of repository-info like .git or .svn static bool checkparentdirs(support::FileName const & file, std::string const & vcsdir); - + protected: /// parse information from the version file virtual void scanMaster() = 0; @@ -114,7 +114,7 @@ protected: /// Prepare a version identifier suitable for RCS and CVS. /// If needed converts last or relative number to the absolute revision. bool makeRCSRevision(std::string const &version, std::string &revis) const; - + /// GUI container for doVCCommandCall int doVCCommand(std::string const & cmd, support::FileName const & path, bool reportError = true); /** @@ -279,7 +279,7 @@ public: virtual void getLog(support::FileName const &); - /// Check for messages in cvs output. + /// Check for messages in cvs output. /// Returns conflict line. std::string scanLogFile(support::FileName const & f, std::string & status); @@ -334,7 +334,7 @@ private: static int doVCCommandCallWithOutput(std::string const & cmd, support::FileName const & path, support::FileName const & output); - + /// return the quoted pathname if Directory or filename if File virtual std::string const getTarget(OperationMode opmode) const; /// collect the diff of file or directory against repository diff --git a/src/frontends/Application.h b/src/frontends/Application.h index 26fad07e84..c0ea5c31ae 100644 --- a/src/frontends/Application.h +++ b/src/frontends/Application.h @@ -59,7 +59,7 @@ initialisation should be done before the instanciation of this class. | GuiView-1 (one or more in case of split-view mode). | | - | + | | | | | | WorkArea-1-1-1 (M1-1 WorkAreas, M1-1 <= N) | | | | @@ -73,7 +73,7 @@ initialisation should be done before the instanciation of this class. | | | | | | | Cursor | | - | + | | GuiView-2 (one or more in case of split-view mode). | | diff --git a/src/frontends/Delegates.h b/src/frontends/Delegates.h index d13af7eec5..b5844470e1 100644 --- a/src/frontends/Delegates.h +++ b/src/frontends/Delegates.h @@ -22,7 +22,7 @@ class Inset; namespace frontend { -class GuiBufferViewDelegate +class GuiBufferViewDelegate { public: virtual ~GuiBufferViewDelegate() {} diff --git a/src/frontends/FontLoader.h b/src/frontends/FontLoader.h index ac1854a345..e876e78200 100644 --- a/src/frontends/FontLoader.h +++ b/src/frontends/FontLoader.h @@ -32,7 +32,7 @@ public: ~FontLoader(); /// Update fonts after zoom, dpi, font names, or norm change - // (basically by deleting all cached values) + // (basically by deleting all cached values) void update(); /// Is the given font available ? diff --git a/src/frontends/Painter.h b/src/frontends/Painter.h index e515c5fe48..d03ebf40e8 100644 --- a/src/frontends/Painter.h +++ b/src/frontends/Painter.h @@ -176,7 +176,7 @@ public: char_type c, FontInfo const & f, preedit_style style) = 0; /// start monochrome painting mode, i.e. map every color into [min,max] - virtual void enterMonochromeMode(Color const & min, + virtual void enterMonochromeMode(Color const & min, Color const & max) = 0; /// leave monochrome painting mode virtual void leaveMonochromeMode() = 0; diff --git a/src/frontends/qt4/ButtonController.h b/src/frontends/qt4/ButtonController.h index 6d72430c9d..8f07cfb003 100644 --- a/src/frontends/qt4/ButtonController.h +++ b/src/frontends/qt4/ButtonController.h @@ -115,7 +115,7 @@ private: /// noncopyable ButtonController(ButtonController const &); void operator=(ButtonController const &); - + /// pimpl class Private; Private * d; diff --git a/src/frontends/qt4/ButtonPolicy.h b/src/frontends/qt4/ButtonPolicy.h index 8774255177..298ec43629 100644 --- a/src/frontends/qt4/ButtonPolicy.h +++ b/src/frontends/qt4/ButtonPolicy.h @@ -66,7 +66,7 @@ class ButtonPolicy public: // The various poicies - enum Policy { + enum Policy { /** Ok and Cancel buttons for dialogs with read-only operation. Note: This scheme supports the relabelling of Cancel to Close and vice versa. @@ -273,7 +273,7 @@ private: /// noncopyable ButtonPolicy(ButtonPolicy const &); void operator=(ButtonPolicy const &); - + /// pimpl class Private; Private * d; diff --git a/src/frontends/qt4/CategorizedCombo.h b/src/frontends/qt4/CategorizedCombo.h index b2e5c7fa72..a9a200a5cf 100644 --- a/src/frontends/qt4/CategorizedCombo.h +++ b/src/frontends/qt4/CategorizedCombo.h @@ -56,7 +56,7 @@ public: /// void showPopup(); - + /// bool eventFilter(QObject * o, QEvent * e); /// diff --git a/src/frontends/qt4/Dialog.h b/src/frontends/qt4/Dialog.h index 68587154e4..c5ccd2d292 100644 --- a/src/frontends/qt4/Dialog.h +++ b/src/frontends/qt4/Dialog.h @@ -47,7 +47,7 @@ enum KernelDocType /** \c Dialog collects the different parts of a Model-Controller-View * split of a generic dialog together. */ -class Dialog +class Dialog { public: /// \param lv is the access point for the dialog to the LyX kernel. diff --git a/src/frontends/qt4/GuiCommandBuffer.h b/src/frontends/qt4/GuiCommandBuffer.h index 8225ec71a7..49ed9bf043 100644 --- a/src/frontends/qt4/GuiCommandBuffer.h +++ b/src/frontends/qt4/GuiCommandBuffer.h @@ -70,7 +70,7 @@ private: /// open a listbox and show the contents of the list. When reversed /// is true, the contents of the list is filled bottom-up. - void showList(std::vector const & list, + void showList(std::vector const & list, QPoint const & pos, bool reversed = false) const; /// return the possible completions diff --git a/src/frontends/qt4/GuiCompare.h b/src/frontends/qt4/GuiCompare.h index 025d2da989..9a482d0814 100644 --- a/src/frontends/qt4/GuiCompare.h +++ b/src/frontends/qt4/GuiCompare.h @@ -33,7 +33,7 @@ public: ~GuiCompare(); void closeEvent(QCloseEvent *); - + private Q_SLOTS: /// void slotOK(); @@ -76,7 +76,7 @@ private: /// enable or disable all controls and rename the Close/Cancel button void enableControls(bool enable); - + /// browse for a file QString browse(QString const & in_name) const; /// retrieve the buffer from the specified filename diff --git a/src/frontends/qt4/GuiCompareHistory.h b/src/frontends/qt4/GuiCompareHistory.h index 5204eee1da..58869cca38 100644 --- a/src/frontends/qt4/GuiCompareHistory.h +++ b/src/frontends/qt4/GuiCompareHistory.h @@ -50,7 +50,7 @@ private: void dispatchParams() {} /// void enableControls(); - + private: }; diff --git a/src/frontends/qt4/GuiCompleter.h b/src/frontends/qt4/GuiCompleter.h index a02a2c5dd6..ea22cadd1e 100644 --- a/src/frontends/qt4/GuiCompleter.h +++ b/src/frontends/qt4/GuiCompleter.h @@ -52,7 +52,7 @@ public: void activate(); /// Do a completion as far as it is unique, but at least one character. void tab(); - + /// Update the visibility of the popup and the inline completion. /// This method might set the update flags of the cursor to request /// a redraw. @@ -66,7 +66,7 @@ public: docstring longestUniqueCompletion() const; /// bool uniqueCompletionAvailable() const; - + public Q_SLOTS: /// Show the popup. void showPopup(); @@ -91,7 +91,7 @@ private Q_SLOTS: void asyncHidePopup(); /// the asynchronous part of hideInline(cur) void asyncHideInline(); - + private: /// void setCurrentCompletion(QString const & s); diff --git a/src/frontends/qt4/GuiDialog.h b/src/frontends/qt4/GuiDialog.h index 3b26943923..b579e3f038 100644 --- a/src/frontends/qt4/GuiDialog.h +++ b/src/frontends/qt4/GuiDialog.h @@ -22,7 +22,7 @@ namespace lyx { namespace frontend { /// Base class for historical LyX dialogs. -/** +/** * \warning New dialogs should use the leaner classes \c DialogView or * \c DockView depending on the intent. Eventually, old dialogs should be * converted to \c DialogView too. @@ -97,7 +97,7 @@ public: * to close or not (no point refreshing the display for example). */ bool isClosing() const { return is_closing_; } - + /// bool needBufferOpen() const { return isBufferDependent(); } diff --git a/src/frontends/qt4/GuiDocument.h b/src/frontends/qt4/GuiDocument.h index 0c39bf8f91..2d0fc88822 100644 --- a/src/frontends/qt4/GuiDocument.h +++ b/src/frontends/qt4/GuiDocument.h @@ -257,7 +257,7 @@ private: bool providesOSF(QString const & font) const; /// does this font provide true Small Caps? bool providesSC(QString const & font) const; - /** does this font provide OSF and Small Caps only via + /** does this font provide OSF and Small Caps only via * a single, undifferentiated expert option? */ bool hasMonolithicExpertSet(QString const & font) const; diff --git a/src/frontends/qt4/GuiIdListModel.h b/src/frontends/qt4/GuiIdListModel.h index 4282940e98..3ada4e6226 100644 --- a/src/frontends/qt4/GuiIdListModel.h +++ b/src/frontends/qt4/GuiIdListModel.h @@ -28,10 +28,10 @@ namespace frontend { /** * A QAbstractListModel that associates an identifying string with * each item, as well as a display string. The display string is set - * with setUIString; the identifying string, with setIDString. + * with setUIString; the identifying string, with setIDString. * * This is intended to be used, for example, with GuiSelectionManager. - * In that case, one needs to recover from selectedModel which items + * In that case, one needs to recover from selectedModel which items * have been selected. One may not wish to do so using the string that * is there *displayed*, since, among other things, that string may be * translated. So the id can be used to identify the items in this case. @@ -48,16 +48,16 @@ public: { return userData_.size(); } /// - virtual QVariant data(QModelIndex const & index, + virtual QVariant data(QModelIndex const & index, int role = Qt::DisplayRole) const; /// bool insertRows(int row, int count, QModelIndex const & parent = QModelIndex()); /// bool removeRows(int row, int count, QModelIndex const & parent = QModelIndex()); - /// + /// void clear() { removeRows(0, rowCount()); } /// - virtual bool setData (QModelIndex const & index, + virtual bool setData (QModelIndex const & index, const QVariant & value, int role = Qt::EditRole ); /// virtual QMap itemData(QModelIndex const & index ) const; @@ -65,10 +65,10 @@ public: // New methods ////////////////////////////////////////////////////////////////////// /// - void insertRow(int const i, QString const & uiString, + void insertRow(int const i, QString const & uiString, std::string const & idString, QString const & ttString); /// A convenience method, setting ttString to the same as uiString - void insertRow(int const i, QString const & uiString, + void insertRow(int const i, QString const & uiString, std::string const & idString); /// \return the index of the (first) item with idString /// \return -1 if not found @@ -123,4 +123,4 @@ private: } } -#endif //GUIIDLISTMODEL_H +#endif //GUIIDLISTMODEL_H diff --git a/src/frontends/qt4/GuiPrefs.h b/src/frontends/qt4/GuiPrefs.h index ca93781c4b..3b6ff60443 100644 --- a/src/frontends/qt4/GuiPrefs.h +++ b/src/frontends/qt4/GuiPrefs.h @@ -519,7 +519,7 @@ private: // user_unbind_ holds \unbind bindings from user.bind // When an item is inserted, it is added to user_bind_ // When an item from system_bind_ is deleted, it is added to user_unbind_ - // When an item in user_bind_ or user_unbind_ is deleted, it is + // When an item in user_bind_ or user_unbind_ is deleted, it is // deleted (unbind) KeyMap system_bind_; KeyMap user_bind_; diff --git a/src/frontends/qt4/GuiProgressView.h b/src/frontends/qt4/GuiProgressView.h index 9a743f2322..f7593a2cc1 100644 --- a/src/frontends/qt4/GuiProgressView.h +++ b/src/frontends/qt4/GuiProgressView.h @@ -36,7 +36,7 @@ class ProgressViewWidget : public QWidget, public Ui::ProgressViewUi public: ProgressViewWidget(); private: - + }; class GuiProgressView : public DockView diff --git a/src/frontends/qt4/GuiToolbar.h b/src/frontends/qt4/GuiToolbar.h index 43f6188748..6df840a9bd 100644 --- a/src/frontends/qt4/GuiToolbar.h +++ b/src/frontends/qt4/GuiToolbar.h @@ -67,8 +67,8 @@ class GuiToolbar : public QToolBar public: /// GuiToolbar(ToolbarInfo const &, GuiView &); - - /// Reimplemented from QToolbar to detect whether the + + /// Reimplemented from QToolbar to detect whether the /// toolbar is restored with MainWindow::restoreState(). void setVisible(bool visible); diff --git a/src/frontends/qt4/GuiView.h b/src/frontends/qt4/GuiView.h index fbb886696a..a3158a42f3 100644 --- a/src/frontends/qt4/GuiView.h +++ b/src/frontends/qt4/GuiView.h @@ -110,7 +110,7 @@ public: /// display a message in the view /// could be called from any thread void message(docstring const &); - + bool getStatus(FuncRequest const & cmd, FuncStatus & flag); /// dispatch command. /// \return true if the \c FuncRequest has been dispatched. @@ -173,7 +173,7 @@ public: /// TocModels & tocModels(); - + /// called on timeout void autoSave(); @@ -191,7 +191,7 @@ public: /// \return the \c Workarea at index \c index GuiWorkArea * workArea(int index); - /// Add a \c WorkArea + /// Add a \c WorkArea /// \return the \c Workarea associated to \p Buffer /// \retval 0 if no \c WorkArea is found. GuiWorkArea * addWorkArea(Buffer & buffer); @@ -208,7 +208,7 @@ public: GuiWorkArea const * currentMainWorkArea() const; /// return the current document WorkArea (it may not have the focus). GuiWorkArea * currentMainWorkArea(); - + /// Current ratio between physical pixels and device-independent pixels double pixelRatio() const; @@ -304,7 +304,7 @@ public: void hideAll() const; /// Update all visible dialogs. - /** + /** * Check the status of all visible dialogs and disable or reenable * them as appropriate. * @@ -374,7 +374,7 @@ private: /// enum RenameKind { LV_WRITE_AS, LV_VC_RENAME, LV_VC_COPY }; - /// Save a buffer as a new file. + /// Save a buffer as a new file. /** Write a buffer to a new file name and rename the buffer according to the new file name. @@ -407,7 +407,7 @@ private: /// closes the tabworkarea and all tabs. If we are in a close event, /// all buffers will be closed, otherwise they will be hidden. bool closeTabWorkArea(TabWorkArea * twa); - /// gives the user the possibility to save his work + /// gives the user the possibility to save his work /// or to discard the changes. If hiding is true, the /// document will be reloaded. bool saveBufferIfNeeded(Buffer & buf, bool hiding); diff --git a/src/frontends/qt4/GuiWorkArea_Private.h b/src/frontends/qt4/GuiWorkArea_Private.h index a3cc7b338d..a7eea0b1d8 100644 --- a/src/frontends/qt4/GuiWorkArea_Private.h +++ b/src/frontends/qt4/GuiWorkArea_Private.h @@ -127,7 +127,7 @@ struct GuiWorkArea::Private delete screen_; pixel_ratio_ = p->pixelRatio(); if (lyxrc.use_qimage) { - QImage *x = + QImage *x = new QImage(static_cast(pixel_ratio_ * p->viewport()->width()), static_cast(pixel_ratio_ * p->viewport()->height()), QImage::Format_ARGB32_Premultiplied); @@ -136,7 +136,7 @@ struct GuiWorkArea::Private #endif screen_ = x; } else { - QPixmap *x = + QPixmap *x = new QPixmap(static_cast(pixel_ratio_ * p->viewport()->width()), static_cast(pixel_ratio_ * p->viewport()->height())); #if QT_VERSION >= 0x050000 @@ -182,7 +182,7 @@ struct GuiWorkArea::Private /// are ignored bool dialog_mode_; /// store the name of the context menu when the mouse is - /// pressed. This is used to get the correct context menu + /// pressed. This is used to get the correct context menu /// when the menu is actually shown (after releasing on Windows) /// and after the DEPM has done its job. std::string context_menu_name_; diff --git a/src/frontends/qt4/IconPalette.h b/src/frontends/qt4/IconPalette.h index de16fb55e4..f63e68d5ce 100644 --- a/src/frontends/qt4/IconPalette.h +++ b/src/frontends/qt4/IconPalette.h @@ -65,7 +65,7 @@ private: QGridLayout * layout_; QList actions_; bool tornoff_; - TearOff * tearoffwidget_; + TearOff * tearoffwidget_; }; diff --git a/src/frontends/qt4/InGuiThread.h b/src/frontends/qt4/InGuiThread.h index 86c4afee50..2b0d4dfe37 100644 --- a/src/frontends/qt4/InGuiThread.h +++ b/src/frontends/qt4/InGuiThread.h @@ -94,7 +94,7 @@ public: template R call(F f, P1& p1, P2& p2, P3& p3, P4& p4, P5& p5, P6& p6, P7& p7, P8& p8) { - return call(lyx::bind(f, lyx::ref(p1), lyx::ref(p2), lyx::ref(p3), lyx::ref(p4), + return call(lyx::bind(f, lyx::ref(p1), lyx::ref(p2), lyx::ref(p3), lyx::ref(p4), lyx::ref(p5), lyx::ref(p6), lyx::ref(p7), lyx::ref(p8))); } diff --git a/src/frontends/qt4/InsetParamsWidget.h b/src/frontends/qt4/InsetParamsWidget.h index 96f90d1801..63d9944a58 100644 --- a/src/frontends/qt4/InsetParamsWidget.h +++ b/src/frontends/qt4/InsetParamsWidget.h @@ -38,7 +38,7 @@ class CheckedWidget { public: CheckedWidget(QLineEdit * input, QWidget * label = 0); - /// + /// bool check() const; private: diff --git a/src/frontends/qt4/LayoutBox.h b/src/frontends/qt4/LayoutBox.h index 3ea92325f1..ac8c86e0f1 100644 --- a/src/frontends/qt4/LayoutBox.h +++ b/src/frontends/qt4/LayoutBox.h @@ -47,7 +47,7 @@ public: /// void showPopup(); - + /// bool eventFilter(QObject * o, QEvent * e); /// diff --git a/src/frontends/qt4/TocModel.h b/src/frontends/qt4/TocModel.h index 0c3c6b09dd..ed94218ad6 100644 --- a/src/frontends/qt4/TocModel.h +++ b/src/frontends/qt4/TocModel.h @@ -86,7 +86,7 @@ private: class TocModelSortProxyModel : public QSortFilterProxyModel { public: - TocModelSortProxyModel(QObject * w) + TocModelSortProxyModel(QObject * w) : QSortFilterProxyModel(w) {} diff --git a/src/frontends/qt4/qt_helpers.h b/src/frontends/qt4/qt_helpers.h index 909d921b9f..023e86afcf 100644 --- a/src/frontends/qt4/qt_helpers.h +++ b/src/frontends/qt4/qt_helpers.h @@ -35,7 +35,7 @@ namespace lyx { namespace support { class FileName; } class BufferParams; - + namespace frontend { class LengthCombo; @@ -50,11 +50,11 @@ Length widgetsToLength(QLineEdit const * input, QComboBox const * combo); // all the code to remove default_unit argument when equal to the // default. void lengthToWidgets(QLineEdit * input, LengthCombo * combo, - Length const & len, + Length const & len, Length::UNIT default_unit = Length::defaultUnit()); /// method to set widgets from a string void lengthToWidgets(QLineEdit * input, LengthCombo * combo, - std::string const & len, + std::string const & len, Length::UNIT default_unit = Length::defaultUnit()); /// method to set widgets from a docstring void lengthToWidgets(QLineEdit * input, LengthCombo * combo, @@ -123,18 +123,18 @@ support::FileName imageLibFileSearch(QString & dir, QString const & name, relative to relpath. \param title: title for dialog - + \param filters: *.ps, etc \param save: whether to save dialog info (current path, etc) for next use. -The \param labelN and \param dirN arguments provide for extra buttons +The \param labelN and \param dirN arguments provide for extra buttons in the dialog (e.g., "Templates" and a path to that directory). -The difference between the functions concerns when we think we have a -relative path. +The difference between the functions concerns when we think we have a +relative path. -In \c browseRelToParent, we return a relative path only if it IS NOT of +In \c browseRelToParent, we return a relative path only if it IS NOT of the form "../../foo.txt". In \c browseRelToSub, we return a relative path only if it IS of the diff --git a/src/insets/Inset.h b/src/insets/Inset.h index cbb8181dd3..e5a3991548 100644 --- a/src/insets/Inset.h +++ b/src/insets/Inset.h @@ -127,7 +127,7 @@ public: /** * This is typically used after this inset is created interactively. * Intented purpose is to sanitize internal state with regard to current - * Buffer. + * Buffer. **/ virtual void initView() {} /// \return true if this inset is labeled. @@ -183,7 +183,7 @@ public: FuncStatus & status) const; /// cursor enters - virtual void edit(Cursor & cur, bool front, + virtual void edit(Cursor & cur, bool front, EntryDirection entry_from = ENTRY_DIRECTION_IGNORE); /// sets cursor recursively descending into nested editable insets /** @@ -279,16 +279,16 @@ public: /// number of columns in gridlike structures virtual size_t ncols() const { return 0; } /// Is called when the cursor leaves this inset. - /// Returns true if cursor is now invalid, e.g. if former - /// insets in higher cursor slices of \c old do not exist + /// Returns true if cursor is now invalid, e.g. if former + /// insets in higher cursor slices of \c old do not exist /// anymore. /// \c old is the old cursor, the last slice points to this. /// \c cur is the new cursor. Use the update flags to cause a redraw. virtual bool notifyCursorLeaves(Cursor const & /*old*/, Cursor & /*cur*/) { return false; } /// Is called when the cursor enters this inset. - /// Returns true if cursor is now invalid, e.g. if former - /// insets in higher cursor slices of \c old do not exist + /// Returns true if cursor is now invalid, e.g. if former + /// insets in higher cursor slices of \c old do not exist /// anymore. /// \c cur is the new cursor, some slice points to this. Use the update /// flags to cause a redraw. @@ -299,9 +299,9 @@ public: virtual bool setMouseHover(BufferView const *, bool) const { return false; } /// return true if this inset is hovered (under mouse) - /// This is by now only used by mathed to draw corners + /// This is by now only used by mathed to draw corners /// (Inset::drawMarkers() and Inset::drawMarkers2()). - /// Other insets do not have to redefine this function to + /// Other insets do not have to redefine this function to /// return the correct status of mouseHovered. virtual bool mouseHovered(BufferView const *) const { return false; } @@ -374,7 +374,7 @@ public: /// Returns true if the inset supports inline completions at the /// cursor position. In this case the completion might be stored /// in the BufferView's inlineCompletion property. - virtual bool inlineCompletionSupported(Cursor const & /*cur*/) const + virtual bool inlineCompletionSupported(Cursor const & /*cur*/) const { return false; } /// Return true if the inline completion should be automatic. virtual bool automaticInlineCompletion() const { return true; } @@ -385,7 +385,7 @@ public: /// Returns completion suggestions at cursor position. Return an /// null pointer if no completion is a available or possible. /// The caller is responsible to free the returned object! - virtual CompletionList const * createCompletionList(Cursor const &) const + virtual CompletionList const * createCompletionList(Cursor const &) const { return 0; } /// Returns the completion prefix to filter the suggestions for completion. /// This is only called if completionList returned a non-null list. @@ -394,16 +394,16 @@ public: /// The completion does not contain the prefix. If finished is true, the /// completion is final. If finished is false, completion might only be /// a partial completion. - virtual bool insertCompletion(Cursor & /*cur*/, - docstring const & /*completion*/, bool /*finished*/) + virtual bool insertCompletion(Cursor & /*cur*/, + docstring const & /*completion*/, bool /*finished*/) { return false; } /// Get the completion inset position and size - virtual void completionPosAndDim(Cursor const &, int & /*x*/, int & /*y*/, + virtual void completionPosAndDim(Cursor const &, int & /*x*/, int & /*y*/, Dimension & /*dim*/) const {} /// returns true if the inset can hold an inset of given type virtual bool insetAllowed(InsetCode) const { return false; } - /// should this inset use the empty layout by default rather than + /// should this inset use the empty layout by default rather than /// the standard layout? (default: only if that is forced.) virtual bool usePlainLayout() const { return forcePlainLayout(); } /// if this inset has paragraphs should they be forced to use the @@ -429,7 +429,7 @@ public: /// either plain text or Qt html, and formatToolTip will be called /// on it before display in both cases. virtual docstring toolTip(BufferView const & bv, int x, int y) const; - + /// \return Context menu identifier. This function determines /// whose Inset's menu should be shown for the given position. virtual std::string contextMenu(BufferView const & bv, int x, int y) const; diff --git a/src/insets/InsetArgument.h b/src/insets/InsetArgument.h index cd03612862..cbd03375e0 100644 --- a/src/insets/InsetArgument.h +++ b/src/insets/InsetArgument.h @@ -56,7 +56,7 @@ public: /// int docbook(odocstream &, OutputParams const &) const { return 0; } /// - docstring xhtml(XHTMLStream &, OutputParams const &) const + docstring xhtml(XHTMLStream &, OutputParams const &) const { return docstring(); } /// void write(std::ostream & os) const; diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h index a2aca81c4b..92dc9405c2 100644 --- a/src/insets/InsetCaption.h +++ b/src/insets/InsetCaption.h @@ -52,7 +52,7 @@ private: bool descendable(BufferView const &) const { return true; } /// void metrics(MetricsInfo & mi, Dimension & dim) const; - /// + /// void drawBackground(PainterInfo & pi, int x, int y) const; /// void draw(PainterInfo & pi, int x, int y) const; @@ -77,14 +77,14 @@ private: size_t max_length = INT_MAX) const; /// int docbook(odocstream & os, OutputParams const & runparams) const; - /// + /// docstring xhtml(XHTMLStream & os, OutputParams const & runparams) const; /// void setCustomLabel(docstring const & label); /// void addToToc(DocIterator const & di, bool output_active, UpdateType utype, TocBackend & backend) const; - /// + /// virtual bool forcePlainLayout(idx_type = 0) const { return true; } /// Captions don't accept alignment, spacing, etc. virtual bool allowParagraphCustomization(idx_type = 0) const { return false; } diff --git a/src/insets/InsetCode.h b/src/insets/InsetCode.h index 7d4632cd16..e580472ec3 100644 --- a/src/insets/InsetCode.h +++ b/src/insets/InsetCode.h @@ -133,7 +133,7 @@ enum InsetCode { /// MATH_CASES_CODE, /// - MATH_CHAR_CODE, + MATH_CHAR_CODE, /// MATH_COLOR_CODE, /// @@ -225,7 +225,7 @@ enum InsetCode { /// PREVIEW_CODE, /// - MATH_DIAGRAM_CODE, + MATH_DIAGRAM_CODE, /// SCRIPT_CODE, /// diff --git a/src/insets/InsetCommand.h b/src/insets/InsetCommand.h index 0514e09ffe..f51f8c939a 100644 --- a/src/insets/InsetCommand.h +++ b/src/insets/InsetCommand.h @@ -108,7 +108,7 @@ protected: //@{ /// Build the complete LaTeX command /// \see InsetCommandParams::getCommand - docstring const getCommand(OutputParams const & rp) const + docstring const getCommand(OutputParams const & rp) const { return p_.getCommand(rp); } /// Return the command name /// \see InsetCommandParams::getCmdName diff --git a/src/insets/InsetCommandParams.h b/src/insets/InsetCommandParams.h index 861565a31e..121fdac176 100644 --- a/src/insets/InsetCommandParams.h +++ b/src/insets/InsetCommandParams.h @@ -69,7 +69,7 @@ public: docstring const & defaultValue() const { return default_value_; } /// bool operator==(ParamData const &) const; - /// + /// bool operator!=(ParamData const & rhs) const { return !(*this == rhs); } private: @@ -102,7 +102,7 @@ public: /// const_iterator const end() const { return info_.end(); } /// \return true if name corresponds to a parameter of some sort. - /// \return false if the parameter does not exist at all of it it + /// \return false if the parameter does not exist at all of it it bool hasParam(std::string const & name) const; /// ParamData const & operator[](std::string const & name) const; @@ -142,7 +142,7 @@ public: /// are cleared except those that exist also in the new command. /// What matters here is the parameter name, not position. void setCmdName(std::string const & n); - /// FIXME Would be better removed, but is used in BufferView.cpp in + /// FIXME Would be better removed, but is used in BufferView.cpp in /// ways that make removal hard. docstring getFirstNonOptParam() const; /// get parameter \p name @@ -159,7 +159,7 @@ public: void clear(); /// static bool isCompatibleCommand(InsetCode code, std::string const & s); - /// + /// ParamInfo const & info() const { return info_; } /// docstring prepareCommand(OutputParams const & runparams, diff --git a/src/insets/InsetHyperlink.h b/src/insets/InsetHyperlink.h index 1dd3e08e2c..a70200cc75 100644 --- a/src/insets/InsetHyperlink.h +++ b/src/insets/InsetHyperlink.h @@ -24,7 +24,7 @@ class InsetHyperlink : public InsetCommand public: /// InsetHyperlink(Buffer * buf, InsetCommandParams const &); - + /// \name Public functions inherited from Inset class //@{ /// @@ -59,14 +59,14 @@ public: /// \name Static public methods obligated for InsetCommand derived classes //@{ /// - static bool isCompatibleCommand(std::string const & s) + static bool isCompatibleCommand(std::string const & s) { return s == "href"; } /// static std::string defaultCommand() { return "href"; } /// static ParamInfo const & findInfo(std::string const &); //@} - + private: /// \name Private functions inherited from Inset class //@{ diff --git a/src/insets/InsetIPA.h b/src/insets/InsetIPA.h index 84db92e457..fe8cd99252 100644 --- a/src/insets/InsetIPA.h +++ b/src/insets/InsetIPA.h @@ -29,7 +29,7 @@ namespace graphics { /// An IPA inset with instant preview class InsetIPA : public InsetText { - + public: /// InsetIPA(Buffer *); @@ -47,11 +47,11 @@ public: bool neverIndent() const { return true; } bool forceLocalFontSwitch() const { return true; } - + InsetCode lyxCode() const { return IPA_CODE; } - + docstring layoutName() const { return from_ascii("IPA"); } - + bool descendable(BufferView const & /*bv*/) const { return true; } void metrics(MetricsInfo & mi, Dimension & dim) const; @@ -73,7 +73,7 @@ public: void write(std::ostream & os) const; void edit(Cursor & cur, bool front, EntryDirection entry_from); - + /// void latex(otexstream &, OutputParams const &) const; /// @@ -85,7 +85,7 @@ public: /// bool insetAllowed(InsetCode code) const; //@} - + protected: /// Retrieves the preview state. Returns true if preview /// is enabled and the preview image is availabled. diff --git a/src/insets/InsetInclude.h b/src/insets/InsetInclude.h index e616f55626..7be5f7892d 100644 --- a/src/insets/InsetInclude.h +++ b/src/insets/InsetInclude.h @@ -159,15 +159,15 @@ private: void setParams(InsetCommandParams const & params); /// get the text displayed on the button docstring screenLabel() const; - //@} - + //@} + /// holds the entity name that defines the file location (SGML) docstring const include_label; /// The pointer never changes although *preview_'s contents may. unique_ptr const preview_; - /// + /// mutable bool failedtoload_; /// cache mutable bool set_label_; diff --git a/src/insets/InsetInfo.h b/src/insets/InsetInfo.h index 12932025b0..25fca87e0a 100644 --- a/src/insets/InsetInfo.h +++ b/src/insets/InsetInfo.h @@ -61,8 +61,8 @@ icon: argument is the name of the LFUN such as "paste". The syntax is the same buffer: argument can be one of "name", "path", "class". This inset output the filename, path, and textclass of this buffer. - -lyxinfo: argument must (presently) be "version". This inset outputs information + +lyxinfo: argument must (presently) be "version". This inset outputs information about the version of LyX currently in use. There is currently no GUI, no menu entry for this inset. A user can define a diff --git a/src/insets/InsetLabel.h b/src/insets/InsetLabel.h index 65a6d3aa20..22131ab4a1 100644 --- a/src/insets/InsetLabel.h +++ b/src/insets/InsetLabel.h @@ -19,7 +19,7 @@ namespace lyx { class Counter; -class InsetLabel : public InsetCommand +class InsetLabel : public InsetCommand { public: /// @@ -70,7 +70,7 @@ public: /// static std::string defaultCommand() { return "label"; } /// - static bool isCompatibleCommand(std::string const & s) + static bool isCompatibleCommand(std::string const & s) { return s == "label"; } //@} @@ -80,7 +80,7 @@ public: /// docstring screenLabel() const; //@} - + private: /// \name Private functions inherited from Inset class //@{ diff --git a/src/insets/InsetLayout.h b/src/insets/InsetLayout.h index c1bbe5c073..c4a12a4018 100644 --- a/src/insets/InsetLayout.h +++ b/src/insets/InsetLayout.h @@ -85,12 +85,12 @@ public: FontInfo labelfont() const { return labelfont_; } /// ColorCode bgcolor() const { return bgcolor_; } - /// + /// Layout::LaTeXArgMap const & latexargs() const { return latexargs_; } /// Layout::LaTeXArgMap const & postcommandargs() const { return postcommandargs_; } /// Returns latexargs() + postcommandargs(). - /// But note that it returns a *copy*, not a reference, so do not do + /// But note that it returns a *copy*, not a reference, so do not do /// anything like: /// Layout::LaTeXArgMap::iterator it = args().begin(); /// Layout::LaTeXArgMap::iterator en = args().end(); @@ -120,7 +120,7 @@ public: std::string const & htmlattr() const; /// Tag for individual paragraphs in the inset. Default is none. std::string const & htmlinnertag() const { return htmlinnertag_; } - /// Attributes for that tag. Default (if a tag is provided) is: + /// Attributes for that tag. Default (if a tag is provided) is: /// class="name_inner". std::string const & htmlinnerattr() const; /// A label for this environment, possibly including a reference @@ -132,7 +132,7 @@ public: /// inline std::string htmllabeltag() const { return "span"; } /// - std::string htmllabelattr() const + std::string htmllabelattr() const { return "class=\"" + defaultCSSClass() + "_label\""; } /// CSS associated with this inset. docstring htmlstyle() const; @@ -263,7 +263,7 @@ private: std::set requires_; /// bool multipar_; - /// + /// bool custompars_; /// bool forceplain_; diff --git a/src/insets/InsetListingsParams.h b/src/insets/InsetListingsParams.h index a7120badeb..ce50de669d 100644 --- a/src/insets/InsetListingsParams.h +++ b/src/insets/InsetListingsParams.h @@ -38,7 +38,7 @@ public: /// add key=value to params_. key_=value will be used if key=value already exists /// unless replace=true. - void addParam(std::string const & key, std::string const & value, + void addParam(std::string const & key, std::string const & value, bool replace = false); /// add a few parameters @@ -84,7 +84,7 @@ public: /// void clear() { params_.clear(); } - + /// validate parameter, return an error message docstring validate() const; diff --git a/src/insets/InsetNomencl.h b/src/insets/InsetNomencl.h index d222c65266..4d11a47d79 100644 --- a/src/insets/InsetNomencl.h +++ b/src/insets/InsetNomencl.h @@ -60,7 +60,7 @@ public: /// static std::string defaultCommand() { return "nomenclature"; } /// - static bool isCompatibleCommand(std::string const & s) + static bool isCompatibleCommand(std::string const & s) { return s == "nomenclature"; } //@} @@ -93,7 +93,7 @@ public: void validate(LaTeXFeatures & features) const; /// int docbook(odocstream &, OutputParams const &) const; - /// + /// docstring xhtml(XHTMLStream &, OutputParams const &) const; /// InsetCode lyxCode() const; @@ -114,7 +114,7 @@ public: /// static std::string defaultCommand() { return "printnomenclature"; } /// - static bool isCompatibleCommand(std::string const & s) + static bool isCompatibleCommand(std::string const & s) { return s == "printnomenclature"; } //@} diff --git a/src/insets/InsetQuotes.h b/src/insets/InsetQuotes.h index f9dd5aeafa..bb3d4a2ca3 100644 --- a/src/insets/InsetQuotes.h +++ b/src/insets/InsetQuotes.h @@ -147,7 +147,7 @@ public: /// docstring xhtml(XHTMLStream &, OutputParams const &) const; - /// + /// void toString(odocstream &) const; /// void forOutliner(docstring &, size_t const maxlen, bool const) const; diff --git a/src/insets/InsetSpecialChar.h b/src/insets/InsetSpecialChar.h index fd3f6cd841..982b1d51a3 100644 --- a/src/insets/InsetSpecialChar.h +++ b/src/insets/InsetSpecialChar.h @@ -82,7 +82,7 @@ public: /// void toString(odocstream &) const; /// - bool isInToc() const { return true; } + bool isInToc() const { return true; } /// void forOutliner(docstring &, size_t const, bool const) const; /// diff --git a/src/insets/InsetTOC.h b/src/insets/InsetTOC.h index 7801f439ad..4d48c3220f 100644 --- a/src/insets/InsetTOC.h +++ b/src/insets/InsetTOC.h @@ -70,7 +70,7 @@ private: void makeTOCNoDepth(XHTMLStream & xs, Toc const & toc, const OutputParams & op) const; /// void makeTOCEntry(XHTMLStream & xs, Paragraph const & par, OutputParams const & op) const; - + /// \name Private functions inherited from Inset class //@{ /// diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index eb52bc81b6..eea88cdd69 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -93,11 +93,11 @@ public: WriteEverything = 7 }; /// - docstring insetAsXHTML(XHTMLStream &, OutputParams const &, + docstring insetAsXHTML(XHTMLStream &, OutputParams const &, XHTMLOptions) const; /// void validate(LaTeXFeatures & features) const; - + /// return the argument(s) only void getArgs(otexstream & os, OutputParams const &, bool const post = false) const; @@ -169,7 +169,7 @@ public: /// Update the counters of this inset and of its contents virtual void updateBuffer(ParIterator const &, UpdateType); - /// + /// void setMacrocontextPositionRecursive(DocIterator const & pos); /// void toString(odocstream &) const; @@ -205,7 +205,7 @@ public: /// \param prefix: a string that will preced the tooltip, /// e.g., "Index: ". /// \param len: length of the resulting string - /// NOTE This routine is kind of slow. It's fine to use it within the + /// NOTE This routine is kind of slow. It's fine to use it within the /// GUI, but definitely do not try to use it in updateBuffer or anything /// of that sort. (Note: unnecessary internal copies have been removed /// since the previous note. The efficiency would have to be assessed diff --git a/src/lyxfind.h b/src/lyxfind.h index 727b17f466..61f44366ec 100644 --- a/src/lyxfind.h +++ b/src/lyxfind.h @@ -64,7 +64,7 @@ bool lyxfind(BufferView * bv, FuncRequest const & ev); * The string is encoded by \c replace2string. * \return whether we did anything */ -bool lyxreplace(BufferView * bv, +bool lyxreplace(BufferView * bv, FuncRequest const &, bool has_deleted = false); /// find the next change in the buffer @@ -125,7 +125,7 @@ std::istringstream & operator>>(std::istringstream & is, lyx::FindAndReplaceOpti /// Perform a FindAdv operation. bool findAdv(BufferView * bv, FindAndReplaceOptions const & opt); - + /** Computes the simple-text or LaTeX export (depending on opt) of buf starting ** from cur and ending len positions after cur, if len is positive, or at the ** paragraph or innermost inset end if len is -1. diff --git a/src/mathed/InsetMathAMSArray.h b/src/mathed/InsetMathAMSArray.h index c337c781a0..930a2bef4b 100644 --- a/src/mathed/InsetMathAMSArray.h +++ b/src/mathed/InsetMathAMSArray.h @@ -42,7 +42,7 @@ public: void infoize(odocstream & os) const; /// void normalize(NormalStream &) const; - // Don't need mathmlize or htmlize, as this is handled by + // Don't need mathmlize or htmlize, as this is handled by // InsetMathMatrix after being extracted in MathExtern. // void mathmlize(MathStream &) const; // void htmlize(HTMLStream &) const; diff --git a/src/mathed/InsetMathExInt.h b/src/mathed/InsetMathExInt.h index 5254166d66..8e86571168 100644 --- a/src/mathed/InsetMathExInt.h +++ b/src/mathed/InsetMathExInt.h @@ -26,7 +26,7 @@ namespace lyx { // cell(1) is the stuff after the 'd' // cell(2) is the lower bound // cell(3) is the upper bound -// for sums: +// for sums: // cell(0) is the main body // cell(1) is the index (e.g., i), if the lower bound is "i = ..." // or the whole lower bound if not diff --git a/src/mathed/InsetMathGrid.h b/src/mathed/InsetMathGrid.h index 05bb52aea9..9cd22eae51 100644 --- a/src/mathed/InsetMathGrid.h +++ b/src/mathed/InsetMathGrid.h @@ -225,7 +225,7 @@ public: //void maple(MapleStream &) const; /// void mathmlize(MathStream &) const; - /// + /// void htmlize(HtmlStream &) const; /// void htmlize(HtmlStream &, std::string attrib) const; @@ -267,7 +267,7 @@ protected: // The following two functions are used in InsetMathHull and // InsetMathSplit. - /// The value of a fixed col align for a certain hull type + /// The value of a fixed col align for a certain hull type static char colAlign(HullType type, col_type col); /// The value of a fixed col spacing for a certain hull type static int colSpace(HullType type, col_type col); diff --git a/src/mathed/InsetMathHull.h b/src/mathed/InsetMathHull.h index 1b3eef3410..183b851ba5 100644 --- a/src/mathed/InsetMathHull.h +++ b/src/mathed/InsetMathHull.h @@ -59,7 +59,7 @@ public: mode_type currentMode() const; /// void metrics(MetricsInfo & mi, Dimension & dim) const; - /// + /// void drawBackground(PainterInfo & pi, int x, int y) const; /// void draw(PainterInfo &, int x, int y) const; @@ -143,7 +143,7 @@ public: /// bool readQuiet(Lexer & lex); /// - int plaintext(odocstringstream &, OutputParams const &, + int plaintext(odocstringstream &, OutputParams const &, size_t max_length = INT_MAX) const; /// int docbook(odocstream &, OutputParams const &) const; @@ -155,7 +155,7 @@ public: void htmlize(HtmlStream &) const; /// void mathAsLatex(WriteStream &) const; - /// + /// void toString(odocstream &) const; /// void forOutliner(docstring &, size_t const, bool const) const; @@ -177,7 +177,7 @@ public: /// static int displayMargin() { return 12; } - + /// Force inset into LTR environment if surroundings are RTL virtual bool forceLTR() const { return true; } /// @@ -217,7 +217,7 @@ private: /// If so, we ignore LyXRC and wait for the image to be generated. void preparePreview(DocIterator const & pos, bool forexport = false) const; - /// like reloadPreview, but forces load + /// like reloadPreview, but forces load /// used by image export void loadPreview(DocIterator const & pos) const; /// @@ -288,7 +288,7 @@ public: /// bool editable() const { return true; } /// - void edit(Cursor & cur, bool front, + void edit(Cursor & cur, bool front, EntryDirection entry_from = ENTRY_DIRECTION_IGNORE); /// Inset * editXY(Cursor & cur, int x, int y); diff --git a/src/mathed/InsetMathMatrix.h b/src/mathed/InsetMathMatrix.h index d64ba3006c..49c5ce4e5f 100644 --- a/src/mathed/InsetMathMatrix.h +++ b/src/mathed/InsetMathMatrix.h @@ -24,7 +24,7 @@ namespace lyx { class InsetMathMatrix : public InsetMathGrid { public: /// - explicit InsetMathMatrix(InsetMathGrid const &, + explicit InsetMathMatrix(InsetMathGrid const &, docstring const & left, docstring const & right); /// identifies MatrixInsets InsetMathMatrix const * asMatrixInset() const { return this; } diff --git a/src/mathed/InsetMathNest.h b/src/mathed/InsetMathNest.h index 51670a2c64..3d4977d63c 100644 --- a/src/mathed/InsetMathNest.h +++ b/src/mathed/InsetMathNest.h @@ -107,7 +107,7 @@ public: /// bool setMouseHover(BufferView const * bv, bool mouse_hover) const; /// - bool mouseHovered(BufferView const * bv) const + bool mouseHovered(BufferView const * bv) const { return mouse_hover_[bv]; } /// @@ -193,7 +193,7 @@ protected: bool lock_; /// mutable std::map mouse_hover_; -}; +}; diff --git a/src/mathed/InsetMathSideset.h b/src/mathed/InsetMathSideset.h index e1b70df295..b88548bdb5 100644 --- a/src/mathed/InsetMathSideset.h +++ b/src/mathed/InsetMathSideset.h @@ -107,9 +107,9 @@ private: /// Italic correction as described in InsetMathScript.h int nker(BufferView const * bv) const; /// Whether there are two left scripts or one single cell - bool scriptl_; + bool scriptl_; /// Whether there are two right scripts or one single cell - bool scriptr_; + bool scriptr_; }; diff --git a/src/mathed/InsetMathUnknown.h b/src/mathed/InsetMathUnknown.h index 2effe3c69b..3d66df7555 100644 --- a/src/mathed/InsetMathUnknown.h +++ b/src/mathed/InsetMathUnknown.h @@ -35,7 +35,7 @@ public: /// docstring const & selection() const { return selection_; } - + /// identifies UnknownInsets InsetMathUnknown const * asUnknownInset() const { return this; } /// identifies UnknownInsets diff --git a/src/mathed/MathData.h b/src/mathed/MathData.h index ed85c78977..f29d1e59dc 100644 --- a/src/mathed/MathData.h +++ b/src/mathed/MathData.h @@ -198,18 +198,18 @@ private: /// void detachMacroParameters(DocIterator * dit, const size_type macroPos); /// - void attachMacroParameters(Cursor * cur, const size_type macroPos, + void attachMacroParameters(Cursor * cur, const size_type macroPos, const size_type macroNumArgs, const int macroOptionals, const bool fromInitToNormalMode, const bool interactiveInit, const size_t appetite); /// - void collectOptionalParameters(Cursor * cur, - const size_type numOptionalParams, std::vector & params, + void collectOptionalParameters(Cursor * cur, + const size_type numOptionalParams, std::vector & params, size_t & pos, MathAtom & scriptToPutAround, const pos_type macroPos, const int thisPos, const int thisSlice); /// - void collectParameters(Cursor * cur, - const size_type numParams, std::vector & params, + void collectParameters(Cursor * cur, + const size_type numParams, std::vector & params, size_t & pos, MathAtom & scriptToPutAround, const pos_type macroPos, const int thisPos, const int thisSlice, const size_t appetite); diff --git a/src/mathed/MathMacroTemplate.h b/src/mathed/MathMacroTemplate.h index 56fe0ecb0f..d67b8a27c7 100644 --- a/src/mathed/MathMacroTemplate.h +++ b/src/mathed/MathMacroTemplate.h @@ -30,7 +30,7 @@ public: MathMacroTemplate(Buffer * buf); /// MathMacroTemplate(Buffer * buf, docstring const & name, int nargs, - int optional, MacroType type, + int optional, MacroType type, std::vector const & optionalValues = std::vector(), MathData const & def = MathData(), MathData const & display = MathData()); @@ -79,10 +79,10 @@ public: bool validMacro() const; /// bool validName() const; - /// Remove everything from the name which makes it invalid + /// Remove everything from the name which makes it invalid /// and return true iff it is valid. bool fixNameAndCheckIfValid(); - + /// request "external features" virtual void validate(LaTeXFeatures &) const; @@ -116,7 +116,7 @@ protected: private: friend class InsetLabelBox; friend class DisplayLabelBox; - + /// virtual Inset * clone() const; @@ -127,7 +127,7 @@ private: void shiftArguments(size_t from, int by); /// void insertParameter(Cursor & cur, DocIterator const & inset_pos, - int pos, bool greedy = false, bool addarg = true); + int pos, bool greedy = false, bool addarg = true); /// void removeParameter(Cursor & cur, DocIterator const & inset_pos, int pos, bool greedy = false); @@ -160,7 +160,7 @@ private: mutable int argsInLook_; /// int optionals_; - /// keeps the old optional default value when an + /// keeps the old optional default value when an /// optional argument is disabled std::vector optionalValues_; diff --git a/src/mathed/MathStream.h b/src/mathed/MathStream.h index 271330ea0d..262fc6e8d6 100644 --- a/src/mathed/MathStream.h +++ b/src/mathed/MathStream.h @@ -302,7 +302,7 @@ private: class MTag { public: /// - MTag(char const * const tag, std::string attr = "") + MTag(char const * const tag, std::string attr = "") : tag_(tag), attr_(attr) {} /// char const * const tag_; diff --git a/src/support/AppleScript.h b/src/support/AppleScript.h index 6ac23b63bf..539b5ae328 100644 --- a/src/support/AppleScript.h +++ b/src/support/AppleScript.h @@ -12,7 +12,7 @@ #ifndef LYX_SUPPORT_APPLESCRIPT_H #define LYX_SUPPORT_APPLESCRIPT_H -#ifdef __cplusplus +#ifdef __cplusplus extern "C" { #endif /// What is returned by applescript_execute_command @@ -25,7 +25,7 @@ extern "C" { /// Sets up apple script support void setupApplescript(); -#ifdef __cplusplus +#ifdef __cplusplus } #endif diff --git a/src/support/ConsoleApplication.h b/src/support/ConsoleApplication.h index a66b28383b..2b8ed2b80b 100644 --- a/src/support/ConsoleApplication.h +++ b/src/support/ConsoleApplication.h @@ -24,7 +24,7 @@ class ConsoleApplicationPrivate; There should be only one instance of this class. No Qt object initialisation should be done before the instantiation of this class. This class could be moved to src/frontends/console in the future. -This would make sense if more console app related code is created. +This would make sense if more console app related code is created. */ class ConsoleApplication { diff --git a/src/support/ExceptionMessage.h b/src/support/ExceptionMessage.h index fea2efa9fd..9cd373c385 100644 --- a/src/support/ExceptionMessage.h +++ b/src/support/ExceptionMessage.h @@ -27,7 +27,7 @@ namespace support { /// /// WarningException /// Intended for unexpected situations that we do not expect -/// to compromise further operation. It has the effect of +/// to compromise further operation. It has the effect of /// aborting whatever operation in in process. /// /// BufferException @@ -36,7 +36,7 @@ namespace support { /// closed, in emergency style. /// /// ErrorException -/// Intended for situations that indicate a global problem +/// Intended for situations that indicate a global problem /// with the program. It will lead to an emergency shutdown. enum ExceptionType { diff --git a/src/support/FileName.h b/src/support/FileName.h index cfa0c653e6..8264d8087b 100644 --- a/src/support/FileName.h +++ b/src/support/FileName.h @@ -119,7 +119,7 @@ public: bool isDirWritable() const; /// \return list other files in the directory having optional extension 'ext'. FileNameList dirList(std::string const & ext) const; - + /// copy a file /// \return true when file/directory is writable (write test file) /// \warning This methods has different semantics when system level @@ -201,10 +201,10 @@ public: /// change to a directory, return success bool chdir() const; - + /// \param buffer_path if empty, uses `pwd` docstring const relPath(std::string const & path) const; - + docstring const absoluteFilePath() const; private: @@ -265,7 +265,7 @@ public: std::string relFileName(std::string const & buffer_path = empty_string()) const; /// \param buf_path if empty, uses `pwd` std::string outputFileName(std::string const & buf_path = empty_string()) const; - + /** @returns a mangled representation of the absolute file name * suitable for use in the temp dir when, for example, converting * an image file to another format. @@ -299,7 +299,7 @@ private: }; -/// \return true if these have the same absolute path name AND +/// \return true if these have the same absolute path name AND /// if save_abs_path_ has the same value in both cases. bool operator==(DocFileName const &, DocFileName const &); /// diff --git a/src/support/SystemcallPrivate.h b/src/support/SystemcallPrivate.h index 5aac5431ef..329274008b 100644 --- a/src/support/SystemcallPrivate.h +++ b/src/support/SystemcallPrivate.h @@ -24,7 +24,7 @@ class Systemcall; /** * Outputs to the console terminal the line buffered standard output and - * error of a spawned process when there is a controlling terminal and + * error of a spawned process when there is a controlling terminal and * stdout/stderr have not been redirected. */ class SystemcallPrivate : public QObject @@ -47,14 +47,14 @@ public: bool waitWhile(State, bool processEvents, int timeout = -1); void startProcess(QString const & cmd, std::string const & path, std::string const & lpath, bool detach); - + int exitCode(); QString errorMessage() const; QString exitStatusMessage() const; QProcess* releaseProcess(); - + static void killProcess(QProcess * p); @@ -93,7 +93,7 @@ private: void waitAndProcessEvents(); void processEvents(); - void killProcess(); + void killProcess(); }; diff --git a/src/support/debug.h b/src/support/debug.h index b98dfd0eab..16c4600e90 100644 --- a/src/support/debug.h +++ b/src/support/debug.h @@ -110,7 +110,7 @@ namespace Debug { /// Return number of levels int levelCount(); - + /// A function to convert debug level string names numerical values Type value(std::string const & val); @@ -144,7 +144,7 @@ class LyXErr public: LyXErr(): dt_(Debug::NONE), stream_(0), enabled_(true), second_stream_(0), second_enabled_(false) {} - + /// Disable the stream completely void disable(); /// Enable the stream after a possible call of disable() @@ -165,7 +165,7 @@ public: /// Returns second stream std::ostream & secondStream() { return *second_stream_; } /// Sets second stream - void setSecondStream(std::ostream * os) + void setSecondStream(std::ostream * os) { second_enabled_ = (second_stream_ = os); } /// Is the second stream is enabled? bool secondEnabled() { return second_enabled_; } diff --git a/src/support/lassert.h b/src/support/lassert.h index 3407b77415..b142cc2f59 100644 --- a/src/support/lassert.h +++ b/src/support/lassert.h @@ -31,15 +31,15 @@ LATTEST(expr) This macro should be used when one just wants to test expr. If devel mode, this will lead to an assertion. In release mode, we will simply continue. So LATTEST should be used only if you know, in advance, that it will be safe to - continue with the usual program flow, but failure of expr still means that + continue with the usual program flow, but failure of expr still means that there is something that needs to be fixed. LASSERT(expr, escape) - This macro should be used when a failure of expr is not compatible with + This macro should be used when a failure of expr is not compatible with continuing the ordinary program flow, but is something from which we can recover. This might mean simply returning early from some routine; it might mean resetting some variables to values known to be sane; it might mean - taking some other corrective action. + taking some other corrective action. LWARNIF(expr) This macro should be used when a failure of expr indicates that the current @@ -56,7 +56,7 @@ LAPPERR(expr) This macro should be used if a failure of expr is incompatible with LyX continuing to operate at all. In release mode, this issues an ErrorException, which typically results in an emergency shutdown. - + ******************************************************************************/ diff --git a/src/support/linkback/LinkBack.h b/src/support/linkback/LinkBack.h index ccf3274bfa..3e0cbb6c7c 100644 --- a/src/support/linkback/LinkBack.h +++ b/src/support/linkback/LinkBack.h @@ -6,30 +6,30 @@ // Copyright (c) 2004, Nisus Software, Inc. // All rights reserved. -// Redistribution and use in source and binary forms, with or without +// Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // -// Redistributions of source code must retain the above copyright notice, +// Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // -// Redistributions in binary form must reproduce the above copyright notice, -// this list of conditions and the following disclaimer in the documentation +// Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // -// Neither the name of the Nisus Software, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from this +// Neither the name of the Nisus Software, Inc. nor the names of its +// contributors may be used to endorse or promote products derived from this // software without specific prior written permission. // -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS -// IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +// IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // @@ -50,7 +50,7 @@ NSString* LinkBackUniqueItemKey() ; NSString* LinkBackEditMultipleMenuTitle() ; NSString* LinkBackEditNoneMenuTitle() ; -// +// // Deprecated Support Functions -- use LinkBack Data Category instead // id MakeLinkBackData(NSString* serverName, id appData) ; @@ -110,10 +110,10 @@ BOOL LinkBackDataBelongsToActiveApplication(id data) ; @interface LinkBack : NSObject { LinkBack* peer ; // the client or server on the other side. - BOOL isServer ; + BOOL isServer ; id delegate ; NSPasteboard* pboard ; - id repobj ; + id repobj ; NSString* sourceName ; NSString* sourceApplicationName ; NSString* key ; diff --git a/src/support/linkback/LinkBackServer.h b/src/support/linkback/LinkBackServer.h index b8b5c20bef..9473f4119c 100644 --- a/src/support/linkback/LinkBackServer.h +++ b/src/support/linkback/LinkBackServer.h @@ -6,30 +6,30 @@ // Copyright (c) 2004, Nisus Software, Inc. // All rights reserved. -// Redistribution and use in source and binary forms, with or without +// Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // -// Redistributions of source code must retain the above copyright notice, +// Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // -// Redistributions in binary form must reproduce the above copyright notice, -// this list of conditions and the following disclaimer in the documentation +// Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // -// Neither the name of the Nisus Software, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from this +// Neither the name of the Nisus Software, Inc. nor the names of its +// contributors may be used to endorse or promote products derived from this // software without specific prior written permission. // -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS -// IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +// IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // @@ -57,7 +57,7 @@ NSString* MakeLinkBackServerName(NSString* bundleIdentifier, NSString* name) ; + (LinkBackServer*)LinkBackServerWithName:(NSString*)name inApplication:(NSString*)bundleIdentifier launchIfNeeded:(BOOL)flag fallbackURL:(NSURL*)url appName:(NSString*)appName ; -// This method is used by clients to connect +// This method is used by clients to connect - (id)initWithName:(NSString*)name delegate:(id)aDel; diff --git a/src/support/lstrings.h b/src/support/lstrings.h index 36ba09fcb9..b120622169 100644 --- a/src/support/lstrings.h +++ b/src/support/lstrings.h @@ -241,7 +241,7 @@ docstring const rtrim(docstring const & a, char const * p = " "); std::string const ltrim(std::string const & a, char const * p = " "); docstring const ltrim(docstring const & a, char const * p = " "); -/** Splits the string given in the first argument at the first occurence +/** Splits the string given in the first argument at the first occurence of the third argument, delim. What precedes delim is returned in the second argument, piece; this will be the whole of the string if no delimiter is found. @@ -293,15 +293,15 @@ docstring const protectArgument(docstring & arg, char const l = '[', /// be displayed in worst-case scenarios. /// /// FIXME: apply those principles in the current code. -/// +/// bool truncateWithEllipsis(docstring & str, size_t const len); /// Word-wraps the provided docstring, returning a line-broken string -/// of width no wider than width, with the string broken at spaces. -/// If the string cannot be broken appropriately, it returns something +/// of width no wider than width, with the string broken at spaces. +/// If the string cannot be broken appropriately, it returns something /// with "..." at the end, again no wider than width. /// We assume here that str does not contain newlines. -/// If indent is positive, then the first line is indented that many +/// If indent is positive, then the first line is indented that many /// spaces. If it is negative, then successive lines are indented, as /// if the first line were "outdented". /// diff --git a/src/support/mutex.h b/src/support/mutex.h index 5f34f7de51..99b83e3a3d 100644 --- a/src/support/mutex.h +++ b/src/support/mutex.h @@ -27,12 +27,12 @@ class Mutex public: Mutex(); ~Mutex(); - + /// Scope based locking: /// Usage: /// >>> unlocked - /// { - /// Mutex::Locker locker(a_Mutex_ptr); + /// { + /// Mutex::Locker locker(a_Mutex_ptr); /// >>> locked /// } /// >>> unlocked diff --git a/src/support/weighted_btree.h b/src/support/weighted_btree.h index 0b833740d0..86063c3ae9 100644 --- a/src/support/weighted_btree.h +++ b/src/support/weighted_btree.h @@ -151,7 +151,7 @@ public: /// typedef _Weight weight_type; - + /// Second template parameter: The data type associated with each /// key. Stored in the B+ tree's leaves typedef _Data data_type; @@ -1519,13 +1519,13 @@ public: return iterator(leaf, slot); } - /// Searches the B+ tree and returns an iterator to the first summed weight + /// Searches the B+ tree and returns an iterator to the first summed weight /// less or equal to the parameter. If unsuccessful it returns end(). iterator lower_summed_weight_bound(weight_type weight) { node *n = root; if (!n) return end(); - + while(!n->isleafnode()) { const inner_node *inner = static_cast(n); int slot = find_summed_weight_lower(inner, weight); @@ -1567,7 +1567,7 @@ public: return const_iterator(leaf, slot); } - /// Searches the B+ tree and returns an iterator to the first summed weight + /// Searches the B+ tree and returns an iterator to the first summed weight /// less or equal to the parameter. If unsuccessful it returns end(). const_iterator lower_summed_weight_bound(weight_type weight) const { @@ -1637,7 +1637,7 @@ public: return const_iterator(leaf, slot); } - /// Searches the B+ tree and returns an iterator to the first summed weight + /// Searches the B+ tree and returns an iterator to the first summed weight /// greater than the parameter. If unsuccessful it returns end(). iterator upper_summed_weight_bound(weight_type weight) { @@ -1665,7 +1665,7 @@ public: return iterator(leaf, slot); } - /// Searches the B+ tree and returns an iterator to the first summed weight + /// Searches the B+ tree and returns an iterator to the first summed weight /// greater than the parameter. If unsuccessful it returns end(). const_iterator upper_summed_weight_bound(weight_type weight) const { diff --git a/src/tex2lyx/Parser.h b/src/tex2lyx/Parser.h index 19f0c5fbe3..cbdfcf7234 100644 --- a/src/tex2lyx/Parser.h +++ b/src/tex2lyx/Parser.h @@ -286,7 +286,7 @@ public: * found and the member \p second is the value. If \p * allow_linebreak is false, then the parsing is limited to one line */ - Arg verbatimStuff(std::string const & end_string, + Arg verbatimStuff(std::string const & end_string, bool allow_linebreak = true); /* * \returns the contents of the environment \p name.