2
* Copyright (C) 2004 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
#ifndef _H_OUTLINEPANEL
20
#define _H_OUTLINEPANEL
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>
29
/** This notification is posted if the user double-clicks
30
* on an outline item. */
31
extern NSString* N_OutlineItemSelected;
33
/** Keys for user info dictionaries that come togehter
34
* with notifications posted by the OutlinePanel. */
35
extern NSString* UserInfoKeyOutlineItem;
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.
43
* To keep track of the outlines, the application must assign'
44
* a unique name to each outline
46
@interface OutlinePanel : NSPanel
48
NSScrollView* scrollView;
49
NSOutlineView* outlineView;
50
NSView* noOutlineView;
51
NSString* currentOutlineName;
53
NSMutableDictionary* outlineStates;
57
- (id) initWithContentRect: (NSRect)contentRect
58
styleMask: (unsigned int)styleMask
59
backing: (NSBackingStoreType)backingType
62
- (void) showOutlineForDocument: (PDFDocument*)aDocument
63
usingName: (NSString*)aName;
65
- (void) outlineWillClose: (NSString*)anOutlineName;
67
- (NSOutlineView*) outlineView;