root/trunk/src/DocumentLinkUri.h

Revision 196, 1.3 kB (checked in by jordi, 2 years ago)

The old DocumentLink? class is now the IDocumentLink interface and only handles the link's rectangle. The functionality of the old DocumentLink? class is now inside the IDocumentLink derived DocumentLinkGoto? class.

The links are now created inside PDFDocument::createDocumentLink function and can be of DocumentLinkGoto? for internal references or DocumentLinkUri? for internet addresses (not yet implemented).

Line 
1 // ePDFView - A lightweight PDF Viewer.
2 // Copyright (C) 2006 Emma's Software.
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18 #if !defined (__DOCUMENT_LINK_URI_H__)
19 #define __DOCUMENT_LINK_URI_H__
20
21 namespace ePDFView
22 {
23     class DocumentLinkUri: public IDocumentLink
24     {
25         public:
26             DocumentLinkUri (gdouble x1, gdouble y1, gdouble x2, gdouble y2,
27                              const gchar *uri);
28             virtual ~DocumentLinkUri (void);
29
30             virtual void activate (IDocument *document);
31
32         protected:
33             /// The URI to go when the link is activated.
34             gchar *m_Uri;
35     };
36 }
37
38 #endif // !__DOCUMENT_LINK_URI_H__
Note: See TracBrowser for help on using the browser.