/[cvs]/api/Classes/Html/Link.cpp
ViewVC logotype

Annotation of /api/Classes/Html/Link.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (vendor branch)
Sun Jul 1 20:47:58 2001 UTC (22 years, 11 months ago) by bearsoft
Branch: lazy, MAIN
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
First import

1 bearsoft 1.1 #include "Link.h"
2     #include "../System/System.h"
3     #include "../System/SystemDefine.h"
4     #include "../Array/ObjectArray.h"
5    
6     /*
7     <a href="http://www.fukt.hk-r.se/~bearsoft/tmb/moose1998.html">
8     Productions 1998</a>
9     */
10    
11     Link::Link()
12     {
13     filePath = new String();
14     info = new String();
15     data = new String();
16     picturePath = new String();
17     }
18    
19     Link::~Link()
20     {
21     if (filePath != null)
22     {
23     delete filePath;
24     }
25    
26     if (info != null)
27     {
28     delete info;
29     }
30    
31     if (data != null)
32     {
33     delete data;
34     }
35    
36     if (picturePath != null)
37     {
38     delete picturePath;
39     }
40     }
41    
42     //<a href="tmb/moose1998.html">Productions 1998</a>
43    
44     void Link::create()
45     {
46     String startData="<a href=";
47    
48     if (picturePath->isNull())
49     {
50     data->setString(startData + filePath + ">" + info + "</a>");
51     }
52     else
53     {
54     //<img src="pictures/1.png"
55     //border=0 alt="Lazy Games">
56    
57     data->setString(startData + filePath + "> <img src=" + picturePath + " border=0 alt=" + info + "></a>");
58     // System::println(data);
59     }
60    
61     }
62    

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26