\membersection{wxHtmlEasyPrinting::wxHtmlEasyPrinting}\label{wxhtmleasyprintingwxhtmleasyprinting}
-\func{}{wxHtmlEasyPrinting}{\param{const wxString\& }{name = "Printing"}, \param{wxFrame* }{parent\_frame = NULL}}
+\func{}{wxHtmlEasyPrinting}{\param{const wxString\& }{name = "Printing"}, \param{wxWindow* }{parentWindow = NULL}}
Constructor.
\wxheading{Parameters}
-\docparam{name}{Name of the printing. Used by preview frames and setup dialogs.}
-
-\docparam{parent\_frame}{pointer to the frame that will own preview frame and setup dialogs. May be NULL.}
+\docparam{name}{Name of the printing object. Used by preview frames and setup dialogs.}
+\docparam{parentWindow}{pointer to the window that will own the preview frame and setup dialogs. May be NULL.}
\membersection{wxHtmlEasyPrinting::PreviewFile}\label{wxhtmleasyprintingpreviewfile}
\membersection{wxPreviewFrame::wxPreviewFrame}
-\func{}{wxPreviewFrame}{\param{wxPrintPreview* }{preview}, \param{wxFrame* }{parent}, \param{const wxString\& }{title},
+\func{}{wxPreviewFrame}{\param{wxPrintPreview* }{preview}, \param{wxWindow* }{parent}, \param{const wxString\& }{title},
\param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& size }{size = wxDefaultSize},
\param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = ``frame"}}
/pack/cvsroots/wxwindows/wxWindows/include/wx/textbuf.h,v <-- textbuf.h
new revision: 1.8; previous revision: 1.7
-18. Better notebook page sizing
-
-nbbase.cpp, CalcSizeFromPage, plus #includes at top of file.
-This gets the tab size and adds a bit for borders.
-We should do the same for other platforms, only rationalise
-it so that wxNotebook returns the tab rect info.
-
19. Add wxFileConfig bug fix, marked by <JACS>...</JACS> in Parse().
This prevents mungeing of the config file after reading in
entries (say, just one entry in one group), then adding entries
class WXDLLEXPORT wxHtmlEasyPrinting : public wxObject
{
public:
- wxHtmlEasyPrinting(const wxString& name = wxT("Printing"), wxFrame *parent_frame = NULL);
+ wxHtmlEasyPrinting(const wxString& name = wxT("Printing"), wxWindow *parentWindow = NULL);
~wxHtmlEasyPrinting();
bool PreviewFile(const wxString &htmlfile);
int *m_FontsSizes;
wxString m_FontFaceFixed, m_FontFaceNormal;
wxString m_Headers[2], m_Footers[2];
- wxFrame *m_Frame;
+ wxWindow *m_ParentWindow;
DECLARE_NO_COPY_CLASS(wxHtmlEasyPrinting)
};
{
public:
wxPreviewFrame(wxPrintPreviewBase *preview,
- wxFrame *parent,
+ wxWindow *parent,
const wxString& title = wxT("Print Preview"),
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
EVT_CLOSE(wxPreviewFrame::OnCloseWindow)
END_EVENT_TABLE()
-wxPreviewFrame::wxPreviewFrame(wxPrintPreviewBase *preview, wxFrame *parent, const wxString& title,
+wxPreviewFrame::wxPreviewFrame(wxPrintPreviewBase *preview, wxWindow *parent, const wxString& title,
const wxPoint& pos, const wxSize& size, long style, const wxString& name):
wxFrame(parent, -1, title, pos, size, style, name)
{
m_controlBar = NULL;
m_previewCanvas = NULL;
- // Looks silly on Windows with a standard Windows icon
+ // Give the application icon
#ifdef __WXMSW__
wxFrame* topFrame = wxDynamicCast(wxTheApp->GetTopWindow(), wxFrame);
if (topFrame)
//----------------------------------------------------------------------------
-wxHtmlEasyPrinting::wxHtmlEasyPrinting(const wxString& name, wxFrame *parent_frame)
+wxHtmlEasyPrinting::wxHtmlEasyPrinting(const wxString& name, wxWindow *parentWindow)
{
- m_Frame = parent_frame;
+ m_ParentWindow = parentWindow;
m_Name = name;
m_PrintData = new wxPrintData;
m_PageSetupData = new wxPageSetupDialogData;
return FALSE;
}
- wxPreviewFrame *frame = new wxPreviewFrame(preview, m_Frame,
+ wxPreviewFrame *frame = new wxPreviewFrame(preview, m_ParentWindow,
m_Name + _(" Preview"),
wxPoint(100, 100), wxSize(650, 500));
frame->Centre(wxBOTH);
wxPrintDialogData printDialogData(*m_PrintData);
wxPrinter printer(&printDialogData);
- if (!printer.Print(m_Frame, printout, TRUE))
+ if (!printer.Print(m_ParentWindow, printout, TRUE))
{
return FALSE;
}
void wxHtmlEasyPrinting::PrinterSetup()
{
wxPrintDialogData printDialogData(*m_PrintData);
- wxPrintDialog printerDialog(m_Frame, &printDialogData);
+ wxPrintDialog printerDialog(m_ParentWindow, &printDialogData);
printerDialog.GetPrintDialogData().SetSetupDialog(TRUE);
}
m_PageSetupData->SetPrintData(*m_PrintData);
- wxPageSetupDialog pageSetupDialog(m_Frame, m_PageSetupData);
+ wxPageSetupDialog pageSetupDialog(m_ParentWindow, m_PageSetupData);
if (pageSetupDialog.ShowModal() == wxID_OK)
{