Add wxRichTextModuleInit

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-10-16 18:12:17 +00:00
parent e8a8d0dc2d
commit f1d6804f7c
2 changed files with 14 additions and 0 deletions

View File

@ -2015,6 +2015,9 @@ void wxSetFontPreservingStyles(wxTextAttr& attr, const wxFont& font);
/// Convert a decimal to Roman numerals
wxString wxRichTextDecimalToRoman(long n);
WXDLLIMPEXP_RICHTEXT void wxRichTextModuleInit();
#endif
// wxUSE_RICHTEXT

View File

@ -4934,6 +4934,17 @@ public:
IMPLEMENT_DYNAMIC_CLASS(wxRichTextModule, wxModule)
// If the richtext lib is dynamically loaded after the app has already started
// (such as from wxPython) then the built-in module system will not init this
// module. Provide this function to do it manually.
void wxRichTextModuleInit()
{
wxModule* module = new wxRichTextModule;
module->Init();
wxModule::RegisterModule(module);
}
/*!
* Commands for undo/redo
*