one small private fix in mathed, put noncopyable and tie into boost namespace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1774 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2001-03-15 16:04:46 +00:00
parent a18d4a692a
commit a27892b6c8
39 changed files with 114 additions and 62 deletions

3
MAINTAINERS Normal file
View File

@ -0,0 +1,3 @@
Mathed
André Pönitz
poenitz@HTWM.de

View File

@ -1,3 +1,7 @@
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
* boost/utility.hpp: remove lyx specific modifications.
2001-02-20 Angus Leeming <a.leeming@ic.ac.uk> 2001-02-20 Angus Leeming <a.leeming@ic.ac.uk>
* .cvsignore: added various files * .cvsignore: added various files

View File

@ -26,9 +26,8 @@
#include <cstddef> // for size_t #include <cstddef> // for size_t
#include <utility> // for std::pair #include <utility> // for std::pair
// LGB namespace boost
//namespace boost {
//{
// next() and prior() template functions -----------------------------------// // next() and prior() template functions -----------------------------------//
@ -91,11 +90,7 @@
template <class A, class B> template <class A, class B>
inline tied<A,B> tie(A& a, B& b) { return tied<A,B>(a, b); } inline tied<A,B> tie(A& a, B& b) { return tied<A,B>(a, b); }
// LGB } // namespace boost
//} // namespace boost
#endif // BOOST_UTILITY_HPP #endif // BOOST_UTILITY_HPP

View File

