Class: Wx::RTC::RichTextXMLHandler

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

Overview

A handler for loading and saving content in an XML format specific to RichTextBuffer.

You can either add the handler to the buffer and load and save through the buffer or control API, or you can create an instance of the handler on the stack and call its functions directly.

Handler flags

The following flags can be used with this handler, via the handler’s Wx::RTC::RichTextFileHandler#set_flags function or the buffer or control’s SetHandlerFlags() function:

Category: Rich Text

Requires:

  • USE_RICHTEXT

Class Method Summary collapse

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 = ("XML"), ext = ("XML"), type = Wx::RTC::RichTextFileType::RICHTEXT_TYPE_XML) ⇒ Wx::RTC::RichTextXMLHandler

Constructor.

Parameters:

  • name (String) (defaults to: ("XML"))
  • ext (String) (defaults to: ("XML"))
  • type (Integer) (defaults to: Wx::RTC::RichTextFileType::RICHTEXT_TYPE_XML)


31
# File 'lib/wx/doc/gen/rtc/rich_text_xml_handler.rb', line 31

def initialize(name=("XML"), ext=("XML"), type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_XML) end

Class Method Details

.clear_node_to_class_mapvoid

This method returns an undefined value.

Cleans up the mapping between node name and C++ class.



53
# File 'lib/wx/doc/gen/rtc/rich_text_xml_handler.rb', line 53

def self.clear_node_to_class_map; end

.register_node_name(nodeName, className) ⇒ void

This method returns an undefined value.

Call with XML node name, C++ class name so that Wx::RTC can read in the node.

If you add a custom object, call this.

Parameters:

  • nodeName (String)
  • className (String)


49
# File 'lib/wx/doc/gen/rtc/rich_text_xml_handler.rb', line 49

def self.register_node_name(nodeName, className) end

Instance Method Details

#can_loadBoolean Also known as: can_load?

Returns true.

Returns:

  • (Boolean)


35
# File 'lib/wx/doc/gen/rtc/rich_text_xml_handler.rb', line 35

def can_load; end

#can_saveBoolean Also known as: can_save?

Returns true.

Returns:

  • (Boolean)


40
# File 'lib/wx/doc/gen/rtc/rich_text_xml_handler.rb', line 40

def can_save; end