[sword-devel] HTML Markup

Troy A. Griffitts sword-devel@crosswire.org
Tue, 16 Apr 2002 16:51:54 -0700

	Excited about your work.  module++ should work (be sure you have an
object and not a pointer, e.g. (*module)++).  You can see
swdisprtfchap.cpp or something like that down under apps/windows/
somewhere. :)  The idea is to subclass SWDisplay and set this in your
module, then a simple module->Display() whenever you need to refresh
will suffice.  Usually, a UI writer will also subclass SWMgr and
override some of the methods that get called 'per module' on startup,
like AddRenderFilter, or the like, but with Chris' new FilterMgr, many
people don't need this.  Used to be the method would be overridden to do
what you suggested earlier: (*module) << myRenderFilter.  If you would
like more control, you can do this. The windows client does to still
catch a few special modules and adds it's own special render filters. 
You can check it out if you would like an example: biblecsmgr.cpp

	Please keep asking questions!!!  Looking forward to finally telling
people, YES we have a mac version!


Nathan Youngman wrote:
> Another question,
> If I want to get a whole chapter with the verse numbers in superscript,
> would I need to loop over each verse and do that manually, or is there a
> better way?
> Right now I'm trying to get the loop working, but it seems module++; is
> blowing things up - I thought this would increment the key associated
> with the module?
> - n8
> On Monday, April 15, 2002, at 08:22  PM, Nathan Youngman wrote:
> >
> > Sorry for all the questions. I got it working with FMT_HTMLHREF and
> > ENC_HTML. I don't know if the ENC_HTML entities handle
> > Greek/Hebrew/etc, but I'll assume they do for now.
> >
> > - n8
> >
> ---
> Nathan Youngman
> E-mail: nathany at mac.com
> Web: http://nathany.com