30 Apr 2017 09:26:14 UTC
- Distribution: Wx-Perl-PodBrowser
- Module version: 15
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (54 / 1 / 1)
- KwaliteeBus factor: 1
- % Coverage
- License: gpl_3
- Perl: v5.8.0
- Activity24 month
- Download (63.34KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userKRYDE Kevin Rydeand 1 contributors
- Kevin Ryde
Wx::Perl::PodRichText::SimpleParser -- parser for PodRichText
This is an internal part of
Wx::Perl::PodRichTextnot meant for outside use.
This is a
Pod::Simplesub-class with output to a given target
Wx::RichTextCtrlwidget. It's not settled exactly how much is done here and how much is left to the target
Wx::Perl::PodRichText(which is a
Wx::RichTextCtrlsubclass). Perhaps in the future it might be possible to parse into any
The start/end handler calls from
Pod::Simplegenerate calls to the RichText attribute methods such as
EndBold()etc, or for paragraph attributes
EndLeftIndent()etc. RichText indentation is an amount in millimetres and the current code makes a value which is about two "em"s of the default font.
An advantage of
Pod::Simpleis that its
parse_lines()allows a Wx main event loop to push a few lines at a time into the parse to process a big document piece-by-piece. There's no reason
Pod::Parsercouldn't do the same but as of its version 1.37 it doesn't.
Copyright 2012, 2013, 2014, 2015 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/.
Module Install Instructions
To install Wx::Perl::PodBrowser, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Wx::Perl::PodBrowser
For more information on module installation, please visit the detailed CPAN module installation guide.