|
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 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 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 |
|
|---|
| 34 |
gchar *m_Uri; |
|---|
| 35 |
}; |
|---|
| 36 |
} |
|---|
| 37 |
|
|---|
| 38 |
#endif // !__DOCUMENT_LINK_URI_H__ |
|---|