]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/doxygen/overviews/html.h
wxVector<T> is header-based, use @nolibrary
[wxWidgets.git] / docs / doxygen / overviews / html.h
index d20f5e3acbcb74f19d807e6cbb873e84454e0cf7..3a5027b2a79448a9aed37052d0fe302a054cb759 100644 (file)
@@ -6,17 +6,17 @@
 // Licence:     wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
-/*!
+/**
 
- @page overview_html wxHTML overview
+ @page overview_html wxHTML Overview
 
  The wxHTML library provides classes for parsing and displaying HTML.
  It is not intended to be a high-end HTML browser. If you are looking for
- something like that try http://www.mozilla.org.
+ something like that try <http://www.mozilla.org/>.
 
  wxHTML can be used as a generic rich text viewer - for example to display
  a nice About Box (like those of GNOME apps) or to display the result of
- database searching. There is a wxFileSystem class which allows you to use 
+ database searching. There is a wxFileSystem class which allows you to use
  your own virtual file systems.
 
  wxHtmlWindow supports tag handlers. This means that you can easily
@@ -60,7 +60,7 @@
  @endcode
 
  @subsection overview_html_quickstart_disphelp Displaying Help
+
  See wxHtmlHelpController.
 
  @subsection overview_html_quickstart_settingup Setting up wxHtmlWindow
  wxHtmlPrintout, normal wxWidgets printout class.
 
  And finally there is the low level class wxHtmlDCRenderer which you can use to
- render HTML into a rectangular area on any DC. 
+ render HTML into a rectangular area on any DC.
 
  It supports rendering into multiple rectangles with the same
- width. (The most common use of this is placing one rectangle on each page or 
+ width. (The most common use of this is placing one rectangle on each page or
  printing into two columns.)
 
 
  @section overview_html_helpformats Help Files Format
 
  wxHTML library uses a reduced version of MS HTML Workshop format.
- Tex2RTF can produce these files when generating HTML, if you set 
+ Tex2RTF can produce these files when generating HTML, if you set
  @b htmlWorkshopFiles to @true in your tex2rtf.ini file.
  (See wxHtmlHelpController for help controller description.)
 
- A @b book consists of three files: the header file, the contents file 
+ A @b book consists of three files: the header file, the contents file
  and the index file.
 
- You can make a regular zip archive of these files, plus the HTML and any 
- image files, for wxHTML (or helpview) to read; and the @c .zip file can 
+ You can make a regular zip archive of these files, plus the HTML and any
+ image files, for wxHTML (or helpview) to read; and the @c .zip file can
  optionally be renamed to @c .htb.
 
  @subsection overview_html_helpformats_hhp Header file (.hhp)
 
- The header file must contain these lines (and may contain additional lines 
+ The header file must contain these lines (and may contain additional lines
  which are ignored):
 
  @code
  @endcode
 
  @subsection overview_html_helpformats_hhk Index file (.hhk)
- Index files have same format as contents file except that ID params are ignored 
+
+ Index files have same format as contents file except that ID params are ignored
  and sublists are @b not allowed.
 
 
  The wxHTML library provides a mechanism for reading and displaying
  files of many different file formats.
 
- wxHtmlWindow::LoadPage can load not only HTML files but any known file. 
+ wxHtmlWindow::LoadPage can load not only HTML files but any known file.
  To make a file type known to wxHtmlWindow you must create a wxHtmlFilter filter and
  register it using wxHtmlWindow::AddFilter.
 
 
  Container is kind of cell that may contain sub-cells. Its size depends
  on number and sizes of its sub-cells (and also depends on width of window).
- See wxHtmlContainerCell, wxHtmlCell::Layout.
- This image shows the cells and containers: @image html contbox.bmp
+ See wxHtmlContainerCell, wxHtmlCell::Layout. This image shows the cells and
+ containers:
+
+ @image html overview_html_contbox.png
 
  @subsection overview_html_cells_conttaghandler Using Containers in Tag Handler
 
- wxHtmlWinParser provides a user-friendly way of managing containers. 
+ wxHtmlWinParser provides a user-friendly way of managing containers.
  It is based on the idea of opening and closing containers.
 
- Use wxHtmlWinParser::OpenContainer to open new a container @e within an already 
+ Use wxHtmlWinParser::OpenContainer to open new a container @e within an already
  opened container.
- This new container is a @e sub-container of the old one. (If you want to create a 
+ This new container is a @e sub-container of the old one. (If you want to create a
  new container with the same depth level you can call @c CloseContainer(); OpenContainer();.)
 
- Use wxHtmlWinParser::CloseContainer to close the container. 
+ Use wxHtmlWinParser::CloseContainer to close the container.
  This doesn't create a new container with same depth level but it returns "control"
- to the parent container.
- See explanation: @image html cont.bmp
+ to the parent container. See explanation:
+
+ @image html overview_html_cont.png
 
  There clearly must be same number of calls to OpenContainer as to
  CloseContainer.
  m_WParser -> OpenContainer();
  @endcode
 
- and here is image of the situation: @image html hello.bmp
+ and here is image of the situation:
+
+ @image html overview_html_hello.png
 
  You can see that there was an opened container before the code was executed.
  We closed it, created our own container, then closed our container and opened
  @li Parse text between the tag and paired ending tag (if present)
  @li Restore original parser state
 
- See wxHtmlWinParser for methods for modifying parser's state. 
+ See wxHtmlWinParser for methods for modifying parser's state.
  In general you can do things like opening/closing containers, changing colors, fonts etc.
 
  @subsection overview_html_handlers_custom Providing own tag handlers
  for details). Handler definition must start with @b TAG_HANDLER_BEGIN macro
  and end with @b TAG_HANDLER_END macro.
 
- I strongly recommend to have a look at @e include/wxhtml/mod_templ.h file. 
+ I strongly recommend to have a look at @e include/wxhtml/mod_templ.h file.
  Otherwise you won't understand the structure of macros.
 
  See macros reference:
  @li @b TAG_HANDLER_VARS:
      This macro starts block of variables definitions. (Variables are identical
      to class attributes.) Example:
-    
+
      @code
      TAG_HANDLER_BEGIN(VARS_ONLY, "CRAZYTAG")
         TAG_HANDLER_VARS
             wxString something_else;
      TAG_HANDLER_END(VARS_ONLY)
      @endcode
-    
+
      This macro is used only in rare cases.
 
  @li @b TAG_HANDLER_CONSTR(@e name):
      This macro supplies object constructor. @e name is same name as the one
      from TAG_HANDLER_BEGIN macro. Body of constructor follow after
      this macro (you must use { and } ). Example:
-    
+
      @code
      TAG_HANDLER_BEGIN(VARS2, "CRAZYTAG")
         TAG_HANDLER_VARS
             } // !!!!!!
      TAG_HANDLER_END(VARS2)
      @endcode
-    
+
      Never used in wxHTML :-)
 
  @li @b TAG_HANDLER_PROC(@e varib):
      @e tag. Body of method follows after this macro.
      Note than you must use { and }  !
      Example:
-    
+
      @code
      TAG_HANDLER_BEGIN(TITLE, "TITLE")
         TAG_HANDLER_PROC(tag)
  @li @b TAGS_MODULE_END(@e modname):
      Ends the definition of module.
      Example:
-    
+
      @code
      TAGS_MODULE_BEGIN(Examples)
         TAGS_MODULE_ADD(VARS_ONLY)
  Following tables list all tags known to wxHTML, together with supported parameters.
 
  A tag has general form of @c tagname param_1 param_2 ... param_n where param_i is
- either @c paramname="paramvalue" or @c paramname=paramvalue - these two are equivalent. 
+ either @c paramname="paramvalue" or @c paramname=paramvalue - these two are equivalent.
  Unless stated otherwise, wxHTML is case-insensitive.
 
  @subsection overview_html_supptags_commonvalues Table of common parameter values