Ticket #1278 (closed defect: fixed)
Padre::Plugin::LaTeX, fix for missing version & some :)
| Reported by: | bowtie | Owned by: | zenog |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | plugins | Version: | 0.87 |
| Keywords: | Cc: |
Description
As requested, relating to this afternoons irc, ;)
-
lib/Padre/Plugin/LaTeX.pm
4 4 5 5 use warnings; 6 6 use strict; 7 7 our $VERSION = '0.110'; 8 8 use File::Spec::Functions qw{ catfile }; 9 9 10 10 use base 'Padre::Plugin'; … … 15 15 } 16 16 17 17 sub padre_interfaces { 18 'Padre::Plugin' => 0.81, 'Padre::Document' => 0.81; 18 return ( 19 'Padre::Plugin' => '0.86', 20 'Padre::Document' => '0.86', 21 'Padre::Wx::Main' => '0.86', 22 ); 19 23 } 20 24 21 25 sub registered_documents { … … 194 198 return; 195 199 } 196 200 201 ####### 202 # Clean up, Padre::Plugin, 203 # POD out of date as of v0.84 204 ####### 205 sub plugin_disable { 206 my $self = shift; 197 207 208 # Close the dialog if it is hanging around 209 if ( $self->{dialog} ) { 210 $self->{dialog}->Destroy; 211 $self->{dialog} = undef; 212 } 213 214 # Unload all our child classes 215 $self->unload('Padre::Document::LaTeX'); 216 $self->unload('Padre::Document::BibTeX'); 217 218 return 1; 219 } 220 198 221 1; 199 222 __END__ 200 223
Attachments
Change History
comment:1 Changed 22 months ago by bowtie
- Some Plugin will require a plugin_enable method,
- Why because it's using an external resource, which is not being picked up via perl (M::I).
- You can see this method has only been enabled for Ubuntu, it needs more os file locations adding.
######### # We need plugin_enable # as we have an external dependancy ######### sub plugin_enable { my $pdflatex_exists = 0; # ToDo add other os locations # Ubuntu -> /usr/bin/ my @directories = qw( /usr/bin/ ); find( sub { if ( $_ eq 'pdflatex' ) { $pdflatex_exists = 1; } }, @directories ); return $pdflatex_exists; }
From Padre::Plugin::LaTeX
Note: See
TracTickets for help on using
tickets.
