compile
[kdegraphics.git] / okular / core / view.cpp
blob2c7c4ba591c25dfd014d22e54c028f05d3f78694
1 /***************************************************************************
2 * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
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 ***************************************************************************/
10 #include "view.h"
11 #include "view_p.h"
13 // local includes
14 #include "document_p.h"
16 using namespace Okular;
18 ViewPrivate::ViewPrivate()
19 : document( 0 )
23 ViewPrivate::~ViewPrivate()
28 View::View( const QString &name )
29 : d_ptr( new ViewPrivate() )
31 d_ptr->name = name;
34 View::~View()
36 if ( d_ptr->document )
38 d_ptr->document->m_views.remove( this );
41 delete d_ptr;
44 Document* View::viewDocument() const
46 return d_ptr->document ? d_ptr->document->m_parent : 0;
49 QString View::name() const
51 return d_ptr->name;
54 bool View::supportsCapability( View::ViewCapability capability ) const
56 Q_UNUSED( capability )
57 return false;
60 View::CapabilityFlags View::capabilityFlags( View::ViewCapability capability ) const
62 Q_UNUSED( capability )
63 return 0;
66 QVariant View::capability( View::ViewCapability capability ) const
68 Q_UNUSED( capability )
69 return QVariant();
72 void View::setCapability( View::ViewCapability capability, const QVariant &option )
74 Q_UNUSED( capability )
75 Q_UNUSED( option )