NAME

Wx::Perl::PodRichText::SimpleParser -- parser for PodRichText

DESCRIPTION

This is an internal part of Wx::Perl::PodRichText, not meant for outside use.

The parser is a Pod::Simple sub-class writing to a given target RichTextCtrl. Exactly how much it does versus how much it leaves to PodRichText is not settled, but perhaps in the future it might be possible to parse into any RichTextCtrl or RichTextBuffer.

Pod::Simple begin/ends become calls to BeginBold(), EndBold(), etc, and similarly BeginLeftIndent() and EndLeftIndent() for paragraphs. For indent RichText takes an amount in millimetres and the current code makes a value which is about two "em"s of the default font.

For reference, Pod::Parser is also good for breaking up POD, and is used by Wx::Perl::PodEditor (in Wx::Perl::PodEditor::PodParser). An advantage of Pod::Simple is that parse_lines() there allows the main loop to run and push a few lines at a time into the parse. There's no reason Pod::Parser couldn't do the same but its version 1.37 doesn't have it setup.

SEE ALSO

Pod::Siple, Wx::Perl::PodRichText.

HOME PAGE

http://user42.tuxfamily.org/math-image/index.html

LICENSE

Copyright 2012 Kevin Ryde

Wx-Perl-PodBrowser is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

Wx-Perl-PodBrowser is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Wx-Perl-PodBrowser. If not, see <http://www.gnu.org/licenses/>.