2
* Copyright (C) 2005 Stefan Kleine Stegemann
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
#import <Foundation/Foundation.h>
20
#import <AppKit/AppKit.h>
21
#import "SinglePageView.h"
22
#import "DocumentTools.h"
26
* Controller for Document windows.
28
@interface Controller : NSWindowController
30
IBOutlet NSScrollView* scrollView;
32
SinglePageView* singlePageView;
40
- (IBAction) nextPage: (id)aSender;
41
- (IBAction) previousPage: (id)aSender;
42
- (IBAction) firstPage: (id)aSender;
43
- (IBAction) lastPage: (id)aSender;
44
- (IBAction) takePageFrom: (id)aSender;
45
- (IBAction) enterPageNumber: (id)aSender;
48
- (IBAction) takeZoomFrom: (id)aSender;
49
- (IBAction) zoomIn: (id)aSender;
50
- (IBAction) zoomOut: (id)aSender;
51
- (IBAction) zoomActualSize: (id)aSender;
52
- (IBAction) zoomToFit: (id)aSender;
55
- (IBAction) toggleFitWidth: (id)aSender;
56
- (IBAction) toggleFitHeight: (id)aSender;
57
- (IBAction) toggleFitPage: (id)aSender;
60
- (IBAction) scrollPageUp: (id)aSender;
61
- (IBAction) scrollPageDown: (id)aSender;
62
- (IBAction) scrollLineUp: (id)aSender;
63
- (IBAction) scrollLineDown: (id)aSender;
64
- (IBAction) scrollToTop: (id)aSender;
65
- (IBAction) scrollToBottom: (id)aSender;
66
- (IBAction) scrollLineLeft: (id)aSender;
67
- (IBAction) scrollLineRight: (id)aSender;
68
- (IBAction) scrollToLeftEdge: (id)aSender;
69
- (IBAction) scrollToRightEdge: (id)aSender;
72
- (IBAction) goSinglePage: (id)aSender;
75
- (IBAction) close: (id)aSender;