1 /***************************************************************************
2 * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
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 ***************************************************************************/
14 #include "document_p.h"
16 using namespace Okular
;
18 ViewPrivate::ViewPrivate()
23 ViewPrivate::~ViewPrivate()
28 View::View( const QString
&name
)
29 : d_ptr( new ViewPrivate() )
36 if ( d_ptr
->document
)
38 d_ptr
->document
->m_views
.remove( this );
44 Document
* View::viewDocument() const
46 return d_ptr
->document
? d_ptr
->document
->m_parent
: 0;
49 QString
View::name() const
54 bool View::supportsCapability( View::ViewCapability capability
) const
56 Q_UNUSED( capability
)
60 View::CapabilityFlags
View::capabilityFlags( View::ViewCapability capability
) const
62 Q_UNUSED( capability
)
66 QVariant
View::capability( View::ViewCapability capability
) const
68 Q_UNUSED( capability
)
72 void View::setCapability( View::ViewCapability capability
, const QVariant
&option
)
74 Q_UNUSED( capability
)