The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Padre::Document - document abstraction layer

DESCRIPTION

This is an internal module of Padre that provides a logical document abstraction, allowing Padre to associate several Wx elements with the one document.

The objective would be to allow the use of this module without loading Wx.

Currently there are still interdependencies that need to be cleaned.

METHODS

new

 my $doc = Padre::Document->new(
                editor   => $editor,
                filename => $file,
 );
 

$editor is required and is a Padre::Wx::Editor object

$file is optional and if given it will be loaded in the document

mime-type is defined by the guess_mimetype function