Add wxRichTextModuleInit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2015,6 +2015,9 @@ void wxSetFontPreservingStyles(wxTextAttr& attr, const wxFont& font);
|
|||||||
/// Convert a decimal to Roman numerals
|
/// Convert a decimal to Roman numerals
|
||||||
wxString wxRichTextDecimalToRoman(long n);
|
wxString wxRichTextDecimalToRoman(long n);
|
||||||
|
|
||||||
|
|
||||||
|
WXDLLIMPEXP_RICHTEXT void wxRichTextModuleInit();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// wxUSE_RICHTEXT
|
// wxUSE_RICHTEXT
|
||||||
|
|
||||||
|
@@ -4934,6 +4934,17 @@ public:
|
|||||||
IMPLEMENT_DYNAMIC_CLASS(wxRichTextModule, wxModule)
|
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
|
* Commands for undo/redo
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user