#include "wx/filesys.h"
#include "wx/html/htmlfilt.h"
-class WXDLLEXPORT wxHtmlProcessor;
-
+class wxHtmlProcessor;
class wxHtmlWinModule;
class wxHtmlHistoryArray;
class wxHtmlProcessorList;
public:
wxHtmlWindow() : wxScrolledWindow() {};
wxHtmlWindow(wxWindow *parent, wxWindowID id = -1,
- const wxPoint& pos = wxDefaultPosition,
+ const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxHW_SCROLLBAR_AUTO,
const wxString& name = "htmlWindow");
// Returns a pointer to the parser.
wxHtmlWinParser *GetParser() const { return m_Parser; }
-
+
// Adds HTML processor to this instance of wxHtmlWindow:
void AddProcessor(wxHtmlProcessor *processor);
// Adds HTML processor to wxHtmlWindow class as whole:
// Return value : TRUE if anchor exists, FALSE otherwise
bool ScrollToAnchor(const wxString& anchor);
- // Prepares layout (= fill m_PosX, m_PosY for fragments) based on
+ // Prepares layout (= fill m_PosX, m_PosY for fragments) based on
// actual size of window. This method also setup scrollbars
void CreateLayout();
int m_HistoryPos;
// if this FLAG is false, items are not added to history
bool m_HistoryOn;
-
+
// html processors array:
wxHtmlProcessorList *m_Processors;
- static wxHtmlProcessorList *m_SharedProcessors;
+ static wxHtmlProcessorList *m_SharedProcessors;
DECLARE_EVENT_TABLE()
};
m_Parser->SetFonts(normal_face, fixed_face, sizes);
// fonts changed => contents invalid, so reload the page:
- SetPage(wxT("<html><body></body></html>"));
+ SetPage(wxT("<html><body></body></html>"));
if (!op.IsEmpty()) LoadPage(op);
}
m_Cell->SetIndent(m_Borders, wxHTML_INDENT_ALL, wxHTML_UNITS_PIXELS);
m_Cell->SetAlignHor(wxHTML_ALIGN_CENTER);
CreateLayout();
- if (m_tmpCanDrawLocks == 0)
+ if (m_tmpCanDrawLocks == 0)
Refresh();
return TRUE;
}
m_Borders = cfg->Read(wxT("wxHtmlWindow/Borders"), m_Borders);
p_fff = cfg->Read(wxT("wxHtmlWindow/FontFaceFixed"), m_Parser->m_FontFaceFixed);
p_ffn = cfg->Read(wxT("wxHtmlWindow/FontFaceNormal"), m_Parser->m_FontFaceNormal);
- for (int i = 0; i < 7; i++)
+ for (int i = 0; i < 7; i++)
{
tmp.Printf(wxT("wxHtmlWindow/FontsSize%i"), i);
p_fontsizes[i] = cfg->Read(tmp, m_Parser->m_FontsSizes[i]);
cfg->Write(wxT("wxHtmlWindow/Borders"), (long) m_Borders);
cfg->Write(wxT("wxHtmlWindow/FontFaceFixed"), m_Parser->m_FontFaceFixed);
cfg->Write(wxT("wxHtmlWindow/FontFaceNormal"), m_Parser->m_FontFaceNormal);
- for (int i = 0; i < 7; i++)
+ for (int i = 0; i < 7; i++)
{
tmp.Printf(wxT("wxHtmlWindow/FontsSize%i"), i);
cfg->Write(tmp, (long) m_Parser->m_FontsSizes[i]);
m_Processors->DeleteContents(TRUE);
}
wxHtmlProcessorList::Node *node;
-
+
for (node = m_Processors->GetFirst(); node; node = node->GetNext())
{
- if (processor->GetPriority() > node->GetData()->GetPriority())
+ if (processor->GetPriority() > node->GetData()->GetPriority())
{
m_Processors->Insert(node, processor);
break;
m_SharedProcessors->DeleteContents(TRUE);
}
wxHtmlProcessorList::Node *node;
-
+
for (node = m_SharedProcessors->GetFirst(); node; node = node->GetNext())
{
- if (processor->GetPriority() > node->GetData()->GetPriority())
+ if (processor->GetPriority() > node->GetData()->GetPriority())
{
m_SharedProcessors->Insert(node, processor);
break;
m_DefaultFilter = NULL;
m_Filters.DeleteContents(TRUE);
m_Filters.Clear();
-
+
delete m_SharedProcessors;
m_SharedProcessors = NULL;
-
+
delete s_cur_hand;
delete s_cur_arrow;
}
}
-
+IMPLEMENT_ABSTRACT_CLASS(wxHtmlProcessor,wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxHtmlWindow,wxScrolledWindow)