Class: Wx::RTC::RichTextPlainTextHandler

Inherits:
RichTextFileHandler show all
Defined in:
lib/wx/doc/gen/rtc/rich_text_file_handler.rb

Overview

Implements saving a buffer to plain text.

Category: Rich Text

See Also:

Requires:

  • USE_RICHTEXT

Instance Method Summary collapse

Methods inherited from RichTextFileHandler

#can_handle, #get_encoding, #get_extension, #get_flags, #get_name, #get_type, #is_visible, #load_file, #save_file, #set_encoding, #set_extension, #set_flags, #set_name, #set_type, #set_visible

Methods inherited from Object

#clone, #dup, #is_same_as, #un_share

Constructor Details

#initialize(name = ("TEXT"), ext = ("TXT"), type = Wx::RTC::RichTextFileType::RICHTEXT_TYPE_TEXT) ⇒ Wx::RTC::RichTextPlainTextHandler

Parameters:

  • name (String) (defaults to: ("TEXT"))
  • ext (String) (defaults to: ("TXT"))
  • type (Wx::RichTextFileType) (defaults to: Wx::RTC::RichTextFileType::RICHTEXT_TYPE_TEXT)


164
# File 'lib/wx/doc/gen/rtc/rich_text_file_handler.rb', line 164

def initialize(name=("TEXT"), ext=("TXT"), type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_TEXT) end

Instance Method Details

#can_loadBoolean Also known as: can_load?

Returns true if we can load using this handler.

Returns:

  • (Boolean)


173
# File 'lib/wx/doc/gen/rtc/rich_text_file_handler.rb', line 173

def can_load; end

#can_saveBoolean Also known as: can_save?

Returns true if we can save using this handler.

Returns:

  • (Boolean)


168
# File 'lib/wx/doc/gen/rtc/rich_text_file_handler.rb', line 168

def can_save; end