From 7514ea0ff4fa923a96e6dc301ca637154242488c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 4 Jul 2002 14:03:55 +0000 Subject: [PATCH] reduce #include requirements git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4531 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 7 +++++++ src/frontends/xforms/FormInset.C | 1 + src/frontends/xforms/FormInset.h | 4 ++-- src/frontends/xforms/guiapi.C | 11 +++++++++-- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index c6152ed30b..34bfff30e6 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,10 @@ + +2002-07-04 André Pönitz + + * FormInset.[Ch]: reduce #include depencies + + * guiapi.C: suppress compiler warning + 2002-06-27 Juergen Spitzmueller * FormInclude.C: Comment out unneeded and wrong update mechanism diff --git a/src/frontends/xforms/FormInset.C b/src/frontends/xforms/FormInset.C index a211f957ff..1bec120314 100644 --- a/src/frontends/xforms/FormInset.C +++ b/src/frontends/xforms/FormInset.C @@ -18,6 +18,7 @@ #include "frontends/LyXView.h" #include "FormInset.h" #include "xformsBC.h" +#include "insets/insetcommand.h" #include diff --git a/src/frontends/xforms/FormInset.h b/src/frontends/xforms/FormInset.h index ad2aa2729b..c5d4604f38 100644 --- a/src/frontends/xforms/FormInset.h +++ b/src/frontends/xforms/FormInset.h @@ -15,8 +15,7 @@ #define FORMCOMMAND_H #include "FormBaseDeprecated.h" - -#include "insets/insetcommand.h" +#include "insets/insetcommandparams.h" #include @@ -24,6 +23,7 @@ #pragma interface #endif +class InsetCommand; /** This class is an XForms GUI base class to insets */ diff --git a/src/frontends/xforms/guiapi.C b/src/frontends/xforms/guiapi.C index 8e4515f164..97e3d1af9d 100644 --- a/src/frontends/xforms/guiapi.C +++ b/src/frontends/xforms/guiapi.C @@ -495,15 +495,22 @@ extern "C" { } +#ifdef HAVE_LIBAIKSAURUS + void gui_ShowThesaurus(string const & s, LyXView & lv, Dialogs & d) { -#ifdef HAVE_LIBAIKSAURUS static GUI ct(lv, d); ct.showEntry(s); -#endif } +#else + + void gui_ShowThesaurus(string const &, LyXView &, Dialogs &) + {} + +#endif + void gui_ShowTOC(InsetCommand * ic, LyXView & lv, Dialogs & d) {