- toolBar -> AddSeparator();
- toolBar -> AddTool(wxID_HTML_BACK, wxBITMAP(wback), wxNullBitmap,
- FALSE, -1, -1, (wxObject *) NULL,
- _("Go back to the previous HTML page"));
- toolBar -> AddTool(wxID_HTML_FORWARD, wxBITMAP(wforward), wxNullBitmap,
- FALSE, -1, -1, (wxObject *) NULL,
- _("Go forward to the next HTML page"));
- toolBar -> AddSeparator();
-
- toolBar -> AddSeparator();
- toolBar -> AddTool(wxID_HTML_OPTIONS, wxBITMAP(woptions), wxNullBitmap,
- FALSE, -1, -1, (wxObject *) NULL,
+
+ toolBar->AddSeparator();
+ toolBar->AddTool(wxID_HTML_BACK, wbackBitmap, wxNullBitmap,
+ false, wxDefaultCoord, wxDefaultCoord, (wxObject *) NULL,
+ _("Go back"));
+ toolBar->AddTool(wxID_HTML_FORWARD, wforwardBitmap, wxNullBitmap,
+ false, wxDefaultCoord, wxDefaultCoord, (wxObject *) NULL,
+ _("Go forward"));
+ toolBar->AddSeparator();
+
+ toolBar->AddTool(wxID_HTML_UPNODE, wupnodeBitmap, wxNullBitmap,
+ false, wxDefaultCoord, wxDefaultCoord, (wxObject *) NULL,
+ _("Go one level up in document hierarchy"));
+ toolBar->AddTool(wxID_HTML_UP, wupBitmap, wxNullBitmap,
+ false, wxDefaultCoord, wxDefaultCoord, (wxObject *) NULL,
+ _("Previous page"));
+ toolBar->AddTool(wxID_HTML_DOWN, wdownBitmap, wxNullBitmap,
+ false, wxDefaultCoord, wxDefaultCoord, (wxObject *) NULL,
+ _("Next page"));
+
+ if ((style & wxHF_PRINT) || (style & wxHF_OPEN_FILES))
+ toolBar->AddSeparator();
+
+ if (style & wxHF_OPEN_FILES)
+ toolBar->AddTool(wxID_HTML_OPENFILE, wopenBitmap, wxNullBitmap,
+ false, wxDefaultCoord, wxDefaultCoord, (wxObject *) NULL,
+ _("Open HTML document"));
+
+#if wxUSE_PRINTING_ARCHITECTURE
+ if (style & wxHF_PRINT)
+ toolBar->AddTool(wxID_HTML_PRINT, wprintBitmap, wxNullBitmap,
+ false, wxDefaultCoord, wxDefaultCoord, (wxObject *) NULL,
+ _("Print this page"));
+#endif
+
+ toolBar->AddSeparator();
+ toolBar->AddTool(wxID_HTML_OPTIONS, woptionsBitmap, wxNullBitmap,
+ false, wxDefaultCoord, wxDefaultCoord, (wxObject *) NULL,