ftp.nice.ch/peanuts/GeneralData/Documents/adobe/DPS.Purple.ImportAdv.tar.gz#/NX_ImportAdv/DocView.h

This is DocView.h in view mode; [Download] [Up]

/*
 * (a)  (C) 1990 by Adobe Systems Incorporated. All rights reserved.
 *
 * (b)  If this Sample Code is distributed as part of the Display PostScript
 *	System Software Development Kit from Adobe Systems Incorporated,
 *	then this copy is designated as Development Software and its use is
 *	subject to the terms of the License Agreement attached to such Kit.
 *
 * (c)  If this Sample Code is distributed independently, then the following
 *	terms apply:
 *
 * (d)  This file may be freely copied and redistributed as long as:
 *	1) Parts (a), (d), (e) and (f) continue to be included in the file,
 *	2) If the file has been modified in any way, a notice of such
 *      modification is conspicuously indicated.
 *
 * (e)  PostScript, Display PostScript, and Adobe are registered trademarks of
 *	Adobe Systems Incorporated.
 * 
 * (f) THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO
 *	CHANGE WITHOUT NOTICE, AND SHOULD NOT BE CONSTRUED
 *	AS A COMMITMENT BY ADOBE SYSTEMS INCORPORATED.
 *	ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY
 *	OR LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO
 *	WARRANTY OF ANY KIND (EXPRESS, IMPLIED OR STATUTORY)
 *	WITH RESPECT TO THIS INFORMATION, AND EXPRESSLY
 *	DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY, 
 *	FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT
 *	OF THIRD PARTY RIGHTS.
 */

/*
 *	DocView.h
 *
 *	This class allows the drawing view to be positioned in the center
 *	of the clip view and a border and drop shadow placed around it
 *	when the drawing view is scaled to be smaller than the clip view.
 *	This class also handles the zooming of the drawing view.
 *
 *	Version:	2.0
 *	Author:	Ken Fromm
 *	History:
 *			03-17-91		Added this comment.
 */

#import <appkit/View.h>

#define  MINSCALE	0.25
#define  MAXSCALE	40.0
#define  INCSCALE	2.0

#define  OFFSET		8
#define  LINEWIDTH	6

@interface DocView : View
{
	id		drawviewId;		/* the drawing view */
	
	float		scale;			/* the scale of the drawing view */
}

- setDrawView:subView;
- drawView;

- setScale:(float) value;
- (float) scale;

- getDrawViewInRect:(const NXRect *) aRect  withDrop:(BOOL) drop;

- sizeView:viewId  withScale:(float) newscale;
- scaleView:viewId  withScale:(float) newscale;
- placeView:viewId;

- scaleDrawView:hitView  withEvent:(NXEvent *) event;
- scrollPoint:(const NXPoint *) aPt  inView:hitView  to:(const NXPoint *) windowPt;

- drawSelf:(NXRect *)r :(int) count;

@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.