~ubuntu-branches/ubuntu/jaunty/viewpdf.app/jaunty

« back to all changes in this revision

Viewing changes to OutlinePanel.h

  • Committer: Bazaar Package Importer
  • Author(s): Gürkan Sengün
  • Date: 2006-09-16 18:13:34 UTC
  • mfrom: (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060916181334-10mrzvpblr2jpvu7
Tags: 1:0.2dfsg1-2
* Rebuild against latest libgnustep-gui-dev.
* Added co-maintainers.
* Updated build-depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2004  Stefan Kleine Stegemann
3
 
 *
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.
8
 
 *
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.
13
 
 *
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.
17
 
 */
18
 
 
19
 
#ifndef _H_OUTLINEPANEL
20
 
#define _H_OUTLINEPANEL
21
 
 
22
 
#include <Foundation/NSArray.h>
23
 
#include <Foundation/NSDictionary.h>
24
 
#include <AppKit/NSPanel.h>
25
 
#include <AppKit/NSScrollView.h>
26
 
#include <AppKit/NSOutlineView.h>
27
 
#include <PDFKit/PDFDocument.h>
28
 
 
29
 
/** This notification is posted if the user double-clicks
30
 
 *  on an outline item.   */
31
 
extern NSString* N_OutlineItemSelected;
32
 
 
33
 
/** Keys for user info dictionaries that come togehter
34
 
 *  with notifications posted by the OutlinePanel. */
35
 
extern NSString* UserInfoKeyOutlineItem;
36
 
 
37
 
 
38
 
/**
39
 
 * The OutlinePanel display's a document outline. There
40
 
 * is only one outline panel in the application that displays
41
 
 * the outline of the active document.
42
 
 *
43
 
 * To keep track of the outlines, the application must assign'
44
 
 * a unique name to each outline
45
 
 */
46
 
@interface OutlinePanel : NSPanel
47
 
{
48
 
   NSScrollView*         scrollView;
49
 
   NSOutlineView*        outlineView;
50
 
   NSView*               noOutlineView;
51
 
   NSString*             currentOutlineName;
52
 
   NSArray*              rootItems;
53
 
   NSMutableDictionary*  outlineStates;
54
 
   BOOL                  displaysOutline;
55
 
}
56
 
 
57
 
- (id) initWithContentRect: (NSRect)contentRect
58
 
                 styleMask: (unsigned int)styleMask
59
 
                   backing: (NSBackingStoreType)backingType
60
 
                     defer: (BOOL)flag;
61
 
 
62
 
- (void) showOutlineForDocument: (PDFDocument*)aDocument
63
 
                      usingName: (NSString*)aName;
64
 
 
65
 
- (void) outlineWillClose: (NSString*)anOutlineName;
66
 
 
67
 
- (NSOutlineView*) outlineView;
68
 
 
69
 
@end
70
 
 
71
 
#endif