blob: 42d3dd521d9b13813c1a02a4070a2465487967dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
// ===========================================================================
// GSSSample.h
// ©1997 Massachusetts Institute of Technology, All Rights Reserved
// Based on <PP StarterApp>.h by Metrowerks Inc.
// Modification by meeroh@mit.edu
// Started 2/28/97
// ===========================================================================
#pragma once
#include <LApplication.h>
#include "gss.h"
#include "CGSSDocument.h"
class CGSSSample:
public LDocApplication
{
public:
CGSSSample(); // constructor registers all PPobs
virtual ~CGSSSample(); // stub destructor
// this overriding function performs application functions
virtual Boolean ObeyCommand(CommandT inCommand, void* ioParam);
// this overriding function returns the status of menu items
virtual void FindCommandStatus(CommandT inCommand,
Boolean &outEnabled, Boolean &outUsesMark,
Char16 &outMark, Str255 outName);
// this overriding function is called on startup
// it always creates a new document
virtual void StartUp ();
// this overriding function creates a new document
virtual LModelObject* MakeNewDocument ();
// this overriding function handles incoming AppleEvents
virtual void HandleAppleEvent (
const AppleEvent& inAppleEvent,
AppleEvent& outAEReply,
AEDesc& outResult,
long inAENumber);
private:
CGSSDocument* mGSSDocument;
};
|