| 1 | package Padre::Document::LaTeX::Outline; | ||
| 2 | BEGIN { | ||
| 3 | $Padre::Document::LaTeX::Outline::VERSION = '0.13'; | ||
| 4 | } | ||
| 5 | |||
| 6 | # ABSTRACT: LaTeX document support for Padre | ||
| 7 | |||
| 8 | use 5.008; | ||
| 9 | use strict; | ||
| 10 | use warnings; | ||
| 11 | use Padre::Task::Outline (); | ||
| 12 | |||
| 13 | our @ISA = 'Padre::Task::Outline'; | ||
| 14 | |||
| 15 | sub find { | ||
| 16 | my $self = shift; | ||
| 17 | my $text = shift; | ||
| 18 | |||
| 19 | # remove all comments | ||
| 20 | $text =~ s/[^\\]%.*//g; | ||
| 21 | |||
| 22 | warn "Text: $text\n"; | ||
| 23 | |||
| 24 | # Build the outline structure from the search results | ||
| 25 | my @outline = (); | ||
| 26 | my $cur_pkg = { name => 'latex file' }; | ||
| 27 | |||
| 28 | push @outline, $cur_pkg; | ||
| 29 | |||
| 30 | return \@outline; | ||
| 31 | } | ||
| 32 | |||
| 33 | 1; | ||
| 34 | |||
| 35 | __END__ |