wxruby3 1.7.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (522) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +27 -2
  3. data/README.md +15 -15
  4. data/ext/wxruby3/include/wxRubyApp.h +145 -46
  5. data/ext/wxruby3/include/wxruby-ComboPopup.h +25 -8
  6. data/ext/wxruby3/include/wxruby-GCTracking.h +262 -0
  7. data/ext/wxruby3/include/wxruby-MBConv.h +190 -0
  8. data/ext/wxruby3/include/wxruby-SharedEventHandler.h +183 -0
  9. data/ext/wxruby3/include/wxruby-SharedPtr.h +104 -0
  10. data/ext/wxruby3/include/wxruby-runtime.h +29 -0
  11. data/ext/wxruby3/swig/custom/rubytracking.swg +8 -22
  12. data/ext/wxruby3/swig/custom/wx_ruby_shared_ptr.i +434 -0
  13. data/ext/wxruby3/swig/custom/wx_shared_ptr.i +431 -0
  14. data/ext/wxruby3/swig/mark_free_impl.i +7 -132
  15. data/ext/wxruby3/swig/memory_management.i +8 -44
  16. data/ext/wxruby3/swig/wx.i +46 -73
  17. data/lib/wx/core/const.rb +0 -1
  18. data/lib/wx/core/context_help.rb +17 -0
  19. data/lib/wx/core/cursor.rb +1 -0
  20. data/lib/wx/core/helpcontrollerhelpprovider.rb +10 -2
  21. data/lib/wx/core/mbconv.rb +11 -0
  22. data/lib/wx/core/media_ctrl.rb +31 -0
  23. data/lib/wx/core/top_level_window.rb +7 -0
  24. data/lib/wx/core.rb +6 -0
  25. data/lib/wx/doc/art_provider.rb +17 -0
  26. data/lib/wx/doc/context_help.rb +42 -0
  27. data/lib/wx/doc/core.rb +0 -5
  28. data/lib/wx/doc/functions.rb +10 -0
  29. data/lib/wx/doc/html/html_help_controller.rb +23 -1
  30. data/lib/wx/doc/mbconv.rb +108 -0
  31. data/lib/wx/doc/rt/shared_event_handler.rb +49 -0
  32. data/lib/wx/doc/rt/thread_event.rb +28 -0
  33. data/lib/wx/doc/stream.rb +7 -3
  34. data/lib/wx/doc/webview.rb +40 -0
  35. data/lib/wx/helpers.rb +1 -1
  36. data/lib/wx/html/htmlhelpcontroller.rb +10 -0
  37. data/lib/wx/keyword_defs.rb +11 -0
  38. data/lib/wx/rt/require.rb +8 -0
  39. data/lib/wx/rt/thread_event.rb +14 -0
  40. data/lib/wx/rt.rb +16 -0
  41. data/lib/wx/version.rb +1 -1
  42. data/lib/wx/web/require.rb +8 -0
  43. data/lib/wx/web/webview.rb +106 -0
  44. data/lib/wx/web.rb +17 -0
  45. data/lib/wx/wxruby/cmd/setup.rb +15 -0
  46. data/lib/wx/wxruby/cmd/test.rb +8 -2
  47. data/lib/wx.rb +2 -0
  48. data/rakelib/configure.rb +24 -0
  49. data/rakelib/gem.rb +3 -2
  50. data/rakelib/install.rb +54 -27
  51. data/rakelib/lib/config/macosx.rb +7 -5
  52. data/rakelib/lib/config/mingw.rb +66 -5
  53. data/rakelib/lib/config/pkgman/linux.rb +4 -2
  54. data/rakelib/lib/config/pkgman/mingw.rb +1 -1
  55. data/rakelib/lib/config/unixish.rb +4 -2
  56. data/rakelib/lib/config.rb +37 -3
  57. data/rakelib/lib/core/include/client_data.inc +38 -17
  58. data/rakelib/lib/core/include/funcall.inc +1 -1
  59. data/rakelib/lib/core/include/swigdirector.inc +3 -3
  60. data/rakelib/lib/core/include/swigrubyrun.inc +14 -26
  61. data/rakelib/lib/core/package.rb +0 -2
  62. data/rakelib/lib/director/app.rb +1 -8
  63. data/rakelib/lib/director/art_provider.rb +7 -3
  64. data/rakelib/lib/director/comboctrl.rb +0 -7
  65. data/rakelib/lib/director/context_help_button.rb +35 -2
  66. data/rakelib/lib/director/derived_dc.rb +41 -32
  67. data/rakelib/lib/director/editable_listbox.rb +10 -8
  68. data/rakelib/lib/director/event_handler.rb +32 -28
  69. data/rakelib/lib/director/fs_file.rb +38 -10
  70. data/rakelib/lib/director/functions.rb +8 -0
  71. data/rakelib/lib/director/grid_cell_attr.rb +1 -3
  72. data/rakelib/lib/director/grid_cell_editor.rb +14 -12
  73. data/rakelib/lib/director/grid_cell_renderer.rb +11 -8
  74. data/rakelib/lib/director/grid_ctrl.rb +140 -121
  75. data/rakelib/lib/director/help_controller.rb +70 -2
  76. data/rakelib/lib/director/mb_conv.rb +30 -0
  77. data/rakelib/lib/director/menu.rb +92 -42
  78. data/rakelib/lib/director/menu_bar.rb +84 -45
  79. data/rakelib/lib/director/menu_item.rb +2 -2
  80. data/rakelib/lib/director/persistence_manager.rb +3 -2
  81. data/rakelib/lib/director/preview_frame.rb +2 -2
  82. data/rakelib/lib/director/ribbon_page.rb +11 -0
  83. data/rakelib/lib/director/richtext_buffer.rb +5 -2
  84. data/rakelib/lib/director/shared_evt_handler.rb +30 -0
  85. data/rakelib/lib/director/sizer.rb +8 -17
  86. data/rakelib/lib/director/sizer_item.rb +3 -4
  87. data/rakelib/lib/director/task_bar_icon.rb +7 -7
  88. data/rakelib/lib/director/thread_event.rb +33 -0
  89. data/rakelib/lib/director/top_level_window.rb +12 -4
  90. data/rakelib/lib/director/validator.rb +3 -1
  91. data/rakelib/lib/director/variant.rb +16 -12
  92. data/rakelib/lib/director/webview.rb +166 -0
  93. data/rakelib/lib/director/webview_event.rb +37 -0
  94. data/rakelib/lib/director/webview_handler.rb +63 -0
  95. data/rakelib/lib/generate/doc/thread_event.yaml +20 -0
  96. data/rakelib/lib/generate/doc/web_view.yaml +135 -0
  97. data/rakelib/lib/generate/doc/web_view_event.yaml +38 -0
  98. data/rakelib/lib/generate/doc/web_view_handler.yaml +58 -0
  99. data/rakelib/lib/specs/interfaces.rb +14 -2
  100. data/rakelib/lib/typemap/common.rb +34 -1
  101. data/rakelib/lib/typemap/mb_conv.rb +58 -0
  102. data/rakelib/prepost.rake +23 -31
  103. data/rakelib/prepost.rb +20 -0
  104. data/samples/event/threaded.rb +295 -42
  105. data/samples/event/tn_threaded.png +0 -0
  106. data/samples/help/doc/back.gif +0 -0
  107. data/samples/help/doc/contents.gif +0 -0
  108. data/samples/help/doc/cshelp.txt +9 -0
  109. data/samples/help/doc/doc.chm +0 -0
  110. data/samples/help/doc/doc.cnt +8 -0
  111. data/samples/help/doc/doc.h +7 -0
  112. data/samples/help/doc/doc.hhc +40 -0
  113. data/samples/help/doc/doc.hhk +31 -0
  114. data/samples/help/doc/doc.hhp +33 -0
  115. data/samples/help/doc/doc.hpj +21 -0
  116. data/samples/help/doc/doc.htm +27 -0
  117. data/samples/help/doc/doc1.htm +24 -0
  118. data/samples/help/doc/doc2.htm +12 -0
  119. data/samples/help/doc/doc3.htm +12 -0
  120. data/samples/help/doc/doc4.htm +12 -0
  121. data/samples/help/doc/doc5.htm +14 -0
  122. data/samples/help/doc/forward.gif +0 -0
  123. data/samples/help/doc/up.gif +0 -0
  124. data/samples/help/doc.chm +0 -0
  125. data/samples/help/doc.chw +0 -0
  126. data/samples/help/doc.zip +0 -0
  127. data/samples/help/help.rb +352 -0
  128. data/samples/help/tn_help.png +0 -0
  129. data/samples/webview/handler_advanced.html +55 -0
  130. data/samples/webview/tn_webview.png +0 -0
  131. data/samples/webview/webview.rb +1264 -0
  132. data/tests/assets/handler_advanced.html +55 -0
  133. data/tests/assets/test.zip +0 -0
  134. data/tests/lib/text_entry_tests.rb +2 -2
  135. data/tests/lib/wxapp_runner.rb +40 -0
  136. data/tests/lib/wxframe_runner.rb +17 -2
  137. data/tests/test_art.rb +8 -8
  138. data/tests/test_clipboard.rb +4 -4
  139. data/tests/test_config.rb +6 -6
  140. data/tests/test_exceptions.rb +8 -6
  141. data/tests/test_ext_controls.rb +3 -3
  142. data/tests/test_file_dialog.rb +5 -5
  143. data/tests/test_font.rb +7 -7
  144. data/tests/test_grid_ctrl.rb +133 -0
  145. data/tests/test_help.rb +88 -0
  146. data/tests/test_intl.rb +1 -1
  147. data/tests/test_media_ctrl.rb +14 -6
  148. data/tests/test_menu.rb +94 -86
  149. data/tests/test_persistence.rb +1 -1
  150. data/tests/test_proof_check.rb +5 -5
  151. data/tests/test_propgrid.rb +1 -1
  152. data/tests/test_shared_event_handler.rb +141 -0
  153. data/tests/test_std_controls.rb +5 -5
  154. data/tests/test_webview.rb +492 -0
  155. data/tests/test_window.rb +3 -3
  156. metadata +66 -368
  157. data/assets/repo-social-preview.odg +0 -0
  158. data/assets/repo-social-preview.xcf +0 -0
  159. data/lib/wx/aui/events/evt_list.rb +0 -148
  160. data/lib/wx/core/events/evt_list.rb +0 -1458
  161. data/lib/wx/core/font/encoding.rb +0 -113
  162. data/lib/wx/doc/gen/about_dialog_info.rb +0 -330
  163. data/lib/wx/doc/gen/accelerator.rb +0 -178
  164. data/lib/wx/doc/gen/activity_indicator.rb +0 -83
  165. data/lib/wx/doc/gen/affine_matrix2d.rb +0 -284
  166. data/lib/wx/doc/gen/animation.rb +0 -275
  167. data/lib/wx/doc/gen/animation_ctrl.rb +0 -300
  168. data/lib/wx/doc/gen/any_button.rb +0 -191
  169. data/lib/wx/doc/gen/app.rb +0 -463
  170. data/lib/wx/doc/gen/app_traits.rb +0 -396
  171. data/lib/wx/doc/gen/art_provider.rb +0 -605
  172. data/lib/wx/doc/gen/aui/aui_dock_art.rb +0 -455
  173. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +0 -54
  174. data/lib/wx/doc/gen/aui/aui_manager.rb +0 -847
  175. data/lib/wx/doc/gen/aui/aui_manager_event.rb +0 -131
  176. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +0 -180
  177. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +0 -59
  178. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +0 -130
  179. data/lib/wx/doc/gen/aui/aui_notebook.rb +0 -631
  180. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +0 -233
  181. data/lib/wx/doc/gen/aui/aui_pane_info.rb +0 -769
  182. data/lib/wx/doc/gen/aui/aui_tab_art.rb +0 -352
  183. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +0 -14
  184. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +0 -510
  185. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +0 -340
  186. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +0 -244
  187. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +0 -257
  188. data/lib/wx/doc/gen/aui/event_list.rb +0 -179
  189. data/lib/wx/doc/gen/banner_window.rb +0 -124
  190. data/lib/wx/doc/gen/bitmap.rb +0 -731
  191. data/lib/wx/doc/gen/bitmap_button.rb +0 -123
  192. data/lib/wx/doc/gen/bitmap_combo_box.rb +0 -221
  193. data/lib/wx/doc/gen/book_ctrl_base.rb +0 -273
  194. data/lib/wx/doc/gen/book_ctrl_event.rb +0 -66
  195. data/lib/wx/doc/gen/box_sizer.rb +0 -85
  196. data/lib/wx/doc/gen/brush.rb +0 -251
  197. data/lib/wx/doc/gen/busy_info.rb +0 -157
  198. data/lib/wx/doc/gen/button.rb +0 -182
  199. data/lib/wx/doc/gen/calculate_layout_event.rb +0 -62
  200. data/lib/wx/doc/gen/calendar_ctrl.rb +0 -505
  201. data/lib/wx/doc/gen/calendar_date_attr.rb +0 -138
  202. data/lib/wx/doc/gen/calendar_event.rb +0 -147
  203. data/lib/wx/doc/gen/caret.rb +0 -97
  204. data/lib/wx/doc/gen/check_box.rb +0 -175
  205. data/lib/wx/doc/gen/check_list_box.rb +0 -121
  206. data/lib/wx/doc/gen/choice.rb +0 -175
  207. data/lib/wx/doc/gen/choicebook.rb +0 -116
  208. data/lib/wx/doc/gen/client_dc.rb +0 -43
  209. data/lib/wx/doc/gen/clipboard.rb +0 -144
  210. data/lib/wx/doc/gen/collapsible_pane.rb +0 -138
  211. data/lib/wx/doc/gen/collapsible_pane_event.rb +0 -46
  212. data/lib/wx/doc/gen/colour.rb +0 -333
  213. data/lib/wx/doc/gen/colour_dialog.rb +0 -190
  214. data/lib/wx/doc/gen/colour_picker_ctrl.rb +0 -110
  215. data/lib/wx/doc/gen/colour_picker_event.rb +0 -77
  216. data/lib/wx/doc/gen/combo_box.rb +0 -292
  217. data/lib/wx/doc/gen/combo_ctrl.rb +0 -662
  218. data/lib/wx/doc/gen/command_link_button.rb +0 -134
  219. data/lib/wx/doc/gen/config_base.rb +0 -10
  220. data/lib/wx/doc/gen/context_help_button.rb +0 -109
  221. data/lib/wx/doc/gen/control.rb +0 -277
  222. data/lib/wx/doc/gen/control_with_items.rb +0 -253
  223. data/lib/wx/doc/gen/core.rb +0 -45
  224. data/lib/wx/doc/gen/credential_entry_dialog.rb +0 -137
  225. data/lib/wx/doc/gen/cursor.rb +0 -193
  226. data/lib/wx/doc/gen/data_format.rb +0 -85
  227. data/lib/wx/doc/gen/data_object.rb +0 -436
  228. data/lib/wx/doc/gen/data_object_simple_base.rb +0 -10
  229. data/lib/wx/doc/gen/date_event.rb +0 -49
  230. data/lib/wx/doc/gen/date_picker_ctrl.rb +0 -161
  231. data/lib/wx/doc/gen/dc.rb +0 -1631
  232. data/lib/wx/doc/gen/dc_overlay.rb +0 -102
  233. data/lib/wx/doc/gen/defs.rb +0 -2802
  234. data/lib/wx/doc/gen/dial_up_event.rb +0 -45
  235. data/lib/wx/doc/gen/dial_up_manager.rb +0 -149
  236. data/lib/wx/doc/gen/dialog.rb +0 -541
  237. data/lib/wx/doc/gen/dir_dialog.rb +0 -164
  238. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +0 -90
  239. data/lib/wx/doc/gen/dir_picker_ctrl.rb +0 -125
  240. data/lib/wx/doc/gen/display.rb +0 -238
  241. data/lib/wx/doc/gen/drag_drop.rb +0 -299
  242. data/lib/wx/doc/gen/drag_image.rb +0 -116
  243. data/lib/wx/doc/gen/editable_list_box.rb +0 -109
  244. data/lib/wx/doc/gen/event.rb +0 -990
  245. data/lib/wx/doc/gen/event_blocker.rb +0 -50
  246. data/lib/wx/doc/gen/event_filter.rb +0 -92
  247. data/lib/wx/doc/gen/event_list.rb +0 -1644
  248. data/lib/wx/doc/gen/events.rb +0 -2809
  249. data/lib/wx/doc/gen/evt_handler.rb +0 -229
  250. data/lib/wx/doc/gen/ext_help_controller.rb +0 -109
  251. data/lib/wx/doc/gen/file_ctrl.rb +0 -231
  252. data/lib/wx/doc/gen/file_ctrl_event.rb +0 -83
  253. data/lib/wx/doc/gen/file_dialog.rb +0 -353
  254. data/lib/wx/doc/gen/file_dialog_custom_control.rb +0 -165
  255. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +0 -158
  256. data/lib/wx/doc/gen/file_dir_picker_event.rb +0 -100
  257. data/lib/wx/doc/gen/file_picker_ctrl.rb +0 -132
  258. data/lib/wx/doc/gen/file_system.rb +0 -232
  259. data/lib/wx/doc/gen/find_dialog_event.rb +0 -126
  260. data/lib/wx/doc/gen/find_replace_data.rb +0 -60
  261. data/lib/wx/doc/gen/find_replace_dialog.rb +0 -58
  262. data/lib/wx/doc/gen/flex_grid_sizer.rb +0 -199
  263. data/lib/wx/doc/gen/font.rb +0 -1379
  264. data/lib/wx/doc/gen/font_data.rb +0 -151
  265. data/lib/wx/doc/gen/font_dialog.rb +0 -88
  266. data/lib/wx/doc/gen/font_picker_ctrl.rb +0 -143
  267. data/lib/wx/doc/gen/font_picker_event.rb +0 -65
  268. data/lib/wx/doc/gen/frame.rb +0 -352
  269. data/lib/wx/doc/gen/fs_file.rb +0 -337
  270. data/lib/wx/doc/gen/functions.rb +0 -10
  271. data/lib/wx/doc/gen/gauge.rb +0 -157
  272. data/lib/wx/doc/gen/gb_sizer_item.rb +0 -68
  273. data/lib/wx/doc/gen/gcdc.rb +0 -46
  274. data/lib/wx/doc/gen/gdi_common.rb +0 -1271
  275. data/lib/wx/doc/gen/gdi_object.rb +0 -31
  276. data/lib/wx/doc/gen/generic_about_dialog.rb +0 -140
  277. data/lib/wx/doc/gen/generic_dir_ctrl.rb +0 -223
  278. data/lib/wx/doc/gen/geometry.rb +0 -661
  279. data/lib/wx/doc/gen/graphics_context.rb +0 -1184
  280. data/lib/wx/doc/gen/graphics_object.rb +0 -750
  281. data/lib/wx/doc/gen/grid/event_list.rb +0 -191
  282. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +0 -40
  283. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +0 -280
  284. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +0 -35
  285. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +0 -37
  286. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +0 -49
  287. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +0 -35
  288. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +0 -46
  289. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +0 -38
  290. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +0 -45
  291. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +0 -40
  292. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +0 -197
  293. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +0 -39
  294. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +0 -44
  295. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +0 -45
  296. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +0 -79
  297. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +0 -46
  298. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +0 -35
  299. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +0 -108
  300. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +0 -35
  301. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +0 -49
  302. data/lib/wx/doc/gen/grid/grid_ctrl.rb +0 -3002
  303. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +0 -95
  304. data/lib/wx/doc/gen/grid/grid_event.rb +0 -129
  305. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +0 -104
  306. data/lib/wx/doc/gen/grid/grid_size_event.rb +0 -85
  307. data/lib/wx/doc/gen/grid/grid_string_table.rb +0 -142
  308. data/lib/wx/doc/gen/grid/grid_table_base.rb +0 -317
  309. data/lib/wx/doc/gen/grid/grid_table_message.rb +0 -81
  310. data/lib/wx/doc/gen/grid_bag_sizer.rb +0 -323
  311. data/lib/wx/doc/gen/grid_sizer.rb +0 -195
  312. data/lib/wx/doc/gen/gui_event_loop.rb +0 -159
  313. data/lib/wx/doc/gen/h_scrolled_window.rb +0 -562
  314. data/lib/wx/doc/gen/header_ctrl.rb +0 -880
  315. data/lib/wx/doc/gen/header_ctrl_event.rb +0 -133
  316. data/lib/wx/doc/gen/help_controller.rb +0 -195
  317. data/lib/wx/doc/gen/help_provider.rb +0 -98
  318. data/lib/wx/doc/gen/html/event_list.rb +0 -38
  319. data/lib/wx/doc/gen/html/html_cell.rb +0 -536
  320. data/lib/wx/doc/gen/html/html_cell_event.rb +0 -69
  321. data/lib/wx/doc/gen/html/html_data_object.rb +0 -42
  322. data/lib/wx/doc/gen/html/html_easy_printing.rb +0 -203
  323. data/lib/wx/doc/gen/html/html_help_controller.rb +0 -340
  324. data/lib/wx/doc/gen/html/html_help_data.rb +0 -159
  325. data/lib/wx/doc/gen/html/html_help_window.rb +0 -258
  326. data/lib/wx/doc/gen/html/html_link_event.rb +0 -41
  327. data/lib/wx/doc/gen/html/html_list_box.rb +0 -346
  328. data/lib/wx/doc/gen/html/html_printout.rb +0 -109
  329. data/lib/wx/doc/gen/html/html_window.rb +0 -461
  330. data/lib/wx/doc/gen/hyperlink_ctrl.rb +0 -311
  331. data/lib/wx/doc/gen/hyperlink_event.rb +0 -44
  332. data/lib/wx/doc/gen/icon.rb +0 -267
  333. data/lib/wx/doc/gen/icon_location.rb +0 -40
  334. data/lib/wx/doc/gen/image.rb +0 -1371
  335. data/lib/wx/doc/gen/image_list.rb +0 -168
  336. data/lib/wx/doc/gen/info_bar.rb +0 -195
  337. data/lib/wx/doc/gen/keyboard_state.rb +0 -140
  338. data/lib/wx/doc/gen/list_box.rb +0 -304
  339. data/lib/wx/doc/gen/list_ctrl.rb +0 -1774
  340. data/lib/wx/doc/gen/list_event.rb +0 -208
  341. data/lib/wx/doc/gen/listbook.rb +0 -116
  342. data/lib/wx/doc/gen/locale.rb +0 -4293
  343. data/lib/wx/doc/gen/log.rb +0 -603
  344. data/lib/wx/doc/gen/mdi_client_window.rb +0 -47
  345. data/lib/wx/doc/gen/mdi_frame.rb +0 -324
  346. data/lib/wx/doc/gen/media_ctrl.rb +0 -269
  347. data/lib/wx/doc/gen/media_event.rb +0 -117
  348. data/lib/wx/doc/gen/memory_dc.rb +0 -174
  349. data/lib/wx/doc/gen/menu.rb +0 -509
  350. data/lib/wx/doc/gen/menu_bar.rb +0 -287
  351. data/lib/wx/doc/gen/menu_item.rb +0 -362
  352. data/lib/wx/doc/gen/message_dialog.rb +0 -238
  353. data/lib/wx/doc/gen/mini_frame.rb +0 -108
  354. data/lib/wx/doc/gen/mirror_dc.rb +0 -22
  355. data/lib/wx/doc/gen/mouse_state.rb +0 -150
  356. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -80
  357. data/lib/wx/doc/gen/non_owned_window.rb +0 -49
  358. data/lib/wx/doc/gen/notebook.rb +0 -278
  359. data/lib/wx/doc/gen/num_validator.rb +0 -37
  360. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -93
  361. data/lib/wx/doc/gen/object.rb +0 -59
  362. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +0 -395
  363. data/lib/wx/doc/gen/paint_dc.rb +0 -27
  364. data/lib/wx/doc/gen/palette.rb +0 -92
  365. data/lib/wx/doc/gen/panel.rb +0 -127
  366. data/lib/wx/doc/gen/pen.rb +0 -511
  367. data/lib/wx/doc/gen/persistence_manager.rb +0 -135
  368. data/lib/wx/doc/gen/persistent_object.rb +0 -52
  369. data/lib/wx/doc/gen/persistent_window.rb +0 -241
  370. data/lib/wx/doc/gen/pg/event_list.rb +0 -106
  371. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +0 -54
  372. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +0 -292
  373. data/lib/wx/doc/gen/pg/pg_cell.rb +0 -177
  374. data/lib/wx/doc/gen/pg/pg_editor.rb +0 -721
  375. data/lib/wx/doc/gen/pg/pg_multi_button.rb +0 -152
  376. data/lib/wx/doc/gen/pg/pg_properties.rb +0 -2829
  377. data/lib/wx/doc/gen/pg/pg_property.rb +0 -2078
  378. data/lib/wx/doc/gen/pg/pg_validation_info.rb +0 -344
  379. data/lib/wx/doc/gen/pg/property_grid.rb +0 -740
  380. data/lib/wx/doc/gen/pg/property_grid_event.rb +0 -184
  381. data/lib/wx/doc/gen/pg/property_grid_interface.rb +0 -1098
  382. data/lib/wx/doc/gen/pg/property_grid_manager.rb +0 -415
  383. data/lib/wx/doc/gen/pg/property_grid_page.rb +0 -354
  384. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +0 -165
  385. data/lib/wx/doc/gen/picker_base.rb +0 -152
  386. data/lib/wx/doc/gen/platform_info.rb +0 -622
  387. data/lib/wx/doc/gen/popup_window.rb +0 -107
  388. data/lib/wx/doc/gen/progress_dialog.rb +0 -100
  389. data/lib/wx/doc/gen/property_sheet_dialog.rb +0 -216
  390. data/lib/wx/doc/gen/prt/event_list.rb +0 -17
  391. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +0 -44
  392. data/lib/wx/doc/gen/prt/post_script_dc.rb +0 -30
  393. data/lib/wx/doc/gen/prt/preview_frame.rb +0 -78
  394. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +0 -151
  395. data/lib/wx/doc/gen/prt/print_data.rb +0 -804
  396. data/lib/wx/doc/gen/prt/print_dialog.rb +0 -55
  397. data/lib/wx/doc/gen/prt/printer.rb +0 -518
  398. data/lib/wx/doc/gen/prt/printer_dc.rb +0 -37
  399. data/lib/wx/doc/gen/query_layout_info_event.rb +0 -106
  400. data/lib/wx/doc/gen/radio_box.rb +0 -306
  401. data/lib/wx/doc/gen/radio_button.rb +0 -159
  402. data/lib/wx/doc/gen/rbn/event_list.rb +0 -136
  403. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +0 -1132
  404. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +0 -308
  405. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +0 -45
  406. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +0 -458
  407. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +0 -63
  408. data/lib/wx/doc/gen/rbn/ribbon_control.rb +0 -143
  409. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +0 -229
  410. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +0 -55
  411. data/lib/wx/doc/gen/rbn/ribbon_page.rb +0 -174
  412. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +0 -270
  413. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +0 -45
  414. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +0 -360
  415. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +0 -42
  416. data/lib/wx/doc/gen/rearrange_ctrl.rb +0 -78
  417. data/lib/wx/doc/gen/rearrange_list.rb +0 -123
  418. data/lib/wx/doc/gen/region.rb +0 -380
  419. data/lib/wx/doc/gen/region_iterator.rb +0 -76
  420. data/lib/wx/doc/gen/rich_tool_tip.rb +0 -154
  421. data/lib/wx/doc/gen/rtc/event_list.rb +0 -125
  422. data/lib/wx/doc/gen/rtc/rich_text_box.rb +0 -445
  423. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +0 -1188
  424. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +0 -41
  425. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +0 -538
  426. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -2103
  427. data/lib/wx/doc/gen/rtc/rich_text_event.rb +0 -173
  428. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +0 -181
  429. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +0 -319
  430. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +0 -193
  431. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +0 -102
  432. data/lib/wx/doc/gen/rtc/rich_text_image.rb +0 -337
  433. data/lib/wx/doc/gen/rtc/rich_text_object.rb +0 -2922
  434. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +0 -1240
  435. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +0 -258
  436. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +0 -344
  437. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +0 -227
  438. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +0 -59
  439. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +0 -169
  440. data/lib/wx/doc/gen/sash_event.rb +0 -147
  441. data/lib/wx/doc/gen/sash_layout_window.rb +0 -232
  442. data/lib/wx/doc/gen/sash_window.rb +0 -171
  443. data/lib/wx/doc/gen/scaled_dc.rb +0 -10
  444. data/lib/wx/doc/gen/screen_dc.rb +0 -30
  445. data/lib/wx/doc/gen/scroll_bar.rb +0 -204
  446. data/lib/wx/doc/gen/scrolled_canvas.rb +0 -410
  447. data/lib/wx/doc/gen/scrolled_control.rb +0 -410
  448. data/lib/wx/doc/gen/scrolled_window.rb +0 -430
  449. data/lib/wx/doc/gen/search_ctrl.rb +0 -159
  450. data/lib/wx/doc/gen/secret_store.rb +0 -116
  451. data/lib/wx/doc/gen/simplebook.rb +0 -110
  452. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -89
  453. data/lib/wx/doc/gen/sizer.rb +0 -945
  454. data/lib/wx/doc/gen/sizer_item.rb +0 -244
  455. data/lib/wx/doc/gen/slider.rb +0 -342
  456. data/lib/wx/doc/gen/spin_button.rb +0 -157
  457. data/lib/wx/doc/gen/spin_ctrl.rb +0 -231
  458. data/lib/wx/doc/gen/spin_ctrl_double.rb +0 -192
  459. data/lib/wx/doc/gen/spin_double_event.rb +0 -55
  460. data/lib/wx/doc/gen/spin_event.rb +0 -51
  461. data/lib/wx/doc/gen/splash_screen.rb +0 -113
  462. data/lib/wx/doc/gen/splitter_event.rb +0 -99
  463. data/lib/wx/doc/gen/splitter_window.rb +0 -498
  464. data/lib/wx/doc/gen/static_bitmap.rb +0 -256
  465. data/lib/wx/doc/gen/static_box.rb +0 -180
  466. data/lib/wx/doc/gen/static_box_sizer.rb +0 -85
  467. data/lib/wx/doc/gen/static_line.rb +0 -83
  468. data/lib/wx/doc/gen/static_text.rb +0 -127
  469. data/lib/wx/doc/gen/status_bar.rb +0 -290
  470. data/lib/wx/doc/gen/stc/event_list.rb +0 -221
  471. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +0 -4474
  472. data/lib/wx/doc/gen/stc/styled_text_event.rb +0 -8762
  473. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +0 -129
  474. data/lib/wx/doc/gen/svg_file_dc.rb +0 -164
  475. data/lib/wx/doc/gen/system_options.rb +0 -129
  476. data/lib/wx/doc/gen/system_settings.rb +0 -507
  477. data/lib/wx/doc/gen/task_bar_icon.rb +0 -127
  478. data/lib/wx/doc/gen/task_bar_icon_event.rb +0 -88
  479. data/lib/wx/doc/gen/text_attr.rb +0 -756
  480. data/lib/wx/doc/gen/text_ctrl.rb +0 -1033
  481. data/lib/wx/doc/gen/text_entry.rb +0 -441
  482. data/lib/wx/doc/gen/text_entry_dialog.rb +0 -220
  483. data/lib/wx/doc/gen/text_validator.rb +0 -245
  484. data/lib/wx/doc/gen/time_picker_ctrl.rb +0 -128
  485. data/lib/wx/doc/gen/timer.rb +0 -119
  486. data/lib/wx/doc/gen/timer_event.rb +0 -68
  487. data/lib/wx/doc/gen/tip_provider.rb +0 -63
  488. data/lib/wx/doc/gen/tip_window.rb +0 -51
  489. data/lib/wx/doc/gen/toggle_button.rb +0 -182
  490. data/lib/wx/doc/gen/tool_bar.rb +0 -890
  491. data/lib/wx/doc/gen/tool_tip.rb +0 -86
  492. data/lib/wx/doc/gen/toolbook.rb +0 -118
  493. data/lib/wx/doc/gen/top_level_window.rb +0 -497
  494. data/lib/wx/doc/gen/tree_ctrl.rb +0 -1052
  495. data/lib/wx/doc/gen/tree_event.rb +0 -127
  496. data/lib/wx/doc/gen/treebook.rb +0 -180
  497. data/lib/wx/doc/gen/ui_action_simulator.rb +0 -109
  498. data/lib/wx/doc/gen/utils.rb +0 -273
  499. data/lib/wx/doc/gen/v_list_box.rb +0 -272
  500. data/lib/wx/doc/gen/v_scrolled_canvas.rb +0 -195
  501. data/lib/wx/doc/gen/v_scrolled_window.rb +0 -191
  502. data/lib/wx/doc/gen/validator.rb +0 -68
  503. data/lib/wx/doc/gen/variant.rb +0 -294
  504. data/lib/wx/doc/gen/window.rb +0 -2917
  505. data/lib/wx/doc/gen/window_dc.rb +0 -38
  506. data/lib/wx/doc/gen/window_disabler.rb +0 -30
  507. data/lib/wx/doc/gen/with_images.rb +0 -84
  508. data/lib/wx/doc/gen/wizard.rb +0 -257
  509. data/lib/wx/doc/gen/wizard_event.rb +0 -113
  510. data/lib/wx/doc/gen/wizard_page.rb +0 -65
  511. data/lib/wx/doc/gen/wizard_page_simple.rb +0 -88
  512. data/lib/wx/doc/gen/wrap_sizer.rb +0 -79
  513. data/lib/wx/doc/gen/xml_node.rb +0 -316
  514. data/lib/wx/doc/gen/xml_resource.rb +0 -320
  515. data/lib/wx/grid/events/evt_list.rb +0 -166
  516. data/lib/wx/html/events/evt_list.rb +0 -27
  517. data/lib/wx/pg/events/evt_list.rb +0 -73
  518. data/lib/wx/rbn/events/evt_list.rb +0 -102
  519. data/lib/wx/rtc/events/evt_list.rb +0 -98
  520. data/lib/wx/rtc/ext/rich_text_ctrl.rb +0 -24
  521. data/lib/wx/stc/events/evt_list.rb +0 -178
  522. data/samples/art/wxruby-512x512.png +0 -0
