Class: Wx::RTC::RichTextPrintout
- Inherits:
-
Printout
- Object
- Printout
- Wx::RTC::RichTextPrintout
- Defined in:
- lib/wx/doc/gen/rtc/rich_text_printing.rb
Overview
This class implements print layout for RichTextBuffer.
Instead of using it directly, you should normally use the RichTextPrinting class.
Category: Rich Text
Instance Method Summary collapse
-
#calculate_scaling(dc, textRect, headerRect, footerRect) ⇒ void
Calculates scaling and text, header and footer rectangles.
-
#get_header_footer_data ⇒ Wx::RTC::RichTextHeaderFooterData
(also: #header_footer_data)
Returns the header and footer data associated with the printout.
-
#get_page_info ⇒ Array(Integer,Integer,Integer,Integer)
(also: #page_info)
Gets the page information.
-
#get_rich_text_buffer ⇒ Wx::RTC::RichTextBuffer
(also: #rich_text_buffer)
Returns a pointer to the buffer being rendered.
-
#has_page(page) ⇒ Boolean
(also: #has_page?)
Returns true if the given page exists in the printout.
-
#initialize(title = ("Wx::PRT::Printout")) ⇒ Wx::RTC::RichTextPrintout
constructor
Constructor.
-
#on_prepare_printing ⇒ void
Prepares for printing, laying out the buffer and calculating pagination.
-
#on_print_page(page) ⇒ Boolean
Does the actual printing for this page.
-
#set_header_footer_data(data) ⇒ void
(also: #header_footer_data=)
Sets the header and footer data associated with the printout.
-
#set_margins(top = 254, bottom = 254, left = 254, right = 254) ⇒ void
(also: #margins=)
Sets margins in 10ths of millimetre.
-
#set_rich_text_buffer(buffer) ⇒ void
(also: #rich_text_buffer=)
Sets the buffer to print.
Constructor Details
#initialize(title = ("Wx::PRT::Printout")) ⇒ Wx::RTC::RichTextPrintout
Constructor.
188 |
# File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 188 def initialize(title=("Wx::PRT::Printout")) end |
Instance Method Details
#calculate_scaling(dc, textRect, headerRect, footerRect) ⇒ void
This method returns an undefined value.
Calculates scaling and text, header and footer rectangles.
196 |
# File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 196 def calculate_scaling(dc, textRect, headerRect, ) end |
#get_header_footer_data ⇒ Wx::RTC::RichTextHeaderFooterData Also known as:
Returns the header and footer data associated with the printout.
200 |
# File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 200 def ; end |
#get_page_info ⇒ Array(Integer,Integer,Integer,Integer) Also known as: page_info
Gets the page information.
205 |
# File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 205 def get_page_info; end |
#get_rich_text_buffer ⇒ Wx::RTC::RichTextBuffer Also known as: rich_text_buffer
Returns a pointer to the buffer being rendered.
210 |
# File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 210 def get_rich_text_buffer; end |
#has_page(page) ⇒ Boolean Also known as: has_page?
Returns true if the given page exists in the printout.
216 |
# File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 216 def has_page(page) end |
#on_prepare_printing ⇒ void
This method returns an undefined value.
Prepares for printing, laying out the buffer and calculating pagination.
221 |
# File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 221 def on_prepare_printing; end |
#on_print_page(page) ⇒ Boolean
Does the actual printing for this page.
226 |
# File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 226 def on_print_page(page) end |
#set_header_footer_data(data) ⇒ void Also known as:
This method returns an undefined value.
Sets the header and footer data associated with the printout.
231 |
# File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 231 def (data) end |
#set_margins(top = 254, bottom = 254, left = 254, right = 254) ⇒ void Also known as: margins=
This method returns an undefined value.
Sets margins in 10ths of millimetre.
Defaults to 1 inch for margins.
242 |
# File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 242 def set_margins(top=254, bottom=254, left=254, right=254) end |
#set_rich_text_buffer(buffer) ⇒ void Also known as: rich_text_buffer=
This method returns an undefined value.
Sets the buffer to print.
Wx::RTC::RichTextPrintout does not manage this pointer; it should be managed by the calling code, such as Wx::RTC::RichTextPrinting.
250 |
# File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 250 def set_rich_text_buffer(buffer) end |