Now saves using KwKWorshipFilter instead of KwDocument
[kworship.git] / kworship / KwExportFilter.cpp
blobdcffdb9047250c9eb5f44d1c401ba98d27cb0c1f
1 /***************************************************************************
2 * This file is part of KWorship. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
4 * *
5 * KWorship is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * KWorship is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with KWorship. If not, write to the Free Software Foundation, *
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
20 /**
21 * @file KwExportFilter.cpp
22 * @brief Export file filter.
23 * @author James Hogan <james@albanarts.com>
26 #include "KwExportFilter.h"
29 * Limitation Constructors + destructor
32 /// Default constructor.
33 KwExportFilter::Limitation::Limitation()
37 /// Destructor.
38 KwExportFilter::Limitation::~Limitation()
43 * Limitations Constructors + destructor
46 /// Default constructor.
47 KwExportFilter::Limitations::Limitations()
48 : m_limitations()
52 /// Destructor.
53 KwExportFilter::Limitations::~Limitations()
58 * Constructors + destructor
61 /// Primary constructor.
62 KwExportFilter::KwExportFilter()
63 : KwFilter()
64 , m_exportMimeTypes()
68 /// Destructor.
69 KwExportFilter::~KwExportFilter()
74 * Main interface
77 /// Obtain information about any data that can not be saved.
78 void KwExportFilter::saveLimitations(KwDocument* doc, const QString& mimeType, Limitations* o_limitations)
80 v_saveLimitations(doc, mimeType, o_limitations);
84 * Accessors
87 /// Get a list of export mime types.
88 QStringList KwExportFilter::exportMimeTypes() const
90 return m_exportMimeTypes;