@@ -1,1240 +0,0 @@
1
- # :stopdoc:
2
- # This file is automatically generated by the WXRuby3 documentation
3
- # generator. Do not alter this file.
4
- # :startdoc:
5
-
6
-
7
- module Wx
8
-
9
- module RTC
10
-
11
- # This class knows how to lay out paragraphs.
12
- #
13
- # Category: Rich Text
14
- # @see Wx::RTC::RichTextCompositeObject
15
- # @see Wx::RTC::RichTextObject
16
- # @see Wx::RTC::RichTextBuffer
17
- # @see Wx::RTC::RichTextCtrl
18
- #
19
- #
20
- #
21
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
22
- # @wxrb_require USE_RICHTEXT
23
- class RichTextParagraphLayoutBox < RichTextCompositeObject
24
-
25
- # @overload initialize(parent=nil)
26
- # @param parent [Wx::RTC::RichTextObject]
27
- # @return [Wx::RTC::RichTextParagraphLayoutBox]
28
- # @overload initialize(obj)
29
- # @param obj [Wx::RTC::RichTextParagraphLayoutBox]
30
- # @return [Wx::RTC::RichTextParagraphLayoutBox]
31
- def initialize(*args) end
32
-
33
- # Hit-testing: returns a flag indicating hit test details, plus information about position.
34
- #
35
- # contextObj is returned to specify what object position is relevant to, since otherwise there's an ambiguity. @ obj might not be a child of contextObj, since we may be referring to the container itself if we have no hit on a child - for example if we click outside an object.
36
- # The function puts the position in textPosition if one is found. pt is in logical units (a zero y position is at the beginning of the buffer).
37
- # One of the {Wx::RTC::RichTextHitTestFlags} values.
38
- # @param dc [Wx::ReadOnlyDC]
39
- # @param context [Wx::RTC::RichTextDrawingContext]
40
- # @param pt [Array(Integer, Integer), Wx::Point]
41
- # @param textPosition [Integer]
42
- # @param flags [Integer]
43
- # @return [Array(Integer,Integer,Wx::RTC::RichTextObject,Wx::RTC::RichTextObject)]
44
- def hit_test(dc, context, pt, textPosition, flags=0) end
45
-
46
- # Draw the item, within the given range.
47
- #
48
- # Some objects may ignore the range (for example paragraphs) while others must obey it (lines, to implement wrapping)
49
- # @param dc [Wx::DC]
50
- # @param context [Wx::RTC::RichTextDrawingContext]
51
- # @param range [Range]
52
- # @param selection [Wx::RTC::RichTextSelection]
53
- # @param rect [Wx::Rect]
54
- # @param descent [Integer]
55
- # @param style [Integer]
56
- # @return [Boolean]
57
- def draw(dc, context, range, selection, rect, descent, style) end
58
-
59
- # Lay the item out at the specified position with the given size constraint.
60
- #
61
- # Layout must set the cached size. rect is the available space for the object, and parentRect is the container that is used to determine a relative size or position (for example if a text box must be 50% of the parent text box).
62
- # @param dc [Wx::ReadOnlyDC]
63
- # @param context [Wx::RTC::RichTextDrawingContext]
64
- # @param rect [Wx::Rect]
65
- # @param parentRect [Wx::Rect]
66
- # @param style [Integer]
67
- # @return [Boolean]
68
- def layout(dc, context, rect, parentRect, style) end
69
-
70
- # Returns the object size for the given range.
71
- #
72
- # Returns false if the range is invalid for this object.
73
- # @param range [Range]
74
- # @param size [Array(Integer, Integer), Wx::Size]
75
- # @param descent [int]
76
- # @param dc [Wx::ReadOnlyDC]
77
- # @param context [Wx::RTC::RichTextDrawingContext]
78
- # @param flags [Integer]
79
- # @param position [Array(Integer, Integer), Wx::Point]
80
- # @param parentSize [Array(Integer, Integer), Wx::Size]
81
- # @param partialExtents [Array,nil]
82
- # @return [Boolean]
83
- def get_range_size(range, size, descent, dc, context, flags, position=(Wx::Point.new(0, 0)), parentSize=Wx::DEFAULT_SIZE, partialExtents=nil) end
84
- alias_method :range_size, :get_range_size
85
-
86
- # Deletes the given range.
87
- # @param range [Range]
88
- # @return [Boolean]
89
- def delete_range(range) end
90
-
91
- # Returns any text in this object for the given range.
92
- # @param range [Range]
93
- # @return [String]
94
- def get_text_for_range(range) end
95
- alias_method :text_for_range, :get_text_for_range
96
-
97
- # Imports this object from XML.
98
- # @param buffer [Wx::RTC::RichTextBuffer]
99
- # @param node [Wx::XmlNode]
100
- # @param handler [Wx::RTC::RichTextXMLHandler]
101
- # @param recurse [Boolean]
102
- # @return [Array(Boolean,Boolean)]
103
- def import_from_xml(buffer, node, handler, recurse) end
104
-
105
- # Returns the XML node name of this object.
106
- #
107
- # This must be overridden for {Wx::XmlNode}-base XML export to work.
108
- # @return [String]
109
- def get_xml_node_name; end
110
- alias_method :xml_node_name, :get_xml_node_name
111
-
112
- # Returns true if objects of this class can accept the focus, i.e. a call to SetFocusObject is possible.
113
- #
114
- # For example, containers supporting text, such as a text box object, can accept the focus, but a table can't (set the focus to individual cells instead).
115
- # @return [Boolean]
116
- def accepts_focus; end
117
-
118
- # Associates a control with the buffer, for operations that for example require refreshing the window.
119
- # @param ctrl [Wx::RTC::RichTextCtrl]
120
- # @return [void]
121
- def set_rich_text_ctrl(ctrl) end
122
- alias_method :rich_text_ctrl=, :set_rich_text_ctrl
123
-
124
- # Returns the associated control.
125
- # @return [Wx::RTC::RichTextCtrl]
126
- def get_rich_text_ctrl; end
127
- alias_method :rich_text_ctrl, :get_rich_text_ctrl
128
-
129
- # Sets a flag indicating whether the last paragraph is partial or complete.
130
- # @param partialPara [Boolean]
131
- # @return [void]
132
- def set_partial_paragraph(partialPara) end
133
- alias_method :partial_paragraph=, :set_partial_paragraph
134
-
135
- # Returns a flag indicating whether the last paragraph is partial or complete.
136
- # @return [Boolean]
137
- def get_partial_paragraph; end
138
- alias_method :partial_paragraph, :get_partial_paragraph
139
-
140
- # Returns the style sheet associated with the overall buffer.
141
- # @return [Wx::RTC::RichTextStyleSheet]
142
- def get_style_sheet; end
143
- alias_method :style_sheet, :get_style_sheet
144
-
145
- # Returns true if this object is top-level, i.e. contains its own paragraphs, such as a text box.
146
- # @return [Boolean]
147
- def is_top_level; end
148
- alias_method :top_level?, :is_top_level
149
-
150
- # Submits a command to insert paragraphs.
151
- # @param buffer [Wx::RTC::RichTextBuffer]
152
- # @param pos [Integer]
153
- # @param paragraphs [Wx::RTC::RichTextParagraphLayoutBox]
154
- # @param ctrl [Wx::RTC::RichTextCtrl]
155
- # @param flags [Integer]
156
- # @return [Boolean]
157
- def insert_paragraphs_with_undo(buffer, pos, paragraphs, ctrl, flags=0) end
158
-
159
- # Submits a command to insert the given text.
160
- # @param buffer [Wx::RTC::RichTextBuffer]
161
- # @param pos [Integer]
162
- # @param text [String]
163
- # @param ctrl [Wx::RTC::RichTextCtrl]
164
- # @param flags [Integer]
165
- # @return [Boolean]
166
- def insert_text_with_undo(buffer, pos, text, ctrl, flags=0) end
167
-
168
- # Submits a command to insert the given text.
169
- # @param buffer [Wx::RTC::RichTextBuffer]
170
- # @param pos [Integer]
171
- # @param ctrl [Wx::RTC::RichTextCtrl]
172
- # @param flags [Integer]
173
- # @return [Boolean]
174
- def insert_newline_with_undo(buffer, pos, ctrl, flags=0) end
175
-
176
- # Submits a command to insert the given image.
177
- # @param buffer [Wx::RTC::RichTextBuffer]
178
- # @param pos [Integer]
179
- # @param imageBlock [Wx::RTC::RichTextImageBlock]
180
- # @param ctrl [Wx::RTC::RichTextCtrl]
181
- # @param flags [Integer]
182
- # @param textAttr [Wx::RTC::RichTextAttr]
183
- # @return [Boolean]
184
- def insert_image_with_undo(buffer, pos, imageBlock, ctrl, flags, textAttr) end
185
-
186
- # Submits a command to insert the given field.
187
- #
188
- # Field data can be included in properties.
189
- # @see Wx::RTC::RichTextField
190
- # @see Wx::RTC::RichTextFieldType
191
- # @see Wx::RTC::RichTextFieldTypeStandard
192
- # @param buffer [Wx::RTC::RichTextBuffer]
193
- # @param pos [Integer]
194
- # @param fieldType [String]
195
- # @param properties [Wx::RTC::RichTextProperties]
196
- # @param ctrl [Wx::RTC::RichTextCtrl]
197
- # @param flags [Integer]
198
- # @param textAttr [Wx::RTC::RichTextAttr]
199
- # @return [Wx::RTC::RichTextField]
200
- def insert_field_with_undo(buffer, pos, fieldType, properties, ctrl, flags, textAttr) end
201
-
202
- # Returns the style that is appropriate for a new paragraph at this position.
203
- #
204
- # If the previous paragraph has a paragraph style name, looks up the next-paragraph style.
205
- # @param buffer [Wx::RTC::RichTextBuffer]
206
- # @param pos [Integer]
207
- # @param caretPosition [Boolean]
208
- # @param lookUpNewParaStyle [Boolean]
209
- # @return [Wx::RTC::RichTextAttr]
210
- def get_style_for_new_paragraph(buffer, pos, caretPosition=false, lookUpNewParaStyle=false) end
211
- alias_method :style_for_new_paragraph, :get_style_for_new_paragraph
212
-
213
- # Inserts an object.
214
- # @param buffer [Wx::RTC::RichTextBuffer]
215
- # @param pos [Integer]
216
- # @param object [Wx::RTC::RichTextObject]
217
- # @param ctrl [Wx::RTC::RichTextCtrl]
218
- # @param flags [Integer]
219
- # @return [Wx::RTC::RichTextObject]
220
- def insert_object_with_undo(buffer, pos, object, ctrl, flags=0) end
221
-
222
- # Submits a command to delete this range.
223
- # @param range [Range]
224
- # @param ctrl [Wx::RTC::RichTextCtrl]
225
- # @param buffer [Wx::RTC::RichTextBuffer]
226
- # @return [Boolean]
227
- def delete_range_with_undo(range, ctrl, buffer) end
228
-
229
- # Draws the floating objects in this buffer.
230
- # @param dc [Wx::DC]
231
- # @param context [Wx::RTC::RichTextDrawingContext]
232
- # @param range [Range]
233
- # @param selection [Wx::RTC::RichTextSelection]
234
- # @param rect [Wx::Rect]
235
- # @param descent [Integer]
236
- # @param style [Integer]
237
- # @return [void]
238
- def draw_floats(dc, context, range, selection, rect, descent, style) end
239
-
240
- # Moves an anchored object to another paragraph.
241
- # @param from [Wx::RTC::RichTextParagraph]
242
- # @param to [Wx::RTC::RichTextParagraph]
243
- # @param obj [Wx::RTC::RichTextObject]
244
- # @return [void]
245
- def move_anchored_object_to_paragraph(from, to, obj) end
246
-
247
- # Initializes the object.
248
- # @return [void]
249
- def init; end
250
-
251
- # Clears all the children.
252
- # @return [void]
253
- def clear; end
254
-
255
- # Clears and initializes with one blank paragraph.
256
- # @return [void]
257
- def reset; end
258
-
259
- # Convenience function to add a paragraph of text.
260
- # @param text [String]
261
- # @param paraStyle [Wx::RTC::RichTextAttr]
262
- # @return [Range]
263
- def add_paragraph(text, paraStyle=nil) end
264
-
265
- # Convenience function to add an image.
266
- # @param image [Wx::Image]
267
- # @param paraStyle [Wx::RTC::RichTextAttr]
268
- # @return [Range]
269
- def add_image(image, paraStyle=nil) end
270
-
271
- # Adds multiple paragraphs, based on newlines.
272
- # @param text [String]
273
- # @param paraStyle [Wx::RTC::RichTextAttr]
274
- # @return [Range]
275
- def add_paragraphs(text, paraStyle=nil) end
276
-
277
- # Returns the line at the given position.
278
- #
279
- # If caretPosition is true, the position is a caret position, which is normally a smaller number.
280
- # @param pos [Integer]
281
- # @param caretPosition [Boolean]
282
- # @return [Wx::RTC::RichTextLine]
283
- def get_line_at_position(pos, caretPosition=false) end
284
- alias_method :line_at_position, :get_line_at_position
285
-
286
- # Returns the line at the given y pixel position, or the last line.
287
- # @param y [Integer]
288
- # @return [Wx::RTC::RichTextLine]
289
- def get_line_at_y_position(y) end
290
- alias_method :line_at_y_position, :get_line_at_y_position
291
-
292
- # Returns the paragraph at the given character or caret position.
293
- # @param pos [Integer]
294
- # @param caretPosition [Boolean]
295
- # @return [Wx::RTC::RichTextParagraph]
296
- def get_paragraph_at_position(pos, caretPosition=false) end
297
- alias_method :paragraph_at_position, :get_paragraph_at_position
298
-
299
- # Returns the line size at the given position.
300
- # @param pos [Integer]
301
- # @param caretPosition [Boolean]
302
- # @return [Wx::Size]
303
- def get_line_size_at_position(pos, caretPosition=false) end
304
- alias_method :line_size_at_position, :get_line_size_at_position
305
-
306
- # Given a position, returns the number of the visible line (potentially many to a paragraph), starting from zero at the start of the buffer.
307
- #
308
- # We also have to pass a bool (startOfLine) that indicates whether the caret is being shown at the end of the previous line or at the start of the next, since the caret can be shown at two visible positions for the same underlying position.
309
- # @param pos [Integer]
310
- # @param caretPosition [Boolean]
311
- # @param startOfLine [Boolean]
312
- # @return [Integer]
313
- def get_visible_line_number(pos, caretPosition=false, startOfLine=false) end
314
- alias_method :visible_line_number, :get_visible_line_number
315
-
316
- # Given a line number, returns the corresponding {Wx::RTC::RichTextLine} object.
317
- # @param lineNumber [Integer]
318
- # @return [Wx::RTC::RichTextLine]
319
- def get_line_for_visible_line_number(lineNumber) end
320
- alias_method :line_for_visible_line_number, :get_line_for_visible_line_number
321
-
322
- # Returns the leaf object in a paragraph at this position.
323
- # @param position [Integer]
324
- # @return [Wx::RTC::RichTextObject]
325
- def get_leaf_object_at_position(position) end
326
- alias_method :leaf_object_at_position, :get_leaf_object_at_position
327
-
328
- # Returns the paragraph by number.
329
- # @param paragraphNumber [Integer]
330
- # @return [Wx::RTC::RichTextParagraph]
331
- def get_paragraph_at_line(paragraphNumber) end
332
- alias_method :paragraph_at_line, :get_paragraph_at_line
333
-
334
- # Returns the paragraph for a given line.
335
- # @param line [Wx::RTC::RichTextLine]
336
- # @return [Wx::RTC::RichTextParagraph]
337
- def get_paragraph_for_line(line) end
338
- alias_method :paragraph_for_line, :get_paragraph_for_line
339
-
340
- # Returns the length of the paragraph.
341
- # @param paragraphNumber [Integer]
342
- # @return [Integer]
343
- def get_paragraph_length(paragraphNumber) end
344
- alias_method :paragraph_length, :get_paragraph_length
345
-
346
- # Returns the number of paragraphs.
347
- # @return [Integer]
348
- def get_paragraph_count; end
349
- alias_method :paragraph_count, :get_paragraph_count
350
-
351
- # Returns the number of visible lines.
352
- # @return [Integer]
353
- def get_line_count; end
354
- alias_method :line_count, :get_line_count
355
-
356
- # Returns the text of the paragraph.
357
- # @param paragraphNumber [Integer]
358
- # @return [String]
359
- def get_paragraph_text(paragraphNumber) end
360
- alias_method :paragraph_text, :get_paragraph_text
361
-
362
- # Converts zero-based line column and paragraph number to a position.
363
- # @param x [Integer]
364
- # @param y [Integer]
365
- # @return [Integer]
366
- def xy_to_position(x, y) end
367
-
368
- # Converts a zero-based position to line column and paragraph number.
369
- # @param pos [Integer]
370
- # @return [Array(Boolean,Integer,Integer)]
371
- def position_to_xy(pos) end
372
-
373
- # @overload set_style(range, style, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)
374
- # Sets the attributes for the given range.
375
- #
376
- # Pass flags to determine how the attributes are set.
377
- # The end point of range is specified as the last character position of the span of text. So, for example, to set the style for a character at position 5, use the range (5,5). This differs from the {Wx::RTC::RichTextCtrl} API, where you would specify (5,6).
378
- # flags may contain a bit list of the following values:
379
- #
380
- # - {Wx::RTC::RICHTEXT_SETSTYLE_NONE}: no style flag.
381
- # - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this operation should be undoable.
382
- # - {Wx::RTC::RICHTEXT_SETSTYLE_OPTIMIZE}: specifies that the style should not be applied if the combined style at this point is already the style in question.
383
- # - {Wx::RTC::RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY}: specifies that the style should only be applied to paragraphs, and not the content. This allows content styling to be preserved independently from that of e.g. a named paragraph style.
384
- # - {Wx::RTC::RICHTEXT_SETSTYLE_CHARACTERS_ONLY}: specifies that the style should only be applied to characters, and not the paragraph. This allows content styling to be preserved independently from that of e.g. a named paragraph style.
385
- # - {Wx::RTC::RICHTEXT_SETSTYLE_RESET}: resets (clears) the existing style before applying the new style.
386
- # - {Wx::RTC::RICHTEXT_SETSTYLE_REMOVE}: removes the specified style. Only the style flags are used in this operation.
387
- # @param range [Range]
388
- # @param style [Wx::RTC::RichTextAttr]
389
- # @param flags [Integer]
390
- # @return [Boolean]
391
- # @overload set_style(obj, textAttr, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)
392
- # Sets the attributes for the given object only, for example the box attributes for a text box.
393
- # @param obj [Wx::RTC::RichTextObject]
394
- # @param textAttr [Wx::RTC::RichTextAttr]
395
- # @param flags [Integer]
396
- # @return [void]
397
- def set_style(*args) end
398
-
399
- # Returns the combined text attributes for this position.
400
- #
401
- # This function gets the uncombined style - that is, the attributes associated with the paragraph or character content, and not necessarily the combined attributes you see on the screen. To get the combined attributes, use {Wx::RTC::RichTextParagraphLayoutBox#get_style}. If you specify (any) paragraph attribute in style's flags, this function will fetch the paragraph attributes. Otherwise, it will return the character attributes.
402
- # @param position [Integer]
403
- # @param style [Wx::RTC::RichTextAttr]
404
- # @return [Boolean]
405
- def get_style(position, style) end
406
- alias_method :style, :get_style
407
-
408
- # Returns the content (uncombined) attributes for this position.
409
- # @param position [Integer]
410
- # @param style [Wx::RTC::RichTextAttr]
411
- # @return [Boolean]
412
- def get_uncombined_style(position, style) end
413
- alias_method :uncombined_style, :get_uncombined_style
414
-
415
- # Implementation helper for GetStyle.
416
- #
417
- # If combineStyles is true, combine base, paragraph and context attributes.
418
- # @param position [Integer]
419
- # @param style [Wx::RTC::RichTextAttr]
420
- # @param combineStyles [Boolean]
421
- # @return [Boolean]
422
- def do_get_style(position, style, combineStyles=true) end
423
-
424
- # This function gets a style representing the common, combined attributes in the given range.
425
- #
426
- # Attributes which have different values within the specified range will not be included the style flags.
427
- # The function is used to get the attributes to display in the formatting dialog: the user can edit the attributes common to the selection, and optionally specify the values of further attributes to be applied uniformly.
428
- # To apply the edited attributes, you can use {Wx::RTC::RichTextParagraphLayoutBox#set_style} specifying the {Wx::RTC::RICHTEXT_SETSTYLE_OPTIMIZE} flag, which will only apply attributes that are different from the combined attributes within the range. So, the user edits the effective, displayed attributes for the range, but his choice won't be applied unnecessarily to content. As an example, say the style for a paragraph specifies bold, but the paragraph text doesn't specify a weight. The combined style is bold, and this is what the user will see on-screen and in the formatting dialog. The user now specifies red text, in addition to bold. When applying with {Wx::RTC::RichTextParagraphLayoutBox#set_style}, the content font weight attributes won't be changed to bold because this is already specified by the paragraph. However the text colour attributes will be changed to show red.
429
- # @param range [Range]
430
- # @param style [Wx::RTC::RichTextAttr]
431
- # @return [Boolean]
432
- def get_style_for_range(range, style) end
433
- alias_method :style_for_range, :get_style_for_range
434
-
435
- # Combines style with currentStyle for the purpose of summarising the attributes of a range of content.
436
- # @param currentStyle [Wx::RTC::RichTextAttr]
437
- # @param style [Wx::RTC::RichTextAttr]
438
- # @param clashingAttr [Wx::RTC::RichTextAttr]
439
- # @param absentAttr [Wx::RTC::RichTextAttr]
440
- # @return [Boolean]
441
- def collect_style(currentStyle, style, clashingAttr, absentAttr) end
442
-
443
- # @overload set_list_style(range, def_, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
444
- # Sets the list attributes for the given range, passing flags to determine how the attributes are set.
445
- #
446
- # Either the style definition or the name of the style definition (in the current sheet) can be passed.
447
- # flags is a bit list of the following:
448
- #
449
- # - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
450
- # - {Wx::RTC::RICHTEXT_SETSTYLE_RENUMBER}: specifies that numbering should start from startFrom, otherwise existing attributes are used.
451
- # - {Wx::RTC::RICHTEXT_SETSTYLE_SPECIFY_LEVEL}: specifies that listLevel should be used as the level for all paragraphs, otherwise the current indentation will be used.
452
- # @see Wx::RTC::RichTextParagraphLayoutBox#number_list
453
- # @see Wx::RTC::RichTextParagraphLayoutBox#promote_list
454
- # @see Wx::RTC::RichTextParagraphLayoutBox#clear_list_style.
455
- # @param range [Range]
456
- # @param def_ [Wx::RTC::RichTextListStyleDefinition]
457
- # @param flags [Integer]
458
- # @param startFrom [Integer]
459
- # @param specifiedLevel [Integer]
460
- # @return [Boolean]
461
- # @overload set_list_style(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
462
- # @param range [Range]
463
- # @param defName [String]
464
- # @param flags [Integer]
465
- # @param startFrom [Integer]
466
- # @param specifiedLevel [Integer]
467
- # @return [Boolean]
468
- def set_list_style(*args) end
469
-
470
- # Clears the list style from the given range, clearing list-related attributes and applying any named paragraph style associated with each paragraph.
471
- #
472
- # flags is a bit list of the following:
473
- #
474
- # - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
475
- # @see Wx::RTC::RichTextParagraphLayoutBox#set_list_style
476
- # @see Wx::RTC::RichTextParagraphLayoutBox#promote_list
477
- # @see Wx::RTC::RichTextParagraphLayoutBox#number_list
478
- # @param range [Range]
479
- # @param flags [Integer]
480
- # @return [Boolean]
481
- def clear_list_style(range, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) end
482
-
483
- # @overload number_list(range, def_=nil, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
484
- # Numbers the paragraphs in the given range.
485
- #
486
- # Pass flags to determine how the attributes are set. Either the style definition or the name of the style definition (in the current sheet) can be passed.
487
- # flags is a bit list of the following:
488
- #
489
- # - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
490
- # - {Wx::RTC::RICHTEXT_SETSTYLE_RENUMBER}: specifies that numbering should start from startFrom, otherwise existing attributes are used.
491
- # - {Wx::RTC::RICHTEXT_SETSTYLE_SPECIFY_LEVEL}: specifies that listLevel should be used as the level for all paragraphs, otherwise the current indentation will be used.
492
- #
493
- # def can be nil to indicate that the existing list style should be used.
494
- # @see Wx::RTC::RichTextParagraphLayoutBox#set_list_style
495
- # @see Wx::RTC::RichTextParagraphLayoutBox#promote_list
496
- # @see Wx::RTC::RichTextParagraphLayoutBox#clear_list_style
497
- # @param range [Range]
498
- # @param def_ [Wx::RTC::RichTextListStyleDefinition]
499
- # @param flags [Integer]
500
- # @param startFrom [Integer]
501
- # @param specifiedLevel [Integer]
502
- # @return [Boolean]
503
- # @overload number_list(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
504
- # @param range [Range]
505
- # @param defName [String]
506
- # @param flags [Integer]
507
- # @param startFrom [Integer]
508
- # @param specifiedLevel [Integer]
509
- # @return [Boolean]
510
- def number_list(*args) end
511
-
512
- # @overload promote_list(promoteBy, range, def_=nil, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
513
- # Promotes the list items within the given range.
514
- #
515
- # A positive promoteBy produces a smaller indent, and a negative number produces a larger indent. Pass flags to determine how the attributes are set. Either the style definition or the name of the style definition (in the current sheet) can be passed.
516
- # flags is a bit list of the following:
517
- #
518
- # - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
519
- # - {Wx::RTC::RICHTEXT_SETSTYLE_RENUMBER}: specifies that numbering should start from startFrom, otherwise existing attributes are used.
520
- # - {Wx::RTC::RICHTEXT_SETSTYLE_SPECIFY_LEVEL}: specifies that listLevel should be used as the level for all paragraphs, otherwise the current indentation will be used.
521
- # @see Wx::RTC::RichTextParagraphLayoutBox#set_list_style
522
- # @see Wx::RTC::RichTextParagraphLayoutBox#set_list_style
523
- # @see Wx::RTC::RichTextParagraphLayoutBox#clear_list_style
524
- # @param promoteBy [Integer]
525
- # @param range [Range]
526
- # @param def_ [Wx::RTC::RichTextListStyleDefinition]
527
- # @param flags [Integer]
528
- # @param specifiedLevel [Integer]
529
- # @return [Boolean]
530
- # @overload promote_list(promoteBy, range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
531
- # @param promoteBy [Integer]
532
- # @param range [Range]
533
- # @param defName [String]
534
- # @param flags [Integer]
535
- # @param specifiedLevel [Integer]
536
- # @return [Boolean]
537
- def promote_list(*args) end
538
-
539
- # Helper for NumberList and PromoteList, that does renumbering and promotion simultaneously def can be nil/empty to indicate that the existing list style should be used.
540
- # @param range [Range]
541
- # @param promotionRange [Range]
542
- # @param promoteBy [Integer]
543
- # @param def_ [Wx::RTC::RichTextListStyleDefinition]
544
- # @param flags [Integer]
545
- # @param startFrom [Integer]
546
- # @param specifiedLevel [Integer]
547
- # @return [Boolean]
548
- def do_number_list(range, promotionRange, promoteBy, def_, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) end
549
-
550
- # Fills in the attributes for numbering a paragraph after previousParagraph.
551
- # @param previousParagraph [Wx::RTC::RichTextParagraph]
552
- # @param attr [Wx::RTC::RichTextAttr]
553
- # @return [Boolean]
554
- def find_next_paragraph_number(previousParagraph, attr) end
555
-
556
- # Sets the properties for the given range, passing flags to determine how the attributes are set.
557
- #
558
- # You can merge properties or replace them.
559
- # The end point of range is specified as the last character position of the span of text, plus one. So, for example, to set the properties for a character at position 5, use the range (5,6).
560
- # flags may contain a bit list of the following values:
561
- #
562
- # - {Wx::RTC::RICHTEXT_SETPROPERTIES_NONE}: no flag.
563
- # - {Wx::RTC::RICHTEXT_SETPROPERTIES_WITH_UNDO}: specifies that this operation should be undoable.
564
- # - {Wx::RTC::RICHTEXT_SETPROPERTIES_PARAGRAPHS_ONLY}: specifies that the properties should only be applied to paragraphs, and not the content.
565
- # - {Wx::RTC::RICHTEXT_SETPROPERTIES_CHARACTERS_ONLY}: specifies that the properties should only be applied to characters, and not the paragraph.
566
- # - {Wx::RTC::RICHTEXT_SETPROPERTIES_RESET}: resets (clears) the existing properties before applying the new properties.
567
- # - {Wx::RTC::RICHTEXT_SETPROPERTIES_REMOVE}: removes the specified properties.
568
- # @param range [Range]
569
- # @param properties [Wx::RTC::RichTextProperties]
570
- # @param flags [Integer]
571
- # @return [Boolean]
572
- def set_properties(range, properties, flags=Wx::RTC::RICHTEXT_SETPROPERTIES_WITH_UNDO) end
573
-
574
- # Sets with undo the properties for the given object.
575
- # @param obj [Wx::RTC::RichTextObject]
576
- # @param properties [Wx::RTC::RichTextProperties]
577
- # @param objToSet [Wx::RTC::RichTextObject]
578
- # @return [Boolean]
579
- def set_object_properties_with_undo(obj, properties, objToSet=nil) end
580
-
581
- # Test if this whole range has character attributes of the specified kind.
582
- #
583
- # If any of the attributes are different within the range, the test fails. You can use this to implement, for example, bold button updating. style must have flags indicating which attributes are of interest.
584
- # @param range [Range]
585
- # @param style [Wx::RTC::RichTextAttr]
586
- # @return [Boolean]
587
- def has_character_attributes(range, style) end
588
- alias_method :has_character_attributes?, :has_character_attributes
589
-
590
- # Test if this whole range has paragraph attributes of the specified kind.
591
- #
592
- # If any of the attributes are different within the range, the test fails. You can use this to implement, for example, centering button updating. style must have flags indicating which attributes are of interest.
593
- # @param range [Range]
594
- # @param style [Wx::RTC::RichTextAttr]
595
- # @return [Boolean]
596
- def has_paragraph_attributes(range, style) end
597
- alias_method :has_paragraph_attributes?, :has_paragraph_attributes
598
-
599
- # Clones the object.
600
- # @return [Wx::RTC::RichTextObject]
601
- def clone; end
602
-
603
- # Prepares the content just before insertion (or after buffer reset).
604
- #
605
- # Currently is only called if undo mode is on.
606
- # @param container [Wx::RTC::RichTextParagraphLayoutBox]
607
- # @return [void]
608
- def prepare_content(container) end
609
-
610
- # Insert fragment into this box at the given position.
611
- #
612
- # If partialParagraph is true, it is assumed that the last (or only) paragraph is just a piece of data with no paragraph marker.
613
- # @param position [Integer]
614
- # @param fragment [Wx::RTC::RichTextParagraphLayoutBox]
615
- # @return [Boolean]
616
- def insert_fragment(position, fragment) end
617
-
618
- # Make a copy of the fragment corresponding to the given range, putting it in fragment.
619
- # @param range [Range]
620
- # @param fragment [Wx::RTC::RichTextParagraphLayoutBox]
621
- # @return [Boolean]
622
- def copy_fragment(range, fragment) end
623
-
624
- # Apply the style sheet to the buffer, for example if the styles have changed.
625
- # @param styleSheet [Wx::RTC::RichTextStyleSheet]
626
- # @return [Boolean]
627
- def apply_style_sheet(styleSheet) end
628
-
629
- # @param obj [Wx::RTC::RichTextParagraphLayoutBox]
630
- # @return [void]
631
- def copy(obj) end
632
-
633
- # Calculate ranges.
634
- # @return [void]
635
- def update_ranges; end
636
-
637
- # Get all the text.
638
- # @return [String]
639
- def get_text; end
640
- alias_method :text, :get_text
641
-
642
- # Sets the default style, affecting the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
643
- #
644
- # This is not cumulative - setting the default style will replace the previous default style.
645
- # Setting it to a default attribute object makes new content take on the 'basic' style.
646
- # @param style [Wx::RTC::RichTextAttr]
647
- # @return [Boolean]
648
- def set_default_style(style) end
649
- alias_method :default_style=, :set_default_style
650
-
651
- # Returns the current default style, affecting the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
652
- # @return [Wx::RTC::RichTextAttr]
653
- def get_default_style; end
654
- alias_method :default_style, :get_default_style
655
-
656
- # Sets the basic (overall) style.
657
- #
658
- # This is the style of the whole buffer before further styles are applied, unlike the default style, which only affects the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
659
- # @param style [Wx::RTC::RichTextAttr]
660
- # @return [void]
661
- def set_basic_style(style) end
662
- alias_method :basic_style=, :set_basic_style
663
-
664
- # Returns the basic (overall) style.
665
- #
666
- # This is the style of the whole buffer before further styles are applied, unlike the default style, which only affects the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
667
- # @return [Wx::RTC::RichTextAttr]
668
- def get_basic_style; end
669
- alias_method :basic_style, :get_basic_style
670
-
671
- # Invalidates the buffer.
672
- #
673
- # With no argument, invalidates whole buffer.
674
- # @param invalidRange [Range]
675
- # @return [void]
676
- def invalidate(invalidRange=Wx::RICHTEXT_ALL) end
677
-
678
- # Do the (in)validation for this object only.
679
- # @param invalidRange [Range]
680
- # @return [void]
681
- def do_invalidate(invalidRange) end
682
-
683
- # Do the (in)validation both up and down the hierarchy.
684
- # @param invalidRange [Range]
685
- # @return [void]
686
- def invalidate_hierarchy(invalidRange=Wx::RICHTEXT_ALL) end
687
-
688
- # Gather information about floating objects.
689
- #
690
- # If untilObj is non-null, will stop getting information if the current object is this, since we will collect the rest later.
691
- # @param availableRect [Wx::Rect]
692
- # @param untilObj [Wx::RTC::RichTextObject]
693
- # @return [Boolean]
694
- def update_floating_objects(availableRect, untilObj=nil) end
695
-
696
- # Get invalid range, rounding to entire paragraphs if argument is true.
697
- # @param wholeParagraphs [Boolean]
698
- # @return [Range]
699
- def get_invalid_range(wholeParagraphs=false) end
700
- alias_method :invalid_range, :get_invalid_range
701
-
702
- # Returns true if this object needs layout.
703
- # @return [Boolean]
704
- def is_dirty; end
705
- alias_method :dirty?, :is_dirty
706
-
707
- # Returns the {Wx::RTC::RichTextFloatCollector} of this object.
708
- # @return [Wx::RTC::RichTextFloatCollector]
709
- def get_float_collector; end
710
- alias_method :float_collector, :get_float_collector
711
-
712
- # Returns the number of floating objects at this level.
713
- # @return [Integer]
714
- def get_floating_object_count; end
715
- alias_method :floating_object_count, :get_floating_object_count
716
-
717
- # Returns a list of floating objects.
718
- # @param objects [Array<Wx::RTC::RichTextObject>]
719
- # @return [Boolean]
720
- def get_floating_objects(objects) end
721
- alias_method :floating_objects, :get_floating_objects
722
-
723
- end # RichTextParagraphLayoutBox
724
-
725
- # This class implements the general concept of a field, an object that represents additional functionality such as a footnote, a bookmark, a page number, a table of contents, and so on.
726
- #
727
- # Extra information (such as a bookmark name) can be stored in the object properties.
728
- # Drawing, layout, and property editing is delegated to classes derived from {Wx::RTC::RichTextFieldType}, such as instances of {Wx::RTC::RichTextFieldTypeStandard}; this makes the use of fields an efficient method of introducing extra functionality, since most of the information required to draw a field (such as a bitmap) is kept centrally in a single field type definition.
729
- # The FieldType property, accessed by SetFieldType/GetFieldType, is used to retrieve the field type definition. So be careful not to overwrite this property.
730
- # {Wx::RTC::RichTextField} is derived from {Wx::RTC::RichTextParagraphLayoutBox}, which means that it can contain its own read-only content, refreshed when the application calls the UpdateField function. Whether a field is treated as a composite or a single graphic is determined by the field type definition. If using {Wx::RTC::RichTextFieldTypeStandard}, passing the display type {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_COMPOSITE} to the field type definition causes the field to behave like a composite; the other display styles display a simple graphic. When implementing a composite field, you will still need to derive from {Wx::RTC::RichTextFieldTypeStandard} or {Wx::RTC::RichTextFieldType}, if only to implement UpdateField to refresh the field content appropriately. {Wx::RTC::RichTextFieldTypeStandard} is only one possible implementation, but covers common needs especially for simple, static fields using text or a bitmap.
731
- # Register field types on application initialisation with the static function {Wx::RTC::RichTextBuffer.add_field_type}. They will be deleted automatically on application exit.
732
- # An application can write a field to a control with {Wx::RTC::RichTextCtrl#write_field}, taking a field type, the properties for the field, and optional attributes.
733
- #
734
- # Category: Rich Text
735
- # @see Wx::RTC::RichTextFieldTypeStandard
736
- # @see Wx::RTC::RichTextFieldType
737
- # @see Wx::RTC::RichTextParagraphLayoutBox
738
- # @see Wx::RTC::RichTextProperties
739
- # @see Wx::RTC::RichTextCtrl
740
- #
741
- #
742
- #
743
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
744
- # @wxrb_require USE_RICHTEXT
745
- class RichTextField < RichTextParagraphLayoutBox
746
-
747
- # @overload initialize(fieldType=(''), parent=nil)
748
- # Default constructor; optionally pass the parent object.
749
- # @param fieldType [String]
750
- # @param parent [Wx::RTC::RichTextObject]
751
- # @return [Wx::RTC::RichTextField]
752
- # @overload initialize(obj)
753
- # Copy constructor.
754
- # @param obj [Wx::RTC::RichTextField]
755
- # @return [Wx::RTC::RichTextField]
756
- def initialize(*args) end
757
-
758
- # Draw the item, within the given range.
759
- #
760
- # Some objects may ignore the range (for example paragraphs) while others must obey it (lines, to implement wrapping)
761
- # @param dc [Wx::DC]
762
- # @param context [Wx::RTC::RichTextDrawingContext]
763
- # @param range [Range]
764
- # @param selection [Wx::RTC::RichTextSelection]
765
- # @param rect [Wx::Rect]
766
- # @param descent [Integer]
767
- # @param style [Integer]
768
- # @return [Boolean]
769
- def draw(dc, context, range, selection, rect, descent, style) end
770
-
771
- # Lay the item out at the specified position with the given size constraint.
772
- #
773
- # Layout must set the cached size. rect is the available space for the object, and parentRect is the container that is used to determine a relative size or position (for example if a text box must be 50% of the parent text box).
774
- # @param dc [Wx::ReadOnlyDC]
775
- # @param context [Wx::RTC::RichTextDrawingContext]
776
- # @param rect [Wx::Rect]
777
- # @param parentRect [Wx::Rect]
778
- # @param style [Integer]
779
- # @return [Boolean]
780
- def layout(dc, context, rect, parentRect, style) end
781
-
782
- # Returns the object size for the given range.
783
- #
784
- # Returns false if the range is invalid for this object.
785
- # @param range [Range]
786
- # @param size [Array(Integer, Integer), Wx::Size]
787
- # @param descent [int]
788
- # @param dc [Wx::ReadOnlyDC]
789
- # @param context [Wx::RTC::RichTextDrawingContext]
790
- # @param flags [Integer]
791
- # @param position [Array(Integer, Integer), Wx::Point]
792
- # @param parentSize [Array(Integer, Integer), Wx::Size]
793
- # @param partialExtents [Array,nil]
794
- # @return [Boolean]
795
- def get_range_size(range, size, descent, dc, context, flags, position=(Wx::Point.new(0, 0)), parentSize=Wx::DEFAULT_SIZE, partialExtents=nil) end
796
- alias_method :range_size, :get_range_size
797
-
798
- # Returns the XML node name of this object.
799
- #
800
- # This must be overridden for {Wx::XmlNode}-base XML export to work.
801
- # @return [String]
802
- def get_xml_node_name; end
803
- alias_method :xml_node_name, :get_xml_node_name
804
-
805
- # Returns true if we can edit the object's properties via a GUI.
806
- # @return [Boolean]
807
- def can_edit_properties; end
808
- alias_method :can_edit_properties?, :can_edit_properties
809
-
810
- # Edits the object's properties via a GUI.
811
- # @param parent [Wx::Window]
812
- # @param buffer [Wx::RTC::RichTextBuffer]
813
- # @return [Boolean]
814
- def edit_properties(parent, buffer) end
815
-
816
- # Returns the label to be used for the properties context menu item.
817
- # @return [String]
818
- def get_properties_menu_label; end
819
- alias_method :properties_menu_label, :get_properties_menu_label
820
-
821
- # Returns true if objects of this class can accept the focus, i.e. a call to SetFocusObject is possible.
822
- #
823
- # For example, containers supporting text, such as a text box object, can accept the focus, but a table can't (set the focus to individual cells instead).
824
- # @return [Boolean]
825
- def accepts_focus; end
826
-
827
- # Calculates the range of the object.
828
- #
829
- # By default, guess that the object is 1 unit long.
830
- # @param start [Integer]
831
- # @param end_ [Integer]
832
- # @return [Integer]
833
- def calculate_range(start, end_) end
834
-
835
- # If a field has children, we don't want the user to be able to edit it.
836
- # @return [Boolean]
837
- def is_atomic; end
838
- alias_method :atomic?, :is_atomic
839
-
840
- # Returns true if the buffer is empty.
841
- # @return [Boolean]
842
- def is_empty; end
843
- alias_method :empty?, :is_empty
844
-
845
- # Returns true if this object is top-level, i.e. contains its own paragraphs, such as a text box.
846
- # @return [Boolean]
847
- def is_top_level; end
848
- alias_method :top_level?, :is_top_level
849
-
850
- # @param fieldType [String]
851
- # @return [void]
852
- def set_field_type(fieldType) end
853
- alias_method :field_type=, :set_field_type
854
-
855
- # @return [String]
856
- def get_field_type; end
857
- alias_method :field_type, :get_field_type
858
-
859
- # Update the field; delegated to the associated field type.
860
- #
861
- # This would typically expand the field to its value, if this is a dynamically changing and/or composite field.
862
- # @param buffer [Wx::RTC::RichTextBuffer]
863
- # @return [Boolean]
864
- def update_field(buffer) end
865
-
866
- # Clones the object.
867
- # @return [Wx::RTC::RichTextObject]
868
- def clone; end
869
-
870
- # @param obj [Wx::RTC::RichTextField]
871
- # @return [void]
872
- def copy(obj) end
873
-
874
- end # RichTextField
875
-
876
- # A style sheet contains named paragraph and character styles that make it easy for a user to apply combinations of attributes to a {Wx::RTC::RichTextCtrl}.
877
- #
878
- # You can use a {Wx::RTC::RichTextStyleListBox} in your user interface to show available styles to the user, and allow application of styles to the control.
879
- #
880
- # Category: Rich Text
881
- #
882
- # @wxrb_require USE_RICHTEXT
883
- class RichTextStyleSheet < Object
884
-
885
- # @overload initialize()
886
- # Constructor.
887
- # @return [Wx::RTC::RichTextStyleSheet]
888
- # @overload initialize(sheet)
889
- # Copy constructor.
890
- # @param sheet [Wx::RTC::RichTextStyleSheet]
891
- # @return [Wx::RTC::RichTextStyleSheet]
892
- def initialize(*args) end
893
-
894
- # Copies given style sheet.
895
- # @param sheet [Wx::RTC::RichTextStyleSheet]
896
- # @return [void]
897
- def copy(sheet) end
898
-
899
- # Adds a definition to the character style list.
900
- # @param def_ [Wx::RTC::RichTextCharacterStyleDefinition]
901
- # @return [Boolean]
902
- def add_character_style(def_) end
903
-
904
- # Adds a definition to the list style list.
905
- # @param def_ [Wx::RTC::RichTextListStyleDefinition]
906
- # @return [Boolean]
907
- def add_list_style(def_) end
908
-
909
- # Adds a definition to the paragraph style list.
910
- # @param def_ [Wx::RTC::RichTextParagraphStyleDefinition]
911
- # @return [Boolean]
912
- def add_paragraph_style(def_) end
913
-
914
- # Adds a definition to the appropriate style list.
915
- # @param def_ [Wx::RTC::RichTextStyleDefinition]
916
- # @return [Boolean]
917
- def add_style(def_) end
918
-
919
- # Deletes all styles.
920
- # @return [void]
921
- def delete_styles; end
922
-
923
- # Finds a character definition by name.
924
- # @param name [String]
925
- # @param recurse [Boolean]
926
- # @return [Wx::RTC::RichTextCharacterStyleDefinition]
927
- def find_character_style(name, recurse=true) end
928
-
929
- # Finds a list definition by name.
930
- # @param name [String]
931
- # @param recurse [Boolean]
932
- # @return [Wx::RTC::RichTextListStyleDefinition]
933
- def find_list_style(name, recurse=true) end
934
-
935
- # Finds a paragraph definition by name.
936
- # @param name [String]
937
- # @param recurse [Boolean]
938
- # @return [Wx::RTC::RichTextParagraphStyleDefinition]
939
- def find_paragraph_style(name, recurse=true) end
940
-
941
- # Finds a style definition by name.
942
- # @param name [String]
943
- # @return [Wx::RTC::RichTextStyleDefinition]
944
- def find_style(name) end
945
-
946
- # Returns the nth character style.
947
- # @param n [Integer]
948
- # @return [Wx::RTC::RichTextCharacterStyleDefinition]
949
- def get_character_style(n) end
950
- alias_method :character_style, :get_character_style
951
-
952
- # Returns the number of character styles.
953
- # @return [Integer]
954
- def get_character_style_count; end
955
- alias_method :character_style_count, :get_character_style_count
956
-
957
- # Returns the style sheet's description.
958
- # @return [Wx::String]
959
- def get_description; end
960
- alias_method :description, :get_description
961
-
962
- # Returns the nth list style.
963
- # @param n [Integer]
964
- # @return [Wx::RTC::RichTextListStyleDefinition]
965
- def get_list_style(n) end
966
- alias_method :list_style, :get_list_style
967
-
968
- # Returns the number of list styles.
969
- # @return [Integer]
970
- def get_list_style_count; end
971
- alias_method :list_style_count, :get_list_style_count
972
-
973
- # Returns the style sheet's name.
974
- # @return [Wx::String]
975
- def get_name; end
976
- alias_method :name, :get_name
977
-
978
- # Returns the nth paragraph style.
979
- # @param n [Integer]
980
- # @return [Wx::RTC::RichTextParagraphStyleDefinition]
981
- def get_paragraph_style(n) end
982
- alias_method :paragraph_style, :get_paragraph_style
983
-
984
- # Returns the number of paragraph styles.
985
- # @return [Integer]
986
- def get_paragraph_style_count; end
987
- alias_method :paragraph_style_count, :get_paragraph_style_count
988
-
989
- # Removes a character style.
990
- # @param def_ [Wx::RTC::RichTextStyleDefinition]
991
- # @param deleteStyle [Boolean]
992
- # @return [Boolean]
993
- def remove_character_style(def_, deleteStyle=false) end
994
-
995
- # Removes a list style.
996
- # @param def_ [Wx::RTC::RichTextStyleDefinition]
997
- # @param deleteStyle [Boolean]
998
- # @return [Boolean]
999
- def remove_list_style(def_, deleteStyle=false) end
1000
-
1001
- # Removes a paragraph style.
1002
- # @param def_ [Wx::RTC::RichTextStyleDefinition]
1003
- # @param deleteStyle [Boolean]
1004
- # @return [Boolean]
1005
- def remove_paragraph_style(def_, deleteStyle=false) end
1006
-
1007
- # Removes a style.
1008
- # @param def_ [Wx::RTC::RichTextStyleDefinition]
1009
- # @param deleteStyle [Boolean]
1010
- # @return [Boolean]
1011
- def remove_style(def_, deleteStyle=false) end
1012
-
1013
- # Sets the style sheet's description.
1014
- # @param descr [String]
1015
- # @return [void]
1016
- def set_description(descr) end
1017
- alias_method :description=, :set_description
1018
-
1019
- # Sets the style sheet's name.
1020
- # @param name [String]
1021
- # @return [void]
1022
- def set_name(name) end
1023
- alias_method :name=, :set_name
1024
-
1025
- # Returns the sheet's properties.
1026
- # @return [Wx::RTC::RichTextProperties]
1027
- def get_properties; end
1028
- alias_method :properties, :get_properties
1029
-
1030
- # Sets the sheet's properties.
1031
- # @param props [Wx::RTC::RichTextProperties]
1032
- # @return [void]
1033
- def set_properties(props) end
1034
- alias_method :properties=, :set_properties
1035
-
1036
- end # RichTextStyleSheet
1037
-
1038
- # This is a base class for paragraph and character styles.
1039
- #
1040
- # Category: Rich Text
1041
- #
1042
- # @wxrb_require USE_RICHTEXT
1043
- class RichTextStyleDefinition < Object
1044
-
1045
- # Constructor.
1046
- # @param name [String]
1047
- # @return [Wx::RTC::RichTextStyleDefinition]
1048
- def initialize(name=('')) end
1049
-
1050
- # Returns the style on which this style is based.
1051
- # @return [Wx::String]
1052
- def get_base_style; end
1053
- alias_method :base_style, :get_base_style
1054
-
1055
- # Returns the style's description.
1056
- # @return [Wx::String]
1057
- def get_description; end
1058
- alias_method :description, :get_description
1059
-
1060
- # Returns the style name.
1061
- # @return [Wx::String]
1062
- def get_name; end
1063
- alias_method :name, :get_name
1064
-
1065
- # Returns the style attributes combined with the attributes of the specified base style, if any.
1066
- #
1067
- # This function works recursively.
1068
- # @param sheet [Wx::RTC::RichTextStyleSheet]
1069
- # @return [Wx::RTC::RichTextAttr]
1070
- def get_style_merged_with_base(sheet) end
1071
- alias_method :style_merged_with_base, :get_style_merged_with_base
1072
-
1073
- # Sets the name of the style that this style is based on.
1074
- # @param name [String]
1075
- # @return [void]
1076
- def set_base_style(name) end
1077
- alias_method :base_style=, :set_base_style
1078
-
1079
- # Sets the style description.
1080
- # @param descr [String]
1081
- # @return [void]
1082
- def set_description(descr) end
1083
- alias_method :description=, :set_description
1084
-
1085
- # Sets the name of the style.
1086
- # @param name [String]
1087
- # @return [void]
1088
- def set_name(name) end
1089
- alias_method :name=, :set_name
1090
-
1091
- # Sets the attributes for this style.
1092
- # @param style [Wx::RTC::RichTextAttr]
1093
- # @return [void]
1094
- def set_style(style) end
1095
- alias_method :style=, :set_style
1096
-
1097
- # Returns the definition's properties.
1098
- # @return [Wx::RTC::RichTextProperties]
1099
- def get_properties; end
1100
- alias_method :properties, :get_properties
1101
-
1102
- # Sets the definition's properties.
1103
- # @param props [Wx::RTC::RichTextProperties]
1104
- # @return [void]
1105
- def set_properties(props) end
1106
- alias_method :properties=, :set_properties
1107
-
1108
- end # RichTextStyleDefinition
1109
-
1110
- # This class represents a character style definition, usually added to a {Wx::RTC::RichTextStyleSheet}.
1111
- #
1112
- # Category: Rich Text
1113
- #
1114
- # @wxrb_require USE_RICHTEXT
1115
- class RichTextCharacterStyleDefinition < RichTextStyleDefinition
1116
-
1117
- # Constructor.
1118
- # @param name [String]
1119
- # @return [Wx::RTC::RichTextCharacterStyleDefinition]
1120
- def initialize(name=('')) end
1121
-
1122
- end # RichTextCharacterStyleDefinition
1123
-
1124
- # This class represents a paragraph style definition, usually added to a {Wx::RTC::RichTextStyleSheet}.
1125
- #
1126
- # Category: Rich Text
1127
- #
1128
- # @wxrb_require USE_RICHTEXT
1129
- class RichTextParagraphStyleDefinition < RichTextStyleDefinition
1130
-
1131
- # Constructor.
1132
- # @param name [String]
1133
- # @return [Wx::RTC::RichTextParagraphStyleDefinition]
1134
- def initialize(name=('')) end
1135
-
1136
- # Returns the style that should normally follow this style.
1137
- # @return [Wx::String]
1138
- def get_next_style; end
1139
- alias_method :next_style, :get_next_style
1140
-
1141
- # Sets the style that should normally follow this style.
1142
- # @param name [String]
1143
- # @return [void]
1144
- def set_next_style(name) end
1145
- alias_method :next_style=, :set_next_style
1146
-
1147
- end # RichTextParagraphStyleDefinition
1148
-
1149
- # This class represents a list style definition, usually added to a {Wx::RTC::RichTextStyleSheet}.
1150
- #
1151
- # The class inherits paragraph attributes from {Wx::RichTextStyleParagraphDefinition}, and adds 10 further attribute objects, one for each level of a list. When applying a list style to a paragraph, the list style's base and appropriate level attributes are merged with the paragraph's existing attributes.
1152
- # You can apply a list style to one or more paragraphs using {Wx::RTC::RichTextCtrl#set_list_style}. You can also use the functions {Wx::RTC::RichTextCtrl#number_list}, {Wx::RTC::RichTextCtrl#promote_list} and {Wx::RTC::RichTextCtrl#clear_list_style}.
1153
- # As usual, there are {Wx::RTC::RichTextBuffer} versions of these functions so that you can apply them directly to a buffer without requiring a control.
1154
- #
1155
- # Category: Rich Text
1156
- #
1157
- # @wxrb_require USE_RICHTEXT
1158
- class RichTextListStyleDefinition < RichTextParagraphStyleDefinition
1159
-
1160
- # Constructor.
1161
- # @param name [String]
1162
- # @return [Wx::RTC::RichTextListStyleDefinition]
1163
- def initialize(name=('')) end
1164
-
1165
- # This function combines the given paragraph style with the list style's base attributes and level style matching the given indent, returning the combined attributes.
1166
- #
1167
- # If styleSheet is specified, the base style for this definition will also be included in the result.
1168
- # @param indent [Integer]
1169
- # @param paraStyle [Wx::RTC::RichTextAttr]
1170
- # @param styleSheet [Wx::RTC::RichTextStyleSheet]
1171
- # @return [Wx::RTC::RichTextAttr]
1172
- def combine_with_paragraph_style(indent, paraStyle, styleSheet=nil) end
1173
-
1174
- # This function finds the level (from 0 to 9) whose indentation attribute mostly closely matches indent (expressed in tenths of a millimetre).
1175
- # @param indent [Integer]
1176
- # @return [Integer]
1177
- def find_level_for_indent(indent) end
1178
-
1179
- # This function combines the list style's base attributes and the level style matching the given indent, returning the combined attributes.
1180
- #
1181
- # If styleSheet is specified, the base style for this definition will also be included in the result.
1182
- # @param indent [Integer]
1183
- # @param styleSheet [Wx::RTC::RichTextStyleSheet]
1184
- # @return [Wx::RTC::RichTextAttr]
1185
- def get_combined_style(indent, styleSheet=nil) end
1186
- alias_method :combined_style, :get_combined_style
1187
-
1188
- # This function combines the list style's base attributes and the style for the specified level, returning the combined attributes.
1189
- #
1190
- # If styleSheet is specified, the base style for this definition will also be included in the result.
1191
- # @param level [Integer]
1192
- # @param styleSheet [Wx::RTC::RichTextStyleSheet]
1193
- # @return [Wx::RTC::RichTextAttr]
1194
- def get_combined_style_for_level(level, styleSheet=nil) end
1195
- alias_method :combined_style_for_level, :get_combined_style_for_level
1196
-
1197
- # Returns the style for the given level.
1198
- #
1199
- # level is a number between 0 and 9.
1200
- # @param level [Integer]
1201
- # @return [Wx::RTC::RichTextAttr]
1202
- def get_level_attributes(level) end
1203
- alias_method :level_attributes, :get_level_attributes
1204
-
1205
- # Returns the number of levels.
1206
- #
1207
- # This is hard-wired to 10. Returns the style for the given level. level is a number between 0 and 9.
1208
- # @return [Integer]
1209
- def get_level_count; end
1210
- alias_method :level_count, :get_level_count
1211
-
1212
- # Returns true if the given level has numbered list attributes.
1213
- # @param level [Integer]
1214
- # @return [Boolean]
1215
- def is_numbered(level) end
1216
- alias_method :numbered?, :is_numbered
1217
-
1218
- # Sets the style for the given level.
1219
- #
1220
- # level is a number between 0 and 9. The first and most flexible form uses a {Wx::TextAttr} object, while the second form is for convenient setting of the most commonly-used attributes.
1221
- # @param level [Integer]
1222
- # @param attr [Wx::RTC::RichTextAttr]
1223
- # @return [void]
1224
- def set_level_attributes(level, attr) end
1225
-
1226
- # Convenience function for setting the major attributes for a list level specification.
1227
- # @param i [Integer]
1228
- # @param leftIndent [Integer]
1229
- # @param leftSubIndent [Integer]
1230
- # @param bulletStyle [Integer]
1231
- # @param bulletSymbol [String]
1232
- # @return [void]
1233
- def set_attributes(i, leftIndent, leftSubIndent, bulletStyle, bulletSymbol=('')) end
1234
-
1235
- end # RichTextListStyleDefinition
1236
-
1237
-
1238
- end
1239
-
1240
- end