@ -13,6 +13,7 @@ src/exporter.C
src/ext_l10n.h src/ext_l10n.h
src/FontLoader.C src/FontLoader.C
src/form1.C src/form1.C
src/frontends/controllers/ButtonController.h
src/frontends/gnome/FormCitation.C src/frontends/gnome/FormCitation.C
src/frontends/gnome/FormCopyright.C src/frontends/gnome/FormCopyright.C
src/frontends/gnome/FormError.C src/frontends/gnome/FormError.C
@ -72,56 +73,54 @@ src/frontends/qt2/FormTabularCreate.C
src/frontends/qt2/paragraphdlgimpl.C src/frontends/qt2/paragraphdlgimpl.C
src/frontends/qt2/tabularcreatedlgimpl.C src/frontends/qt2/tabularcreatedlgimpl.C
src/frontends/xforms/FileDialog.C src/frontends/xforms/FileDialog.C
src/frontends/xforms/FormBase.h
src/frontends/xforms/FormBibitem.C
src/frontends/xforms/form_bibitem.C src/frontends/xforms/form_bibitem.C
src/frontends/xforms/FormBibtex.C src/frontends/xforms/FormBibitem.C
src/frontends/xforms/form_bibtex.C src/frontends/xforms/form_bibtex.C
src/frontends/xforms/FormBibtex.C
src/frontends/xforms/form_browser.C src/frontends/xforms/form_browser.C
src/frontends/xforms/FormCharacter.C
src/frontends/xforms/form_character.C src/frontends/xforms/form_character.C
src/frontends/xforms/FormCitation.C src/frontends/xforms/FormCharacter.C
src/frontends/xforms/form_citation.C src/frontends/xforms/form_citation.C
src/frontends/xforms/FormCopyright.C src/frontends/xforms/FormCitation.C
src/frontends/xforms/form_copyright.C src/frontends/xforms/form_copyright.C
src/frontends/xforms/FormCredits.C src/frontends/xforms/FormCopyright.C
src/frontends/xforms/form_credits.C src/frontends/xforms/form_credits.C
src/frontends/xforms/FormDocument.C src/frontends/xforms/FormCredits.C
src/frontends/xforms/form_document.C src/frontends/xforms/form_document.C
src/frontends/xforms/FormError.C src/frontends/xforms/FormDocument.C
src/frontends/xforms/form_error.C src/frontends/xforms/form_error.C
src/frontends/xforms/FormExternal.C src/frontends/xforms/FormError.C
src/frontends/xforms/form_external.C src/frontends/xforms/form_external.C
src/frontends/xforms/FormFiledialog.C src/frontends/xforms/FormExternal.C
src/frontends/xforms/form_filedialog.C src/frontends/xforms/form_filedialog.C
src/frontends/xforms/FormGraphics.C src/frontends/xforms/FormFiledialog.C
src/frontends/xforms/form_graphics.C src/frontends/xforms/form_graphics.C
src/frontends/xforms/FormInclude.C src/frontends/xforms/FormGraphics.C
src/frontends/xforms/form_include.C src/frontends/xforms/form_include.C
src/frontends/xforms/FormIndex.C src/frontends/xforms/FormInclude.C
src/frontends/xforms/form_index.C src/frontends/xforms/form_index.C
src/frontends/xforms/FormInset.h src/frontends/xforms/FormIndex.C
src/frontends/xforms/FormLog.C src/frontends/xforms/FormLog.C
src/frontends/xforms/FormParagraph.C
src/frontends/xforms/form_paragraph.C src/frontends/xforms/form_paragraph.C
src/frontends/xforms/FormPreamble.C src/frontends/xforms/FormParagraph.C
src/frontends/xforms/form_preamble.C src/frontends/xforms/form_preamble.C
src/frontends/xforms/FormPreferences.C src/frontends/xforms/FormPreamble.C
src/frontends/xforms/form_preferences.C src/frontends/xforms/form_preferences.C
src/frontends/xforms/FormPrint.C src/frontends/xforms/FormPreferences.C
src/frontends/xforms/form_print.C src/frontends/xforms/form_print.C
src/frontends/xforms/FormRef.C src/frontends/xforms/FormPrint.C
src/frontends/xforms/form_ref.C src/frontends/xforms/form_ref.C
src/frontends/xforms/FormSearch.C src/frontends/xforms/FormRef.C
src/frontends/xforms/form_search.C src/frontends/xforms/form_search.C
src/frontends/xforms/FormTabular.C src/frontends/xforms/FormSearch.C
src/frontends/xforms/form_tabular.C src/frontends/xforms/form_tabular.C
src/frontends/xforms/FormTabularCreate.C src/frontends/xforms/FormTabular.C
src/frontends/xforms/form_tabular_create.C src/frontends/xforms/form_tabular_create.C
src/frontends/xforms/FormToc.C src/frontends/xforms/FormTabularCreate.C
src/frontends/xforms/form_toc.C src/frontends/xforms/form_toc.C
src/frontends/xforms/FormUrl.C src/frontends/xforms/FormToc.C
src/frontends/xforms/form_url.C src/frontends/xforms/form_url.C
src/frontends/xforms/FormUrl.C
src/frontends/xforms/FormVCLog.C src/frontends/xforms/FormVCLog.C
src/frontends/xforms/input_validators.C src/frontends/xforms/input_validators.C
src/frontends/xforms/Menubar_pimpl.C src/frontends/xforms/Menubar_pimpl.C

View File

