2 % automatically generated by HelpGen from
3 % htmprint.h at 17/Oct/99 12:48:02
6 \section{\class{wxHtmlEasyPrinting
}}\label{wxhtmleasyprinting
}
8 This class provides very simple interface to printing
9 architecture. It allows you to print HTML documents using
14 Do not create this class on the stack only. You should create an instance on app
15 startup and use this instance for all printing operations. The reason is that
16 this class stores various settings in it.
18 \wxheading{Derived from
}
20 \helpref{wxObject
}{wxobject
}
22 \wxheading{Include files
}
27 \latexignore{\rtfignore{\wxheading{Members
}}}
29 \membersection{wxHtmlEasyPrinting::wxHtmlEasyPrinting
}\label{wxhtmleasyprintingwxhtmleasyprinting
}
31 \func{}{wxHtmlEasyPrinting
}{\param{const wxString\&
}{name = "Printing"
},
\param{wxWindow*
}{parentWindow = NULL
}}
35 \wxheading{Parameters
}
37 \docparam{name
}{Name of the printing object. Used by preview frames and setup dialogs.
}
39 \docparam{parentWindow
}{pointer to the window that will own the preview frame and setup dialogs. May be NULL.
}
41 \membersection{wxHtmlEasyPrinting::PreviewFile
}\label{wxhtmleasyprintingpreviewfile
}
43 \func{bool
}{PreviewFile
}{\param{const wxString\&
}{htmlfile
}}
47 Returns false in case of error -- call
48 \helpref{wxPrinter::GetLastError
}{wxprintergetlasterror
} to get detailed
49 information about the kind of the error.
52 \membersection{wxHtmlEasyPrinting::PreviewText
}\label{wxhtmleasyprintingpreviewtext
}
54 \func{bool
}{PreviewText
}{\param{const wxString\&
}{htmltext
},
\param{const wxString\&
}{basepath = wxEmptyString
}}
56 Preview HTML text (not file!).
58 Returns false in case of error -- call
59 \helpref{wxPrinter::GetLastError
}{wxprintergetlasterror
} to get detailed
60 information about the kind of the error.
62 \wxheading{Parameters
}
64 \docparam{htmltext
}{HTML text.
}
66 \docparam{basepath
}{base directory (html string would be stored there if it was in
67 file). It is used to determine path for loading images, for example.
}
69 \membersection{wxHtmlEasyPrinting::PrintFile
}\label{wxhtmleasyprintingprintfile
}
71 \func{bool
}{PrintFile
}{\param{const wxString\&
}{htmlfile
}}
75 Returns false in case of error -- call
76 \helpref{wxPrinter::GetLastError
}{wxprintergetlasterror
} to get detailed
77 information about the kind of the error.
79 \membersection{wxHtmlEasyPrinting::PrintText
}\label{wxhtmleasyprintingprinttext
}
81 \func{bool
}{PrintText
}{\param{const wxString\&
}{htmltext
},
\param{const wxString\&
}{basepath = wxEmptyString
}}
83 Print HTML text (not file!).
85 Returns false in case of error -- call
86 \helpref{wxPrinter::GetLastError
}{wxprintergetlasterror
} to get detailed
87 information about the kind of the error.
89 \wxheading{Parameters
}
91 \docparam{htmltext
}{HTML text.
}
93 \docparam{basepath
}{base directory (html string would be stored there if it was in
94 file). It is used to determine path for loading images, for example.
}
96 \membersection{wxHtmlEasyPrinting::PageSetup
}\label{wxhtmleasyprintingpagesetup
}
98 \func{void
}{PageSetup
}{\void}
100 Display page setup dialog and allows the user to modify settings.
102 \membersection{wxHtmlEasyPrinting::SetFonts
}\label{wxhtmleasyprintingsetfonts
}
104 \func{void
}{SetFonts
}{\param{const wxString\&
}{normal
\_face},
\param{const wxString\&
}{fixed
\_face},
\param{const int
}{*sizes = NULL
}}
106 Sets fonts. See
\helpref{wxHtmlWindow::SetFonts
}{wxhtmlwindowsetfonts
} for
107 detailed description.
109 \membersection{wxHtmlEasyPrinting::SetHeader
}\label{wxhtmleasyprintingsetheader
}
111 \func{void
}{SetHeader
}{\param{const wxString\&
}{header
},
\param{int
}{pg = wxPAGE
\_ALL}}
113 Set page header. The following macros can be used inside it:
114 \input htprintmacros.inc
116 \wxheading{Parameters
}
118 \docparam{header
}{HTML text to be used as header.
}
120 \docparam{pg
}{one of wxPAGE
\_ODD, wxPAGE
\_EVEN and wxPAGE
\_ALL constants.
}
122 \membersection{wxHtmlEasyPrinting::SetFooter
}\label{wxhtmleasyprintingsetfooter
}
124 \func{void
}{SetFooter
}{\param{const wxString\&
}{footer
},
\param{int
}{pg = wxPAGE
\_ALL}}
126 Set page footer. The following macros can be used inside it:
127 \input htprintmacros.inc
129 \wxheading{Parameters
}
131 \docparam{footer
}{HTML text to be used as footer.
}
133 \docparam{pg
}{one of wxPAGE
\_ODD, wxPAGE
\_EVEN and wxPAGE
\_ALL constants.
}
135 \membersection{wxHtmlEasyPrinting::GetPrintData
}\label{wxhtmleasyprintinggetprintdata
}
137 \func{wxPrintData*
}{GetPrintData
}{\void}
139 Returns pointer to
\helpref{wxPrintData
}{wxprintdata
} instance used by this class. You can
140 set its parameters (via SetXXXX methods).
142 \membersection{wxHtmlEasyPrinting::GetPageSetupData
}\label{wxhtmleasyprintinggetpagesetupdata
}
144 \func{wxPageSetupDialogData*
}{GetPageSetupData
}{\void}
146 Returns a pointer to
\helpref{wxPageSetupDialogData
}{wxpagesetupdialogdata
} instance used by
147 this class. You can set its parameters (via SetXXXX methods).