2 * This file is part of Maemo 5 Office UI for KOffice
4 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
6 * Contact: Lassi Nieminen <lassniem@gmail.com>
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 #ifndef OFFICEINTERFACE_H
26 #define OFFICEINTERFACE_H
30 #include <QStringList>
36 virtual ~OfficeInterface() {}
38 // This is used to give information about the currently active doc to the plugin
39 // 0 if there is no document open
40 virtual void setDocument(void *doc) = 0;
42 // Asks the plugin to create it's view for the main program to use
43 virtual QWidget *view() = 0;
45 // Should return the name of the plugin
46 virtual QString pluginName() = 0;
48 // Should return list of document types in presence of which this plugin
49 // should be shown in the menubar.
50 // Possible values : All, presentation, document, spreadsheet
52 // NOTE: this is not actually used yet in the main program and may be extented
54 virtual QStringList pluginSupportTypes() = 0;
57 Q_DECLARE_INTERFACE(OfficeInterface, "com.office.Freoffice.OfficeInterface/1.0")