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

« back to all changes in this revision

Viewing changes to kword/KWordDocIface.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
/* This file is part of the KDE project
 
2
   Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
 
3
 
 
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
   License as published by the Free Software Foundation; either
 
7
   version 2 of the License, or (at your option) any later version.
 
8
 
 
9
   This library is distributed in the hope that it will be useful,
 
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
   Library General Public License for more details.
 
13
 
 
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
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
   Boston, MA 02111-1307, USA.
 
18
*/
 
19
 
 
20
#ifndef KWORD_DOC_IFACE_H
 
21
#define KWORD_DOC_IFACE_H
 
22
 
 
23
#include <KoDocumentIface.h>
 
24
#include <dcopref.h>
 
25
 
 
26
#include <qstring.h>
 
27
#include <qstringlist.h>
 
28
class KWDocument;
 
29
 
 
30
class KWordDocIface : public KoDocumentIface
 
31
{
 
32
    K_DCOP
 
33
public:
 
34
    KWordDocIface(  KWDocument *doc_ );
 
35
 
 
36
k_dcop:
 
37
    virtual DCOPRef textFrameSet( int num );
 
38
    virtual DCOPRef frameSet( int num );
 
39
 
 
40
    virtual int numFrameSets()const;
 
41
    virtual unsigned int nbColumns()const;
 
42
 
 
43
    //paper
 
44
    virtual double ptPageTop( int pgNum )const;
 
45
 
 
46
    //configure
 
47
    virtual QString unitName()const;
 
48
 
 
49
    virtual bool showRuler() const;
 
50
    virtual bool showdocStruct() const;
 
51
    virtual bool viewFrameBorders() const;
 
52
 
 
53
    virtual bool viewFormattingChars() const;
 
54
    virtual void setViewFormattingChars(bool _b);
 
55
 
 
56
    virtual void setHeaderVisible( bool );
 
57
    virtual void setFooterVisible( bool );
 
58
 
 
59
    virtual bool isHeaderVisible() const;
 
60
    virtual bool isFooterVisible() const;
 
61
 
 
62
    virtual void setViewFrameBorders( bool b );
 
63
    virtual void setShowRuler(bool b);
 
64
    virtual void setShowDocStruct(bool _b);
 
65
 
 
66
    virtual void recalcAllVariables();
 
67
    virtual void recalcVariables(int _var);
 
68
    virtual void recalcVariables(const QString &varName);
 
69
    bool setCustomVariableValue(const QString & varname, const QString & value);
 
70
    virtual QString customVariableValue(const QString & varname)const;
 
71
 
 
72
    virtual void setStartingPage(int nb);
 
73
    virtual int startingPage()const;
 
74
 
 
75
    virtual void setDisplayLink(bool b);
 
76
    virtual bool displayLink()const;
 
77
 
 
78
    virtual bool backgroundSpellCheckEnabled() const;
 
79
    virtual void enableBackgroundSpellCheck( bool b );
 
80
 
 
81
    virtual void startBackgroundSpellCheck();
 
82
    virtual void reactivateBgSpellChecking();
 
83
 
 
84
    virtual void setConfigUpperCase( bool _uc );
 
85
    virtual void setConfigUpperUpper( bool _uu );
 
86
    virtual void setConfigAdvancedAutocorrect( bool _aa );
 
87
    virtual void setConfigAutoDetectUrl(bool _au);
 
88
    virtual void setConfigIgnoreDoubleSpace( bool _ids);
 
89
 
 
90
    virtual bool configUpperCase() const;
 
91
    virtual bool configUpperUpper() const;
 
92
    virtual bool configAdvancedAutoCorrect() const;
 
93
    virtual bool configAutoDetectUrl() const;
 
94
    virtual bool configIgnoreDoubleSpace() const;
 
95
 
 
96
    virtual void setConfigRemoveSpaceBeginEndLine( bool _space);
 
97
    virtual void setConfigUseBulletStyle( bool _ubs);
 
98
 
 
99
    virtual bool configRemoveSpaceBeginEndLine() const;
 
100
    virtual bool configUseBulletSyle() const;
 
101
 
 
102
    virtual bool configAutoChangeFormat() const;
 
103
    virtual void setConfigAutoChangeFormat( bool _auto);
 
104
 
 
105
    virtual bool configAutoReplaceNumber() const;
 
106
    virtual void setConfigAutoReplaceNumber( bool b );
 
107
 
 
108
    virtual bool showStatusBar() const;
 
109
    virtual void setShowStatusBar( bool _status );
 
110
 
 
111
    void setConfigAutoNumberStyle( bool b );
 
112
    bool configAutoNumberStyle() const;
 
113
 
 
114
    void setConfigCompletion( bool b );
 
115
    bool configCompletion() const;
 
116
 
 
117
    void setConfigAppendSpace( bool b);
 
118
    bool configAppendSpace() const;
 
119
 
 
120
    void setConfigMinWordLength( uint val );
 
121
    uint configMinWordLength() const;
 
122
 
 
123
    void setConfigNbMaxCompletionWord( uint val );
 
124
    uint configNbMaxCompletionWord() const;
 
125
 
 
126
    void setConfigAddCompletionWord( bool b );
 
127
    bool configAddCompletionWord() const;
 
128
 
 
129
    bool configIncludeTwoUpperUpperLetterException() const;
 
130
    void setConfigIncludeTwoUpperUpperLetterException( bool b);
 
131
 
 
132
    bool configIncludeAbbreviation() const;
 
133
    void setConfigIncludeAbbreviation( bool b);
 
134
 
 
135
    bool displayComment()const;
 
136
    void setDisplayComment( bool b);
 
137
 
 
138
    bool configAutoSuperScript() const;
 
139
    void setConfigAutoSuperScript( bool b);
 
140
 
 
141
    void addIgnoreWordAll( const QString &);
 
142
    void clearIgnoreWordAll( );
 
143
    QStringList spellListIgnoreAll() const;
 
144
 
 
145
    //init/save config
 
146
    virtual void initConfig();
 
147
    virtual void saveConfig();
 
148
    virtual void initUnit();
 
149
 
 
150
    bool showScrollBar()const;
 
151
    void setShowScrollBar( bool _status );
 
152
 
 
153
    double ptTabStopValue() const;
 
154
    void setPtTabStopValue ( double _tabStop );
 
155
 
 
156
    int footNoteSeparatorLineLength() const;
 
157
    void setFootNoteSeparatorLineLength( int _length);
 
158
    void setFootNoteSeparatorLinePosition( const QString &pos);
 
159
    QString footNoteSeparatorLinePosition()const;
 
160
 
 
161
    double footNoteSeparatorLineWidth() const;
 
162
    void setFootNoteSeparatorLineWidth( double _width);
 
163
 
 
164
    void deleteBookMark(const QString &_name);
 
165
    void renameBookMark(const QString &_oldname, const QString &_newName);
 
166
    QStringList listOfBookmarkName()const;
 
167
 
 
168
    bool displayFieldCode()const;
 
169
    void setDisplayFieldCode( bool b);
 
170
    QString configAutoFormatLanguage( )const;
 
171
 
 
172
    bool configCapitalizeNameOfDays() const;
 
173
    void setConfigCapitalizeNameOfDays( bool b);
 
174
 
 
175
private:
 
176
    KWDocument *doc;
 
177
 
 
178
};
 
179
 
 
180
#endif