summaryrefslogtreecommitdiffstats
path: root/src/translator.h
blob: 55b6eaf207a7511a560e85d9c9a0f49565552008 (plain)
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
/******************************************************************************
 *
 * $Id$
 *
 * Copyright (C) 1997-1999 by Dimitri van Heesch.
 *
 * Permission to use, copy, modify, and distribute this software and its
 * documentation under the terms of the GNU General Public License is hereby 
 * granted. No representations are made about the suitability of this software 
 * for any purpose. It is provided "as is" without express or implied warranty.
 * See the GNU General Public License for more details.
 *
 * All output generated with Doxygen is not covered by this license.
 *
 */

#ifndef TRANSLATOR_H
#define TRANSLATOR_H

#include <qstring.h>

class Translator
{
  public:
    virtual QString latexBabelPackage()
    { return ""; }
    virtual QString trInherits()
    { return "Inherits"; }
    virtual QString trAnd()
    { return "and"; }
    virtual QString trInheritedBy()
    { return "Inherited By"; }
    virtual QString trRelatedFunctions()
    { return "Related Functions"; }
    virtual QString trRelatedSubscript()
    { return "(Note that these are not member functions.)"; }
    virtual QString trDetailedDescription()
    { return "Detailed Description"; }
    virtual QString trMemberTypedefDocumentation()
    { return "Member Typedef Documentation"; }
    virtual QString trMemberEnumerationDocumentation()
    { return "Member Enumeration Documentation"; }
    virtual QString trMemberFunctionDocumentation()
    { return "Member Function Documentation"; }
    virtual QString trMemberDataDocumentation()
    { return "Member Data Documentation"; }
    virtual QString trGeneratedFrom(const char *s,bool single)
    { // here s is one of " Class", " Struct" or " Union"
      // single is true implies a single file
      QString result=(QString)"The documentation for this"+s+
                     " was generated from the following file";
      if (single) result+=":"; else result+="s:";
      return result;
    }
    virtual QString trMore()
    { return "More..."; }
    virtual QString trReference()
    { return "Reference"; }
    virtual QString trListOfAllMembers()
    { return "List of all members."; }
    virtual QString trMemberList()
    { return "Member List"; }
    virtual QString trThisIsTheListOfAllMembers()
    { return "This is the complete list of members for"; }
    virtual QString trIncludingInheritedMembers()
    { return "including all inherited members."; }
    virtual QString trGeneratedAutomatically(const char *s)
    { QString result="Generated automatically by Doxygen";
      if (s) result+=(QString)" for "+s;
      result+=" from the source code."; 
      return result;
    }
    virtual QString trEnumName()
    { return "enum name"; }
    virtual QString trEnumValue()
    { return "enum value"; }
    virtual QString trDefinedIn()
    { return "defined in"; }
    virtual QString trIncludeFile()
    { return "Include File"; }
    virtual QString trVerbatimText(const char *f)
    { return (QString)"This is the verbatim text of the "+f+" include file."; }
    
    
    virtual QString trModules()
    { return "Modules"; }
    virtual QString trClassHierarchy()
    { return "Class Hierarchy"; }
    virtual QString trCompoundList()
    { return "Compound List"; }
    virtual QString trFileList()
    { return "File List"; }
    virtual QString trHeaderFiles()
    { return "Header Files"; }
    virtual QString trCompoundMembers()
    { return "Compound Members"; }
    virtual QString trFileMembers()
    { return "File Members"; }
    virtual QString trRelatedPages()
    { return "Related Pages"; }
    virtual QString trExamples()
    { return "Examples"; }
    virtual QString trSearch()
    { return "Search"; }
    
    virtual QString trClassHierarchyDescription()
    { return "This inheritance list is sorted roughly, "
             "but not completely, alphabetically:";
    }
    virtual QString trFileListDescription(bool extractAll)
    {
      QString result="Here is a list of all ";
      if (!extractAll) result+="documented ";
      result+="files with brief descriptions:";
      return result;
    }
    virtual QString trCompoundListDescription()
    { return "Here are the classes, structs and "
             "unions with brief descriptions:"; 
    }
    virtual QString trCompoundMembersDescription(bool extractAll)
    {
      QString result="Here is a list of all ";
      if (!extractAll) result+="documented ";
      result+="class members with links to ";
      if (extractAll) 
        result+="the class documentation for each member:";
      else 
        result+="the classes they belong to:";
      return result;
    }
    virtual QString trFileMembersDescription(bool extractAll)
    {
      QString result="Here is a list of all ";
      if (!extractAll) result+="documented ";
      result+="file members with links to ";
      if (extractAll) 
        result+="the file documentation for each member:";
      else 
        result+="the files they belong to:";
      return result;
    }
    virtual QString trHeaderFilesDescription()
    { return "Here are the header files that make up the API:"; }
    virtual QString trExamplesDescription()
    { return "Here is a list of all examples:"; }
    virtual QString trRelatedPagesDescription()
    { return "Here is a list of all related documentation pages:"; }
    virtual QString trModulesDescription()
    { return "Here is a list of all modules:"; }
    virtual QString trNoDescriptionAvailable()
    { return "No description available"; }
    
