SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / okular / generators / dvi / dviRenderer_dr.cpp
blob55fc2739719cd3b41e68eb0ee4eec407d186a0ce
1 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*-
2 //
3 // Extracted from:
4 // Class: documentRenderer
5 //
6 // Abstract Widget for displaying document types
7 // Needs to be implemented from the actual parts
8 // using kviewshell
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);
22 #endif
24 if (!page.isValid())
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())
38 return *it;
39 else
40 return Anchor();
44 PageNumber dviRenderer::totalPages() const
46 PageNumber temp = numPages;
47 return temp;