Class: Wx::RTC::RichTextPrinting
- Defined in:
 - lib/wx/doc/gen/rtc/rich_text_printing.rb,
lib/wx/doc/rtc/richtext_printing.rb 
Overview
This class provides a simple interface for performing RichTextBuffer printing and previewing.
It uses RichTextPrintout for layout and rendering.
Category: Rich Text
Instance Method Summary collapse
- 
  
    
      #get_footer_text(page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE)  ⇒ String 
    
    
      (also: #footer_text)
    
  
  
  
  
  
  
  
  
  
    
A convenience function to get the footer text.
 - 
  
    
      #get_header_footer_data  ⇒ Wx::RTC::RichTextHeaderFooterData 
    
    
      (also: #header_footer_data)
    
  
  
  
  
  
  
  
  
  
    
Returns the internal RichTextHeaderFooterData object.
 - 
  
    
      #get_header_text(page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE)  ⇒ String 
    
    
      (also: #header_text)
    
  
  
  
  
  
  
  
  
  
    
A convenience function to get the header text.
 - 
  
    
      #get_page_setup_data  ⇒ Wx::PRT::PageSetupDialogData 
    
    
      (also: #page_setup_data)
    
  
  
  
  
  
  
  
  
  
    
Returns (a copy of) the page setup data.
 - 
  
    
      #get_parent_window  ⇒ Wx::Window 
    
    
      (also: #parent_window)
    
  
  
  
  
  
  
  
  
  
    
Returns the parent window to be used for the preview window and printing wait dialog.
 - 
  
    
      #get_preview_rect  ⇒ Wx::Rect 
    
    
      (also: #preview_rect)
    
  
  
  
  
  
  
  
  
  
    
Returns the dimensions to be used for the preview window.
 - 
  
    
      #get_print_data  ⇒ Wx::PRT::PrintData 
    
    
      (also: #print_data)
    
  
  
  
  
  
  
  
  
  
    
Returns (a copy of) the print data.
 - 
  
    
      #get_title  ⇒ Wx::String 
    
    
      (also: #title)
    
  
  
  
  
  
  
  
  
  
    
Returns the title of the preview window or printing wait caption.
 - 
  
    
      #initialize(name = ("PRINTING"), parentWindow = nil)  ⇒ Wx::RTC::RichTextPrinting 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Constructor.
 - 
  
    
      #page_setup  ⇒ void 
    
    
  
  
  
  
  
  
  
  
  
    
Shows the page setup dialog.
 - 
  
    
      #preview_buffer(buffer)  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    
Shows a preview window for the given buffer.
 - 
  
    
      #preview_file(richTextFile)  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    
Shows a preview window for the given file.
 - 
  
    
      #print_buffer(buffer, showPrintDialog = true)  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    
Prints the given buffer.
 - 
  
    
      #print_file(richTextFile, showPrintDialog = true)  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    
Prints the given file.
 - 
  
    
      #set_footer_text(text, page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE)  ⇒ void 
    
    
      (also: #footer_text=)
    
  
  
  
  
  
  
  
  
  
    
A convenience function to set the footer text.
 - 
  
    
      #set_header_footer_data(data)  ⇒ void 
    
    
      (also: #header_footer_data=)
    
  
  
  
  
  
  
  
  
  
    
Sets the internal RichTextHeaderFooterData object.
 - 
  
    
      #set_header_footer_font(font)  ⇒ void 
    
    
      (also: #header_footer_font=)
    
  
  
  
  
  
  
  
  
  
    
Sets the RichTextHeaderFooterData font.
 - 
  
    
      #set_header_footer_text_colour(colour)  ⇒ void 
    
    
      (also: #header_footer_text_colour=)
    
  
  
  
  
  
  
  
  
  
    
Sets the RichTextHeaderFooterData text colour.
 - 
  
    
      #set_header_text(text, page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE)  ⇒ void 
    
    
      (also: #header_text=)
    
  
  
  
  
  
  
  
  
  
    
A convenience function to set the header text.
 - 
  
    
      #set_page_setup_data(pageSetupData)  ⇒ void 
    
    
      (also: #page_setup_data=)
    
  
  
  
  
  
  
  
  
  
    
Sets the page setup data.
 - 
  
    
      #set_parent_window(parent)  ⇒ void 
    
    
      (also: #parent_window=)
    
  
  
  
  
  
  
  
  
  
    
Sets the parent window to be used for the preview window and printing wait dialog.
 - 
  
    
      #set_preview_rect(rect)  ⇒ void 
    
    
      (also: #preview_rect=)
    
  
  
  
  
  
  
  
  
  
    
Sets the dimensions to be used for the preview window.
 - 
  
    
      #set_print_data(printData)  ⇒ void 
    
    
      (also: #print_data=)
    
  
  
  
  
  
  
  
  
  
    
Sets the print data.
 - 
  
    
      #set_show_on_first_page(show)  ⇒ void 
    
    
      (also: #show_on_first_page=)
    
  
  
  
  
  
  
  
  
  
    
Pass true to show the header and footer on the first page.
 - 
  
    
      #set_title(title)  ⇒ void 
    
    
      (also: #title=)
    
  
  
  
  
  
  
  
  
  
    
Pass the title of the preview window or printing wait caption.
 
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize(name = ("PRINTING"), parentWindow = nil) ⇒ Wx::RTC::RichTextPrinting
Constructor.
Optionally pass a title to be used in the preview frame and printing wait dialog, and also a parent window for these windows.
      26  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 26 def initialize(name=("PRINTING"), parentWindow=nil) end  | 
  
Instance Method Details
#get_footer_text(page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) ⇒ String Also known as:
A convenience function to get the footer text.
See Wx::RTC::RichTextHeaderFooterData for details.
      34  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 34 def (page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end  | 
  
#get_header_footer_data ⇒ Wx::RTC::RichTextHeaderFooterData Also known as:
Returns the internal Wx::RTC::RichTextHeaderFooterData object.
      39  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 39 def ; end  | 
  
#get_header_text(page = Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location = Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) ⇒ String Also known as: header_text
A convenience function to get the header text.
See Wx::RTC::RichTextHeaderFooterData for details.
      48  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 48 def get_header_text(page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end  | 
  
#get_page_setup_data ⇒ Wx::PRT::PageSetupDialogData Also known as: page_setup_data
Returns (a copy of) the page setup data.
      21  | 
    
      # File 'lib/wx/doc/rtc/richtext_printing.rb', line 21 def get_page_setup_data; end  | 
  
#get_parent_window ⇒ Wx::Window Also known as: parent_window
Returns the parent window to be used for the preview window and printing wait dialog.
      53  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 53 def get_parent_window; end  | 
  
#get_preview_rect ⇒ Wx::Rect Also known as: preview_rect
Returns the dimensions to be used for the preview window.
      58  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 58 def get_preview_rect; end  | 
  
#get_print_data ⇒ Wx::PRT::PrintData Also known as: print_data
Returns (a copy of) the print data.
      16  | 
    
      # File 'lib/wx/doc/rtc/richtext_printing.rb', line 16 def get_print_data; end  | 
  
#get_title ⇒ Wx::String Also known as: title
Returns the title of the preview window or printing wait caption.
      63  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 63 def get_title; end  | 
  
#page_setup ⇒ void
This method returns an undefined value.
Shows the page setup dialog.
      68  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 68 def page_setup; end  | 
  
#preview_buffer(buffer) ⇒ Boolean
Shows a preview window for the given buffer.
The function takes its own copy of buffer.
      75  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 75 def preview_buffer(buffer) end  | 
  
#preview_file(richTextFile) ⇒ Boolean
Shows a preview window for the given file.
richTextFile can be a text file or XML file, or other file depending on the available file handlers.
      82  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 82 def preview_file(richTextFile) end  | 
  
#print_buffer(buffer, showPrintDialog = true) ⇒ Boolean
Prints the given buffer.
The function takes its own copy of buffer. showPrintDialog can be true to show the print dialog, or false to print quietly.
      90  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 90 def print_buffer(buffer, showPrintDialog=true) end  | 
  
#print_file(richTextFile, showPrintDialog = true) ⇒ Boolean
Prints the given file.
richTextFile can be a text file or XML file, or other file depending on the available file handlers. showPrintDialog can be true to show the print dialog, or false to print quietly.
      98  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 98 def print_file(richTextFile, showPrintDialog=true) 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.
A convenience function to set the footer text.
See Wx::RTC::RichTextHeaderFooterData for details.
      107  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 107 def (text, page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end  | 
  
#set_header_footer_data(data) ⇒ void Also known as:
This method returns an undefined value.
Sets the internal Wx::RTC::RichTextHeaderFooterData object.
      113  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 113 def (data) end  | 
  
#set_header_footer_font(font) ⇒ void Also known as:
This method returns an undefined value.
Sets the Wx::RTC::RichTextHeaderFooterData font.
      119  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 119 def (font) end  | 
  
#set_header_footer_text_colour(colour) ⇒ void Also known as:
This method returns an undefined value.
Sets the Wx::RTC::RichTextHeaderFooterData text colour.
      125  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 125 def (colour) 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.
A convenience function to set the header text.
See Wx::RTC::RichTextHeaderFooterData for details.
      135  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 135 def set_header_text(text, page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end  | 
  
#set_page_setup_data(pageSetupData) ⇒ void Also known as: page_setup_data=
This method returns an undefined value.
Sets the page setup data.
      141  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 141 def set_page_setup_data(pageSetupData) end  | 
  
#set_parent_window(parent) ⇒ void Also known as: parent_window=
This method returns an undefined value.
Sets the parent window to be used for the preview window and printing wait dialog.
      147  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 147 def set_parent_window(parent) end  | 
  
#set_preview_rect(rect) ⇒ void Also known as: preview_rect=
This method returns an undefined value.
Sets the dimensions to be used for the preview window.
      153  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 153 def set_preview_rect(rect) end  | 
  
#set_print_data(printData) ⇒ void Also known as: print_data=
This method returns an undefined value.
Sets the print data.
      159  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 159 def set_print_data(printData) end  | 
  
#set_show_on_first_page(show) ⇒ void Also known as: show_on_first_page=
This method returns an undefined value.
Pass true to show the header and footer on the first page.
      165  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 165 def set_show_on_first_page(show) end  | 
  
#set_title(title) ⇒ void Also known as: title=
This method returns an undefined value.
Pass the title of the preview window or printing wait caption.
      171  | 
    
      # File 'lib/wx/doc/gen/rtc/rich_text_printing.rb', line 171 def set_title(title) end  |