    virtual QString trDocumentation()
    { return "Documentation"; }
    virtual QString trModuleIndex()
    { return "Module Index"; }
    virtual QString trHierarchicalIndex()
    { return "Hierarchical Index"; }
    virtual QString trCompoundIndex()
    { return "Compound Index"; }
    virtual QString trFileIndex() 
    { return "File Index"; }
    virtual QString trModuleDocumentation()
    { return "Module Documentation"; }
    virtual QString trClassDocumentation()
    { return "Class Documentation"; }
    virtual QString trFileDocumentation()
    { return "File Documentation"; }
    virtual QString trExampleDocumentation()
    { return "Example Documentation"; }
    virtual QString trPageDocumentation()
    { return "Page Documentation"; }
    virtual QString trReferenceManual()
    { return "Reference Manual"; }
    
    virtual QString trDefines()
    { return "Defines"; }
    virtual QString trFuncProtos()
    { return "Function Prototypes"; }
    virtual QString trTypedefs()
    { return "Typedefs"; }
    virtual QString trEnumerations()
    { return "Enumerations"; }
    virtual QString trFunctions()
    { return "Functions"; }
    virtual QString trVariables()
    { return "Variables"; }
    virtual QString trEnumerationValues()
    { return "Enumeration values"; }
    virtual QString trReimplementedFrom()
    { return "Reimplemented from"; }
    virtual QString trReimplementedIn()
    { return "Reimplemented in"; }
    virtual QString trAuthor()
    { return "Author"; }
    virtual QString trDefineDocumentation()
    { return "Define Documentation"; }
    virtual QString trFunctionPrototypeDocumentation()
    { return "Function Prototype Documentation"; }
    virtual QString trTypedefDocumentation()
    { return "Typedef Documentation"; }
    virtual QString trEnumerationTypeDocumentation()
    { return "Enumeration Type Documentation"; }
    virtual QString trEnumerationValueDocumentation()
    { return "Enumeration Value Documentation"; }
    virtual QString trFunctionDocumentation()
    { return "Function Documentation"; }
    virtual QString trVariableDocumentation()
    { return "Variable Documentation"; }
    virtual QString trCompounds()
    { return "Compounds"; }
    virtual QString trFiles()
    { return "Files"; }

    virtual QString trGeneratedAt(const char *date,const char *projName)
    { 
      QString result=(QString)"Generated at "+date;
      if (projName) result+=(QString)" for "+projName;
      result+=(QString)" by";
      return result;
    }
    virtual QString trWrittenBy()
    {
      return "written by";
    }

    virtual QString trClassDiagram(const char *clName)
    {
      return (QString)"Class diagram for "+clName;
    }
    
    virtual QString trForInternalUseOnly()
    { return "For internal use only."; }
    virtual QString trReimplementedForInternalReasons()
    { return "Reimplemented for internal reasons; the API is not affected."; }
    virtual QString trWarning()
    { return "Warning"; }
    virtual QString trBugsAndLimitations()
    { return "Bugs and limitations"; }
    virtual QString trVersion()
    { return "Version"; }
    virtual QString trDate()
    { return "Date"; }
    virtual QString trAuthors()
    { return "Author(s)"; }
    virtual QString trReturns()
    { return "Returns"; }
    virtual QString trSeeAlso()
    { return "See also"; }
    virtual QString trParameters()
    { return "Parameters"; }
    virtual QString trExceptions()
    { return "Exceptions"; }
    virtual QString trGeneratedBy()
    { return "Generated by"; }

    // new since 0.49-990307
    
    virtual QString trNamespaces()
    { return "Namespaces"; }
    virtual QString trNamespaceList()
    { return "Namespace List"; }
    virtual QString trNamespaceListDescription(bool extractAll)
    {
      QString result="Here is a list of all ";
      if (!extractAll) result+="documented ";
      result+="namespaces with brief descriptions:";
      return result;
    }
    virtual QString trFriends()
    { return "Friends"; }
    
    // new since 0.49-990405
    
    virtual QString trRelatedFunctionDocumentation()
    { return "Friends And Related Function Documentation"; }
};

#endif