Changeset 851


Ignore:
Timestamp:
11/09/08 05:42:08 (3 years ago)
Author:
szabgab
Message:

add some documentation to Padre::Document

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Padre/Document.pm

    r849 r851  
    11package Padre::Document; 
    22 
    3 # Provides a logical document abstraction, allowing Padre 
    4 # to associate several Wx elements with the one document. 
     3=head1 NAME 
     4 
     5Padre::Document - document abstraction layer 
     6 
     7=head1 DESCRIPTION 
     8 
     9This is an internal module of L<Padre> that provides a  
     10logical document abstraction, allowing Padre to associate  
     11several Wx elements with the one document. 
     12 
     13The objective would be to allow the use of this module without 
     14loading Wx. 
     15 
     16Currently there are still interdependencies that need to be cleaned. 
     17 
     18=head1 METHODS 
     19 
     20=cut 
    521 
    622use 5.008; 
     
    164180# Constructor and Accessors 
    165181 
     182=head2 new 
     183 
     184 my $doc = Padre::Document->new( 
     185        editor   => $editor, 
     186        filename => $file, 
     187 ); 
     188  
     189$editor is required and is a Padre::Wx::Editor object 
     190 
     191$file is optional and if given it will be loaded in the document 
     192 
     193mime-type is defined by the guess_mimetype function 
     194 
     195=cut 
     196 
    166197sub new { 
    167198    my $class = shift; 
Note: See TracChangeset for help on using the changeset viewer.