- return true;
-}
-
-void wxRichTextHTMLHandler::BeginCharacterFormatting(const wxTextAttrEx& currentStyle, const wxTextAttrEx& thisStyle, const wxTextAttrEx& paraStyle, wxOutputStream& stream)
-{
- wxTextOutputStream str(stream);
-
- // Is the item a bulleted one?
- if ( paraStyle.GetBulletStyle() != wxTEXT_ATTR_BULLET_STYLE_NONE )
- {
- // Is there any opened list?
- if (m_list)
- {
- // Yes there is
-
- // Is the item among the previous ones?
- // Is the item one of the previous list tag's child items?
- if ((paraStyle.GetLeftIndent() == (m_indent + 100)) || (paraStyle.GetLeftIndent() < 100))
- str << wxT("<li>"); //Yes it is
- else
- {
- // No it isn't, so we should close the list tag
- str << (m_is_ul ? wxT("</ul>") : wxT("</ol>"));
-
- // And renavigate to new list's horizontal position
- NavigateToListPosition(paraStyle, str);
-
- // Get the appropriate tag, an ol for numerical values, an ul for dot, square etc.
- wxString tag;
- TypeOfList(paraStyle, tag);
- str << tag << wxT("<li>");
- }
- }
- else
- {
- // No there isn't a list.
- // navigate to new list's horizontal position(indent)
- NavigateToListPosition(paraStyle, str);
-
- // Get the appropriate tag, an ol for numerical values, an ul for dot, square etc.
- wxString tag;
- TypeOfList(paraStyle, tag);
- str << tag << wxT("<li>");
-
- // Now we have a list, mark it.
- m_list = true;