move the inclusion of tmpl files from .C files to headers. This fixes part of the linking problems seen on non-GNU toolchains with gcc

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@5390 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-10-14 14:28:30 +00:00
parent 540fb6484a
commit 375b3e511f
21 changed files with 18 additions and 22 deletions

View File

@ -81,4 +81,7 @@ protected:
}; };
#include "ButtonController.tmpl"
#endif // BUTTONCONTROLLER_H #endif // BUTTONCONTROLLER_H

View File

@ -1,3 +1,8 @@
2002-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* several files: move the inclusion of .tmpl files from .C files
to .h files
2002-07-26 Juergen Vigna <jug@sad.it> 2002-07-26 Juergen Vigna <jug@sad.it>
* ControlThesaurus.C (replace): ditto. * ControlThesaurus.C (replace): ditto.

View File

@ -25,13 +25,6 @@
#include "Dialogs.h" #include "Dialogs.h"
#include "LyXView.h" #include "LyXView.h"
// need to #include this in _one_ of the ControlCommand-derived classses in
// order to instantiate
// ControlInset<InsetCommand, InsetCommandParams>::showInset
// ControlInset<InsetCommand, InsetCommandParams>::createInset
#include "ControlInset.tmpl"
using std::pair; using std::pair;
using std::vector; using std::vector;
using SigC::slot; using SigC::slot;

View File

@ -20,7 +20,6 @@
#include "ViewBase.h" #include "ViewBase.h"
#include "ButtonControllerBase.h" #include "ButtonControllerBase.h"
#include "ControlCommand.h" #include "ControlCommand.h"
#include "ControlInset.tmpl"
#include "buffer.h" #include "buffer.h"
#include "Dialogs.h" #include "Dialogs.h"
#include "LyXView.h" #include "LyXView.h"

View File

@ -47,4 +47,7 @@ private:
bool dialog_built_; bool dialog_built_;
}; };
#include "ControlDialog.tmpl"
#endif // CONTROLDIALOG_H #endif // CONTROLDIALOG_H

View File

@ -9,7 +9,6 @@
#include <config.h> #include <config.h>
#include "ControlDialog_impl.h" #include "ControlDialog_impl.h"
#include "ControlDialog.tmpl"
ControlDialogBD::ControlDialogBD(LyXView & lv, Dialogs & d) ControlDialogBD::ControlDialogBD(LyXView & lv, Dialogs & d)
: ControlDialog<ControlConnectBD>(lv, d) : ControlDialog<ControlConnectBD>(lv, d)

View File

@ -20,7 +20,6 @@
#include "ViewBase.h" #include "ViewBase.h"
#include "ButtonControllerBase.h" #include "ButtonControllerBase.h"
#include "ControlERT.h" #include "ControlERT.h"
#include "ControlInset.tmpl"
#include "Dialogs.h" #include "Dialogs.h"
#include "LyXView.h" #include "LyXView.h"
#include "buffer.h" #include "buffer.h"

View File

@ -20,7 +20,6 @@
#include "ViewBase.h" #include "ViewBase.h"
#include "ButtonControllerBase.h" #include "ButtonControllerBase.h"
#include "ControlError.h" #include "ControlError.h"
#include "ControlInset.tmpl"
#include "Dialogs.h" #include "Dialogs.h"
#include "LyXView.h" #include "LyXView.h"
#include "buffer.h" #include "buffer.h"

View File

@ -25,7 +25,6 @@
#include "BufferView.h" #include "BufferView.h"
#include "ButtonControllerBase.h" #include "ButtonControllerBase.h"
#include "ControlExternal.h" #include "ControlExternal.h"
#include "ControlInset.tmpl"
#include "Dialogs.h" #include "Dialogs.h"
#include "Liason.h" #include "Liason.h"
#include "LyXView.h" #include "LyXView.h"

View File

