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/richtext/richtextprint.h>
30 \helpref{wxRichtext
}{librarieslist
}
32 \wxheading{Data structures
}
34 These are the header and footer page identifiers, passed to functions such as SetFooterText to specify
35 the odd or even page for the text:
38 enum wxRichTextOddEvenPage
{
45 These are the location identifiers for passing to functions such as SetFooterText, to specify
46 whether the text is on the left, centre or right of the page:
49 enum wxRichTextPageLocation
{
51 wxRICHTEXT_PAGE_CENTRE,
56 \latexignore{\rtfignore{\wxheading{Members
}}}
58 \membersection{wxRichTextHeaderFooterData::wxRichTextHeaderFooterData
}\label{wxrichtextheaderfooterdatawxrichtextheaderfooterdata
}
60 \func{}{wxRichTextHeaderFooterData
}{\void}
62 \func{}{wxRichTextHeaderFooterData
}{\param{const wxRichTextHeaderFooterData\&
}{data
}}
66 \membersection{wxRichTextHeaderFooterData::Clear
}\label{wxrichtextheaderfooterdataclear
}
68 \func{void
}{Clear
}{\void}
72 \membersection{wxRichTextHeaderFooterData::Copy
}\label{wxrichtextheaderfooterdatacopy
}
74 \func{void
}{Copy
}{\param{const wxRichTextHeaderFooterData\&
}{data
}}
78 \membersection{wxRichTextHeaderFooterData::GetFont
}\label{wxrichtextheaderfooterdatagetfont
}
80 \constfunc{const wxFont\&
}{GetFont
}{\void}
82 Returns the font specified for printing the header and footer.
84 \membersection{wxRichTextHeaderFooterData::GetFooterMargin
}\label{wxrichtextheaderfooterdatagetfootermargin
}
86 \constfunc{int
}{GetFooterMargin
}{\void}
88 Returns the margin between the text and the footer.
90 \membersection{wxRichTextHeaderFooterData::GetFooterText
}\label{wxrichtextheaderfooterdatagetfootertext
}
92 \constfunc{wxString
}{GetFooterText
}{\param{wxRichTextOddEvenPage
}{page = wxRICHTEXT
\_PAGE\_EVEN},
\param{wxRichTextPageLocation
}{location = wxRICHTEXT
\_PAGE\_CENTRE}}
94 Returns the footer text on odd or even pages, and at a given position on the page (left, centre or right).
96 \membersection{wxRichTextHeaderFooterData::GetHeaderMargin
}\label{wxrichtextheaderfooterdatagetheadermargin
}
98 \constfunc{int
}{GetHeaderMargin
}{\void}
100 Returns the margin between the text and the header.
102 \membersection{wxRichTextHeaderFooterData::GetHeaderText
}\label{wxrichtextheaderfooterdatagetheadertext
}
104 \constfunc{wxString
}{GetHeaderText
}{\param{wxRichTextOddEvenPage
}{page = wxRICHTEXT
\_PAGE\_EVEN},
\param{wxRichTextPageLocation
}{location = wxRICHTEXT
\_PAGE\_CENTRE}}
106 Returns the header text on odd or even pages, and at a given position on the page (left, centre or right).
108 \membersection{wxRichTextHeaderFooterData::GetShowOnFirstPage
}\label{wxrichtextheaderfooterdatagetshowonfirstpage
}
110 \constfunc{bool
}{GetShowOnFirstPage
}{\void}
112 Returns
\true if the header and footer will be shown on the first page.
114 \membersection{wxRichTextHeaderFooterData::GetText
}\label{wxrichtextheaderfooterdatagettext
}
116 \constfunc{wxString
}{GetText
}{\param{int
}{headerFooter
},
\param{wxRichTextOddEvenPage
}{page
},
\param{wxRichTextPageLocation
}{location
}}
118 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).
120 \membersection{wxRichTextHeaderFooterData::GetTextColour
}\label{wxrichtextheaderfooterdatagettextcolour
}
122 \constfunc{const wxColour\&
}{GetTextColour
}{\void}
124 Returns the text colour for drawing the header and footer.
126 \membersection{wxRichTextHeaderFooterData::Init
}\label{wxrichtextheaderfooterdatainit
}
128 \func{void
}{Init
}{\void}
130 Initialises the object.
132 \membersection{wxRichTextHeaderFooterData::SetFont
}\label{wxrichtextheaderfooterdatasetfont
}
134 \func{void
}{SetFont
}{\param{const wxFont\&
}{font
}}
136 Sets the font for drawing the header and footer.
138 \membersection{wxRichTextHeaderFooterData::SetFooterText
}\label{wxrichtextheaderfooterdatasetfootertext
}
140 \func{void
}{SetFooterText
}{\param{const wxString\&
}{text
},
\param{wxRichTextOddEvenPage
}{page = wxRICHTEXT
\_PAGE\_ALL},
\param{wxRichTextPageLocation
}{location = wxRICHTEXT
\_PAGE\_CENTRE}}
142 Sets the footer text on odd or even pages, and at a given position on the page (left, centre or right).
144 \membersection{wxRichTextHeaderFooterData::SetHeaderText
}\label{wxrichtextheaderfooterdatasetheadertext
}
146 \func{void
}{SetHeaderText
}{\param{const wxString\&
}{text
},
\param{wxRichTextOddEvenPage
}{page = wxRICHTEXT
\_PAGE\_ALL},
\param{wxRichTextPageLocation
}{location = wxRICHTEXT
\_PAGE\_CENTRE}}
148 Sets the header text on odd or even pages, and at a given position on the page (left, centre or right).
150 \membersection{wxRichTextHeaderFooterData::SetMargins
}\label{wxrichtextheaderfooterdatasetmargins
}
152 \func{void
}{SetMargins
}{\param{int
}{headerMargin
},
\param{int
}{footerMargin
}}
154 Sets the margins between text and header or footer, in tenths of a millimeter.
156 \membersection{wxRichTextHeaderFooterData::SetShowOnFirstPage
}\label{wxrichtextheaderfooterdatasetshowonfirstpage
}
158 \func{void
}{SetShowOnFirstPage
}{\param{bool
}{showOnFirstPage
}}
160 Pass
\true to show the header or footer on first page (the default).
162 \membersection{wxRichTextHeaderFooterData::SetText
}\label{wxrichtextheaderfooterdatasettext
}
164 \func{void
}{SetText
}{\param{const wxString\&
}{text
},
\param{int
}{headerFooter
},
\param{wxRichTextOddEvenPage
}{page
},
\param{wxRichTextPageLocation
}{location
}}
166 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).
168 \membersection{wxRichTextHeaderFooterData::SetTextColour
}\label{wxrichtextheaderfooterdatasettextcolour
}
170 \func{void
}{SetTextColour
}{\param{const wxColour\&
}{col
}}
172 Sets the text colour for drawing the header and footer.
174 \membersection{wxRichTextHeaderFooterData::operator=
}\label{wxrichtextheaderfooterdataoperatorassign
}
176 \func{void operator
}{operator=
}{\param{const wxRichTextHeaderFooterData\&
}{data
}}