FreeBSD patch to sckaddr.cpp; include more files in manual; misc

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-10-06 09:33:58 +00:00
parent 32cbeff4c3
commit 1b826605f5
6 changed files with 17 additions and 44 deletions

View File

@@ -99,7 +99,7 @@ $$\image{14cm;0cm}{wxclass.ps}$$
\input listbox.tex \input listbox.tex
\input listctrl.tex \input listctrl.tex
\input listevt.tex \input listevt.tex
%\input log.tex \input log.tex
\input mask.tex \input mask.tex
\input mdi.tex \input mdi.tex
\input menu.tex \input menu.tex

View File

@@ -6,7 +6,7 @@ This chapter contains a selection of topic overviews.
\input tapp.tex \input tapp.tex
\input tlog.tex \input tlog.tex
%\input tconfig.tex \input tconfig.tex
\input tbitmap.tex \input tbitmap.tex
\input tdialog.tex \input tdialog.tex
\input tfont.tex \input tfont.tex

View File

@@ -53,7 +53,7 @@ class WXDLLEXPORT wxCursor;
class WXDLLEXPORT wxColourMap; class WXDLLEXPORT wxColourMap;
class WXDLLEXPORT wxFont; class WXDLLEXPORT wxFont;
class WXDLLEXPORT wxMenu; class WXDLLEXPORT wxMenu;
class WXDLLEXPORT wxRectangle; class WXDLLEXPORT wxRect;
class WXDLLEXPORT wxBitmap; class WXDLLEXPORT wxBitmap;
class WXDLLEXPORT wxSizer; class WXDLLEXPORT wxSizer;
class WXDLLEXPORT wxList; class WXDLLEXPORT wxList;
@@ -228,7 +228,7 @@ public:
virtual bool PopupMenu(wxMenu *menu, int x, int y); virtual bool PopupMenu(wxMenu *menu, int x, int y);
// Send the window a refresh event // Send the window a refresh event
virtual void Refresh(bool eraseBack = TRUE, const wxRectangle *rect = NULL); virtual void Refresh(bool eraseBack = TRUE, const wxRect *rect = NULL);
#if WXWIN_COMPATIBILITY #if WXWIN_COMPATIBILITY
// Set/get scroll attributes // Set/get scroll attributes
@@ -247,7 +247,7 @@ public:
virtual int GetScrollRange(int orient) const; virtual int GetScrollRange(int orient) const;
virtual int GetScrollThumb(int orient) const; virtual int GetScrollThumb(int orient) const;
virtual void ScrollWindow(int dx, int dy, const wxRectangle *rect = NULL); virtual void ScrollWindow(int dx, int dy, const wxRect *rect = NULL);
// Caret manipulation // Caret manipulation
virtual void CreateCaret(int w, int h); virtual void CreateCaret(int w, int h);
@@ -668,7 +668,7 @@ public:
wxRegion m_updateRegion; wxRegion m_updateRegion;
/* /*
wxRectangle m_updateRect; // Bounding box for screen damage area wxRect m_updateRect; // Bounding box for screen damage area
#ifdef __WIN32__ #ifdef __WIN32__
WXHRGN m_updateRgn; // NT allows access to the rectangle list WXHRGN m_updateRgn; // NT allows access to the rectangle list
#endif #endif

View File

@@ -97,9 +97,9 @@ int WXDLLEXPORT wxHexToDec(char *buf);
void WXDLLEXPORT wxDecToHex(int dec, char *buf); void WXDLLEXPORT wxDecToHex(int dec, char *buf);
// Execute another program. Returns 0 if there was an error, a PID otherwise. // Execute another program. Returns 0 if there was an error, a PID otherwise.
long WXDLLEXPORT wxExecute(char **argv, bool Async = FALSE, long WXDLLEXPORT wxExecute(char **argv, bool sync = FALSE,
wxProcess *process = (wxProcess *) NULL); wxProcess *process = (wxProcess *) NULL);
long WXDLLEXPORT wxExecute(const wxString& command, bool Async = FALSE, long WXDLLEXPORT wxExecute(const wxString& command, bool sync = FALSE,
wxProcess *process = (wxProcess *) NULL); wxProcess *process = (wxProcess *) NULL);
#define wxSIGTERM 1 #define wxSIGTERM 1

View File

@@ -46,8 +46,6 @@
#include "wx/choicdlg.h" #include "wx/choicdlg.h"
#include "wx/docview.h" #include "wx/docview.h"
#include "wx/printdlg.h" #include "wx/printdlg.h"
#include "wx/generic/prntdlgg.h"
#include "wx/generic/printps.h"
#include "wx/confbase.h" #include "wx/confbase.h"
#include <stdio.h> #include <stdio.h>
@@ -744,20 +742,8 @@ void wxDocManager::OnPrint(wxCommandEvent& WXUNUSED(event))
wxPrintout *printout = view->OnCreatePrintout(); wxPrintout *printout = view->OnCreatePrintout();
if (printout) if (printout)
{ {
// TODO: trouble about this is that it pulls in the postscript wxPrinter printer;
// code unecessarily printer.Print(view->GetFrame(), printout, TRUE);
#ifdef __WXMSW__
if ( wxTheApp->GetPrintMode() == wxPRINT_WINDOWS )
{
wxWindowsPrinter printer;
printer.Print(view->GetFrame(), printout, TRUE);
}
else
#endif
{
wxPostScriptPrinter printer;
printer.Print(view->GetFrame(), printout, TRUE);
}
delete printout; delete printout;
} }
@@ -772,20 +758,9 @@ void wxDocManager::OnPrintSetup(wxCommandEvent& WXUNUSED(event))
wxPrintData data; wxPrintData data;
#ifdef __WXMSW__ wxPrintDialog printerDialog(parentWin, & data);
if ( wxTheApp->GetPrintMode() == wxPRINT_WINDOWS ) printerDialog.GetPrintData().SetSetupDialog(TRUE);
{ printerDialog.ShowModal();
wxPrintDialog printerDialog(parentWin, & data);
printerDialog.GetPrintData().SetSetupDialog(TRUE);
printerDialog.ShowModal();
}
else
#endif
{
wxGenericPrintDialog printerDialog(parentWin, & data);
printerDialog.GetPrintData().SetSetupDialog(TRUE);
printerDialog.ShowModal();
}
} }
void wxDocManager::OnPreview(wxCommandEvent& WXUNUSED(event)) void wxDocManager::OnPreview(wxCommandEvent& WXUNUSED(event))
@@ -799,12 +774,7 @@ void wxDocManager::OnPreview(wxCommandEvent& WXUNUSED(event))
{ {
// Pass two printout objects: for preview, and possible printing. // Pass two printout objects: for preview, and possible printing.
wxPrintPreviewBase *preview = (wxPrintPreviewBase *) NULL; wxPrintPreviewBase *preview = (wxPrintPreviewBase *) NULL;
#ifdef __WXMSW__ preview = new wxPrintPreview(printout, view->OnCreatePrintout());
if ( wxTheApp->GetPrintMode() == wxPRINT_WINDOWS )
preview = new wxWindowsPrintPreview(printout, view->OnCreatePrintout());
else
#endif
preview = new wxPostScriptPrintPreview(printout, view->OnCreatePrintout());
wxPreviewFrame *frame = new wxPreviewFrame(preview, (wxFrame *)wxTheApp->GetTopWindow(), _("Print Preview"), wxPreviewFrame *frame = new wxPreviewFrame(preview, (wxFrame *)wxTheApp->GetTopWindow(), _("Print Preview"),
wxPoint(100, 100), wxSize(600, 650)); wxPoint(100, 100), wxSize(600, 650));

View File

@@ -41,6 +41,9 @@
#include <socket.h> #include <socket.h>
#include <in.h> #include <in.h>
#else #else
#if defined(__FreeBSD__) || defined (__NetBSD__)
#include <sys/types.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>