File: class_ipelet_helper.html

package info (click to toggle)
ipe 6.0pre30-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,100 kB
  • ctags: 5,419
  • sloc: cpp: 30,430; ansic: 1,045; xml: 845; makefile: 78; sh: 5
file content (301 lines) | stat: -rw-r--r-- 12,137 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
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Ipelib: IpeletHelper Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<h1>IpeletHelper Class Reference<br>
<small>
[<a class="el" href="group__ipelet.html">The Ipelet interface</a>]</small>
</h1><!-- doxytag: class="IpeletHelper" -->Service provider for Ipelets.  
<a href="#_details">More...</a>
<p>
<a href="class_ipelet_helper-members.html">List of all members.</a><h2>Public Member Functions</h2>
<ul>
<li>virtual void <a class="el" href="class_ipelet_helper.html#0379a4a6bf7c18fd575f2be55cc1e440">Message</a> (const char *msg)=0
<li>virtual int <a class="el" href="class_ipelet_helper.html#a4d0434ebab3832d841f84c006f52c57">MessageBox</a> (const char *text, const char *button1, const char *button2, const char *button3)=0
<li>virtual bool <a class="el" href="class_ipelet_helper.html#a97e417f825e25d0ce6ee4a3b160c5da">GetString</a> (const char *prompt, <a class="el" href="class_ipe_string.html">IpeString</a> &amp;str)=0
<li>virtual const <a class="el" href="class_ipe_style_sheet.html">IpeStyleSheet</a> * <a class="el" href="class_ipelet_helper.html#c8591deb86101665a24c25d05a881ec1">StyleSheet</a> ()=0
<li>virtual const <a class="el" href="class_ipe_document.html">IpeDocument</a> * <a class="el" href="class_ipelet_helper.html#585ecabb59a62c1dde5146ae7c1d4c8c">Document</a> ()=0
<li>virtual <a class="el" href="class_ipe_document.html">IpeDocument</a> * <a class="el" href="class_ipelet_helper.html#bd81743fb3a2fd6c4200bd0c4c068b6f">EditDocument</a> ()=0
<li>virtual int <a class="el" href="class_ipelet_helper.html#a348714e46267749b1376ea94c30d84b">CurrentPage</a> () const=0
<li>virtual int <a class="el" href="class_ipelet_helper.html#97b3489759065c01db8e5578c7b46ea5">CurrentView</a> () const=0
<li>virtual int <a class="el" href="class_ipelet_helper.html#a59691bcab3e6dba9c76de51e7276587">CurrentLayer</a> () const=0
<li>virtual const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a> &amp; <a class="el" href="class_ipelet_helper.html#d6ef919154004adf830f3f3f7e60e6e0">Attributes</a> () const=0
<li>virtual const <a class="el" href="class_ipe_snap_data.html">IpeSnapData</a> &amp; <a class="el" href="class_ipelet_helper.html#8952d1476cdd9d8f7a8f0606cd39b7a1">SnapData</a> () const=0
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Service provider for Ipelets. 
<p>
Ipelets can ask Ipe to perform various services and request information using this class. 
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="0379a4a6bf7c18fd575f2be55cc1e440"></a><!-- doxytag: member="IpeletHelper::Message" ref="0379a4a6bf7c18fd575f2be55cc1e440" args="(const char *msg)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void IpeletHelper::Message           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>msg</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Show a message in the status bar. 
<p>

</div>
</div><p>
<a class="anchor" name="a4d0434ebab3832d841f84c006f52c57"></a><!-- doxytag: member="IpeletHelper::MessageBox" ref="a4d0434ebab3832d841f84c006f52c57" args="(const char *text, const char *button1, const char *button2, const char *button3)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int IpeletHelper::MessageBox           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>button1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>button2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>button3</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Pop up a modal message box with the <em>text</em>, and up to three buttons (Use 0 pointer to remove a button). Returns index (0 to 2) of button pressed. 
</div>
</div><p>
<a class="anchor" name="a97e417f825e25d0ce6ee4a3b160c5da"></a><!-- doxytag: member="IpeletHelper::GetString" ref="a97e417f825e25d0ce6ee4a3b160c5da" args="(const char *prompt, IpeString &amp;str)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool IpeletHelper::GetString           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>prompt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_ipe_string.html">IpeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>str</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Pop up a modal dialog asking the user to enter a string. Returns true if the user didn't cancel the dialog. 
</div>
</div><p>
<a class="anchor" name="c8591deb86101665a24c25d05a881ec1"></a><!-- doxytag: member="IpeletHelper::StyleSheet" ref="c8591deb86101665a24c25d05a881ec1" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="class_ipe_style_sheet.html">IpeStyleSheet</a>* IpeletHelper::StyleSheet           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the style sheet. 
</div>
</div><p>
<a class="anchor" name="585ecabb59a62c1dde5146ae7c1d4c8c"></a><!-- doxytag: member="IpeletHelper::Document" ref="585ecabb59a62c1dde5146ae7c1d4c8c" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="class_ipe_document.html">IpeDocument</a>* IpeletHelper::Document           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return read-only document. 
</div>
</div><p>
<a class="anchor" name="bd81743fb3a2fd6c4200bd0c4c068b6f"></a><!-- doxytag: member="IpeletHelper::EditDocument" ref="bd81743fb3a2fd6c4200bd0c4c068b6f" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_ipe_document.html">IpeDocument</a>* IpeletHelper::EditDocument           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get read-write access to the entire document. Marks the document as edited, and resets undo. 
</div>
</div><p>
<a class="anchor" name="a348714e46267749b1376ea94c30d84b"></a><!-- doxytag: member="IpeletHelper::CurrentPage" ref="a348714e46267749b1376ea94c30d84b" args="() const=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int IpeletHelper::CurrentPage           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return index of current page (starting with 0). 
<p>

</div>
</div><p>
<a class="anchor" name="97b3489759065c01db8e5578c7b46ea5"></a><!-- doxytag: member="IpeletHelper::CurrentView" ref="97b3489759065c01db8e5578c7b46ea5" args="() const=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int IpeletHelper::CurrentView           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return index of current page view (starting with 0). 
<p>

</div>
</div><p>
<a class="anchor" name="a59691bcab3e6dba9c76de51e7276587"></a><!-- doxytag: member="IpeletHelper::CurrentLayer" ref="a59691bcab3e6dba9c76de51e7276587" args="() const=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int IpeletHelper::CurrentLayer           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return index of current layer in the page. 
<p>

</div>
</div><p>
<a class="anchor" name="d6ef919154004adf830f3f3f7e60e6e0"></a><!-- doxytag: member="IpeletHelper::Attributes" ref="d6ef919154004adf830f3f3f7e60e6e0" args="() const=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a>&amp; IpeletHelper::Attributes           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the attributes currently set in the UI. 
<p>

</div>
</div><p>
<a class="anchor" name="8952d1476cdd9d8f7a8f0606cd39b7a1"></a><!-- doxytag: member="IpeletHelper::SnapData" ref="8952d1476cdd9d8f7a8f0606cd39b7a1" args="() const=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="class_ipe_snap_data.html">IpeSnapData</a>&amp; IpeletHelper::SnapData           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the current snapping situation in Ipe. 
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>ipelet.h</ul>
<hr>
</body></html>