File indexing completed on 2024-05-12 16:37:15

0001 /* This file is part of the KDE project
0002  * Copyright (C) 2006 Thomas Zander <zander@kde.org>
0003  *
0004  * This library is free software; you can redistribute it and/or
0005  * modify it under the terms of the GNU Library General Public
0006  * License as published by the Free Software Foundation; either
0007  * version 2 of the License, or (at your option) any later version.
0008  *
0009  * This library is distributed in the hope that it will be useful,
0010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012  * Library General Public License for more details.
0013  *
0014  * You should have received a copy of the GNU Library General Public License
0015  * along with this library; see the file COPYING.LIB.  If not, write to
0016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0017  * Boston, MA 02110-1301, USA.
0018  */
0019 
0020 #include "KWViewModePreview.h"
0021 
0022 // #include "KWView.h"
0023 // #include "KWDocument.h"
0024 // #include "KWTextFrameSet.h"
0025 // #include "KWFrameSet.h"
0026 // #include "KWTableFrameSet.h"
0027 // #include "KWPageManager.h"
0028 // #include "KWPage.h"
0029 // #include "KWFrameViewManager.h"
0030 // #include "KWFrameView.h"
0031 // #include "KWGUI.h"
0032 
0033 
0034 KWViewModePreview::KWViewModePreview()
0035         : m_pagesPerRow(3)
0036 {
0037 }
0038 
0039 QSizeF KWViewModePreview::contentsSize() const
0040 {
0041     return QSizeF();
0042 }
0043 
0044 QPointF KWViewModePreview::documentToView(const QPointF & point, KoViewConverter *viewConverter) const
0045 {
0046     Q_UNUSED(point);
0047     Q_UNUSED(viewConverter);
0048     return QPointF();
0049 }
0050 
0051 QPointF KWViewModePreview::viewToDocument(const QPointF & point, KoViewConverter *viewConverter) const
0052 {
0053     Q_UNUSED(point);
0054     Q_UNUSED(viewConverter);
0055     return QPointF();
0056 }
0057 
0058 void KWViewModePreview::updatePageCache()
0059 {
0060     // TODO
0061 }
0062 
0063 QVector<KWViewMode::ViewMap> KWViewModePreview::mapExposedRects(const QRectF &viewRect, KoViewConverter *viewConverter) const
0064 {
0065     Q_UNUSED(viewRect);
0066     Q_UNUSED(viewConverter);
0067     return QVector<KWViewMode::ViewMap>();
0068 }
0069 
0070 void KWViewModePreview::setGap(int gap)
0071 {
0072     Q_UNUSED(gap);
0073     // TODO
0074 }