#pragma hdrstop
#endif
+#if wxUSE_RICHTEXT
+
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
-////@begin includes
-////@end includes
-
#include "wx/richtext/richtextstyledlg.h"
#include "wx/richtext/richtextformatdlg.h"
-////@begin XPM images
-////@end XPM images
-
/*!
* wxRichTextStyleOrganiserDialog type definition
*/
if (listDef)
{
+ long listStart = m_previewCtrl->GetInsertionPoint() + 1;
int i;
for (i = 0; i < 10; i++)
{
m_previewCtrl->WriteText(wxString::Format(wxT("\nList level %d. "), i+1) + s_para2List);
m_previewCtrl->EndStyle();
}
+ long listEnd = m_previewCtrl->GetInsertionPoint();
+ m_previewCtrl->NumberList(wxRichTextRange(listStart, listEnd), listDef);
}
else
{
else
event.Skip();
}
+
+#endif
+ // wxUSE_RICHTEXT
+