@ -18,7 +18,6 @@
#include "ViewBase.h" #include "ViewBase.h"
#include "ButtonControllerBase.h" #include "ButtonControllerBase.h"
#include "ControlFloat.h" #include "ControlFloat.h"
#include "ControlInset.tmpl"
#include "Dialogs.h" #include "Dialogs.h"
#include "LyXView.h" #include "LyXView.h"
#include "buffer.h" #include "buffer.h"

View File

@ -22,7 +22,6 @@
#include "ViewBase.h" #include "ViewBase.h"
#include "ButtonControllerBase.h" #include "ButtonControllerBase.h"
#include "ControlGraphics.h" #include "ControlGraphics.h"
#include "ControlInset.tmpl"
#include "helper_funcs.h" #include "helper_funcs.h"

View File

@ -18,7 +18,6 @@
#include "ViewBase.h" #include "ViewBase.h"
#include "ButtonControllerBase.h" #include "ButtonControllerBase.h"
#include "ControlInclude.h" #include "ControlInclude.h"
#include "ControlInset.tmpl"
#include "buffer.h" #include "buffer.h"
#include "Alert.h" #include "Alert.h"
#include "BufferView.h" #include "BufferView.h"

View File

@ -106,4 +106,7 @@ private:
}; };
#include "ControlInset.tmpl"
#endif // CONTROLINSET_H #endif // CONTROLINSET_H

View File

@ -20,7 +20,6 @@
#include "ViewBase.h" #include "ViewBase.h"
#include "ButtonControllerBase.h" #include "ButtonControllerBase.h"
#include "ControlMinipage.h" #include "ControlMinipage.h"
#include "ControlInset.tmpl"
#include "Dialogs.h" #include "Dialogs.h"
#include "LyXView.h" #include "LyXView.h"
#include "buffer.h" #include "buffer.h"

View File

@ -11,7 +11,6 @@
#define GUI_H #define GUI_H
#include "ButtonController.h" #include "ButtonController.h"
#include "ButtonController.tmpl"
#include "ButtonPolicies.h" #include "ButtonPolicies.h"
#include "ControlAboutlyx.h" #include "ControlAboutlyx.h"
#include "ControlBibitem.h" #include "ControlBibitem.h"

View File

@ -5,7 +5,6 @@
#endif #endif
#include "gnomeBC.h" #include "gnomeBC.h"
#include "ButtonController.tmpl"
#include "gtk--/widget.h" #include "gtk--/widget.h"
#include "gtk--/button.h" #include "gtk--/button.h"

View File

@ -14,7 +14,6 @@
#endif #endif
#include "Qt2BC.h" #include "Qt2BC.h"
#include "ButtonController.tmpl"
#include "debug.h" #include "debug.h"
#include <qbutton.h> #include <qbutton.h>

View File

@ -1,3 +1,7 @@
2002-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* several files: do not include .tmpl files in .C files.
2002-10-09 Dekel Tsur <dekelts@tau.ac.il> 2002-10-09 Dekel Tsur <dekelts@tau.ac.il>
* FormRef.C (update): Always list the labels of the current buffer. * FormRef.C (update): Always list the labels of the current buffer.

View File

@ -36,7 +36,6 @@
#include "FormMathsSpace.h" #include "FormMathsSpace.h"
#include "FormMathsStyle.h" #include "FormMathsStyle.h"
#include "ButtonController.tmpl"
#include "deco.xpm" #include "deco.xpm"
#include "delim.xpm" #include "delim.xpm"

View File

@ -14,7 +14,6 @@
#include "FormPreferences.h" #include "FormPreferences.h"
#include "form_preferences.h" #include "form_preferences.h"
#include "ButtonController.tmpl"
#include "Dialogs.h" #include "Dialogs.h"
#include "buffer.h" #include "buffer.h"

View File

@ -15,7 +15,6 @@
#endif #endif
#include "xformsBC.h" #include "xformsBC.h"
#include "ButtonController.tmpl"
#include "xforms_helpers.h" #include "xforms_helpers.h"
xformsBC::xformsBC(string const & cancel, string const & close) xformsBC::xformsBC(string const & cancel, string const & close)