This patch fixes a lot of doxygen warnings.
? newfile1.lyx ? src/frontends/xforms/lyx_forms.h ? src/frontends/xforms/lyx_xpm.h Index: sourcedoc/Doxyfile.in =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/sourcedoc/Doxyfile.in,v retrieving revision 1.5 diff -u -p -r1.5 Doxyfile.in --- sourcedoc/Doxyfile.in 17 Jun 2003 18:13:44 -0000 1.5 +++ sourcedoc/Doxyfile.in 18 Jun 2003 21:30:06 -0000 @@ -324,7 +324,7 @@ RECURSIVE = YES # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. -EXCLUDE = +EXCLUDE = ../src/frontends/gnome ../src/frontends/qt2/moc ../src/frontends/qt2/ui/moc # The EXCLUDE_SYMLINKS tag can be used select whether or not files or directories # that are symbolic links (a Unix filesystem feature) are excluded from the input. Index: src/CutAndPaste.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/CutAndPaste.C,v retrieving revision 1.104 diff -u -p -r1.104 CutAndPaste.C --- src/CutAndPaste.C 18 Jun 2003 13:53:11 -0000 1.104 +++ src/CutAndPaste.C 18 Jun 2003 21:30:06 -0000 @@ -2,8 +2,9 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Jurgen Vigna + * \author Juergen Vigna * \author Lars Gullik Bjønnes + * \author Alfredo Braunstein * * Full author contact details are available in file CREDITS */ @@ -49,7 +50,8 @@ CutStack cuts(10); } // namespace anon -vector<string> + +std::vector<string> CutAndPaste::availableSelections(Buffer const & buffer) { vector<string> selList; Index: src/CutAndPaste.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/CutAndPaste.h,v retrieving revision 1.28 diff -u -p -r1.28 CutAndPaste.h --- src/CutAndPaste.h 17 Jun 2003 15:33:45 -0000 1.28 +++ src/CutAndPaste.h 18 Jun 2003 21:30:06 -0000 @@ -1,10 +1,11 @@ // -*- C++ -*- -/* \file CutAndPaste.C +/* \file CutAndPaste.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Jurgen Vigna + * \author Juergen Vigna * \author Lars Gullik Bjønnes + * \author Alfredo Braunstein * * Full author contact details are available in file CREDITS */ Index: src/buffer.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/buffer.C,v retrieving revision 1.483 diff -u -p -r1.483 buffer.C --- src/buffer.C 16 Jun 2003 11:49:27 -0000 1.483 +++ src/buffer.C 18 Jun 2003 21:30:07 -0000 @@ -1125,7 +1125,7 @@ void Buffer::makeLinuxDocFile(string con ofs << "<!doctype linuxdoc system"; string preamble = params.preamble; - const string name = nice ? ChangeExtension(filename_, ".sgml") + string const name = nice ? ChangeExtension(filename_, ".sgml") : fname; preamble += features.getIncludedFiles(name); preamble += features.getLyXSGMLEntities(); @@ -1572,7 +1572,7 @@ void Buffer::makeDocBookFile(string cons << " PUBLIC \"-//OASIS//DTD DocBook V4.1//EN\""; string preamble = params.preamble; - const string name = nice ? ChangeExtension(filename_, ".sgml") + string const name = nice ? ChangeExtension(filename_, ".sgml") : fname; preamble += features.getIncludedFiles(name); preamble += features.getLyXSGMLEntities(); @@ -2033,7 +2033,7 @@ void Buffer::getLabelList(std::vector<st // This is also a buffer property (ale) -void Buffer::fillWithBibKeys(vector<pair<string, string> > & keys) const +void Buffer::fillWithBibKeys(std::vector<std::pair<string, string> > & keys) const { /// if this is a child document and the parent is already loaded /// use the parent's list instead [ale990412] Index: src/bufferlist.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/bufferlist.h,v retrieving revision 1.39 diff -u -p -r1.39 bufferlist.h --- src/bufferlist.h 22 May 2003 18:58:55 -0000 1.39 +++ src/bufferlist.h 18 Jun 2003 21:30:07 -0000 @@ -1,6 +1,6 @@ // -*- C++ -*- /** - * \file bufferlist.C + * \file bufferlist.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * Index: src/converter.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/converter.C,v retrieving revision 1.76 diff -u -p -r1.76 converter.C --- src/converter.C 24 May 2003 11:54:09 -0000 1.76 +++ src/converter.C 18 Jun 2003 21:30:07 -0000 @@ -67,6 +67,7 @@ Converter::Converter(string const & f, s original_dir(false), need_aux(false) {} + void Converter::readFlags() { string flag_list(flags); @@ -587,6 +588,7 @@ string const Converters::dvipdfm_options return result; } + void Converters::buildGraph() { G_.init(formats.size()); @@ -599,7 +601,8 @@ void Converters::buildGraph() } } -vector<Format const *> const + +std::vector<Format const *> const Converters::intToFormat(std::vector<int> const & input) { vector<Format const *> result(input.size()); @@ -622,6 +625,7 @@ Converters::getReachableTo(string const return intToFormat(reachablesto); } + vector<Format const *> const Converters::getReachable(string const & from, bool only_viewable, bool clear_visited) @@ -634,18 +638,21 @@ Converters::getReachable(string const & return intToFormat(reachables); } + bool Converters::isReachable(string const & from, string const & to) { return G_.isReachable(formats.getNumber(from), formats.getNumber(to)); } + Graph::EdgePath const Converters::getPath(string const & from, string const & to) { return G_.getPath(formats.getNumber(from), formats.getNumber(to)); } + /// The global instance Converters converters; Index: src/debug.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/debug.C,v retrieving revision 1.30 diff -u -p -r1.30 debug.C --- src/debug.C 16 May 2003 14:35:15 -0000 1.30 +++ src/debug.C 18 Jun 2003 21:30:07 -0000 @@ -105,7 +105,7 @@ void Debug::showLevel(ostream & os, Debu && errorTags[i].level != Debug::NONE && errorTags[i].level & level) { // avoid _(...) re-entrance problem - const string s = _(errorTags[i].desc); + string const s = _(errorTags[i].desc); os << bformat(_("Debugging `%1$s' (%2$s)"), errorTags[i].name, s); } Index: src/importer.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/importer.C,v retrieving revision 1.27 diff -u -p -r1.27 importer.C --- src/importer.C 13 May 2003 09:48:42 -0000 1.27 +++ src/importer.C 18 Jun 2003 21:30:07 -0000 @@ -1,5 +1,5 @@ /** - * \file exporter.C + * \file importer.C * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * Index: src/lyxlayout.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxlayout.h,v retrieving revision 1.10 diff -u -p -r1.10 lyxlayout.h --- src/lyxlayout.h 19 May 2003 07:12:07 -0000 1.10 +++ src/lyxlayout.h 18 Jun 2003 21:30:07 -0000 @@ -119,7 +119,7 @@ public: /// LyXAlignment alignpossible; /// - char labeltype; // add approp. type + LYX_LABEL_TYPES labeltype; /// LYX_END_LABEL_TYPES endlabeltype; /// Index: src/lyxtext.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxtext.h,v retrieving revision 1.175 diff -u -p -r1.175 lyxtext.h --- src/lyxtext.h 17 Jun 2003 15:33:45 -0000 1.175 +++ src/lyxtext.h 18 Jun 2003 21:30:08 -0000 @@ -315,9 +315,9 @@ public: /// select the word we need depending on word_location void getWord(LyXCursor & from, LyXCursor & to, - word_location const); + word_location loc); /// just selects the word the cursor is in - void selectWord(word_location const); + void selectWord(word_location loc); /// returns the inset at cursor (if it exists), 0 otherwise Inset * getInset() const; Index: src/lyxvc.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxvc.C,v retrieving revision 1.46 diff -u -p -r1.46 lyxvc.C --- src/lyxvc.C 13 May 2003 09:48:43 -0000 1.46 +++ src/lyxvc.C 18 Jun 2003 21:30:08 -0000 @@ -243,7 +243,7 @@ string const & LyXVC::locker() const } -const string LyXVC::getLogFile() const +string const LyXVC::getLogFile() const { if (!vcs) return string(); Index: src/text.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text.C,v retrieving revision 1.368 diff -u -p -r1.368 text.C --- src/text.C 18 Jun 2003 17:43:47 -0000 1.368 +++ src/text.C 18 Jun 2003 21:30:09 -0000 @@ -2046,7 +2046,7 @@ void LyXText::cursorLeftOneWord(LyXCurso // Select current word. This depends on behaviour of // CursorLeftOneWord(), so it is patched as well. void LyXText::getWord(LyXCursor & from, LyXCursor & to, - word_location const loc) + word_location loc) { // first put the cursor where we wana start to select the word from = cursor; Index: src/frontends/controllers/BCView.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/BCView.h,v retrieving revision 1.2 diff -u -p -r1.2 BCView.h --- src/frontends/controllers/BCView.h 14 Mar 2003 00:20:42 -0000 1.2 +++ src/frontends/controllers/BCView.h 18 Jun 2003 21:30:09 -0000 @@ -24,7 +24,7 @@ class ButtonController; class ButtonPolicy; -/** \class CheckedWidget is an abstract base class that can be stored +/** \c CheckedWidget is an abstract base class that can be stored * in the button controller's view and can be interrogated by it * when the activation state of the Ok, Apply buttons is refreshed. * Ideally, the user will be prevented from returning invalid data @@ -32,7 +32,7 @@ class ButtonPolicy; * * Many widgets can be grouped together in the derived class if they * make a logical whole. E.g., an input and a choice widget that together - * are used to set a LyXLength can be interrogated together. + * are used to set a LyXLength can be interrogated together. */ struct CheckedWidget { /// @@ -46,7 +46,7 @@ struct CheckedWidget { }; -/** \class BCView is the View to ButtonController's Controller. It +/** \c BCView is the View to ButtonController's Controller. It * stores the individual GUI widgets and sets their activation state * upon receipt of instructions from the controller. * Index: src/frontends/controllers/ButtonController.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ButtonController.h,v retrieving revision 1.22 diff -u -p -r1.22 ButtonController.h --- src/frontends/controllers/ButtonController.h 14 Mar 2003 00:20:42 -0000 1.22 +++ src/frontends/controllers/ButtonController.h 18 Jun 2003 21:30:09 -0000 @@ -22,7 +22,7 @@ class BCView; -/** \class ButtonController controls the activation of the OK, Apply and +/** \c ButtonController controls the activation of the OK, Apply and * Cancel buttons. * * It actually supports 4 buttons in all and it's up to the user to decide on @@ -72,7 +72,6 @@ public: * of the BC to reflect the read-only status of the underlying buffer. */ void refreshReadOnly() const; - //@} /** Passthrough function -- returns its input value * Tell the BC about the read-only status of the underlying buffer. Index: src/frontends/controllers/ControlAboutlyx.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ControlAboutlyx.h,v retrieving revision 1.12 diff -u -p -r1.12 ControlAboutlyx.h --- src/frontends/controllers/ControlAboutlyx.h 14 Mar 2003 00:20:42 -0000 1.12 +++ src/frontends/controllers/ControlAboutlyx.h 18 Jun 2003 21:30:09 -0000 @@ -16,7 +16,7 @@ #include "Dialog.h" #include <iosfwd> -/** \class ControlAboutlyx is a controller for the "About LyX" dialogs. +/** \c ControlAboutlyx is a controller for the "About LyX" dialogs. */ class ControlAboutlyx : public Dialog::Controller { public: Index: src/frontends/controllers/ControlErrorList.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ControlErrorList.h,v retrieving revision 1.3 diff -u -p -r1.3 ControlErrorList.h --- src/frontends/controllers/ControlErrorList.h 20 May 2003 16:51:29 -0000 1.3 +++ src/frontends/controllers/ControlErrorList.h 18 Jun 2003 21:30:09 -0000 @@ -29,11 +29,11 @@ public: /// virtual bool isBufferDependent() const { return true; } /// - virtual bool initialiseParams(const string & params); + virtual bool initialiseParams(string const & params); /// - virtual void ControlErrorList::clearParams(); + virtual void clearParams(); /// - virtual void ControlErrorList::dispatchParams() {} + virtual void dispatchParams() {} /// goto this error in the parent bv void goTo(int item); Index: src/frontends/controllers/Dialog.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/Dialog.h,v retrieving revision 1.5 diff -u -p -r1.5 Dialog.h --- src/frontends/controllers/Dialog.h 22 May 2003 15:42:49 -0000 1.5 +++ src/frontends/controllers/Dialog.h 18 Jun 2003 21:30:09 -0000 @@ -23,12 +23,12 @@ class LyXView; class ButtonController; -/** \class Dialog collects the different parts of a Model-Controller-View +/** \c Dialog collects the different parts of a Model-Controller-View * split of a generic dialog together. */ class Dialog : boost::noncopyable { public: - /** \param name is the identifier given to the dialog by its parent + /** \param name the identifier given to the dialog by its parent * container. */ Dialog(LyXView &, string const & name); @@ -118,7 +118,7 @@ private: }; -/** \class Dialog::Controller is an abstract base class for the Controller +/** \c Dialog::Controller is an abstract base class for the Controller * of a Model-Controller-View split of a generic dialog. */ class Dialog::Controller : boost::noncopyable { @@ -174,7 +174,7 @@ private: }; -/** \class Dialog::View is an abstract base class to the View +/** \c Dialog::View is an abstract base class to the View * of a Model-Controller-View split of a generic dialog. */ class Dialog::View : boost::noncopyable { Index: src/frontends/controllers/Kernel.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/Kernel.C,v retrieving revision 1.2 diff -u -p -r1.2 Kernel.C --- src/frontends/controllers/Kernel.C 14 Mar 2003 00:20:42 -0000 1.2 +++ src/frontends/controllers/Kernel.C 18 Jun 2003 21:30:09 -0000 @@ -1,5 +1,5 @@ /** - * \file Kernel.h + * \file Kernel.C * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * Index: src/frontends/controllers/Kernel.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/Kernel.h,v retrieving revision 1.2 diff -u -p -r1.2 Kernel.h --- src/frontends/controllers/Kernel.h 14 Mar 2003 00:20:42 -0000 1.2 +++ src/frontends/controllers/Kernel.h 18 Jun 2003 21:30:09 -0000 @@ -22,7 +22,7 @@ class FuncRequest; class LyXView; -/** \class Kernel is a wrapper making the LyX kernel available to the dialog. +/** \c Kernel is a wrapper making the LyX kernel available to the dialog. * (Ie, it provides an interface to the Model part of the Model-Controller- * View split. * In an ideal world, it will shrink as more info is passed to the Index: src/frontends/gnome/FileDialog.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/gnome/FileDialog.C,v retrieving revision 1.12 diff -u -p -r1.12 FileDialog.C --- src/frontends/gnome/FileDialog.C 25 Feb 2003 13:16:33 -0000 1.12 +++ src/frontends/gnome/FileDialog.C 18 Jun 2003 21:30:09 -0000 @@ -25,8 +25,8 @@ public: Private(string const & title); void set_modal(bool modal) { modal_ = modal; } - void set_complete(const string & pattern) { sel_.complete(pattern); } - void set_filename(const string & filename) { sel_.set_filename(filename);} + void set_complete(string const & pattern) { sel_.complete(pattern); } + void set_filename(string const & filename) { sel_.set_filename(filename);} string const exec(); Index: src/frontends/qt2/BulletsModule.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/BulletsModule.C,v retrieving revision 1.13 diff -u -p -r1.13 BulletsModule.C --- src/frontends/qt2/BulletsModule.C 29 Mar 2003 03:46:27 -0000 1.13 +++ src/frontends/qt2/BulletsModule.C 18 Jun 2003 21:30:09 -0000 @@ -27,7 +27,7 @@ #include <qpushbutton.h> #include <qcombobox.h> -BulletsModule::BulletsModule(QWidget * parent, char const * name, WFlags fl) +BulletsModule::BulletsModule(QWidget * parent, const char * name, WFlags fl) : BulletsModuleBase(parent, name, fl), tmpbulletset(0) { for (int iter = 0; iter < 4; ++iter) { Index: src/frontends/qt2/QAboutDialog.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QAboutDialog.C,v retrieving revision 1.5 diff -u -p -r1.5 QAboutDialog.C --- src/frontends/qt2/QAboutDialog.C 13 Feb 2003 16:52:52 -0000 1.5 +++ src/frontends/qt2/QAboutDialog.C 18 Jun 2003 21:30:09 -0000 @@ -14,7 +14,7 @@ #include "QAboutDialog.h" -QAboutDialog::QAboutDialog(QWidget * parent, char const * name, +QAboutDialog::QAboutDialog(QWidget * parent, const char * name, bool modal, WFlags fl) : QAboutDialogBase(parent, name, modal, fl) { @@ -22,5 +22,5 @@ QAboutDialog::QAboutDialog(QWidget * par QAboutDialog::~QAboutDialog() -{ -} +{} +y Index: src/frontends/qt2/QBrowseBox.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QBrowseBox.C,v retrieving revision 1.12 diff -u -p -r1.12 QBrowseBox.C --- src/frontends/qt2/QBrowseBox.C 29 Mar 2003 16:43:40 -0000 1.12 +++ src/frontends/qt2/QBrowseBox.C 18 Jun 2003 21:30:09 -0000 @@ -25,7 +25,7 @@ #include <cmath> -QBrowseBox::QBrowseBox(int rows, int cols, QWidget* parent, const char* name, WFlags f) +QBrowseBox::QBrowseBox(int rows, int cols, QWidget* parent, const char * name, WFlags f) : QGridView(parent,name,f) { setNumRows(rows); @@ -103,13 +103,13 @@ QPixmap QBrowseBox::pixmap(int row, int } -int QBrowseBox::exec(const QPoint& pos) +int QBrowseBox::exec(const QPoint & pos) { return exec(pos.x(),pos.y()); } -int QBrowseBox::exec(const QWidget* trigger) +int QBrowseBox::exec(const QWidget * trigger) { QPoint globalpos = trigger->parentWidget()->mapToGlobal( trigger->pos()); // is there enough space to put the box below the trigger? Index: src/frontends/qt2/QBrowseBox.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QBrowseBox.h,v retrieving revision 1.8 diff -u -p -r1.8 QBrowseBox.h --- src/frontends/qt2/QBrowseBox.h 29 Mar 2003 15:28:58 -0000 1.8 +++ src/frontends/qt2/QBrowseBox.h 18 Jun 2003 21:30:09 -0000 @@ -26,16 +26,16 @@ class QBrowseBox : public QGridView { Q_OBJECT public: - QBrowseBox(int rows, int cols, QWidget* parent=0, char const * name=0, WFlags f=0); + QBrowseBox(int rows, int cols, QWidget * parent = 0, const char * name = 0, WFlags f = 0); ~QBrowseBox(); void insertItem(QPixmap pixmap); QPixmap pixmap(int row, int col); - int exec(QPoint const & pos); + int exec(const QPoint & pos); int exec(int x, int y); - int exec(QWidget const * trigger); + int exec(const QWidget * trigger); signals: void selected(int, int); Index: src/frontends/qt2/QDelimiterDialog.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QDelimiterDialog.C,v retrieving revision 1.13 diff -u -p -r1.13 QDelimiterDialog.C --- src/frontends/qt2/QDelimiterDialog.C 17 Jun 2003 12:53:34 -0000 1.13 +++ src/frontends/qt2/QDelimiterDialog.C 18 Jun 2003 21:30:09 -0000 @@ -36,7 +36,7 @@ char const * delim[] = { }; -string do_match(string const & str) +string do_match(const string & str) { if (str == "(") return ")"; if (str == ")") return "("; @@ -57,7 +57,7 @@ string do_match(string const & str) } -string fix_name(string const & str) +string fix_name(const string & str) { if (str == "slash") return "/"; @@ -100,7 +100,7 @@ void QDelimiterDialog::insertClicked() } -void QDelimiterDialog::set_label(QLabel * label, string const & str) +void QDelimiterDialog::set_label(QLabel * label, const string & str) { label->setUpdatesEnabled(false); label->setPixmap(QPixmap(toqstr(find_xpm(str)))); @@ -109,7 +109,7 @@ void QDelimiterDialog::set_label(QLabel } -void QDelimiterDialog::ldelim_clicked(string const & str) +void QDelimiterDialog::ldelim_clicked(const string & str) { left_ = str; @@ -121,7 +121,7 @@ void QDelimiterDialog::ldelim_clicked(st } -void QDelimiterDialog::rdelim_clicked(string const & str) +void QDelimiterDialog::rdelim_clicked(const string & str) { right_ = str; Index: src/frontends/qt2/QDelimiterDialog.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QDelimiterDialog.h,v retrieving revision 1.7 diff -u -p -r1.7 QDelimiterDialog.h --- src/frontends/qt2/QDelimiterDialog.h 17 Jun 2003 00:30:47 -0000 1.7 +++ src/frontends/qt2/QDelimiterDialog.h 18 Jun 2003 21:30:09 -0000 @@ -31,7 +31,7 @@ public slots: protected: //needed ? virtual void closeEvent(QCloseEvent * e); private: - void set_label(QLabel * label, string const & str); + void set_label(QLabel * label, const string & str); /// symbol of left delimiter string left_; Index: src/frontends/qt2/QLPopupMenu.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QLPopupMenu.C,v retrieving revision 1.17 diff -u -p -r1.17 QLPopupMenu.C --- src/frontends/qt2/QLPopupMenu.C 27 Mar 2003 04:29:14 -0000 1.17 +++ src/frontends/qt2/QLPopupMenu.C 18 Jun 2003 21:30:09 -0000 @@ -1,5 +1,5 @@ /** - * \file QLPopupMenu.h + * \file QLPopupMenu.C * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * Index: src/frontends/qt2/QMathDialog.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QMathDialog.C,v retrieving revision 1.29 diff -u -p -r1.29 QMathDialog.C --- src/frontends/qt2/QMathDialog.C 17 Jun 2003 12:53:34 -0000 1.29 +++ src/frontends/qt2/QMathDialog.C 18 Jun 2003 21:30:09 -0000 @@ -192,7 +192,7 @@ void QMathDialog::addPanel(int num) } -void QMathDialog::symbol_clicked(string const & str) +void QMathDialog::symbol_clicked(const string & str) { form_->controller().dispatchInsert(str); } Index: src/frontends/qt2/QRefDialog.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QRefDialog.h,v retrieving revision 1.7 diff -u -p -r1.7 QRefDialog.h --- src/frontends/qt2/QRefDialog.h 3 Apr 2003 21:27:12 -0000 1.7 +++ src/frontends/qt2/QRefDialog.h 18 Jun 2003 21:30:09 -0000 @@ -28,8 +28,8 @@ public: public slots: void changed_adaptor(); void gotoClicked(); - void refHighlighted(QString const &); - void refSelected(QString const &); + void refHighlighted(const QString &); + void refSelected(const QString &); void sortToggled(bool); void updateClicked(); Index: src/frontends/qt2/QSpellcheckerDialog.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QSpellcheckerDialog.C,v retrieving revision 1.11 diff -u -p -r1.11 QSpellcheckerDialog.C --- src/frontends/qt2/QSpellcheckerDialog.C 17 Feb 2003 18:40:03 -0000 1.11 +++ src/frontends/qt2/QSpellcheckerDialog.C 18 Jun 2003 21:30:09 -0000 @@ -54,7 +54,7 @@ void QSpellcheckerDialog::ignoreClicked( } -void QSpellcheckerDialog::suggestionChanged(QString const & str) +void QSpellcheckerDialog::suggestionChanged(const QString & str) { if (replaceCO->count() != 0) replaceCO->changeItem(str, 0); @@ -65,7 +65,7 @@ void QSpellcheckerDialog::suggestionChan } -void QSpellcheckerDialog::replaceChanged(QString const & str) +void QSpellcheckerDialog::replaceChanged(const QString & str) { if (suggestionsLB->currentText() == str) return; Index: src/frontends/xforms/FormPrint.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormPrint.C,v retrieving revision 1.55 diff -u -p -r1.55 FormPrint.C --- src/frontends/xforms/FormPrint.C 14 May 2003 09:17:21 -0000 1.55 +++ src/frontends/xforms/FormPrint.C 18 Jun 2003 21:30:10 -0000 @@ -23,6 +23,7 @@ #include "xforms_helpers.h" #include "lyx_forms.h" +#include "support/lstrings.h" #include "support/tostr.h" Index: src/frontends/xforms/combox.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/combox.h,v retrieving revision 1.12 diff -u -p -r1.12 combox.h --- src/frontends/xforms/combox.h 4 Apr 2003 14:01:37 -0000 1.12 +++ src/frontends/xforms/combox.h 18 Jun 2003 21:30:10 -0000 @@ -39,10 +39,13 @@ typedef enum { /** A function to create a combox widget. * \param type is, as yet, unused. there is only one type of combox. - * \param x, \param y: the x,y coordinates of the upper left hand corner - * of the widget, relative to the parent form'd origin. - * \param w, \param h: the widget's dimensions. - * \param label: the widget's label as it appears on the GUI. + * \param x the x coordinate of the upper left hand corner of the widget, + * relative to the parent form'd origin. + * \param y the y coordinate of the upper left hand corner of the widget, + * relative to the parent form'd origin. + * \param w the widget's width + * \param h the widget's height + * \param label the widget's label as it appears on the GUI. */ FL_EXPORT FL_OBJECT * fl_create_combox(FL_COMBOX_TYPE type, @@ -53,8 +56,8 @@ fl_create_combox(FL_COMBOX_TYPE type, * \see fl_create_combox() for an explanation of the argument list. */ FL_EXPORT FL_OBJECT * -fl_add_combox(FL_COMBOX_TYPE type, - FL_Coord x, FL_Coord y, FL_Coord w, FL_Coord h, +fl_add_combox(FL_COMBOX_TYPE type, + FL_Coord x, FL_Coord y, FL_Coord w, FL_Coord h, char const * label); /** The combox browser has a default height of 100 pixels. Adjust to suit. */ @@ -62,20 +65,20 @@ FL_EXPORT void fl_set_combox_browser_height(FL_OBJECT * ob, int bh); /** The browser will be displayed either below or above the button, - * dependent upon \param position. + * dependent upon \c position. */ FL_EXPORT void fl_set_combox_position(FL_OBJECT * ob, FL_COMBOX_POSITION position); -/** Empty the browser and the combox, \param ob. */ +/** Empty the browser and the combox. */ FL_EXPORT void fl_clear_combox(FL_OBJECT * ob); -/** Add a line to the combox browser.*/ +/** Add a line to the combox browser. */ FL_EXPORT void fl_addto_combox(FL_OBJECT * ob, char const * text); -/** Set the combox to return line \param choice of the combox browser. */ +/** Set the combox to return line \c choice of the combox browser. */ FL_EXPORT void fl_set_combox(FL_OBJECT * ob, int choice); @@ -89,7 +92,7 @@ fl_get_combox(FL_OBJECT * ob); FL_EXPORT char const * fl_get_combox_text(FL_OBJECT * ob); -/** \return the contents of \param line of the combox browser. */ +/** \return the contents of \c line of the combox browser. */ FL_EXPORT char const * fl_get_combox_line(FL_OBJECT * ob, int line); Index: src/frontends/xforms/freebrowser.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/freebrowser.h,v retrieving revision 1.4 diff -u -p -r1.4 freebrowser.h --- src/frontends/xforms/freebrowser.h 4 Apr 2003 14:01:37 -0000 1.4 +++ src/frontends/xforms/freebrowser.h 18 Jun 2003 21:30:10 -0000 @@ -50,7 +50,7 @@ typedef struct fl_freebrowser_ { } FL_FREEBROWSER; -/** A function to create a freebrowser widget, "owned" by \param parent. */ +/** A function to create a freebrowser widget, "owned" by \c parent. */ FL_EXPORT FL_FREEBROWSER * fl_create_freebrowser(void * parent); @@ -58,9 +58,9 @@ fl_create_freebrowser(void * parent); FL_EXPORT void fl_free_freebrowser(FL_FREEBROWSER * ptr); -/** \param abs_x, \param abs_y are the coordinates of the top left corner +/** \c abs_x, \c abs_y are the coordinates of the top left corner * of the browser relative to the top left hand corner of the _screen_. - * \param w, \param h are the browser dimensions. + * \c w, \c h are the browser dimensions. */ FL_EXPORT void fl_show_freebrowser(FL_FREEBROWSER *, Index: src/insets/ExternalTemplate.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/ExternalTemplate.h,v retrieving revision 1.14 diff -u -p -r1.14 ExternalTemplate.h --- src/insets/ExternalTemplate.h 4 Jun 2003 09:16:29 -0000 1.14 +++ src/insets/ExternalTemplate.h 18 Jun 2003 21:30:10 -0000 @@ -81,7 +81,7 @@ public: Templates & getTemplates(); Templates const & getTemplates() const; /// return the template by LyX name - ExternalTemplate const & getTemplateByName(const string & name); + ExternalTemplate const & getTemplateByName(string const & name); private: ExternalTemplateManager(); void readTemplates(string const & path); Index: src/insets/inset.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/inset.C,v retrieving revision 1.99 diff -u -p -r1.99 inset.C --- src/insets/inset.C 4 Jun 2003 07:14:04 -0000 1.99 +++ src/insets/inset.C 18 Jun 2003 21:30:10 -0000 @@ -86,7 +86,7 @@ string const Inset::editMessage() const } -LyXText * Inset::getLyXText(BufferView const * bv, bool const) const +LyXText * Inset::getLyXText(BufferView const * bv, bool const recursive) const { if (owner()) return owner()->getLyXText(bv, false); Index: src/insets/insetbibitem.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetbibitem.C,v retrieving revision 1.16 diff -u -p -r1.16 insetbibitem.C --- src/insets/insetbibitem.C 16 Jun 2003 11:49:30 -0000 1.16 +++ src/insets/insetbibitem.C 18 Jun 2003 21:30:10 -0000 @@ -25,7 +25,7 @@ using std::max; int InsetBibitem::key_counter = 0; -const string key_prefix = "key-"; +string const key_prefix = "key-"; InsetBibitem::InsetBibitem(InsetCommandParams const & p) Index: src/insets/insetbibtex.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetbibtex.C,v retrieving revision 1.15 diff -u -p -r1.15 insetbibtex.C --- src/insets/insetbibtex.C 2 Jun 2003 10:03:22 -0000 1.15 +++ src/insets/insetbibtex.C 18 Jun 2003 21:30:10 -0000 @@ -183,8 +183,8 @@ vector<string> const InsetBibtex::getFil // This method returns a comma separated list of Bibtex entries -void InsetBibtex::fillWithBibKeys - (Buffer const * buffer, vector<pair<string, string> > & keys) const +void InsetBibtex::fillWithBibKeys(Buffer const * buffer, + std::vector<std::pair<string, string> > & keys) const { lyx::Assert(buffer); vector<string> const files = getFiles(*buffer); Index: src/insets/insetbibtex.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetbibtex.h,v retrieving revision 1.11 diff -u -p -r1.11 insetbibtex.h --- src/insets/insetbibtex.h 16 Jun 2003 11:49:30 -0000 1.11 +++ src/insets/insetbibtex.h 18 Jun 2003 21:30:10 -0000 @@ -42,8 +42,8 @@ public: int latex(Buffer const *, std::ostream &, LatexRunParams const &) const; /// - void fillWithBibKeys(Buffer const *, - std::vector<std::pair<string,string> > &) const; + void fillWithBibKeys(Buffer const * buffer, + std::vector<std::pair<string,string> > & keys) const; /// std::vector<string> const getFiles(Buffer const &) const; /// Index: src/insets/insetinclude.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetinclude.C,v retrieving revision 1.124 diff -u -p -r1.124 insetinclude.C --- src/insets/insetinclude.C 16 Jun 2003 11:49:31 -0000 1.124 +++ src/insets/insetinclude.C 18 Jun 2003 21:30:10 -0000 @@ -500,7 +500,7 @@ void InsetInclude::getLabelList(std::vec } -void InsetInclude::fillWithBibKeys(vector<pair<string,string> > & keys) const +void InsetInclude::fillWithBibKeys(std::vector<std::pair<string,string> > & keys) const { if (loadIfNeeded()) { Buffer * tmp = bufferlist.getBuffer(getFileName()); Index: src/insets/insetspace.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetspace.h,v retrieving revision 1.11 diff -u -p -r1.11 insetspace.h --- src/insets/insetspace.h 16 Jun 2003 11:49:32 -0000 1.11 +++ src/insets/insetspace.h 18 Jun 2003 21:30:10 -0000 @@ -1,6 +1,6 @@ // -*- C++ -*- /** - * \file InsetSpace.h + * \file insetspace.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * Index: src/mathed/command_inset.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/command_inset.h,v retrieving revision 1.10 diff -u -p -r1.10 command_inset.h --- src/mathed/command_inset.h 16 Jun 2003 11:49:34 -0000 1.10 +++ src/mathed/command_inset.h 18 Jun 2003 21:30:10 -0000 @@ -32,8 +32,8 @@ public: void draw(PainterInfo & pi, int x, int y) const; /// void write(WriteStream & os) const; - /// - //void infoize(std::ostream & os) const; + // + // void infoize(std::ostream & os) const; /// dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos); /// Index: src/mathed/formula.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/formula.h,v retrieving revision 1.89 diff -u -p -r1.89 formula.h --- src/mathed/formula.h 3 Jun 2003 15:10:14 -0000 1.89 +++ src/mathed/formula.h 18 Jun 2003 21:30:10 -0000 @@ -29,7 +29,7 @@ public: /// explicit InsetFormula(BufferView *); /// - explicit InsetFormula(const string & data); + explicit InsetFormula(string const & data); /// InsetFormula(InsetFormula const &); /// Index: src/mathed/math_binaryopinset.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_binaryopinset.C,v retrieving revision 1.15 diff -u -p -r1.15 math_binaryopinset.C --- src/mathed/math_binaryopinset.C 16 Jun 2003 11:49:34 -0000 1.15 +++ src/mathed/math_binaryopinset.C 18 Jun 2003 21:30:10 -0000 @@ -28,6 +28,9 @@ int MathBinaryOpInset::opwidth() const } +#if 0 +// That this is not declared in class MathBinaryOpInset makes +// Doxygen give warnings. (Lgb) void MathBinaryOpInset::metrics(MetricsInfo & mi, Dimension & dim) const { mi_ = mi; @@ -37,7 +40,7 @@ void MathBinaryOpInset::metrics(MetricsI ascent_ = max(cell(0).ascent(), cell(1).ascent()); descent_ = max(cell(0).descent(), cell(1).descent()); } - +#endif void MathBinaryOpInset::draw(PainterInfo & pain, int x, int y) const { Index: src/mathed/math_data.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_data.C,v retrieving revision 1.32 diff -u -p -r1.32 math_data.C --- src/mathed/math_data.C 2 Jun 2003 10:03:25 -0000 1.32 +++ src/mathed/math_data.C 18 Jun 2003 21:30:10 -0000 @@ -39,14 +39,14 @@ void MathArray::substitute(MathMacro con } -MathAtom & MathArray::operator[](size_type pos) +MathAtom & MathArray::operator[](pos_type pos) { lyx::Assert(pos < size()); return base_type::operator[](pos); } -MathAtom const & MathArray::operator[](size_type pos) const +MathAtom const & MathArray::operator[](pos_type pos) const { lyx::Assert(pos < size()); return base_type::operator[](pos); Index: src/mathed/math_extern.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_extern.C,v retrieving revision 1.49 diff -u -p -r1.49 math_extern.C --- src/mathed/math_extern.C 14 Feb 2003 14:30:08 -0000 1.49 +++ src/mathed/math_extern.C 18 Jun 2003 21:30:11 -0000 @@ -1,4 +1,3 @@ - // This file contains most of the magic that extracts "context // information" from the unstructered layout-oriented stuff in an // MathArray. @@ -196,7 +195,7 @@ bool extractNumber(MathArray const & ar, } -bool testString(MathAtom const & at, const string & str) +bool testString(MathAtom const & at, string const & str) { string s; return extractString(at, s) && str == s; Index: src/mathed/math_gridinset.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_gridinset.C,v retrieving revision 1.107 diff -u -p -r1.107 math_gridinset.C --- src/mathed/math_gridinset.C 16 Jun 2003 11:49:35 -0000 1.107 +++ src/mathed/math_gridinset.C 18 Jun 2003 21:30:11 -0000 @@ -23,7 +23,7 @@ public: /// virtual string const & name() const { - static const string theName = "tabular"; + static string const theName = "tabular"; return theName; } /// @@ -39,7 +39,7 @@ public: protected: InsetBase & inset() const { return inset_; } - MathGridInset & inset_; + MathGridInset & inset_; }; @@ -1031,7 +1031,7 @@ dispatch_result MathGridInset::dispatch //} return UNDISPATCHED; - case LFUN_INSET_DIALOG_UPDATE: + case LFUN_INSET_DIALOG_UPDATE: GridInsetMailer(*this).updateDialog(cmd.view()); return UNDISPATCHED; @@ -1096,25 +1096,25 @@ dispatch_result MathGridInset::dispatch else if (s == "append-row") for (int i = 0, n = extractInt(is); i < n; ++i) addRow(row(idx)); - else if (s == "delete-row") + else if (s == "delete-row") for (int i = 0, n = extractInt(is); i < n; ++i) { delRow(row(idx)); if (idx > nargs()) idx -= ncols(); } - else if (s == "copy-row") + else if (s == "copy-row") for (int i = 0, n = extractInt(is); i < n; ++i) copyRow(row(idx)); else if (s == "swap-row") swapRow(row(idx)); - else if (s == "append-column") + else if (s == "append-column") for (int i = 0, n = extractInt(is); i < n; ++i) { row_type r = row(idx); col_type c = col(idx); addCol(c); idx = index(r, c); } - else if (s == "delete-column") + else if (s == "delete-column") for (int i = 0, n = extractInt(is); i < n; ++i) { row_type r = row(idx); col_type c = col(idx); Index: src/mathed/math_support.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_support.C,v retrieving revision 1.74 diff -u -p -r1.74 math_support.C --- src/mathed/math_support.C 2 Jun 2003 10:03:26 -0000 1.74 +++ src/mathed/math_support.C 18 Jun 2003 21:30:11 -0000 @@ -1,4 +1,3 @@ - #include <config.h> #include "math_support.h" @@ -398,7 +397,7 @@ int mathed_string_width(LyXFont const & void mathed_draw_deco(PainterInfo & pi, int x, int y, int w, int h, - const string & name) + string const & name) { if (name == ".") { pi.pain.line(x + w/2, y, x + w/2, y + h, @@ -694,5 +693,3 @@ void asArray(string const & str, MathArr { mathed_parse_cell(ar, str); } - - Index: src/mathed/math_symbolinset.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_symbolinset.C,v retrieving revision 1.59 diff -u -p -r1.59 math_symbolinset.C --- src/mathed/math_symbolinset.C 16 Jun 2003 11:49:38 -0000 1.59 +++ src/mathed/math_symbolinset.C 18 Jun 2003 21:30:11 -0000 @@ -1,4 +1,3 @@ - #include <config.h> #include "math_symbolinset.h" @@ -12,12 +11,12 @@ #include "debug.h" -MathSymbolInset::MathSymbolInset(const latexkeys * l) +MathSymbolInset::MathSymbolInset(latexkeys const * l) : sym_(l), h_(0) {} -MathSymbolInset::MathSymbolInset(const char * name) +MathSymbolInset::MathSymbolInset(char const * name) : sym_(in_word_set(name)), h_(0) {} Index: src/mathed/math_symbolinset.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_symbolinset.h,v retrieving revision 1.36 diff -u -p -r1.36 math_symbolinset.h --- src/mathed/math_symbolinset.h 16 Jun 2003 11:49:38 -0000 1.36 +++ src/mathed/math_symbolinset.h 18 Jun 2003 21:30:11 -0000 @@ -13,11 +13,11 @@ struct latexkeys; class MathSymbolInset : public MathInset { public: /// - explicit MathSymbolInset(latexkeys const *); + explicit MathSymbolInset(latexkeys const * l); /// - explicit MathSymbolInset(char const *); + explicit MathSymbolInset(char const * name); /// - explicit MathSymbolInset(string const &); + explicit MathSymbolInset(string const & name); /// InsetBase * clone() const; /// Index: src/support/LAssert.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/LAssert.h,v retrieving revision 1.15 diff -u -p -r1.15 LAssert.h --- src/support/LAssert.h 18 Jun 2003 09:56:10 -0000 1.15 +++ src/support/LAssert.h 18 Jun 2003 21:30:11 -0000 @@ -1,6 +1,6 @@ // -*- C++ -*- /** - * \file LAssert.C + * \file LAssert.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * Index: src/support/boost-inst.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/boost-inst.C,v retrieving revision 1.2 diff -u -p -r1.2 boost-inst.C --- src/support/boost-inst.C 18 Jun 2003 09:56:10 -0000 1.2 +++ src/support/boost-inst.C 18 Jun 2003 21:30:11 -0000 @@ -1,5 +1,5 @@ /** - * \file boost-inset.C + * \file boost-inst.C * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * Index: src/support/filetools.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/filetools.C,v retrieving revision 1.155 diff -u -p -r1.155 filetools.C --- src/support/filetools.C 18 Jun 2003 09:56:10 -0000 1.155 +++ src/support/filetools.C 18 Jun 2003 21:30:12 -0000 @@ -1326,7 +1326,7 @@ string const readBB_from_PSFile(string c } -string copyFileToDir(string const & path, string const & file_in) +string const copyFileToDir(string const & path, string const & file_in) { lyx::Assert(AbsolutePath(path)); Index: src/support/filetools.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/filetools.h,v retrieving revision 1.44 diff -u -p -r1.44 filetools.h --- src/support/filetools.h 18 Jun 2003 09:56:10 -0000 1.44 +++ src/support/filetools.h 18 Jun 2003 21:30:12 -0000 @@ -205,12 +205,14 @@ void removeAutosaveFile(string const & f /// read the BoundingBox entry from a ps/eps/pdf-file string const readBB_from_PSFile(string const & file); -/** Copy \param file to directory \param path. The file name is manipulated +/** Copy \c file to directory \c path. The file name is manipulated so that eg some/path/to/file becomes some_path_to_file. + \param path where to put the file + \param file the file that is copied \returns this file name if the file is copied successfully, else \returns an empty string. */ -string copyFileToDir(string const & path, string const & file); +string const copyFileToDir(string const & path, string const & file); typedef std::pair<int, string> cmd_ret; Index: src/support/lyxstring.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/lyxstring.C,v retrieving revision 1.60 diff -u -p -r1.60 lyxstring.C --- src/support/lyxstring.C 13 Feb 2003 16:53:14 -0000 1.60 +++ src/support/lyxstring.C 18 Jun 2003 21:30:12 -0000 @@ -448,10 +448,12 @@ lyxstring::lyxstring(size_type n, value_ } +#if 0 lyxstring::lyxstring(const_iterator first, const_iterator last) { rep = new Srep(last - first, first); } +#endif lyxstring::~lyxstring()
-- Lgb