Class: Wx::RTC::RichTextHeaderFooterData
- Defined in:
- lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb
Overview
This class is untracked and should not be derived from nor instances extended!
This class represents header and footer data to be passed to the RichTextPrinting and RichTextPrintout classes.
Headers and footers can be specified independently for odd, even or both page sides. Different text can be specified for left, centre and right locations on the page, and the font and text colour can also be specified. You can specify the following keywords in header and footer text, which will be substituted for the actual values during printing and preview.
-
@DATE@: the current date.
-
@PAGESCNT@: the total number of pages.
-
@PAGENUM@: the current page number.
-
@TIME@: the current time.
-
@TITLE@: the title of the document, as passed to the RichTextPrinting or Wx::RichTextLayout constructor.
Category: Rich Text
Instance Method Summary collapse
-
#clear ⇒ void
Clears all text.
-
#copy(data) ⇒ void
Copies the data.
-
#get_font ⇒ Wx::Font, Wx::FontInfo
(also: #font)
Returns the font specified for printing the header and footer.
-
#get_footer_margin ⇒ Integer
(also: #footer_margin)
Returns the margin between the text and the footer.
-
#get_footer_text(page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) ⇒ String
(also: #footer_text)
Returns the footer text on odd or even pages, and at a given position on the page (left, centre or right).
-
#get_header_margin ⇒ Integer
(also: #header_margin)
Returns the margin between the text and the header.
-
#get_header_text(page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) ⇒ String
(also: #header_text)
Returns the header text on odd or even pages, and at a given position on the page (left, centre or right).
-
#get_show_on_first_page ⇒ Boolean
(also: #show_on_first_page)
Returns true if the header and footer will be shown on the first page.
-
#get_text(headerFooter, page, location) ⇒ String
(also: #text)
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).
-
#get_text_colour ⇒ Wx::Colour, ...
(also: #text_colour)
Returns the text colour for drawing the header and footer.
-
#init ⇒ void
Initialises the object.
-
#initialize(*args) ⇒ RichTextHeaderFooterData
constructor
A new instance of RichTextHeaderFooterData.
-
#set_font(font) ⇒ void
(also: #font=)
Sets the font for drawing the header and footer.
-
#set_footer_text(text, page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) ⇒ void
(also: #footer_text=)
Sets the footer text on odd or even pages, and at a given position on the page (left, centre or right).
-
#set_header_text(text, page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) ⇒ void
(also: #header_text=)
Sets the header text on odd or even pages, and at a given position on the page (left, centre or right).
-
#set_margins(headerMargin, footerMargin) ⇒ void
Sets the margins between text and header or footer, in tenths of a millimeter.
-
#set_show_on_first_page(showOnFirstPage) ⇒ void
(also: #show_on_first_page=)
Pass true to show the header or footer on first page (the default).
-
#set_text(text, headerFooter, page, location) ⇒ void
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).
-
#set_text_colour(col) ⇒ void
(also: #text_colour=)
Sets the text colour for drawing the header and footer.
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize ⇒ Wx::RTC::RichTextHeaderFooterData #initialize(data) ⇒ Wx::RTC::RichTextHeaderFooterData
Returns a new instance of RichTextHeaderFooterData.
77 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 77 def initialize(*args) end |
Instance Method Details
#clear ⇒ void
This method returns an undefined value.
Clears all text.
81 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 81 def clear; end |
#copy(data) ⇒ void
This method returns an undefined value.
Copies the data.
86 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 86 def copy(data) end |
#get_font ⇒ Wx::Font, Wx::FontInfo Also known as: font
Returns the font specified for printing the header and footer.
90 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 90 def get_font; end |
#get_footer_margin ⇒ Integer Also known as:
Returns the margin between the text and the footer.
95 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 95 def ; end |
#get_footer_text(page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) ⇒ String Also known as:
Returns the footer text on odd or even pages, and at a given position on the page (left, centre or right).
102 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 102 def (page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end |
#get_header_margin ⇒ Integer Also known as: header_margin
Returns the margin between the text and the header.
107 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 107 def get_header_margin; end |
#get_header_text(page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) ⇒ String Also known as: header_text
Returns the header text on odd or even pages, and at a given position on the page (left, centre or right).
114 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 114 def get_header_text(page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end |
#get_show_on_first_page ⇒ Boolean Also known as: show_on_first_page
Returns true if the header and footer will be shown on the first page.
119 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 119 def get_show_on_first_page; end |
#get_text(headerFooter, page, location) ⇒ String Also known as: text
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).
127 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 127 def get_text(, page, location) end |
#get_text_colour ⇒ Wx::Colour, ... Also known as: text_colour
Returns the text colour for drawing the header and footer.
132 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 132 def get_text_colour; end |
#init ⇒ void
This method returns an undefined value.
Initialises the object.
137 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 137 def init; end |
#set_font(font) ⇒ void Also known as: font=
This method returns an undefined value.
Sets the font for drawing the header and footer.
142 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 142 def set_font(font) end |
#set_footer_text(text, page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) ⇒ void Also known as:
This method returns an undefined value.
Sets the footer text on odd or even pages, and at a given position on the page (left, centre or right).
150 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 150 def (text, page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end |
#set_header_text(text, page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) ⇒ void Also known as: header_text=
This method returns an undefined value.
Sets the header text on odd or even pages, and at a given position on the page (left, centre or right).
158 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 158 def set_header_text(text, page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end |
#set_margins(headerMargin, footerMargin) ⇒ void
This method returns an undefined value.
Sets the margins between text and header or footer, in tenths of a millimeter.
165 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 165 def set_margins(headerMargin, ) end |
#set_show_on_first_page(showOnFirstPage) ⇒ void Also known as: show_on_first_page=
This method returns an undefined value.
Pass true to show the header or footer on first page (the default).
170 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 170 def set_show_on_first_page(showOnFirstPage) end |
#set_text(text, headerFooter, page, location) ⇒ void
This method returns an undefined value.
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).
179 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 179 def set_text(text, , page, location) end |
#set_text_colour(col) ⇒ void Also known as: text_colour=
This method returns an undefined value.
Sets the text colour for drawing the header and footer.
184 |
# File 'lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb', line 184 def set_text_colour(col) end |