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