]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_list.cpp
Mac-ify wxTreeCtrl further.
[wxWidgets.git] / src / html / m_list.cpp
index 292e8ccde02dec37d2997142bd04e399ffd7a79d..ba6571362bba0f3eca61f8c298398d7508845bb8 100644 (file)
 #endif
 
 #ifndef WXPRECOMP
-#include "wx/wx.h"
+    #include "wx/brush.h"
+    #include "wx/dc.h"
 #endif
 
-
 #include "wx/html/forcelnk.h"
 #include "wx/html/m_templ.h"
 
@@ -59,7 +59,6 @@ void wxHtmlListmarkCell::Draw(wxDC& dc, int x, int y, int view_y1, int view_y2)
 {
     dc.SetBrush(m_Brush);
     dc.DrawEllipse(x + m_PosX + m_Width / 4, y + m_PosY + m_Height / 4, m_Width / 2, m_Width / 2);
-    wxHtmlCell::Draw(dc, x, y, view_y1, view_y2);
 }
 
 
@@ -86,10 +85,10 @@ TAG_HANDLER_BEGIN(OLULLI, "OL,UL,LI")
         wxHtmlContainerCell *c;
 
         // List Item:
-        if (tag.GetName() == wxT("LI")) 
-           {
-            if (!tag.IsEnding()) 
-               {
+        if (tag.GetName() == wxT("LI"))
+        {
+            if (!tag.IsEnding())
+            {
                 m_WParser->GetContainer()->SetIndent(0, wxHTML_INDENT_TOP);
                     // this is to prevent indetation in <li><p> case
                 m_WParser->CloseContainer();
@@ -100,8 +99,8 @@ TAG_HANDLER_BEGIN(OLULLI, "OL,UL,LI")
                 c->SetAlignHor(wxHTML_ALIGN_RIGHT);
                 if (m_Numbering == 0)
                     c->InsertCell(new wxHtmlListmarkCell(m_WParser->GetDC(), m_WParser->GetActualColor()));
-                else 
-                       {
+                else
+                {
                     wxString mark;
                     mark.Printf(wxT("%i."), m_Numbering);
                     c->InsertCell(new wxHtmlWordCell(mark, *(m_WParser->GetDC())));
@@ -120,16 +119,16 @@ TAG_HANDLER_BEGIN(OLULLI, "OL,UL,LI")
         }
 
         // Begin of List (not-numbered): "UL", "OL"
-        else 
-           {
+        else
+        {
             int oldnum = m_Numbering;
 
             if (tag.GetName() == wxT("UL")) m_Numbering = 0;
             else m_Numbering = 1;
 
             c = m_WParser->GetContainer();
-            if (c->GetFirstCell() != NULL) 
-               {
+            if (c->GetFirstCell() != NULL)
+            {
                 m_WParser->CloseContainer();
                 m_WParser->OpenContainer();
                 c = m_WParser->GetContainer();