reduce #include requirements

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4531 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-07-04 14:03:55 +00:00
parent f849bc4a62
commit 7514ea0ff4
4 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2002-07-04 André Pönitz <poenitz@gmx.net>
* FormInset.[Ch]: reduce #include depencies
* guiapi.C: suppress compiler warning
2002-06-27 Juergen Spitzmueller <j.spitzmueller@gmx.de> 2002-06-27 Juergen Spitzmueller <j.spitzmueller@gmx.de>
* FormInclude.C: Comment out unneeded and wrong update mechanism * FormInclude.C: Comment out unneeded and wrong update mechanism

View File

@ -18,6 +18,7 @@
#include "frontends/LyXView.h" #include "frontends/LyXView.h"
#include "FormInset.h" #include "FormInset.h"
#include "xformsBC.h" #include "xformsBC.h"
#include "insets/insetcommand.h"
#include <boost/bind.hpp> #include <boost/bind.hpp>

View File

@ -15,8 +15,7 @@
#define FORMCOMMAND_H #define FORMCOMMAND_H
#include "FormBaseDeprecated.h" #include "FormBaseDeprecated.h"
#include "insets/insetcommandparams.h"
#include "insets/insetcommand.h"
#include <boost/signals/connection.hpp> #include <boost/signals/connection.hpp>
@ -24,6 +23,7 @@
#pragma interface #pragma interface
#endif #endif
class InsetCommand;
/** This class is an XForms GUI base class to insets /** This class is an XForms GUI base class to insets
*/ */

View File

@ -495,15 +495,22 @@ extern "C" {
} }
#ifdef HAVE_LIBAIKSAURUS
void gui_ShowThesaurus(string const & s, LyXView & lv, Dialogs & d) void gui_ShowThesaurus(string const & s, LyXView & lv, Dialogs & d)
{ {
#ifdef HAVE_LIBAIKSAURUS
static GUI<ControlThesaurus, FormThesaurus, static GUI<ControlThesaurus, FormThesaurus,
OkApplyCancelReadOnlyPolicy, xformsBC> ct(lv, d); OkApplyCancelReadOnlyPolicy, xformsBC> ct(lv, d);
ct.showEntry(s); ct.showEntry(s);
#endif
} }
#else
void gui_ShowThesaurus(string const &, LyXView &, Dialogs &)
{}
#endif
void gui_ShowTOC(InsetCommand * ic, LyXView & lv, Dialogs & d) void gui_ShowTOC(InsetCommand * ic, LyXView & lv, Dialogs & d)
{ {