1 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*-
4 // Class: documentRenderer
6 // Abstract Widget for displaying document types
7 // Needs to be implemented from the actual parts
9 // Part of KViewshell - A generic interface for document viewers.
11 // (C) 2004-2005 Wilfried Huss
12 // (C) 2004-2006 Stefan Kebekus.
13 // Distributed under the GPL.
15 #include "dviRenderer.h"
17 SimplePageSize
dviRenderer::sizeOfPage(const PageNumber
& page
)
19 #if !defined(QT_NO_THREAD)
20 // Wait for all access to this DocumentRenderer to finish
21 //QMutexLocker locker(&mutex);
25 return SimplePageSize();
26 if (page
> totalPages())
27 return SimplePageSize();
28 if (page
> pageSizes
.size())
29 return SimplePageSize();
31 return pageSizes
[page
-1];
34 Anchor
dviRenderer::findAnchor(const QString
&locallink
)
36 QMap
<QString
,Anchor
>::Iterator it
= anchorList
.find(locallink
);
37 if (it
!= anchorList
.end())
44 PageNumber
dviRenderer::totalPages() const
46 PageNumber temp
= numPages
;