1
1
/* This file is part of the KDE project
2
2
Copyright (C) 2000 David Faure <faure@kde.org>
4
This program is free software; you can redistribute it and/or
5
modify it under the terms of the GNU General Public
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
6
License as published by the Free Software Foundation; either
7
version 2 of the License, or (at your option) any later version.
7
version 2 of the License.
9
This program is distributed in the hope that it will be useful,
9
This library is distributed in the hope that it will be useful,
10
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
General Public License for more details.
12
Library General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; see the file COPYING. If not, write to
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
16
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
17
Boston, MA 02111-1307, USA.
44
44
KoDocumentIface( KoDocument * doc, const char * name = 0 );
45
45
~KoDocumentIface();
47
// Generate a name for this interface. Automatically used if name=0 is
48
// passed to the constructor
48
* Generate a name for this interface. Automatically used if name=0 is
49
* passed to the constructor
49
51
static QCString newIfaceName();
60
* Opens a document stored in @p url
62
void openURL( QString url );
65
* @return TRUE is the document has been modified
70
* @return the number of views this document is displayed in
75
* @return a DCOP reference (@ref DCOPRef) to the view with index @p idx
60
77
DCOPRef view( int idx );
63
82
DCOPRef action( const QCString &name );
84
* @return list of actions
64
86
QCStringList actions();
88
* @return a map of (action name, DCOP reference)
65
90
QMap<QCString,DCOPRef> actionMap();
93
* Saves the document under a new name
67
95
void saveAs( const QString & url );
68
96
void setOutputMimeType( const QCString & mimetype );
98
QString documentInfoAuthorName() const;
99
QString documentInfoEmail() const;
100
QString documentInfoCompanyName() const;
101
QString documentInfoTitle() const;
102
QString documentInfoAbstract() const;
103
QString documentInfoTelephone() const;
104
QString documentInfoFax() const;
105
QString documentInfoCountry() const;
106
QString documentInfoPostalCode() const;
107
QString documentInfoCity() const;
108
QString documentInfoStreet() const;
109
QString documentInfoInitial() const;
110
void setDocumentInfoAuthorName(const QString & text);
111
void setDocumentInfoEmail(const QString &text);
112
void setDocumentInfoCompanyName(const QString &text);
113
void setDocumentInfoTelephone(const QString &text);
114
void setDocumentInfoFax(const QString &text);
115
void setDocumentInfoCountry(const QString &text);
116
void setDocumentInfoTitle(const QString & text);
117
void setDocumentInfoPostalCode(const QString &text);
118
void setDocumentInfoCity(const QString & text);
119
void setDocumentInfoStreet(const QString &text);
120
void setDocumentInfoAbstract(const QString &text);
121
void setDocumentInfoInitial(const QString & text);
124
virtual QCStringList functionsDynamic();
125
virtual bool processDynamic( const QCString &fun, const QByteArray &data,
126
QCString& replyType, QByteArray &replyData );
70
129
KoDocument * m_pDoc;
71
130
KDCOPActionProxy *m_actionProxy;