1 \section{\class{wxRichTextHeaderFooterData
}}\label{wxrichtextheaderfooterdata
}
4 This class represents header and footer data to be passed to the
\helpref{wxRichTextPrinting
}{wxrichtextprinting
} and
5 \helpref{wxRichTextPrintout
}{wxrichtextprintout
} classes.
7 Headers and footers can be specified independently for odd, even or both page sides. Different text can be specified
8 for left, centre and right locations on the page, and the font and text colour can also
9 be specified. You can specify the following keywords in header and footer text, which will
10 be substituted for the actual values during printing and preview.
12 \begin{itemize
}\itemsep=
0pt
13 \item @DATE@: the current date.
14 \item @PAGESCNT@: the total number of pages.
15 \item @PAGENUM@: the current page number.
16 \item @TIME@: the current time.
17 \item @TITLE@: the title of the
document, as passed to the wxRichTextPrinting or wxRichTextLayout constructor.
20 \wxheading{Derived from
}
22 \helpref{wxObject
}{wxobject
}
24 \wxheading{Include files
}
26 <wx/richtex/richtextprint.h>
28 \wxheading{Data structures
}
30 These are the header and footer page identifiers, passed to functions such as SetFooterText to specify
31 the odd or even page for the text:
34 enum wxRichTextOddEvenPage
{
41 These are the location identifiers for passing to functions such as SetFooterText, to specify
42 whether the text is on the left, centre or right of the page:
45 enum wxRichTextPageLocation
{
47 wxRICHTEXT_PAGE_CENTRE,
52 \latexignore{\rtfignore{\wxheading{Members
}}}
54 \membersection{wxRichTextHeaderFooterData::wxRichTextHeaderFooterData
}\label{wxrichtextheaderfooterdatawxrichtextheaderfooterdata
}
56 \func{}{wxRichTextHeaderFooterData
}{\void}
58 \func{}{wxRichTextHeaderFooterData
}{\param{const wxRichTextHeaderFooterData\&
}{data
}}
62 \membersection{wxRichTextHeaderFooterData::Clear
}\label{wxrichtextheaderfooterdataclear
}
64 \func{void
}{Clear
}{\void}
68 \membersection{wxRichTextHeaderFooterData::Copy
}\label{wxrichtextheaderfooterdatacopy
}
70 \func{void
}{Copy
}{\param{const wxRichTextHeaderFooterData\&
}{data
}}
74 \membersection{wxRichTextHeaderFooterData::GetFont
}\label{wxrichtextheaderfooterdatagetfont
}
76 \constfunc{const wxFont\&
}{GetFont
}{\void}
78 Returns the font specified for printing the header and footer.
80 \membersection{wxRichTextHeaderFooterData::GetFooterMargin
}\label{wxrichtextheaderfooterdatagetfootermargin
}
82 \constfunc{int
}{GetFooterMargin
}{\void}
84 Returns the margin between the text and the footer.
86 \membersection{wxRichTextHeaderFooterData::GetFooterText
}\label{wxrichtextheaderfooterdatagetfootertext
}
88 \constfunc{wxString
}{GetFooterText
}{\param{wxRichTextOddEvenPage
}{page = wxRICHTEXT
\_PAGE\_EVEN},
\param{wxRichTextPageLocation
}{location = wxRICHTEXT
\_PAGE\_CENTRE}}
90 Returns the footer text on odd or even pages, and at a given position on the page (left, centre or right).
92 \membersection{wxRichTextHeaderFooterData::GetHeaderMargin
}\label{wxrichtextheaderfooterdatagetheadermargin
}
94 \constfunc{int
}{GetHeaderMargin
}{\void}
96 Returns the margin between the text and the header.
98 \membersection{wxRichTextHeaderFooterData::GetHeaderText
}\label{wxrichtextheaderfooterdatagetheadertext
}
100 \constfunc{wxString
}{GetHeaderText
}{\param{wxRichTextOddEvenPage
}{page = wxRICHTEXT
\_PAGE\_EVEN},
\param{wxRichTextPageLocation
}{location = wxRICHTEXT
\_PAGE\_CENTRE}}
102 Returns the header text on odd or even pages, and at a given position on the page (left, centre or right).
104 \membersection{wxRichTextHeaderFooterData::GetShowOnFirstPage
}\label{wxrichtextheaderfooterdatagetshowonfirstpage
}
106 \constfunc{bool
}{GetShowOnFirstPage
}{\void}
108 Returns
\true if the header and footer will be shown on the first page.
110 \membersection{wxRichTextHeaderFooterData::GetText
}\label{wxrichtextheaderfooterdatagettext
}
112 \constfunc{wxString
}{GetText
}{\param{int
}{headerFooter
},
\param{wxRichTextOddEvenPage
}{page
},
\param{wxRichTextPageLocation
}{location
}}
114 Helper function for getting the header or footer text, odd or even pages, and at a given position on the page (left, centre or right).
116 \membersection{wxRichTextHeaderFooterData::GetTextColour
}\label{wxrichtextheaderfooterdatagettextcolour
}
118 \constfunc{const wxColour\&
}{GetTextColour
}{\void}
120 Returns the text colour for drawing the header and footer.
122 \membersection{wxRichTextHeaderFooterData::Init
}\label{wxrichtextheaderfooterdatainit
}
124 \func{void
}{Init
}{\void}
126 Initialises the object.
128 \membersection{wxRichTextHeaderFooterData::SetFont
}\label{wxrichtextheaderfooterdatasetfont
}
130 \func{void
}{SetFont
}{\param{const wxFont\&
}{font
}}
132 Sets the font for drawing the header and footer.
134 \membersection{wxRichTextHeaderFooterData::SetFooterText
}\label{wxrichtextheaderfooterdatasetfootertext
}
136 \func{void
}{SetFooterText
}{\param{const wxString\&
}{text
},
\param{wxRichTextOddEvenPage
}{page = wxRICHTEXT
\_PAGE\_ALL},
\param{wxRichTextPageLocation
}{location = wxRICHTEXT
\_PAGE\_CENTRE}}
138 Sets the footer text on odd or even pages, and at a given position on the page (left, centre or right).
140 \membersection{wxRichTextHeaderFooterData::SetHeaderText
}\label{wxrichtextheaderfooterdatasetheadertext
}
142 \func{void
}{SetHeaderText
}{\param{const wxString\&
}{text
},
\param{wxRichTextOddEvenPage
}{page = wxRICHTEXT
\_PAGE\_ALL},
\param{wxRichTextPageLocation
}{location = wxRICHTEXT
\_PAGE\_CENTRE}}
144 Sets the header text on odd or even pages, and at a given position on the page (left, centre or right).
146 \membersection{wxRichTextHeaderFooterData::SetMargins
}\label{wxrichtextheaderfooterdatasetmargins
}
148 \func{void
}{SetMargins
}{\param{int
}{headerMargin
},
\param{int
}{footerMargin
}}
150 Sets the margins between text and header or footer, in tenths of a millimeter.
152 \membersection{wxRichTextHeaderFooterData::SetShowOnFirstPage
}\label{wxrichtextheaderfooterdatasetshowonfirstpage
}
154 \func{void
}{SetShowOnFirstPage
}{\param{bool
}{showOnFirstPage
}}
156 Pass
\true to show the header or footer on first page (the default).
158 \membersection{wxRichTextHeaderFooterData::SetText
}\label{wxrichtextheaderfooterdatasettext
}
160 \func{void
}{SetText
}{\param{const wxString\&
}{text
},
\param{int
}{headerFooter
},
\param{wxRichTextOddEvenPage
}{page
},
\param{wxRichTextPageLocation
}{location
}}
162 Helper function for setting the header or footer text, odd or even pages, and at a given position on the page (left, centre or right).
164 \membersection{wxRichTextHeaderFooterData::SetTextColour
}\label{wxrichtextheaderfooterdatasettextcolour
}
166 \func{void
}{SetTextColour
}{\param{const wxColour\&
}{col
}}
168 Sets the text colour for drawing the header and footer.
170 \membersection{wxRichTextHeaderFooterData::operator=
}\label{wxrichtextheaderfooterdataoperatorassign
}
172 \func{void operator
}{operator=
}{\param{const wxRichTextHeaderFooterData\&
}{data
}}