*/
#include <config.h>
-#include <gtkmm.h>
#include "frontends/Alert.h"
#include "frontends/Alert_pimpl.h"
+#include <gtkmm.h>
+
using std::string;
2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
- John Spray <spray_john@users.sourceforge.net>
+
+ * Reordered and a lot of includes in a lot of files.
+
+2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
+ John Spray <spray_john@users.sourceforge.net>
* Initial move to gtk 2.4.
*/
#include <config.h>
-#include <gtkmm.h>
#include "FileDialogPrivate.h"
}
-FileDialog::Result const FileDialog::open(string const & path,
- lyx::support::FileFilterList const & filters,
- string const & suggested)
+FileDialog::Result const
+FileDialog::open(string const & path,
+ lyx::support::FileFilterList const & filters,
+ string const & suggested)
{
return private_->open(path, filters, suggested);
}
-FileDialog::Result const FileDialog::opendir(string const & path,
- string const & suggested)
+FileDialog::Result const
+FileDialog::opendir(string const & path,
+ string const & suggested)
{
return private_->opendir(path, suggested);
}
-FileDialog::Result const FileDialog::save(string const & path,
- lyx::support::FileFilterList const & filters,
- string const & suggested)
+FileDialog::Result const
+FileDialog::save(string const & path,
+ lyx::support::FileFilterList const & filters,
+ string const & suggested)
{
return private_->save(path, filters, suggested);
}
*/
#include <config.h>
-#include <gtkmm.h>
#include "FileDialogPrivate.h"
}
-FileDialog::Result const FileDialog::Private::open(string const & path,
- lyx::support::FileFilterList const & /*filters*/,
- string const & /*suggested*/)
+FileDialog::Result const
+FileDialog::Private::open(string const & path,
+ lyx::support::FileFilterList const & /*filters*/,
+ string const & /*suggested*/)
{
fileSelection_.set_filename(path);
fileSelection_.get_file_list()->get_parent()->show();
*/
#include <config.h>
-#include <gtkmm.h>
-
-#include <libglademm.h>
-#include <sstream>
#include "ControlAboutlyx.h"
#include "GAboutlyx.h"
#include "ghelpers.h"
#include "version.h"
+#include <libglademm.h>
+
+#include <sstream>
+
using std::ostringstream;
using std::string;
*/
#include <config.h>
-#include <gtkmm.h>
#include "GBC.h"
#ifndef GBUTTONCONTROLLER_H
#define GBUTTONCONTROLLER_H
-#include <gtkmm.h>
-
#include "ButtonController.h"
#include "BCView.h"
#include "gettext.h"
+#include <gtkmm.h>
+
namespace lyx {
namespace frontend {
*/
#include <config.h>
-#include <gtkmm.h>
-#include <gdk/gdkkeysyms.h>
#include "GLyXKeySym.h"
-
#include "kbmap.h"
+#include <gtkmm.h>
+#include <gdk/gdkkeysyms.h>
+
using std::string;
*/
#include <config.h>
-#include <gtkmm.h>
-#include <libglademm.h>
-#include <sstream>
#include "ControlMath.h"
#include "GMathDelim.h"
#include "support/lstrings.h"
+#include <libglademm.h>
+
+#include <sstream>
+
#include "delim.xbm"
#include "delim0.xpm"
#define GMATH_DELIM_H
#include "GViewBase.h"
-#include "support/lstrings.h"
#include "GXpmBtnTbl.h"
+#include "support/lstrings.h"
+
namespace lyx {
namespace frontend {
*/
#include <config.h>
-#include <gtkmm.h>
-
-#include <libglademm.h>
#include "ControlMath.h"
#include "GMathPanel.h"
#include "support/lstrings.h"
+#include <libglademm.h>
+
#include "deco.xpm"
#include "delim.xpm"
#include "equation.xpm"
#define GMATH_PANEL_H
#include "GViewBase.h"
-#include "support/lstrings.h"
#include "GXpmBtnTbl.h"
+#include "support/lstrings.h"
+
+
namespace lyx {
namespace frontend {
*/
#include <config.h>
-#include <gtkmm.h>
#include "GMenubar.h"
#include "GView.h"
#include "frontends/Menubar.h"
#include "MenuBackend.h"
+
+#include <gtkmm.h>
+
#include <vector>
class LyXView;
*/
#include <config.h>
-#include <gtkmm.h>
#include "GView.h"
#include "GMiniBuffer.h"
new_input_locale);
Glib::ustring new_input =
Glib::locale_to_utf8(new_input_locale);
-
+
if (comp.empty() && new_input == input) {
showInfo("[no match]");
break;
*/
#include <config.h>
-#include <gtkmm.h>
#include "GPainter.h"
#include "debug.h"
#include "support/lstrings.h"
-#include <boost/scoped_array.hpp>
+#include <gtkmm.h>
+#include <gdk/gdkx.h>
#include <X11/Xft/Xft.h>
+#include <boost/scoped_array.hpp>
+
#include <cmath>
using std::string;
#include "frontends/Painter.h"
-#include <X11/Xft/Xft.h>
#include <gtkmm.h>
+#include <X11/Xft/Xft.h>
+
#include <map>
class LyXFont;
*/
#include <config.h>
-#include <gtkmm.h>
-#include <libglademm.h>
#include "GPrint.h"
#include "ControlPrint.h"
#include "ghelpers.h"
#include "PrinterParams.h"
+
#include "support/lstrings.h"
#include "support/tostr.h"
+#include <libglademm.h>
+
using std::string;
using namespace lyx::support;
Gtk::Button * ok;
Gtk::Button * cancel;
- Gtk::Button * apply;
xml_->get_widget("PrintButton", ok);
xml_->get_widget("CancelButton", cancel);
*/
#include <config.h>
-#include <gtkmm.h>
#include "GScreen.h"
#include "screen.h"
+#include <gtkmm.h>
+
namespace lyx {
namespace frontend {
*/
#include <config.h>
-#include <gtkmm.h>
#include "GSearch.h"
#include "ControlSearch.h"
#include "ghelpers.h"
+
#include <libglademm.h>
using std::string;
*/
#include <config.h>
-#include <gtkmm.h>
-#include <libglademm.h>
-
-#include "ControlTabularCreate.h"
#include "GTableCreate.h"
#include "ghelpers.h"
+
#include "support/lstrings.h"
+#include <libglademm.h>
+
using std::string;
namespace lyx {
void GTableCreate::apply()
{
- int rows = rows_->get_value_as_int();
- int columns = columns_->get_value_as_int();
+ int const rows = rows_->get_value_as_int();
+ int const columns = columns_->get_value_as_int();
controller().params() = std::make_pair(columns, rows);
}
#include "GViewBase.h"
+#include "ControlTabularCreate.h"
+
namespace lyx {
namespace frontend {
*/
#include <config.h>
-#include <gtkmm.h>
-#include <libglademm.h>
-#include "support/lstrings.h"
-#include "ControlCommand.h"
#include "GText.h"
+#include "ControlCommand.h"
#include "ghelpers.h"
#include "IdSc.h"
+#include "support/lstrings.h"
+
+#include <gtkmm.h>
+#include <libglademm.h>
+
using std::string;
namespace lyx {
*/
#include <config.h>
-#include <gtkmm.h>
#include "GTimeout.h"
#include "debug.h"
+#include <gtkmm.h>
+
Timeout::Timeout(unsigned int msec, Type t)
: pimpl_(new lyx::frontend::GTimeout(*this)),
*/
#include <config.h>
-#include <gtkmm.h>
#include "GToolbar.h"
#include "GView.h"
combo_.get_entry()->unset_flags(Gtk::CAN_FOCUS | Gtk::CAN_DEFAULT);
comboClear(combo_);
- combo_.get_entry()->signal_changed().connect(
+ combo_.get_entry()->signal_changed().connect(
sigc::mem_fun(*this,&GLayoutBox::selected));
combo_.show();
combo_.set_data(
gToolData,
reinterpret_cast<void*>(&const_cast<FuncRequest &>(func)));
-
+
Gtk::ToolItem * toolitem = Gtk::manage(new Gtk::ToolItem);
toolitem->add(combo_);
toolbar.insert(*toolitem,-1);
owner_.getBox(position).children().push_back(
Gtk::Box_Helpers::Element(toolbar_, Gtk::PACK_SHRINK));
-
+
tooltips_.enable();
}
void GToolbar::add(FuncRequest const & func, string const & tooltip)
{
- switch (func.action) {
+ switch (func.action) {
case ToolbarBackend::SEPARATOR: {
Gtk::SeparatorToolItem * space =
Gtk::manage(new Gtk::SeparatorToolItem);
toolbar_.insert(*space,-1);
- break;
+ break;
}
- case ToolbarBackend::MINIBUFFER:
- // Not supported yet.
- break;
+ case ToolbarBackend::MINIBUFFER:
+ // Not supported yet.
+ break;
case ToolbarBackend::LAYOUTS: {
layout_.reset(new GLayoutBox(owner_, toolbar_, func));
- break;
- }
+ break;
+ }
default: {
Glib::ustring xpmName =
toolbutton = Gtk::manage(new Gtk::ToolButton(*image));
}
// This code is putting a function reference into the GObject data field
- // named gToolData. That's how we know how to update the status of the
+ // named gToolData. That's how we know how to update the status of the
// toolitem later.
toolbutton->set_data(gToolData,
reinterpret_cast<void*>(&const_cast<FuncRequest &>(func)));
tooltips_.set_tip(*toolbutton, tip, tip);
toolbutton->signal_clicked().connect(sigc::bind(sigc::mem_fun(*this,
- >oolbar::clicked), FuncRequest(func)));
+ >oolbar::clicked), FuncRequest(func)));
toolbar_.insert(*toolbutton,-1);
break;
}
#include "frontends/Toolbars.h"
-#include <boost/scoped_ptr.hpp>
-
#include <gtkmm.h>
+#include <boost/scoped_ptr.hpp>
+
namespace lyx {
namespace frontend {
*/
#include <config.h>
-#include <gtkmm.h>
-
-#include <libglademm.h>
#include "ControlCommand.h"
#include "GUrl.h"
#include "ghelpers.h"
+
#include "support/lstrings.h"
+#include <gtkmm.h>
+#include <libglademm.h>
+
using std::string;
namespace lyx {
*/
#include <config.h>
-#include <gtkmm.h>
#include "GView.h"
#include "GMenubar.h"
#include "frontends/LyXView.h"
#include "bufferview_funcs.h"
+#include <gtkmm.h>
+
#include <map>
namespace lyx {
*/
#include <config.h>
-#include <gtkmm.h>
#include "GViewBase.h"
#include "support/filetools.h"
#ifndef GVIEWBASE_H
#define GVIEWBASE_H
-#include <gtkmm.h>
-#include <libglademm.h>
-#include <boost/scoped_ptr.hpp>
#include "Dialog.h"
#include "ButtonPolicies.h"
#include "GBC.h"
+#include <gtkmm.h>
+#include <libglademm.h>
+
+#include <boost/scoped_ptr.hpp>
+
namespace lyx {
namespace frontend {
class GViewDB : public GViewBase {
protected:
GViewDB(Dialog &, std::string const &, bool allowResize);
- virtual const Gtk::Window * window() const;
+ virtual Gtk::Window const * window() const;
virtual Gtk::Window * window();
boost::scoped_ptr<Dialog> dialog_;
};
*/
#include <config.h>
-#include <gtkmm.h>
-#include <X11/Xft/Xft.h>
#include "GWorkArea.h"
#include "GView.h"
#define GWORKAREA_H
#include "GPainter.h"
-#include <gdk/gdkx.h>
-#include <gtk/gtk.h>
#include "frontends/WorkArea.h"
+#include <gtkmm.h>
+#include <gtk/gtk.h>
+
#include <X11/Xft/Xft.h>
class LColor_color;
#include <config.h>
#include "IdSc.h"
+
#include "support/lstrings.h"
using lyx::support::split;
#include <config.h>
-#include <gtkmm.h>
-#include "frontends/LyXScreenFactory.h"
#include "GWorkArea.h"
#include "GScreen.h"
-
-
+#include "frontends/LyXScreenFactory.h"
namespace LyXScreenFactory {
*/
#include <config.h>
-#include <gtkmm.h>
+
+#include "GWorkArea.h"
#include "frontends/WorkAreaFactory.h"
-#include "GWorkArea.h"
+#include <gtkmm.h>
namespace WorkAreaFactory {
*/
#include <config.h>
-#include <gtkmm.h>
#include "lyx_gui.h"
-#include "support/lyxlib.h"
-#include "support/os.h"
-#include "support/filetools.h"
-#include "support/path_defines.h"
-
#include "debug.h"
#include "funcrequest.h"
#include "gettext.h"
#include "xftFontLoader.h"
#include "GWorkArea.h"
+//just for xforms
+#include "lyx_forms.h"
+#include "xformsImage.h"
+#include "xforms_helpers.h"
+
+#include "support/lyxlib.h"
+#include "support/os.h"
+#include "support/filetools.h"
+#include "support/path_defines.h"
+
+#include <gtkmm.h>
+
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/shared_ptr.hpp>
#include <sstream>
#include <iomanip>
-//just for xforms
-#include "lyx_forms.h"
-#include "xformsImage.h"
-#include "xforms_helpers.h"
-
namespace os = lyx::support::os;
using std::ostringstream;
#include <config.h>
-#include <gtkmm.h>
#include "xftFontLoader.h"
#include "FontInfo.h"
#include "gettext.h"
#include "support/systemcall.h"
#include "support/filetools.h"
-
-#include <X11/Xft/Xft.h>
-
#include <cmath> // fabs()
#include <vector>
#include "lyxfont.h"
+#include <gtkmm.h>
#include <X11/Xft/Xft.h>
class GWorkArea;
#include <config.h>
#include "GtkmmX.h"
-#include "support/lstrings.h"
#include "xftFontLoader.h"
#include "font_metrics.h"
#include "lyxrc.h"
#include "language.h"
#include "codeConvert.h"
+#include "support/lstrings.h"
+
#include <gtkmm.h>
#include <boost/scoped_array.hpp>