1/*
2 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT license.
4 */
5#ifndef HYPER_TEXT_ACTIONS_H
6#define HYPER_TEXT_ACTIONS_H
7
8#include <String.h>
9
10#include "HyperTextView.h"
11
12
13class URLAction : public HyperTextAction {
14public:
15								URLAction(const BString& url);
16	virtual						~URLAction();
17
18	virtual	void				Clicked(HyperTextView* view, BPoint where,
19									BMessage* message);
20private:
21			BString				fURL;
22};
23
24
25class OpenFileAction : public HyperTextAction {
26public:
27								OpenFileAction(const BString& file);
28	virtual						~OpenFileAction();
29
30	virtual	void				Clicked(HyperTextView* view, BPoint where,
31									BMessage* message);
32private:
33			BString				fFile;
34};
35
36
37#endif	// HYPER_TEXT_ACTIONS_H
38