wxRuby Documentation Home

Wx::RichTextStyleOrganiserDialog

This class shows a style sheet and allows the user to edit, add and remove styles.
It can also be used as a style browser, for example if the application is not
using a permanent RichTextStyleComboCtrl or RichTextStyleListCtrl to
present styles.

Derived from

Dialog

Methods

RichTextStyleOrganiserDialog.new

RichTextStyleOrganiserDialog.new(%(arg-type)Integer% flags, RichTextStyleSheet sheet, RichTextCtrl ctrl, Window parent, Integer id = ID_ANY, String caption = _(“Style Organiser”), Point pos = DEFAULT_POSITION, Size size = DEFAULT_SIZE, Integer style = DEFAULT_DIALOG_STYLE|RESIZE_BORDER|SYSTEM_MENU|CLOSE_BOX)

RichTextStyleOrganiserDialog#apply_style

Boolean apply_style(%(arg-type)RichTextCtrl% ctrl = nil)

Applies the selected style to selection in the given control or the control passed to the constructor.

RichTextStyleOrganiserDialog#create

Boolean create(%(arg-type)Integer% flags, RichTextStyleSheet sheet, RichTextCtrl ctrl, Window parent, Integer id = ID_ANY, String caption = (“Style Organiser”), Point pos = DEFAULT_POSITION, Size size = DEFAULTSIZE, Integer style = DEFAULT_DIALOG_STYLE|RESIZE_BORDER|SYSTEM_MENU|CLOSE_BOX)

Creates the dialog. See h3. RichTextStyleOrganiserDialog.newwxrichtextstyleorganiserdialogwxrichtextstyleorganiserdialog for details.

RichTextStyleOrganiserDialog#get_flags

Integer get_flags()

Returns the flags used to control the interface presented to the user.

RichTextStyleOrganiserDialog#get_restart_numbering

Boolean get_restart_numbering()

Returns if the user has opted to restart numbering.

RichTextStyleOrganiserDialog#get_rich_text_ctrl

RichTextCtrl get_rich_text_ctrl()

Returns the associated rich text control (if any).

RichTextStyleOrganiserDialog#get_selected_style

String get_selected_style()

Returns selected style name.

RichTextStyleOrganiserDialog#get_selected_style_definition

RichTextStyleDefinition get_selected_style_definition()

Returns selected style definition.

RichTextStyleOrganiserDialog#get_style_sheet

RichTextStyleSheet get_style_sheet()

Returns the associated style sheet.

RichTextStyleOrganiserDialog#set_flags

set_flags(%(arg-type)Integer% flags)

Sets the flags used to control the interface presented to the user.

RichTextStyleOrganiserDialog#set_restart_numbering

set_restart_numbering(%(arg-type)Boolean% restartNumbering)

Checks or unchecks the restart numbering checkbox.

RichTextStyleOrganiserDialog#set_rich_text_ctrl

set_rich_text_ctrl(%(arg-type)RichTextCtrl% ctrl)

Sets the control to be associated with the dialog, for the purposes of applying a style to the selection.

RichTextStyleOrganiserDialog#set_show_tool_tips

set_show_tool_tips(%(arg-type)Boolean% show)

Determines whether tooltips will be shown.

RichTextStyleOrganiserDialog#set_style_sheet

set_style_sheet(%(arg-type)RichTextStyleSheet% sheet)

Sets the associated style sheet.

[This page automatically generated from the Textile source at 2023-06-13 21:31:32 +0000]