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{wxFrame*
}{parent
\_frame = NULL
}}
35 \wxheading{Parameters
}
37 \docparam{name
}{Name of the printing. Used by preview frames and setup dialogs.
}
39 \docparam{parent
\_frame}{pointer to the frame that will own preview frame and setup dialogs. May be NULL.
}
42 \membersection{wxHtmlEasyPrinting::PreviewFile
}\label{wxhtmleasyprintingpreviewfile
}
44 \func{bool
}{PreviewFile
}{\param{const wxString\&
}{htmlfile
}}
48 Returns FALSE in case of error -- call
49 \helpref{wxPrinter::GetLastError
}{wxprintergetlasterror
} to get detailed
50 information about the kind of the error.
53 \membersection{wxHtmlEasyPrinting::PreviewText
}\label{wxhtmleasyprintingpreviewtext
}
55 \func{bool
}{PreviewText
}{\param{const wxString\&
}{htmltext
},
\param{const wxString\&
}{basepath = wxEmptyString
}}
57 Preview HTML text (not file!).
59 Returns FALSE in case of error -- call
60 \helpref{wxPrinter::GetLastError
}{wxprintergetlasterror
} to get detailed
61 information about the kind of the error.
63 \wxheading{Parameters
}
65 \docparam{htmltext
}{HTML text.
}
67 \docparam{basepath
}{base directory (html string would be stored there if it was in
68 file). It is used to determine path for loading images, for example.
}
70 \membersection{wxHtmlEasyPrinting::PrintFile
}\label{wxhtmleasyprintingprintfile
}
72 \func{bool
}{PrintFile
}{\param{const wxString\&
}{htmlfile
}}
76 Returns FALSE in case of error -- call
77 \helpref{wxPrinter::GetLastError
}{wxprintergetlasterror
} to get detailed
78 information about the kind of the error.
80 \membersection{wxHtmlEasyPrinting::PrintText
}\label{wxhtmleasyprintingprinttext
}
82 \func{bool
}{PrintText
}{\param{const wxString\&
}{htmltext
},
\param{const wxString\&
}{basepath = wxEmptyString
}}
84 Print HTML text (not file!).
86 Returns FALSE in case of error -- call
87 \helpref{wxPrinter::GetLastError
}{wxprintergetlasterror
} to get detailed
88 information about the kind of the error.
90 \wxheading{Parameters
}
92 \docparam{htmltext
}{HTML text.
}
94 \docparam{basepath
}{base directory (html string would be stored there if it was in
95 file). It is used to determine path for loading images, for example.
}
97 \membersection{wxHtmlEasyPrinting::PrinterSetup
}\label{wxhtmleasyprintingprintersetup
}
99 \func{void
}{PrinterSetup
}{\void}
101 Display printer setup dialog and allows the user to modify settings.
103 \membersection{wxHtmlEasyPrinting::PageSetup
}\label{wxhtmleasyprintingpagesetup
}
105 \func{void
}{PageSetup
}{\void}
107 Display page setup dialog and allows the user to modify settings.
109 \membersection{wxHtmlEasyPrinting::SetHeader
}\label{wxhtmleasyprintingsetheader
}
111 \func{void
}{SetHeader
}{\param{const wxString\&
}{header
},
\param{int
}{pg = wxPAGE
\_ALL}}
115 \wxheading{Parameters
}
117 \docparam{header
}{HTML text to be used as header. You can use macros in it:
119 \begin{itemize
}\itemsep=
0pt
120 \item @PAGENUM@ is replaced by page number
121 \item @PAGESCNT@ is replaced by total number of pages
125 \docparam{pg
}{one of wxPAGE
\_ODD, wxPAGE
\_EVEN and wxPAGE
\_ALL constants.
}
127 \membersection{wxHtmlEasyPrinting::SetFooter
}\label{wxhtmleasyprintingsetfooter
}
129 \func{void
}{SetFooter
}{\param{const wxString\&
}{footer
},
\param{int
}{pg = wxPAGE
\_ALL}}
133 \wxheading{Parameters
}
135 \docparam{footer
}{HTML text to be used as footer. You can use macros in it:
137 \begin{itemize
}\itemsep=
0pt
138 \item @PAGENUM@ is replaced by page number
139 \item @PAGESCNT@ is replaced by total number of pages
143 \docparam{pg
}{one of wxPAGE
\_ODD, wxPAGE
\_EVEN and wxPAGE
\_ALL constants.
}
145 \membersection{wxHtmlEasyPrinting::GetPrintData
}\label{wxhtmleasyprintinggetprintdata
}
147 \func{wxPrintData*
}{GetPrintData
}{\void}
149 Returns pointer to
\helpref{wxPrintData
}{wxprintdata
} instance used by this class. You can
150 set its parameters (via SetXXXX methods).
152 \membersection{wxHtmlEasyPrinting::GetPageSetupData
}\label{wxhtmleasyprintinggetpagesetupdata
}
154 \func{wxPageSetupDialogData*
}{GetPageSetupData
}{\void}
156 Returns a pointer to
\helpref{wxPageSetupDialogData
}{wxpagesetupdialogdata
} instance used by
157 this class. You can set its parameters (via SetXXXX methods).