~ubuntu-branches/ubuntu/edgy/koffice/edgy-updates

« back to all changes in this revision

Viewing changes to lib/kofficecore/KoDocumentIface.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040509113300-xi5t1z4yxe7n03x7
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* This file is part of the KDE project
2
2
   Copyright (C) 2000 David Faure <faure@kde.org>
3
3
 
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.
8
8
 
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.
13
13
 
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.
18
18
*/
44
44
    KoDocumentIface( KoDocument * doc, const char * name = 0 );
45
45
    ~KoDocumentIface();
46
46
 
47
 
    // Generate a name for this interface. Automatically used if name=0 is
48
 
    // passed to the constructor
 
47
    /**
 
48
     * Generate a name for this interface. Automatically used if name=0 is
 
49
     * passed to the constructor
 
50
     */
49
51
    static QCString newIfaceName();
50
52
 
51
53
k_dcop:
54
56
     */
55
57
    QString url();
56
58
 
 
59
    /**
 
60
     * Opens a document stored in @p url
 
61
     */
 
62
    void openURL( QString url );
 
63
 
 
64
    /**
 
65
     * @return TRUE is the document has been modified
 
66
     */
57
67
    bool isModified();
58
68
 
 
69
    /**
 
70
     * @return the number of views this document is displayed in
 
71
     */
59
72
    int viewCount();
 
73
 
 
74
    /**
 
75
     * @return a DCOP reference (@ref DCOPRef) to the view with index @p idx
 
76
     */
60
77
    DCOPRef view( int idx );
61
78
 
62
 
    // DCOP-action proxy
 
79
    /**
 
80
     * DCOP-action proxy
 
81
     */
63
82
    DCOPRef action( const QCString &name );
 
83
    /**
 
84
     * @return list of actions
 
85
     */
64
86
    QCStringList actions();
 
87
    /**
 
88
     * @return a map of (action name, DCOP reference)
 
89
     */
65
90
    QMap<QCString,DCOPRef> actionMap();
66
91
 
 
92
    /**
 
93
     * Saves the document under a new name
 
94
     */
67
95
    void saveAs( const QString & url );
68
96
    void setOutputMimeType( const QCString & mimetype );
 
97
 
 
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);
 
122
 
 
123
public:
 
124
    virtual QCStringList functionsDynamic();
 
125
    virtual bool processDynamic( const QCString &fun, const QByteArray &data,
 
126
                                 QCString& replyType, QByteArray &replyData );
 
127
 
69
128
protected:
70
129
    KoDocument * m_pDoc;
71
130
    KDCOPActionProxy *m_actionProxy;