xref: /haiku/src/apps/aboutsystem/HyperTextActions.h (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
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 
13 class URLAction : public HyperTextAction {
14 public:
15 								URLAction(const BString& url);
16 	virtual						~URLAction();
17 
18 	virtual	void				Clicked(HyperTextView* view, BPoint where,
19 									BMessage* message);
20 private:
21 			BString				fURL;
22 };
23 
24 
25 class OpenFileAction : public HyperTextAction {
26 public:
27 								OpenFileAction(const BString& file);
28 	virtual						~OpenFileAction();
29 
30 	virtual	void				Clicked(HyperTextView* view, BPoint where,
31 									BMessage* message);
32 private:
33 			BString				fFile;
34 };
35 
36 
37 #endif	// HYPER_TEXT_ACTIONS_H
38