added the makefile for tex2rtf compilation using configure, fixed compilation
for wxUSE_HELP == 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
21
utils/tex2rtf/src/Makefile.in
Normal file
21
utils/tex2rtf/src/Makefile.in
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# File: makefile.unx
|
||||||
|
# Author: Julian Smart
|
||||||
|
# Created: 1998
|
||||||
|
# Updated:
|
||||||
|
# Copyright: (c) 1998 Julian Smart
|
||||||
|
#
|
||||||
|
# "%W% %G%"
|
||||||
|
#
|
||||||
|
# Makefile for Tex2RTF (Unix)
|
||||||
|
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
top_builddir = ../../..
|
||||||
|
program_dir = utils/tex2rtf/src
|
||||||
|
|
||||||
|
PROGRAM=tex2rtf
|
||||||
|
|
||||||
|
OBJECTS = tex2rtf.o tex2any.o texutils.o rtfutils.o xlputils.o htmlutil.o readshg.o table.o
|
||||||
|
|
||||||
|
include ../../../src/makeprog.env
|
||||||
|
|
@@ -29,7 +29,7 @@
|
|||||||
#include <wx/timer.h>
|
#include <wx/timer.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NO_GUI
|
#if defined(NO_GUI) || defined(__UNIX__)
|
||||||
#if wxUSE_IOSTREAMH
|
#if wxUSE_IOSTREAMH
|
||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
#include <fstream.h>
|
#include <fstream.h>
|
||||||
@@ -59,7 +59,10 @@ bool OkToClose = TRUE;
|
|||||||
int passNumber = 1;
|
int passNumber = 1;
|
||||||
|
|
||||||
#ifndef NO_GUI
|
#ifndef NO_GUI
|
||||||
|
|
||||||
|
#if wxUSE_HELP
|
||||||
wxHelpController *HelpInstance = NULL;
|
wxHelpController *HelpInstance = NULL;
|
||||||
|
#endif // wxUSE_HELP
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
static char *ipc_buffer = NULL;
|
static char *ipc_buffer = NULL;
|
||||||
@@ -330,8 +333,10 @@ bool MyApp::OnInit()
|
|||||||
(*frame->textWindow) << "Welcome to Julian Smart's LaTeX to RTF converter.\n";
|
(*frame->textWindow) << "Welcome to Julian Smart's LaTeX to RTF converter.\n";
|
||||||
// ShowOptions();
|
// ShowOptions();
|
||||||
|
|
||||||
|
#if wxUSE_HELP
|
||||||
HelpInstance = new wxHelpController();
|
HelpInstance = new wxHelpController();
|
||||||
HelpInstance->Initialize("tex2rtf");
|
HelpInstance->Initialize("tex2rtf");
|
||||||
|
#endif // wxUSE_HELP
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Read macro/initialisation file
|
* Read macro/initialisation file
|
||||||
@@ -410,7 +415,10 @@ int MyApp::OnExit()
|
|||||||
delete TheTex2RTFServer;
|
delete TheTex2RTFServer;
|
||||||
wxDDECleanUp();
|
wxDDECleanUp();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_HELP
|
||||||
delete HelpInstance;
|
delete HelpInstance;
|
||||||
|
#endif // wxUSE_HELP
|
||||||
|
|
||||||
// TODO: this simulates zero-memory leaks!
|
// TODO: this simulates zero-memory leaks!
|
||||||
// Otherwise there are just too many...
|
// Otherwise there are just too many...
|
||||||
@@ -610,8 +618,10 @@ void MyFrame::OnModeXLP(wxCommandEvent& event)
|
|||||||
|
|
||||||
void MyFrame::OnHelp(wxCommandEvent& event)
|
void MyFrame::OnHelp(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
|
#if wxUSE_HELP
|
||||||
HelpInstance->LoadFile();
|
HelpInstance->LoadFile();
|
||||||
HelpInstance->DisplayContents();
|
HelpInstance->DisplayContents();
|
||||||
|
#endif // wxUSE_HELP
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnAbout(wxCommandEvent& event)
|
void MyFrame::OnAbout(wxCommandEvent& event)
|
||||||
|
Reference in New Issue
Block a user