@ -31,7 +31,7 @@ class WorkArea;
class Language; class Language;
/// ///
class BufferView : public noncopyable { class BufferView : public boost::noncopyable {
public: public:
/// ///
enum UpdateCodes { enum UpdateCodes {

View File

@ -1,3 +1,19 @@
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
* buffer.C (pop_tag): tie is in namespace boost
* BufferView.h: noncopyable is in namespace boost
* lyxlex.h: ditto
* lyx_main.h: ditto
* lyx_gui.h: ditto
* layout.h: ditto
* lastfiles.h: ditto
* bufferlist.h: ditto
* ShareContainer.h: ditto
* LyXView.h: ditto
* LyXAction.h: ditto
* LaTeX.h: ditto
2001-03-14 Angus Leeming <a.leeming@ic.ac.uk> 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
* Merging changes from BRANCH_MVC back into HEAD. * Merging changes from BRANCH_MVC back into HEAD.

View File

@ -97,7 +97,7 @@ bool operator!=(Aux_Info const & a, Aux_Info const & o)
/// ///
class LaTeX : public noncopyable { class LaTeX : public boost::noncopyable {
public: public:
/** Return values from scanLogFile() and run() (to come) /** Return values from scanLogFile() and run() (to come)

View File

@ -14,7 +14,7 @@
/** This class encapsulates LyX action and user command operations. /** This class encapsulates LyX action and user command operations.
*/ */
class LyXAction : public noncopyable { class LyXAction : public boost::noncopyable {
private: private:
/// ///
struct func_info { struct func_info {

View File

@ -44,7 +44,7 @@ using SigC::Object;
view is supposed (at least IMHO) to be another class, that shows its output view is supposed (at least IMHO) to be another class, that shows its output
in one or more LyXView's. in one or more LyXView's.
*/ */
class LyXView : public Object, public noncopyable { class LyXView : public Object, public boost::noncopyable {
public: public:
/// constructor /// constructor
LyXView(int w, int h); LyXView(int w, int h);

View File

@ -17,7 +17,7 @@
\author Lars Gullik Bjřnnes \author Lars Gullik Bjřnnes
*/ */
template<class Share> template<class Share>
class ShareContainer : public noncopyable { class ShareContainer : public boost::noncopyable {
public: public:
/// ///
typedef std::vector<boost::shared_ptr<Share> > Params; typedef std::vector<boost::shared_ptr<Share> > Params;

View File

@ -3642,7 +3642,8 @@ Buffer::Lists const Buffer::getLists() const
#ifdef NEW_INSETS #ifdef NEW_INSETS
bool found; bool found;
LyXTextClassList::size_type cap; LyXTextClassList::size_type cap;
tie(found, cap) = textclasslist.NumberOfLayout(params.textclass, "Caption"); boost::tie(found, cap) = textclasslist
.NumberOfLayout(params.textclass, "Caption");
#endif #endif
while (par) { while (par) {

View File

@ -30,7 +30,7 @@
This class should ideally be enclosed inside class BufferList, but that This class should ideally be enclosed inside class BufferList, but that
gave me an "internal gcc error". gave me an "internal gcc error".
*/ */
class BufferStorage : public noncopyable { class BufferStorage : public boost::noncopyable {
public: public:
/// ///
typedef std::vector<Buffer *> Container; typedef std::vector<Buffer *> Container;
@ -68,7 +68,7 @@ private:
/** The class govern all open buffers. /** The class govern all open buffers.
*/ */
class BufferList : public noncopyable { class BufferList : public boost::noncopyable {
public: public:
/// ///
BufferList(); BufferList();

View File

@ -66,7 +66,7 @@
The IgnorantPolicy is a special case that allows anything. The IgnorantPolicy is a special case that allows anything.
*/ */
class ButtonPolicy : public noncopyable { class ButtonPolicy : public boost::noncopyable {
public: public:
/// ///
virtual ~ButtonPolicy() {} virtual ~ButtonPolicy() {}

View File

@ -1,3 +1,9 @@
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
* ButtonPolicies.h: noncopyable is in namespace boost
* Dialogs.h (noncopyable): ditto
* DialogBase.h (noncopyable): ditto
2001-03-14 Angus Leeming <a.leeming@ic.ac.uk> 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
* Merging changes from BRANCH_MVC back into HEAD. * Merging changes from BRANCH_MVC back into HEAD.

View File

@ -35,7 +35,7 @@ using SigC::Object;
satisfy that request. Thus a dialog will have to "pull" the necessary satisfy that request. Thus a dialog will have to "pull" the necessary
details from the core of the program. details from the core of the program.
*/ */
class DialogBase : public Object, public noncopyable class DialogBase : public Object, public boost::noncopyable
{ {
public: public:
/**@name Constructors and Deconstructors */ /**@name Constructors and Deconstructors */

View File

@ -49,7 +49,7 @@ class InsetCommand;
The list of dialog signals isn't comprehensive but should be a good guide The list of dialog signals isn't comprehensive but should be a good guide
for any future additions. Remember don't go overboard -- think minimal. for any future additions. Remember don't go overboard -- think minimal.
*/ */
class Dialogs : public noncopyable class Dialogs : public boost::noncopyable
{ {
public: public:
/// ///

View File

@ -33,7 +33,7 @@
* This abstract base class stripped of xforms-specific code by * This abstract base class stripped of xforms-specific code by
* Angus Leeming <a.leeming@ic.ac.uk> * Angus Leeming <a.leeming@ic.ac.uk>
*/ */
class ButtonControllerBase : public noncopyable class ButtonControllerBase : public boost::noncopyable
{ {
public: public:
/** Constructor. /** Constructor.

View File

@ -66,7 +66,7 @@
The IgnorantPolicy is a special case that allows anything. The IgnorantPolicy is a special case that allows anything.
*/ */
class ButtonPolicy : public noncopyable { class ButtonPolicy : public boost::noncopyable {
public: public:
/// ///
virtual ~ButtonPolicy() {} virtual ~ButtonPolicy() {}

View File

@ -1,3 +1,8 @@
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
* ButtonController.h: noncopyable is in namespace boost
* ButtonPolicies.h: ditto
2001-03-14 Angus Leeming <a.leeming@ic.ac.uk> 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
* Merging changes from BRANCH_MVC back into HEAD. * Merging changes from BRANCH_MVC back into HEAD.

View File

@ -1,3 +1,9 @@
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
* GraphicsCache.h: noncopyable is in namespace boost
* ImageLoader.h: ditto
* GraphicsCacheItem.h: ditto
2001-03-07 Baruch Even <baruch@lyx.org> 2001-03-07 Baruch Even <baruch@lyx.org>
* GraphicsCache.C (d-tor): Removed the assert, the assumption it carried * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried

View File

@ -31,7 +31,7 @@ class GraphicsCacheItem;
GraphicsCache is a singleton class, there should be only one instance of GraphicsCache is a singleton class, there should be only one instance of
it at any moment. it at any moment.
*/ */
class GraphicsCache : public noncopyable { class GraphicsCache : public boost::noncopyable {
public: public:
/// Get the instance of the class. /// Get the instance of the class.
static GraphicsCache & getInstance(); static GraphicsCache & getInstance();

View File

@ -33,7 +33,7 @@ using SigC::Signal0;
class LyXImage; class LyXImage;
/// A GraphicsCache item holder. /// A GraphicsCache item holder.
class GraphicsCacheItem : public noncopyable { class GraphicsCacheItem : public boost::noncopyable {
public: public:
/// c-tor /// c-tor
GraphicsCacheItem(string const & filename); GraphicsCacheItem(string const & filename);

View File

@ -29,7 +29,7 @@ class LyXImage;
* *
* @Author Baruch Even, <baruch.even@writeme.com> * @Author Baruch Even, <baruch.even@writeme.com>
*/ */
class ImageLoader : public noncopyable { class ImageLoader : public boost::noncopyable {
public: public:
/// Errors that can be returned from this class. /// Errors that can be returned from this class.
enum Result { enum Result {

View File

@ -1,3 +1,9 @@
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
* ExternalTemplate.h: noncopyable is in namespace boost
* insetinclude.h: ditto
* insetcommand.h: ditto
2001-03-14 Angus Leeming <a.leeming@ic.ac.uk> 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
* insettext.C (Edit): #else# -> #else. * insettext.C (Edit): #else# -> #else.

View File

@ -72,7 +72,7 @@ struct ExternalTemplate {
/** /**
A singleton class that manages the external inset templates A singleton class that manages the external inset templates
*/ */
class ExternalTemplateManager : public noncopyable { class ExternalTemplateManager : public boost::noncopyable {
public: public:
/// Map from the LyX name of the template to the template structure /// Map from the LyX name of the template to the template structure
typedef std::map<string, ExternalTemplate> Templates; typedef std::map<string, ExternalTemplate> Templates;

View File

@ -78,7 +78,7 @@ private:
/// ///
class InsetCommand : public InsetButton, public noncopyable { class InsetCommand : public InsetButton, public boost::noncopyable {
public: public:
/// ///
explicit explicit

View File

@ -24,7 +24,7 @@ struct LaTeXFeatures;
/** Used to include files /** Used to include files
*/ */
class InsetInclude: public InsetButton, public noncopyable { class InsetInclude: public InsetButton, public boost::noncopyable {
public: public:
/// the type of inclusion /// the type of inclusion
enum IncludeFlags { enum IncludeFlags {

View File

@ -27,7 +27,7 @@
kept are user defined, but defaults to four. kept are user defined, but defaults to four.
@author Lars Gullik Bjønnes @author Lars Gullik Bjønnes
*/ */
class LastFiles : public noncopyable { class LastFiles : public boost::noncopyable {
public: public:
/// ///
typedef std::deque<string> Files; typedef std::deque<string> Files;

View File

@ -547,7 +547,7 @@ std::ostream & operator<<(std::ostream & os, LyXTextClass::PageSides p);
/// ///
class LyXTextClassList : public noncopyable { class LyXTextClassList : public boost::noncopyable {
public: public:
/// ///
typedef std::vector<LyXTextClass> ClassList; typedef std::vector<LyXTextClass> ClassList;

View File

@ -28,7 +28,7 @@ class Buffer;
have not clearly figured out how this class is going to be, suggestions have not clearly figured out how this class is going to be, suggestions
are welcome. (Lgb) are welcome. (Lgb)
*/ */
class LyXGUI : public noncopyable { class LyXGUI : public boost::noncopyable {
public: public:
/** The only constructor allowed. /** The only constructor allowed.
If gui is false, LyX will operate in non-X mode If gui is false, LyX will operate in non-X mode

View File

@ -44,7 +44,7 @@ extern LastFiles * lastfiles; /* we should hopefully be able to move this
/** /**
This is the main LyX object it encapsulates most of the other objects. This is the main LyX object it encapsulates most of the other objects.
*/ */
class LyX : public noncopyable { class LyX : public boost::noncopyable {
public: public:
/// the only allowed constructor /// the only allowed constructor
LyX(int * argc, char * argv[]); // constructor LyX(int * argc, char * argv[]); // constructor

View File

@ -29,7 +29,7 @@ struct keyword_item {
texclass and others to come. texclass and others to come.
@see lyxrc.C for an example of usage. @see lyxrc.C for an example of usage.
*/ */
class LyXLex : public noncopyable { class LyXLex : public boost::noncopyable {
public: public:
/// ///
LyXLex (keyword_item *, int); LyXLex (keyword_item *, int);

View File

@ -1,3 +1,9 @@
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
* math_macrotable.h: noncopyable is in namespace boost
* math_macrotemplate.h: ditto
* math_rowst.h: make MathedRowContainer::iterator public.
2001-03-15 André Pönitz <poenitz@htwm.de> 2001-03-15 André Pönitz <poenitz@htwm.de>

View File

@ -16,7 +16,7 @@ class MathMacroTemplate;
class MathMacro; class MathMacro;
/// ///
class MathMacroTable : noncopyable { class MathMacroTable : boost::noncopyable {
public: public:
/// ///
void addTemplate(boost::shared_ptr<MathMacroTemplate> const &); void addTemplate(boost::shared_ptr<MathMacroTemplate> const &);

View File

@ -19,7 +19,7 @@ class MathMacro;
/** This class contains the macro definition /** This class contains the macro definition
\author Alejandro Aguilar Sierra \author Alejandro Aguilar Sierra
*/ */
class MathMacroTemplate : public MathParInset, public noncopyable { class MathMacroTemplate : public MathParInset, public boost::noncopyable {
public: public:
friend class MathMacro; friend class MathMacro;

View File

@ -61,7 +61,7 @@ protected:
class MathedRowContainer { class MathedRowContainer {
private: public:
/// ///
typedef std::vector<MathedRowStruct> data_type; typedef std::vector<MathedRowStruct> data_type;
/// ///

View File

@ -1,3 +1,8 @@
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
* FileInfo.h: noncopyable is in namespace boost
* path.h: ditto
2001-02-16 John Levon <moz@compsoc.man.ac.uk> 2001-02-16 John Levon <moz@compsoc.man.ac.uk>
* syscontr.h: fix header include * syscontr.h: fix header include

View File

@ -26,7 +26,7 @@
/** Use objects of this class to get information about files. /** Use objects of this class to get information about files.
*/ */
class FileInfo : public noncopyable { class FileInfo : public boost::noncopyable {
public: public:
/// ///
FileInfo(); FileInfo();

View File

@ -12,7 +12,7 @@
#endif #endif
/// ///
class Path : public noncopyable { class Path : public boost::noncopyable {
public: public:
/// ///
explicit explicit