File: sourcelanguage_8h-source.html

package info (click to toggle)
inti-sourceview 0.6.0-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,220 kB
  • ctags: 967
  • sloc: sh: 64,518; cpp: 3,137; makefile: 142
file content (242 lines) | stat: -rw-r--r-- 17,049 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  <title>Main Page - Header</title>
  <link href="inti.css" rel="stylesheet" type="text/css">
  <meta name="description" content="Reference Manual">
  <meta name="author" content="The Inti Development Team">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(231, 232, 231);"
 link="#000099" vlink="#990099" alink="#000099">
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
  <tbody>
    <tr
 style="color: rgb(255, 255, 204); font-family: helvetica,arial,sans-serif; font-weight: bold;">
      <td
 style="vertical-align: top; background-color: rgb(0, 55, 85); text-align: center;">
      <font size="+1">Reference Manual</font> </td>
    </tr>
    <tr>
      <td valign="top" height="116" background="../images/top-fade.png"
 align="center"><img src="../images/inti-logo.png" alt="Inti Logo"> <br>
      </td>
    </tr>
  </tbody>
</table>
</body>
</html>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>sourcelanguage.h</h1><a href="sourcelanguage_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*  Inti-SourceView: Integrated Foundation Classes</span>
00002 <span class="comment"> *  Copyright (C) 2003 The Inti Development Team.</span>
00003 <span class="comment"> *</span>
00004 <span class="comment"> *  This program is free software; you can redistribute it and/or modify</span>
00005 <span class="comment"> *  it under the terms of the GNU General Public License as published by</span>
00006 <span class="comment"> *  the Free Software Foundation; either version 2 of the License, or</span>
00007 <span class="comment"> *  (at your option) any later version.</span>
00008 <span class="comment"> *</span>
00009 <span class="comment"> *  This program is distributed in the hope that it will be useful,</span>
00010 <span class="comment"> *  but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00011 <span class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
00012 <span class="comment"> *  GNU Library General Public License for more details.</span>
00013 <span class="comment"> *</span>
00014 <span class="comment"> *  You should have received a copy of the GNU Library General Public License</span>
00015 <span class="comment"> *  along with this program; if not, write to the Free Software</span>
00016 <span class="comment"> *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
00017 <span class="comment"> */</span>
00018 
00024 
00025 <span class="preprocessor">#ifndef INTI_GTK_SOURCE_LANGUAGE_H</span>
00026 <span class="preprocessor"></span><span class="preprocessor">#define INTI_GTK_SOURCE_LANGUAGE_H</span>
00027 <span class="preprocessor"></span>
00028 <span class="preprocessor">#ifndef INTI_G_OBJECT_H</span>
00029 <span class="preprocessor"></span><span class="preprocessor">#include &lt;inti/glib/object.h&gt;</span>
00030 <span class="preprocessor">#endif</span>
00031 <span class="preprocessor"></span>
00032 <span class="preprocessor">#ifndef INTI_GTK_SOURCE_TAG_H</span>
00033 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="sourcetagstyle_8h.html">inti/gtk-sourceview/sourcetagstyle.h</a>&gt;</span>
00034 <span class="preprocessor">#endif</span>
00035 <span class="preprocessor"></span>
00036 <span class="preprocessor">#ifndef __GTK_SOURCE_LANGUAGE_H__</span>
00037 <span class="preprocessor"></span><span class="preprocessor">#include &lt;gtksourceview/gtksourcelanguage.h&gt;</span>
00038 <span class="preprocessor">#endif</span>
00039 <span class="preprocessor"></span>
00040 <span class="preprocessor">#ifndef __GTK_SOURCE_LANGUAGES_MANAGER_H__</span>
00041 <span class="preprocessor"></span><span class="preprocessor">#include &lt;gtksourceview/gtksourcelanguagesmanager.h&gt;</span>
00042 <span class="preprocessor">#endif</span>
00043 <span class="preprocessor"></span>
00044 <span class="preprocessor">#ifndef _CPP_VECTOR</span>
00045 <span class="preprocessor"></span><span class="preprocessor">#include &lt;vector&gt;</span>
00046 <span class="preprocessor">#endif</span>
00047 <span class="preprocessor"></span>
00048 <span class="keyword">namespace </span>Inti {
00049 
00050 <span class="keyword">namespace </span>Gtk {
00051 
00052 <span class="keyword">class </span>SourceLanguageClass;
00053 <span class="keyword">class </span>SourceLanguagesManagerClass;
00054 <span class="keyword">class </span>SourceStyleScheme;
00055 <span class="keyword">class </span>TextTag;
00056 
00061 
<a name="l00062"></a><a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html">00062</a> <span class="keyword">class </span><a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html">SourceLanguage</a> : <span class="keyword">public</span> G::Object
00063 {
00064         <span class="keyword">friend</span> <span class="keyword">class </span>G::Object;
00065         <span class="keyword">friend</span> <span class="keyword">class </span>SourceLanguageClass;
00066 
00067         <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z13_0">SourceLanguage</a>(<span class="keyword">const</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html">SourceLanguage</a>&amp;);
00068         <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html">SourceLanguage</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html">SourceLanguage</a>&amp;);
00069 
00070 <span class="keyword">protected</span>:
00073 
00074         <span class="keyword">explicit</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z13_0">SourceLanguage</a>(GtkSourceLanguage *language, <span class="keywordtype">bool</span> reference = <span class="keyword">false</span>);
00081 
00085 
00086         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z14_0">on_tag_style_changed</a>(<span class="keyword">const</span> String&amp; name);
00089 
00091 <span class="comment">//  Signals</span>
00092 
00093         <span class="keyword">typedef</span> G::Signal1&lt;void, const char*&gt; TagStyleChangedSignalType;
00094         <span class="keyword">typedef</span> G::SignalProxy&lt;TypeInstance, TagStyleChangedSignalType&gt; TagStyleChangedSignalProxy;
00095         <span class="keyword">static</span> <span class="keyword">const</span> TagStyleChangedSignalType tag_style_changed_signal;
00096 
00097 <span class="keyword">public</span>:
00100 
00101         <span class="keyword">virtual</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z15_0">~SourceLanguage</a>();
00103 
00107 
<a name="l00108"></a><a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z16_0">00108</a>         GtkSourceLanguage* <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z16_0">gtk_source_language</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (GtkSourceLanguage*)instance; }
00110 
00111         GtkSourceLanguageClass* <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z16_1">gtk_source_language_class</a>() <span class="keyword">const</span>;
00113 
00114         <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z16_2">operator GtkSourceLanguage* </a>() <span class="keyword">const</span>;
00116 
00117         <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z16_3">is_gtk_source_language</a>() <span class="keyword">const</span>;
00119 
00123 
00124         String <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z17_0">get_id</a>() <span class="keyword">const</span>;
00126 
00127         String <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z17_1">get_name</a>() <span class="keyword">const</span>;
00130 
00131         String <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z17_2">get_section</a>() <span class="keyword">const</span>;
00134 
00135         <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z17_3">get_tags</a>(std::vector&lt;Pointer&lt;TextTag&gt; &gt;&amp; tags) <span class="keyword">const</span>;
00139 
00140         G::Unichar <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z17_4">get_escape_char</a>() <span class="keyword">const</span>;
00142 
00143         <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z17_5">get_mime_types</a>(std::vector&lt;String&gt;&amp; mime_types) <span class="keyword">const</span>;
00147 
00148         SourceStyleScheme* <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z17_6">get_style_scheme</a>() <span class="keyword">const</span>;
00150 
00151         SourceTagStyle* <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z17_7">get_tag_style</a>(<span class="keyword">const</span> String&amp; tag_id) <span class="keyword">const</span>;
00155 
00156         SourceTagStyle* <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z17_8">get_tag_default_style</a>(<span class="keyword">const</span> String&amp; tag_id) <span class="keyword">const</span>;
00160 
00164 
00165         <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z18_0">set_mime_types</a>(<span class="keyword">const</span> std::vector&lt;String&gt;&amp; mime_types);
00168 
00169         <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z18_1">set_style_scheme</a>(SourceStyleScheme&amp; scheme);
00172 
00173         <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z18_2">set_tag_style</a>(<span class="keyword">const</span> String&amp; tag_id, <span class="keyword">const</span> SourceTagStyle&amp; style);
00177 
00181 
<a name="l00182"></a><a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z19_0">00182</a>         <span class="keyword">const</span> TagStyleChangedSignalProxy <a class="code" href="classInti_1_1Gtk_1_1SourceLanguage.html#z19_0">sig_tag_style_changed</a>()
00183         {
00184                 <span class="keywordflow">return</span> TagStyleChangedSignalProxy(<span class="keyword">this</span>, &amp;tag_style_changed_signal);
00185         }
00187 
00189 };
00190 
00195 
<a name="l00196"></a><a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html">00196</a> <span class="keyword">class </span><a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html">SourceLanguagesManager</a> : <span class="keyword">public</span> G::Object
00197 {
00198         <span class="keyword">friend</span> <span class="keyword">class </span>G::Object;
00199         <span class="keyword">friend</span> <span class="keyword">class </span>SourceLanguagesManagerClass;
00200 
00201         <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z21_0">SourceLanguagesManager</a>(<span class="keyword">const</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html">SourceLanguagesManager</a>&amp;);
00202         <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html">SourceLanguagesManager</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html">SourceLanguagesManager</a>&amp;);
00203 
00204 <span class="keyword">protected</span>:
00207 
00208         <span class="keyword">explicit</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z21_0">SourceLanguagesManager</a>(GtkSourceLanguagesManager *lm, <span class="keywordtype">bool</span> reference = <span class="keyword">false</span>);
00215 
00217 <span class="comment">//  Properties</span>
00218 
00219         <span class="keyword">typedef</span> G::Property&lt;GSList*&gt; LangSpecsDirsPropertyType;
00220         <span class="keyword">typedef</span> G::PropertyProxy&lt;G::Object, LangSpecsDirsPropertyType&gt; LangSpecsDirsPropertyProxy;
00221         <span class="keyword">static</span> <span class="keyword">const</span> LangSpecsDirsPropertyType lang_specs_dirs_property;
00222 
00223 <span class="keyword">public</span>:
00226 
00227         <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z21_0">SourceLanguagesManager</a>();
00229 
00230         <span class="keyword">virtual</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z21_1">~SourceLanguagesManager</a>();
00232 
00236 
<a name="l00237"></a><a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z22_0">00237</a>         GtkSourceLanguagesManager* <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z22_0">gtk_source_languages_manager</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (GtkSourceLanguagesManager*)instance; }
00239 
00240         GtkSourceLanguagesManagerClass* <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z22_1">gtk_source_languages_manager_class</a>() <span class="keyword">const</span>;
00242 
00243         <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z22_2">operator GtkSourceLanguagesManager* </a>() <span class="keyword">const</span>;
00245 
00246         <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z22_3">is_gtk_source_languages_manager</a>() <span class="keyword">const</span>;
00248 
00252 
00253         <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z23_0">get_available_languages</a>(std::vector&lt;SourceLanguage*&gt;&amp; languages) <span class="keyword">const</span>;
00257 
00258         SourceLanguage* <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z23_1">get_language_from_mime_type</a>(<span class="keyword">const</span> String&amp; mime_type) <span class="keyword">const</span>;
00262 
00263         Gtk::SourceLanguage* <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z23_2">get_language_from_name</a>(<span class="keyword">const</span> String&amp; language) <span class="keyword">const</span>;
00270 
00271         <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z23_3">get_lang_files_dirs</a>(std::vector&lt;String&gt;&amp; dirs) <span class="keyword">const</span>;
00275 
00279 
<a name="l00280"></a><a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z24_0">00280</a>         <span class="keyword">const</span> LangSpecsDirsPropertyProxy <a class="code" href="classInti_1_1Gtk_1_1SourceLanguagesManager.html#z24_0">prop_lang_specs_dirs</a>()
00281         {
00282                 <span class="keywordflow">return</span> LangSpecsDirsPropertyProxy(<span class="keyword">this</span>, &amp;lang_specs_dirs_property);
00283         }
00286 
00288 };
00289 
00290 } <span class="comment">// namespace Gtk</span>
00291 
00292 } <span class="comment">// namespace Inti</span>
00293 
00294 <span class="preprocessor">#endif // INTI_GTK_SOURCE_LANGUAGE_H</span>
00295 <span class="preprocessor"></span>
</pre></div><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Main Page - Footer</title>
  <meta name="description" content="Reference Manual">
  <meta name="author" content="The Inti Development Team">
</head>
<body>
<br>
<br>
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
  <tbody>
    <tr>
      <td valign="top">
      <hr></td>
    </tr>
    <tr>
      <td valign="top" height="116"
 background="../images/bottom-fade.png">
      <address><small>Generated on Wed Aug 27 21:17:27 2003 for Inti-SourceView by <a
 href="http://www.doxygen.org/index.html"><img src="doxygen.png"
 alt="doxygen" align="middle" border="0" width="110" height="53"> </a>
1.3.2 written by <a href="mailto:dimitri@stack.nl">Dimitri
van Heesch</a>,  &copy;&nbsp;1997-2002</small></address>
      </td>
    </tr>
    <tr>
      <td style="vertical-align: top; background-color: rgb(0, 55, 85);"><br>
      </td>
    </tr>
  </tbody>
</table>
<br>
</body>
</html>