extern bool math_insert_greek(BufferView *, char);
extern int greek_kb_flag;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
using std::vector;
using std::find_if;
using std::pair;
class WorkArea;
class LyXScreen;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Object;
-#endif
-
///
-struct BufferView::Pimpl : public Object {
+struct BufferView::Pimpl : public SigC::Object {
///
Pimpl(BufferView * i, LyXView * o,
int xpos, int ypos, int width, int height);
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
+ * several files: remove CXX_WORKING_NAMESPACES
+
* buffer.C (pop_tag): tie is in namespace boost
* BufferView.h: noncopyable is in namespace boost
extern "C" int C_LyXView_atCloseMainFormCB(FL_FORM *, void *);
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Connection;
-using SigC::slot;
-#endif
LyXView::LyXView(int width, int height)
{
dialogs_ = new Dialogs(this);
// temporary until all dialogs moved into Dialogs.
dialogs_->updateBufferDependent
- .connect(slot(&updateAllVisibleBufferRelatedDialogs));
+ .connect(SigC::slot(&updateAllVisibleBufferRelatedDialogs));
dialogs_->hideBufferDependent
- .connect(slot(&CloseAllBufferRelatedDialogs));
- Dialogs::redrawGUI.connect(slot(this, &LyXView::redraw));
- Dialogs::redrawGUI.connect(slot(&RedrawAllBufferRelatedDialogs));
+ .connect(SigC::slot(&CloseAllBufferRelatedDialogs));
+ Dialogs::redrawGUI.connect(SigC::slot(this, &LyXView::redraw));
+ Dialogs::redrawGUI.connect(SigC::slot(&RedrawAllBufferRelatedDialogs));
}
// TIMERS
//
- autosave_timeout.timeout.connect(slot(this, &LyXView::AutoSave));
+ autosave_timeout.timeout.connect(SigC::slot(this, &LyXView::AutoSave));
//
// Misc
class BufferView;
class Dialogs;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Object;
-#endif
-
-
/**
This class is the form containing the view of the buffer. The actual buffer
view is supposed (at least IMHO) to be another class, that shows its output
in one or more LyXView's.
*/
-class LyXView : public Object, public boost::noncopyable {
+class LyXView : public SigC::Object, public boost::noncopyable {
public:
/// constructor
LyXView(int w, int h);
#include FORMS_H_LOCATION
#include "Painter.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-using SigC::Signal1;
-using SigC::Signal2;
-using SigC::Signal3;
-#endif
-
-
///
class WorkArea {
public:
void putClipboard(string const &) const;
// Signals
///
- Signal0<void> workAreaExpose;
+ SigC::Signal0<void> workAreaExpose;
///
- Signal1<void, double> scrollCB;
+ SigC::Signal1<void, double> scrollCB;
///
- Signal2<void, KeySym, unsigned int> workAreaKeyPress;
+ SigC::Signal2<void, KeySym, unsigned int> workAreaKeyPress;
///
- Signal3<void, int, int, unsigned int> workAreaButtonPress;
+ SigC::Signal3<void, int, int, unsigned int> workAreaButtonPress;
///
- Signal3<void, int, int, unsigned int> workAreaButtonRelease;
+ SigC::Signal3<void, int, int, unsigned int> workAreaButtonRelease;
///
- Signal3<void, int, int, unsigned int> workAreaMotionNotify;
+ SigC::Signal3<void, int, int, unsigned int> workAreaMotionNotify;
///
- Signal0<void> workAreaFocus;
+ SigC::Signal0<void> workAreaFocus;
///
- Signal0<void> workAreaUnfocus;
+ SigC::Signal0<void> workAreaUnfocus;
///
- Signal0<void> workAreaEnter;
+ SigC::Signal0<void> workAreaEnter;
///
- Signal0<void> workAreaLeave;
+ SigC::Signal0<void> workAreaLeave;
///
- Signal3<void, int, int, unsigned int> workAreaDoubleClick;
+ SigC::Signal3<void, int, int, unsigned int> workAreaDoubleClick;
///
- Signal3<void, int, int, unsigned int> workAreaTripleClick;
+ SigC::Signal3<void, int, int, unsigned int> workAreaTripleClick;
private:
///
void createPixmap(int, int);
#include "counters.h"
#include "debug.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Connection;
-using SigC::slot;
-#endif
-
using std::endl;
}
Counter * tmp = new Counter;
- (*it).second->onstep.connect(slot(tmp,
+ (*it).second->onstep.connect(SigC::slot(tmp,
&Counter::reset));
counterList[newc] = tmp;
}
#include <sigc++/signal_system.h>
#include "LString.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Object;
-using SigC::Signal0;
-#endif
-
-
///
-class Counter : public Object {
+class Counter : public SigC::Object {
public:
///
Counter();
///
void reset();
///
- Signal0<void> onstep;
+ SigC::Signal0<void> onstep;
private:
///
int value_;
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
+ * several files: remove CXX_WORKING_NAMESPACES
+
* ButtonPolicies.h: noncopyable is in namespace boost
* Dialogs.h (noncopyable): ditto
* DialogBase.h (noncopyable): ditto
#include <sigc++/signal_system.h>
#include <boost/utility.hpp>
-// If we do not want to bring them in global namespace, they could be
-// defined inside DialogBase... (JMarc)
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Connection;
-using SigC::slot;
-using SigC::Object;
-#endif
-
-
/** Abstract base class of all dialogs.
The outside world only needs some way to tell a dialog when to show, hide
or update itself. A dialog then takes whatever steps are necessary to
satisfy that request. Thus a dialog will have to "pull" the necessary
details from the core of the program.
*/
-class DialogBase : public Object, public boost::noncopyable
+class DialogBase : public SigC::Object, public boost::noncopyable
{
public:
/**@name Constructors and Deconstructors */
extern LyXRC lyxrc;
-#ifdef CXX_WORKING_NAMESPACES
-namespace Liason
-{
-#endif
+namespace Liason {
PrinterParams getPrinterParams(Buffer * buffer)
{
lv->getMiniBuffer()->Set(msg);
}
-#ifdef CXX_WORKING_NAMESPACES
-}
-#endif
-
+} // namespace Liason
worked so nicely on a very small number of compilers and systems.
See the "dialogbase" branch of lyx-devel cvs module for xtl implementation.
*/
-#ifdef CXX_WORKING_NAMESPACES
-namespace Liason
-{
-#endif
+namespace Liason {
/**@name Global support functions */
//@{
/// get global printer parameters
void setMinibuffer(LyXView *, char const * msg);
//@}
-#ifdef CXX_WORKING_NAMESPACES
-}
+} // namespace Liason
#endif
-#endif
+
+
+
#include <sigc++/signal_system.h>
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-#endif
-
/**
* This class executes the callback when the timeout expires.
*/
/// restart the timer
void restart();
/// signal emitted on timer expiry
- Signal0<void> timeout;
+ SigC::Signal0<void> timeout;
/// emit the signal
void emit();
/// set the timer type
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
+ * several files: remove CXX_WORKING_NAMESPACES
+
* ButtonController.h: noncopyable is in namespace boost
* ButtonPolicies.h: ditto
#include "ViewBase.h"
#include "insets/lyxinset.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
ControlConnectBase::ControlConnectBase(LyXView & lv, Dialogs & d)
: ControlBase(lv),
d_(d), h_(0), r_(0)
/// Contains the signals we have to connect to.
Dialogs & d_;
/// Hide connection.
- Connection h_;
+ SigC::Connection h_;
/// Redraw connection.
- Connection r_;
+ SigC::Connection r_;
};
private:
/// Update connection.
- Connection u_;
+ SigC::Connection u_;
};
/** Base class to control connection/disconnection of signals with the LyX
private:
/// inset::hide connection.
- Connection ih_;
+ SigC::Connection ih_;
};
template <class Inset>
ControlConnectInset<Inset>::ControlConnectInset(LyXView & lv, Dialogs & d)
: ControlConnectBD(lv, d),
- ih_(0), inset_(0)
+ inset_(0), ih_(0)
{}
+2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
+
+ * several files: remove CXX_WORKING_NAMESPACES
+
2001-03-11 Baruch Even <baruch@lyx.org>
* Various files: More fixes to get it compiled again.
using std::min;
using std::find;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-using SigC::bind;
-#endif
-
-
// configuration keys
static string const LOCAL_CONFIGURE_PREFIX("FormCitation");
// let the dialog be shown
// These are permanent connections so we won't bother
// storing a copy because we won't be disconnecting.
- d->showCitation.connect(slot(this, &FormCitation::showInset));
- d->createCitation.connect(slot(this, &FormCitation::createInset));
+ d->showCitation.connect(SigC::slot(this, &FormCitation::showInset));
+ d->createCitation.connect(SigC::slot(this, &FormCitation::createInset));
cleanupWidgets();
}
if( dialog_!=0 || inset == 0 ) return;
inset_ = inset;
- ih_ = inset_->hideDialog.connect(slot(this, &FormCitation::hide));
+ ih_ = inset_->hideDialog.connect(SigC::slot(this, &FormCitation::hide));
- u_ = d_->updateBufferDependent.connect(slot(this, &FormCitation::updateSlot));
- h_ = d_->hideBufferDependent.connect(slot(this, &FormCitation::hide));
+ u_ = d_->updateBufferDependent.connect(SigC::slot(this, &FormCitation::updateSlot));
+ h_ = d_->hideBufferDependent.connect(SigC::slot(this, &FormCitation::hide));
params = inset->params();
{
if( dialog_!=0 ) return;
- u_ = d_->updateBufferDependent.connect(slot(this, &FormCitation::updateSlot));
- h_ = d_->hideBufferDependent.connect(slot(this, &FormCitation::hide));
+ u_ = d_->updateBufferDependent.connect(SigC::slot(this, &FormCitation::updateSlot));
+ h_ = d_->hideBufferDependent.connect(SigC::slot(this, &FormCitation::hide));
params.setFromString( arg );
showStageSearch();
static
-void parseBibTeX(string data,
+void parseBibTeX(string const & dat,
string const & findkey,
string & keyvalue)
{
unsigned int i;
-
+ string data(dat);
+
keyvalue = "";
for (i=0; i<data.length(); ++i)
{
unsigned int keypos = min(data.find(' '), data.find('='));
string key = lowercase( data.substr(0, keypos) );
- string value, tmp;
+ string value;
+ string tmp;
char enclosing;
data = data.substr(keypos, data.length()-1);
gtk_widget_grab_default (GTK_WIDGET(search_text_->get_entry()->gtkobj()));
// connecting signals
- b_ok->clicked.connect(slot(this, &FormCitation::moveFromSearchToSelect));
- search_text_->get_entry()->activate.connect(slot(this, &FormCitation::moveFromSearchToSelect));
+ b_ok->clicked.connect(SigC::slot(this, &FormCitation::moveFromSearchToSelect));
+ search_text_->get_entry()->activate.connect(SigC::slot(this, &FormCitation::moveFromSearchToSelect));
- b_cancel->clicked.connect(slot(mainAppWin, &GLyxAppWin::remove_action));
- dialog_->destroy.connect(slot(this, &FormCitation::free));
+ b_cancel->clicked.connect(SigC::slot(mainAppWin, &GLyxAppWin::remove_action));
+ dialog_->destroy.connect(SigC::slot(this, &FormCitation::free));
}
}
gtk_widget_grab_default (GTK_WIDGET(b_ok->gtkobj()));
// connecting signals
- b_ok->clicked.connect(slot(this, &FormCitation::applySelect));
- text_after_->get_entry()->activate.connect(slot(this, &FormCitation::applySelect));
+ b_ok->clicked.connect(SigC::slot(this, &FormCitation::applySelect));
+ text_after_->get_entry()->activate.connect(SigC::slot(this, &FormCitation::applySelect));
- b_cancel->clicked.connect(slot(mainAppWin, &GLyxAppWin::remove_action));
+ b_cancel->clicked.connect(SigC::slot(mainAppWin, &GLyxAppWin::remove_action));
- dialog_->destroy.connect(slot(this, &FormCitation::free));
+ dialog_->destroy.connect(SigC::slot(this, &FormCitation::free));
- clist_bib_->click_column.connect(slot(this, &FormCitation::sortBibList));
- clist_bib_->select_row.connect(bind(slot(this, &FormCitation::selectionToggled),
+ clist_bib_->click_column.connect(SigC::slot(this, &FormCitation::sortBibList));
+ clist_bib_->select_row.connect(SigC::bind(SigC::slot(this, &FormCitation::selectionToggled),
true, false));
- clist_bib_->unselect_row.connect(bind(slot(this, &FormCitation::selectionToggled),
+ clist_bib_->unselect_row.connect(SigC::bind(SigC::slot(this, &FormCitation::selectionToggled),
false, false));
}
}
gtk_widget_grab_default (GTK_WIDGET(b_ok->gtkobj()));
// connecting signals
- b_ok->clicked.connect(slot(this, &FormCitation::applyEdit));
- text_after_->get_entry()->activate.connect(slot(this, &FormCitation::applyEdit));
+ b_ok->clicked.connect(SigC::slot(this, &FormCitation::applyEdit));
+ text_after_->get_entry()->activate.connect(SigC::slot(this, &FormCitation::applyEdit));
- b_cancel->clicked.connect(slot(mainAppWin, &GLyxAppWin::remove_action));
+ b_cancel->clicked.connect(SigC::slot(mainAppWin, &GLyxAppWin::remove_action));
- dialog_->destroy.connect(slot(this, &FormCitation::free));
+ dialog_->destroy.connect(SigC::slot(this, &FormCitation::free));
- button_unselect_->clicked.connect(slot(this, &FormCitation::removeCitation));
- button_up_->clicked.connect(slot(this, &FormCitation::moveCitationUp));
- button_down_->clicked.connect(slot(this, &FormCitation::moveCitationDown));
+ button_unselect_->clicked.connect(SigC::slot(this, &FormCitation::removeCitation));
+ button_up_->clicked.connect(SigC::slot(this, &FormCitation::moveCitationUp));
+ button_down_->clicked.connect(SigC::slot(this, &FormCitation::moveCitationDown));
- clist_selected_->select_row.connect(bind(slot(this, &FormCitation::selectionToggled),
+ clist_selected_->select_row.connect(SigC::bind(SigC::slot(this, &FormCitation::selectionToggled),
true, true));
- clist_selected_->unselect_row.connect(bind(slot(this, &FormCitation::selectionToggled),
+ clist_selected_->unselect_row.connect(SigC::bind(SigC::slot(this, &FormCitation::selectionToggled),
false, true));
}
}
{
if( lv_->buffer()->isReadonly() ) return;
- string contents;
- int sz;
-
- contents = frontStrip( strip(params.getContents()) );
+ string contents = frontStrip( strip(params.getContents()) );
if (!contents.empty()) contents += ", ";
- sz = clist_bib_->selection().size();
+ int sz = clist_bib_->selection().size();
for (int i=0; i < sz; ++i)
{
if (i > 0) contents += ", ";
// looking for entries which match regexp
void FormCitation::searchReg()
{
- string tmp, rexptxt( search_string_ );
+ string rexptxt(search_string_);
rexptxt = frontStrip( strip( rexptxt ) );
LRegex reg(rexptxt);
bool additem;
for ( int i = 0; i < sz; ++i )
{
- string data = bibkeys[i] + bibkeysInfo[i];
+ string const data = bibkeys[i] + bibkeysInfo[i];
if (rexptxt.empty()) additem = true;
else additem = (reg.exec(data).size() > 0);
#include <gtk--/base.h>
#include <gtk--/button.h>
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-using SigC::bind;
-#endif
-
-#ifdef CXX_WORKING_NAMESPACES
using Liason::printBuffer;
using Liason::getPrinterParams;
-#endif
FormPrint::FormPrint(LyXView * lv, Dialogs * d)
: dialog_(0), lv_(lv), d_(d), u_(0), h_(0)
// let the dialog be shown
// This is a permanent connection so we won't bother
// storing a copy because we won't be disconnecting.
- d->showPrint.connect(slot(this,&FormPrint::show));
+ d->showPrint.connect(SigC::slot(this,&FormPrint::show));
}
b_cancel = Gtk::wrap( GTK_BUTTON( lookup_widget(pd, "button_cancel") ) );
// setting up connections
- b_ok->clicked.connect(slot(this, &FormPrint::apply));
+ b_ok->clicked.connect(SigC::slot(this, &FormPrint::apply));
b_ok->clicked.connect(dialog_->destroy.slot());
b_cancel->clicked.connect(dialog_->destroy.slot());
- dialog_->destroy.connect(slot(this, &FormPrint::free));
+ dialog_->destroy.connect(SigC::slot(this, &FormPrint::free));
- u_ = d_->updateBufferDependent.connect(slot(this,
+ u_ = d_->updateBufferDependent.connect(SigC::slot(this,
&FormPrint::updateSlot));
h_ = d_->hideBufferDependent.connect(dialog_->destroy.slot());
class LyXView;
class Dialogs;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Connection;
-#endif
-
/** This class provides an Gnome implementation of the FormPrint Dialog.
The print dialog allows users to print their documents.
*/
LyXView * lv_;
Dialogs * d_;
/// Update connection.
- Connection u_;
+ SigC::Connection u_;
/// Hide connection.
- Connection h_;
+ SigC::Connection h_;
//@}
};
#include "mainapp.h"
extern GLyxAppWin * mainAppWin;
-using SigC::bind;
-
// configuration keys
static string const CONF_ENTRY_NAME("FormRef_name");
/// the nitty-griity. What is modified and passed back
InsetCommandParams params;
/// Update connection.
- Connection u_;
+ SigC::Connection u_;
/// Hide connection.
- Connection h_;
+ SigC::Connection h_;
/// inset::hide connection.
- Connection ih_;
+ SigC::Connection ih_;
///
std::vector<string> refs;
///
#include <gtk--/menu.h>
#include <gtk--/menuitem.h>
-using SigC::bind;
-
FormToc::FormToc(LyXView * lv, Dialogs * d)
- : lv_(lv), d_(d), inset_(0), u_(0), h_(0), ih_(0), dialog_(0), ignore_callback_(false)
+ : lv_(lv), d_(d), inset_(0), u_(0), h_(0), ih_(0), dialog_(0),
+ ignore_callback_(false)
{
// let the dialog be shown
// These are permanent connections so we won't bother
// storing a copy because we won't be disconnecting.
- d->showTOC.connect(slot(this, &FormToc::showInset));
- d->createTOC.connect(slot(this, &FormToc::createInset));
+ d->showTOC.connect(SigC::slot(this, &FormToc::showInset));
+ d->createTOC.connect(SigC::slot(this, &FormToc::createInset));
}
void FormToc::showInset( InsetCommand * const inset )
{
- if( dialog_!=0 || inset == 0 ) return;
+ if ( dialog_!=0 || inset == 0 ) return;
inset_ = inset;
- ih_ = inset_->hideDialog.connect(slot(this, &FormToc::hide));
+ ih_ = inset_->hideDialog.connect(SigC::slot(this, &FormToc::hide));
params = inset->params();
show();
choice_->get_menu()->items().clear();
e = manage( new Gtk::MenuItem(_("Table of Contents")) );
- e->activate.connect(bind<Buffer::TocType>(slot(this, &FormToc::changeList), Buffer::TOC_TOC));
+ e->activate.connect(SigC::bind<Buffer::TocType>(SigC::slot(this, &FormToc::changeList), Buffer::TOC_TOC));
choice_->get_menu()->append( *e );
e = manage( new Gtk::MenuItem(_("List of Figures")) );
- e->activate.connect(bind<Buffer::TocType>(slot(this, &FormToc::changeList), Buffer::TOC_LOF));
+ e->activate.connect(SigC::bind<Buffer::TocType>(SigC::slot(this, &FormToc::changeList), Buffer::TOC_LOF));
choice_->get_menu()->append( *e );
e = manage( new Gtk::MenuItem(_("List of Tables")) );
- e->activate.connect(bind<Buffer::TocType>(slot(this, &FormToc::changeList), Buffer::TOC_LOT));
+ e->activate.connect(SigC::bind<Buffer::TocType>(SigC::slot(this, &FormToc::changeList), Buffer::TOC_LOT));
choice_->get_menu()->append( *e );
e = manage( new Gtk::MenuItem(_("List of Algorithms")) );
- e->activate.connect(bind<Buffer::TocType>(slot(this, &FormToc::changeList), Buffer::TOC_LOA));
+ e->activate.connect(SigC::bind<Buffer::TocType>(SigC::slot(this, &FormToc::changeList), Buffer::TOC_LOA));
choice_->get_menu()->append( *e );
// wrap buttons and connect slots
b_refresh = Gtk::wrap( GTK_BUTTON( lookup_widget(pd, "button_refresh") ) );
b_close = Gtk::wrap( GTK_BUTTON( lookup_widget(pd, "button_close") ) );
- b_refresh->clicked.connect(bind<bool>(slot(this, &FormToc::updateSlot),false));
+ b_refresh->clicked.connect(SigC::bind<bool>(SigC::slot(this, &FormToc::updateSlot),false));
b_close->clicked.connect(dialog_->destroy.slot());
- dialog_->destroy.connect(slot(this, &FormToc::free));
+ dialog_->destroy.connect(SigC::slot(this, &FormToc::free));
- u_ = d_->updateBufferDependent.connect(slot(this, &FormToc::updateSlot));
- h_ = d_->hideBufferDependent.connect(slot(this, &FormToc::hide));
+ u_ = d_->updateBufferDependent.connect(SigC::slot(this, &FormToc::updateSlot));
+ h_ = d_->hideBufferDependent.connect(SigC::slot(this, &FormToc::hide));
if (!dialog_->is_visible()) dialog_->show_all();
#include <gtk--/menu.h>
-using SigC::slot;
-using SigC::bind;
-
using std::endl;
// temporary solution for LyXView
void Menubar::Pimpl::set(string const & menu_name)
{
// if (current_menu_name_ != menu_name) // disabled until Lastfiles and Documents are added dynamically to menu
- {
+ //{
current_menu_name_ = menu_name;
// clean up the lists
// update state of the items
update();
updateAllLists();
- }
+ //}
}
void Menubar::Pimpl::updateAllLists()
}
int const max_number_of_items = 25;
+
void Menubar::Pimpl::updateList(vector<Buffer::TocItem> * toclist, vector<ListsHolder> * pgui)
{
vector<ListsHolder> & gui = *pgui;
string label;
menu.push_back(Gnome::UI::Item(Gnome::UI::Icon(GNOME_STOCK_MENU_REFRESH),
- _("Refresh"), slot(this, &Menubar::Pimpl::updateAllLists)));
+ _("Refresh"), SigC::slot(this, &Menubar::Pimpl::updateAllLists)));
if (toclist->size() > max_number_of_items)
composeTocUIInfo(menu, *toclist, toclist->begin(), 0);
label = string(4*(*it).depth,' ')+(*it).str;
menu.push_back(Gnome::UI::Item(label,
- bind<Buffer::TocItem>(slot(this, &Menubar::Pimpl::callbackToc), (*it)),
+ SigC::bind<Buffer::TocItem>(SigC::slot(this, &Menubar::Pimpl::callbackToc), (*it)),
label));
}
}
{
label = (*it).str;
menu.push_back(Gnome::UI::Item(label,
- bind<Buffer::TocItem>(slot(this, &Menubar::Pimpl::callbackToc), (*it)),
+ SigC::bind<Buffer::TocItem>(SigC::slot(this, &Menubar::Pimpl::callbackToc), (*it)),
label));
}
else
{
label = (*it).str;
submenu.push_back(Gnome::UI::Item(label,
- bind<Buffer::TocItem>(slot(this, &Menubar::Pimpl::callbackToc), (*it)),
+ SigC::bind<Buffer::TocItem>(SigC::slot(this, &Menubar::Pimpl::callbackToc), (*it)),
label));
++it;
}
LyXFunc::func_status flag = owner_->getLyXFunc()->getStatus(item.action());
Gnome::UI::Info gitem;
- SigC::Slot0<void> cback = bind<int>(slot(this, &Menubar::Pimpl::callback),item.action());
+ SigC::Slot0<void> cback = SigC::bind<int>(SigC::slot(this, &Menubar::Pimpl::callback),item.action());
{
using namespace Gnome::MenuItems;
class MenuItem;
class StrPool;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Connection;
-#endif
-
#include "debug.h"
/*
vector<GtkWidgetToAction> wid_act_;
/// toc
- Connection utoc_;
+ SigC::Connection utoc_;
vector<ListsHolder> toc_;
};
#endif
+2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
+
+ * several files: remove CXX_WORKING_NAMESPACES
+
2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
* Merging changes from BRANCH_MVC back into HEAD.
#include "QtLyXView.h"
#include "debug.h"
-#ifdef CXX_WORKING_NAMESPACES
using Liason::setMinibuffer;
-#endif
FormDocument::FormDocument(LyXView *v, Dialogs *d)
: dialog_(0), lv_(v), d_(d), h_(0)
#include "lyxtext.h"
#include "debug.h"
-#ifdef CXX_WORKING_NAMESPACES
using Liason::setMinibuffer;
-#endif
-
using std::endl;
FormParagraph::FormParagraph(LyXView *v, Dialogs *d)
#include <kmsgbox.h>
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
-#ifdef CXX_WORKING_NAMESPACES
using Liason::printBuffer;
using Liason::getPrinterParams;
using std::max;
-#endif
FormPrint::FormPrint(LyXView *v, Dialogs *d)
: dialog_(0), lv_(v), d_(d), h_(0), u_(0)
{
- d->showPrint.connect(slot(this, &FormPrint::show));
+ d->showPrint.connect(SigC::slot(this, &FormPrint::show));
}
to = strToInt(dialog_->getTo());
}
- int retval;
- retval = printBuffer(lv_->buffer(), PrinterParams(dialog_->getTarget(),
+ int retval = printBuffer(lv_->buffer(), PrinterParams(dialog_->getTarget(),
string(dialog_->getPrinter()), string(dialog_->getFile()),
dialog_->getWhichPages(), from, to, dialog_->getReverse(),
dialog_->getSort(), max(strToInt(dialog_->getCount()),1)));
dialog_ = new PrintDialog(this, 0, _("LyX: Print"));
if (!dialog_->isVisible()) {
- h_ = d_->hideBufferDependent.connect(slot(this, &FormPrint::hide));
- u_ = d_->updateBufferDependent.connect(slot(this, &FormPrint::update));
+ h_ = d_->hideBufferDependent.connect(SigC::slot(this, &FormPrint::hide));
+ u_ = d_->updateBufferDependent.connect(SigC::slot(this, &FormPrint::update));
}
dialog_->raise();
+// -*- C++ -*-
/**
* \file FormPrint.h
* Copyright 2001 the LyX Team
class LyXView;
class PrintDialog;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Connection;
-#endif
-
+///
class FormPrint : public DialogBase {
-public:
+public:
+ ///
FormPrint(LyXView *, Dialogs *);
-
+ ///
~FormPrint();
/// start print
Dialogs * d_;
/// Hide connection.
- Connection h_;
+ SigC::Connection h_;
/// Update connection.
- Connection u_;
+ SigC::Connection u_;
};
#endif // FORMPRINT_H
#include "dlg/helpers.h"
#include "citationdlg.h"
-#ifdef CXX_WORKING_NAMESPACES
using kde_helpers::setSizeHint;
-#endif
CitationDialog::CitationDialog(FormCitation *form, QWidget *parent, char const * name, bool, WFlags)
: QDialog(parent,name,0), form_(form)
using std::endl;
-#ifdef CXX_WORKING_NAMESPACES
namespace kde_helpers {
-#endif
bool setComboFromStr(QComboBox *box, const string & str)
{
return false;
}
-#ifdef CXX_WORKING_NAMESPACES
-}; /* namespace kde_helpers */
-#endif
+} // namespace kde_helpers
#include "vspace.h"
-#ifdef CXX_WORKING_NAMESPACES
namespace kde_helpers {
-#endif
/**
* \fn setSizeHint
*/
bool setComboFromStr(QComboBox *box, const string & str);
-#ifdef CXX_WORKING_NAMESPACES
-}; /* namespace kde_helpers */
-#endif
+} // namespace kde_helpers
#endif /* HELPERS_H */
#include "gettext.h"
#include "debug.h"
-#ifdef CXX_WORKING_NAMESPACES
using kde_helpers::setSizeHint;
using kde_helpers::setComboFromStr;
-#endif
-
using std::endl;
DocDialog::DocDialog(FormDocument * form, QWidget * parent, char const * name, bool, WFlags)
#include "gettext.h"
#include "debug.h"
-#ifdef CXX_WORKING_NAMESPACES
using kde_helpers::setSizeHint;
-#endif
-
using std::endl;
ParaDialog::ParaDialog(FormParagraph * form, QWidget * parent, char const * name, bool, WFlags)
#include <gettext.h>
-#ifdef CXX_WORKING_NAMESPACES
using kde_helpers::setSizeHint;
-#endif
ParaExtraDialog::ParaExtraDialog (QWidget * parent, char const * name)
: ParaExtraDialogData(parent, name)
#include <qtooltip.h>
-#ifdef CXX_WORKING_NAMESPACES
using kde_helpers::setSizeHint;
-#endif
ParaGeneralDialog::ParaGeneralDialog (QWidget * parent, char const * name)
: ParaGeneralDialogData(parent, name)
#include "dlg/helpers.h"
#include "insets/insetref.h"
-#ifdef CXX_WORKING_NAMESPACES
using kde_helpers::setSizeHint;
-#endif
RefDialog::RefDialog(FormRef * form, QWidget * parent, char const * name, bool, WFlags)
: QDialog(parent,name,0), form_(form)
#include "dlg/helpers.h"
-#ifdef CXX_WORKING_NAMESPACES
using kde_helpers::setSizeHint;
-#endif
TocDialog::TocDialog(FormToc * form, QWidget * parent, char const * name, bool, WFlags)
: QDialog(parent,name,0), form_(form)
#include "dlg/helpers.h"
-#ifdef CXX_WORKING_NAMESPACES
using kde_helpers::setSizeHint;
-#endif
UrlDialog::UrlDialog(FormUrl *form, QWidget *parent, char const * name, bool, WFlags)
: QDialog(parent,name,0), form_(form)
+2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
+
+ * several files: remove CXX_WORKING_NAMESPACES
+
2001-03-15 Edwin Leuven <leuven@fee.uva.nl>
* Added splash screen
#include "language.h"
#include "support/lstrings.h"
-#ifdef CXX_WORKING_NAMESPACES
using Liason::setMinibuffer;
-#endif
FormCharacter::FormCharacter(LyXView *v, Dialogs *d)
: dialog_(0), lv_(v), d_(d), h_(0), u_(0)
#include "lyxtext.h"
#include "debug.h"
-#ifdef CXX_WORKING_NAMESPACES
using Liason::setMinibuffer;
-#endif
-
using std::endl;
FormParagraph::FormParagraph(LyXView *v, Dialogs *d)
#include "support/lstrings.h"
#include "qmessagebox.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
-#ifdef CXX_WORKING_NAMESPACES
using Liason::printBuffer;
using Liason::getPrinterParams;
using std::max;
-#endif
FormPrint::FormPrint(LyXView *v, Dialogs *d)
: dialog_(0), lv_(v), d_(d), h_(0), u_(0)
// let the dialog be shown
// This is a permanent connection so we won't bother
// storing a copy because we won't be disconnecting.
- d->showPrint.connect(slot(this, &FormPrint::show));
+ d->showPrint.connect(SigC::slot(this, &FormPrint::show));
}
FormPrint::~FormPrint()
to = strToInt(dialog_->getTo());
}
- int retval;
- retval = printBuffer(lv_->buffer(), PrinterParams(dialog_->getTarget(),
+ int retval = printBuffer(lv_->buffer(), PrinterParams(dialog_->getTarget(),
string(dialog_->getPrinter()), string(dialog_->getFile()),
dialog_->getWhichPages(), from, to, dialog_->getReverse(),
dialog_->getSort(), max(strToInt(dialog_->getCount()),1)));
dialog_ = new PrintDlgImpl(this, 0, _("LyX: Print"));
if (!dialog_->isVisible()) {
- h_ = d_->hideBufferDependent.connect(slot(this, &FormPrint::hide));
- u_ = d_->updateBufferDependent.connect(slot(this, &FormPrint::update));
+ h_ = d_->hideBufferDependent.connect(SigC::slot(this, &FormPrint::hide));
+ u_ = d_->updateBufferDependent.connect(SigC::slot(this, &FormPrint::update));
}
dialog_->raise();
class LyXView;
class PrintDlgImpl;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Connection;
-#endif
-
class FormPrint : public DialogBase {
public:
/**@name Constructors and Destructors */
Dialogs * d_;
/// Hide connection.
- Connection h_;
+ SigC::Connection h_;
/// Update connection.
- Connection u_;
+ SigC::Connection u_;
};
#endif
//#include "language.h"
#include "support/lstrings.h"
-#ifdef CXX_WORKING_NAMESPACES
using Liason::setMinibuffer;
-#endif
FormSearch::FormSearch(LyXView *v, Dialogs *d)
: dialog_(0), lv_(v), d_(d), h_(0), u_(0)
// let the popup be shown
// This is a permanent connection so we won't bother
// storing a copy because we won't be disconnecting.
- d->showSearch.connect(slot(this, &FormSearch::show));
+ d->showSearch.connect(SigC::slot(this, &FormSearch::show));
// perhaps in the future we'd like a
// "search again" button/keybinding
// d->searchAgain.connect(slot(this, &FormSearch::FindNext));
}
if (!dialog_->isVisible()) {
- h_ = d_->hideBufferDependent.connect(slot(this, &FormSearch::hide));
- u_ = d_->updateBufferDependent.connect(slot(this, &FormSearch::update));
+ h_ = d_->hideBufferDependent.connect(SigC::slot(this, &FormSearch::hide));
+ u_ = d_->updateBufferDependent.connect(SigC::slot(this, &FormSearch::update));
}
dialog_->raise();
}
}
}
+
+
void FormSearch::close()
{
h_.disconnect();
+2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
+
+ * several files: remove CXX_WORKING_NAMESPACES
+
2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
* Merging changes from BRANCH_MVC back into HEAD.
// Signal enabling all visible popups to be redrawn if so desired.
// E.g., when the GUI colours have been remapped.
-Signal0<void> Dialogs::redrawGUI;
+SigC::Signal0<void> Dialogs::redrawGUI;
Dialogs::Dialogs(LyXView * lv)
{
/// Used so we can get at the signals we have to connect to.
Dialogs * d_;
/// Hide connection.
- Connection h_;
+ SigC::Connection h_;
/// Redraw connection.
- Connection r_;
+ SigC::Connection r_;
/// dialog title, displayed by WM.
string title;
public:
virtual void updateSlot(bool) { update(); }
/// Update connection.
- Connection u_;
+ SigC::Connection u_;
};
#include "lyxrc.h"
#include "buffer.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
FormBrowser::FormBrowser(LyXView * lv, Dialogs * d, const string & name)
: FormBaseBD(lv, d, name)
{}
#include "language.h"
#include "combox.h"
-#ifdef CXX_WORKING_NAMESPACES
using Liason::setMinibuffer;
-#endif
FormCharacter::FormCharacter(LyXView * lv, Dialogs * d)
#include "bufferview_funcs.h"
#include "xforms_helpers.h"
-#ifdef CXX_WORKING_NAMESPACES
using Liason::setMinibuffer;
-#endif
#define USE_CLASS_COMBO 1
bool input(FL_OBJECT * obj, long data);
/// inset::hide connection.
- Connection ih_;
+ SigC::Connection ih_;
/// build the dialog
FD_form_external * build_external();
#include "support/filetools.h"
#include "FormFiledialog.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
// six months, in seconds
static const long SIX_MONTH_SEC = 6L * 30L * 24L * 60L * 60L;
static const long ONE_HOUR_SEC = 60L * 60L;
+// -*- C++ -*-
/**
* \file FormFiledialog.h
* Copyright 2001 the LyX Team
#include "frontends/FileDialog.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Object;
-using SigC::Connection;
-#endif
-
/// DirEntry internal structure definition
class DirEntry {
public:
extern "C" void C_LyXFileDlg_DoubleClickCB(FL_OBJECT * ob, long data);
extern "C" int C_LyXFileDlg_CancelCB(FL_FORM *fl, void *xev);
-class FileDialog::Private : public Object
+class FileDialog::Private : public SigC::Object
{
public:
///
/// Simulates a click on OK/Cancel
void Force(bool);
/// Redraw connection.
- Connection r_;
+ SigC::Connection r_;
};
#endif // FORMFILEDIALOG_H
ButtonController<OkCancelReadOnlyPolicy, xformsBC> bc_;
/// inset::hide connection.
- Connection ih_;
+ SigC::Connection ih_;
/// pointer to the inset passed through showInset
InsetInclude * inset_;
virtual void updateSlot(bool);
/// inset::hide connection.
- Connection ih_;
+ SigC::Connection ih_;
};
#include "lyxrc.h"
#include "buffer.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
FormLog::FormLog(LyXView * lv, Dialogs * d)
: FormBrowser(lv, d, _("LaTeX Log"))
{
#include "lyxtext.h"
#include "xforms_helpers.h"
-#ifdef CXX_WORKING_NAMESPACES
using Liason::setMinibuffer;
-#endif
FormParagraph::FormParagraph(LyXView * lv, Dialogs * d)
: FormBaseBD(lv, d, _("Paragraph Layout"))
#include "gettext.h"
#include "xforms_helpers.h"
-#ifdef CXX_WORKING_NAMESPACES
using Liason::setMinibuffer;
-#endif
FormPreamble::FormPreamble(LyXView * lv, Dialogs * d)
: FormBaseBD(lv, d, _("LaTeX preamble"))
#include "lyx_gui_misc.h" // WriteAlert
#include "xforms_helpers.h" // for browseFile
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
-#ifdef CXX_WORKING_NAMESPACES
using Liason::printBuffer;
using Liason::getPrinterParams;
-#endif
-
using std::make_pair;
FormPrint::FormPrint(LyXView * lv, Dialogs * d)
#include "lyxfind.h"
#include "debug.h"
-#ifdef CXX_WORKING_NAMESPACES
using Liason::setMinibuffer;
-#endif
FormSearch::FormSearch(LyXView * lv, Dialogs * d)
/// our container
Dialogs * d_;
/// the show connection
- Connection c_;
+ SigC::Connection c_;
};
#endif // FORMSPLASH_H
#include "lyxrc.h"
#include "buffer.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
FormVCLog::FormVCLog(LyXView * lv, Dialogs * d)
: FormBrowser(lv, d, _("Version Control Log"))
{
#include <boost/utility.hpp>
#include <boost/smart_ptr.hpp>
-#include "sigc++/signal_system.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-#endif
-
+#include <sigc++/signal_system.h>
class LyXImage;
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
+ * several files: remvoe CXX_WORKING_NAMESPACES
+
* ExternalTemplate.h: noncopyable is in namespace boost
* insetinclude.h: ditto
* insetcommand.h: ditto
#include "converter.h"
#include "frontends/Dialogs.h" // redrawGUI
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
using std::ostream;
using std::istream;
using std::ofstream;
raw_wid = raw_hgh = 0;
changedfname = false;
RegisterFigure(this);
- r_ = Dialogs::redrawGUI.connect(slot(this, &InsetFig::redraw));
+ r_ = Dialogs::redrawGUI.connect(SigC::slot(this, &InsetFig::redraw));
}
struct Figref;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Object;
-using SigC::Connection;
-#endif
-
///
-class InsetFig: public Inset, public Object {
+class InsetFig: public Inset, public SigC::Object {
public:
///
InsetFig(int tmpx, int tmpy, Buffer const &);
/// get sizes from .eps file
void GetPSSizes();
/// Redraw connection.
- Connection r_;
+ SigC::Connection r_;
};
#include <sigc++/signal_system.h>
#include <boost/utility.hpp>
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-#endif
-
// Created by Alejandro 970222
/** Used to insert a LaTeX command automatically
*
///
void setParams(InsetCommandParams const &);
///
- Signal0<void> hideDialog;
+ SigC::Signal0<void> hideDialog;
private:
///
InsetCommandParams p_;
#include "LString.h"
#include <sigc++/signal_system.h>
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-#endif
-
/** Used for error messages from LaTeX runs.
The edit-operation opens a
///
string const & getContents() const { return contents; }
///
- Signal0<void> hideDialog;
-
+ SigC::Signal0<void> hideDialog;
private:
///
string contents;
#include "support/path.h"
#include "support/syscall.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
using std::endl;
InsetExternal::InsetExternal()
#include "LString.h"
#include <sigc++/signal_system.h>
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-#endif
-
///
class InsetExternal : public InsetButton {
public:
InsetExternalParams params() const;
/// hide connection
- Signal0<void> hideDialog;
+ SigC::Signal0<void> hideDialog;
private:
/// Write the output for a specific file format
// We need a signal here to hide an active dialog when we are deleted.
#include "sigc++/signal_system.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-using SigC::slot;
-using SigC::Object;
-#endif
class Dialogs;
class LyXImage;
///
-#ifdef SIGC_CXX_NAMESPACES
-class InsetGraphics : public Inset, public SigC::Object
-#else
-class InsetGraphics : public Inset, public Object
-#endif
-{
+class InsetGraphics : public Inset, public SigC::Object {
public:
///
InsetGraphics();
/** This signal is connected by our dialog and called when the inset
is deleted.
*/
- Signal0 <void> hideDialog;
+ SigC::Signal0<void> hideDialog;
private:
/// Update the inset after parameter change.
bool loadIfNeeded() const;
/// hide a dialog if about
- Signal0<void> hideDialog;
+ SigC::Signal0<void> hideDialog;
private:
/// get the text displayed on the button
string const getScreenLabel() const;
#include "lyxfunc.h"
#include <sigc++/signal_system.h>
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-#endif
-
class LyXLex;
class Painter;
class BufferView;
///
LyXTabular * tabular;
///
- Signal0<void> hideDialog;
+ SigC::Signal0<void> hideDialog;
private:
///
#include "language.h"
#include "frontends/Dialogs.h" // redrawGUI
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
using std::endl;
// a wrapper around the callback static member.
class LyXText;
class Combox;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Object;
-using SigC::Connection;
-#endif
-
/// default character set
#define DEFCHSET "iso8859-1"
classes. Probably should the gui class just have a pointer to the non
gui class.
*/
-class Intl : public Object {
+class Intl : public SigC::Object {
public:
///
Intl();
///
TransManager trans;
/// Redraw connection.
- Connection r_;
+ SigC::Connection r_;
};
using std::endl;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
extern bool keyseqUncomplete();
extern string keyseqOptions(int l = 190);
extern string keyseqStr(int l = 190);
class LyXView;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Object;
-#endif
-
///
-class MiniBuffer : public Object{
+class MiniBuffer : public SigC::Object {
public:
///
MiniBuffer(LyXView * o,
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
+ * several files: remove CXX_WORKING_NAMESPACES
+
* FileInfo.h: noncopyable is in namespace boost
* path.h: ditto
#include <sys/types.h>
#include <signal.h>
-#ifdef CXX_WORKING_NAMESPACES
-namespace lyx {
- int kill(int pid, int sig)
- {
- return ::kill(pid, sig);
- }
-}
-#else
#include "lyxlib.h"
int lyx::kill(int pid, int sig)
{
return ::kill(pid, sig);
}
-#endif
// (an inlined member of some class)?
// Use a namespace if we can, a struct otherwise
-#ifdef CXX_WORKING_NAMESPACES
-#define OPT_STATIC
namespace lyx {
-#else
-#define OPT_STATIC static
-struct lyx {
-#endif
- ///
- OPT_STATIC string const getcwd();
- ///
- OPT_STATIC int chdir(string const & name);
- /// Returns false if it fails
- OPT_STATIC bool rename(string const & from, string const & to);
- /// Returns false it it fails
- OPT_STATIC bool copy(string const & from, string const & to);
- /// generates a checksum
- OPT_STATIC unsigned long sum(string const & file);
- /// returns a date string (not used currently)
- OPT_STATIC char * date();
- /// returns the name of the user (not used currently)
- OPT_STATIC string const getUserName();
- ///
- OPT_STATIC int kill(int pid, int sig);
- ///
- OPT_STATIC void abort();
- ///
- OPT_STATIC int mkdir(string const & pathname, unsigned long int mode);
- ///
- OPT_STATIC int putenv(char const * str);
- ///
- OPT_STATIC int unlink(string const & file);
- ///
- OPT_STATIC int rmdir(string const & file);
- ///
- OPT_STATIC int atoi(string const & nstr);
- ///
- OPT_STATIC string const tempName(string const & dir = string(),
- string const & mask = string());
-#ifdef CXX_WORKING_NAMESPACES
-}
-#else
-};
-#endif
-#undef OPT_STATIC
-
+///
+string const getcwd();
+///
+int chdir(string const & name);
+/// Returns false if it fails
+bool rename(string const & from, string const & to);
+/// Returns false it it fails
+bool copy(string const & from, string const & to);
+/// generates a checksum
+unsigned long sum(string const & file);
+/// returns a date string (not used currently)
+char * date();
+/// returns the name of the user (not used currently)
+string const getUserName();
+///
+int kill(int pid, int sig);
+///
+void abort();
+///
+int mkdir(string const & pathname, unsigned long int mode);
+///
+int putenv(char const * str);
+///
+int unlink(string const & file);
+///
+int rmdir(string const & file);
+///
+int atoi(string const & nstr);
+///
+string const tempName(string const & dir = string(),
+ string const & mask = string());
+
+} // namespace lyx
#endif /* LYX_LIB_H */
#include <stdlib.h>
-#ifdef CXX_WORKING_NAMESPACES
-namespace lyx {
- int putenv(char const * str)
- {
- return ::putenv(const_cast<char*>(str));
- }
-}
-#else
#include "lyxlib.h"
int lyx::putenv(char const * str)
{
return ::putenv(const_cast<char*>(str));
}
-
-#endif
#include <iostream>
#include <streambuf.h>
-#ifdef CXX_WORKING_NAMESPACES
namespace std
{
-#endif
-
class stringbuf : public streambuf
{
public:
{ }
};
-#ifdef CXX_WORKING_NAMESPACES
-}
-#endif
+} // namespace std
inline int stringbuf::sync()
{