1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Ipelib: IpeletHelper class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.3.4 -->
7
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="functions.html">Class Members</a></div>
8
<h1>IpeletHelper Class Reference<br>
10
[<a class="el" href="group__ipelet.html">The Ipelet interface</a>]</small>
11
</h1>Service provider for Ipelets.
12
<a href="#_details">More...</a>
14
<a href="class_ipelet_helper-members.html">List of all members.</a><h2>Public Member Functions</h2>
16
<li>virtual void <a class="el" href="class_ipelet_helper.html#a0">Message</a> (const char *msg)=0
17
<li>virtual int <a class="el" href="class_ipelet_helper.html#a1">MessageBox</a> (const char *text, const char *button1, const char *button2, const char *button3)=0
18
<li>virtual bool <a class="el" href="class_ipelet_helper.html#a2">GetString</a> (const char *prompt, <a class="el" href="class_ipe_string.html">IpeString</a> &str)=0
19
<li>virtual const <a class="el" href="class_ipe_style_sheet.html">IpeStyleSheet</a> * <a class="el" href="class_ipelet_helper.html#a3">StyleSheet</a> ()=0
20
<li>virtual const <a class="el" href="class_ipe_document.html">IpeDocument</a> * <a class="el" href="class_ipelet_helper.html#a4">Document</a> ()=0
21
<li>virtual <a class="el" href="class_ipe_document.html">IpeDocument</a> * <a class="el" href="class_ipelet_helper.html#a5">EditDocument</a> ()=0
22
<li>virtual int <a class="el" href="class_ipelet_helper.html#a6">CurrentPage</a> () const =0
23
<li>virtual int <a class="el" href="class_ipelet_helper.html#a7">CurrentView</a> () const =0
24
<li>virtual int <a class="el" href="class_ipelet_helper.html#a8">CurrentLayer</a> () const =0
25
<li>virtual const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a> & <a class="el" href="class_ipelet_helper.html#a9">Attributes</a> () const =0
26
<li>virtual const <a class="el" href="class_ipe_snap_data.html">IpeSnapData</a> & <a class="el" href="class_ipelet_helper.html#a10">SnapData</a> () const =0
28
<hr><a name="_details"></a><h2>Detailed Description</h2>
29
Service provider for Ipelets.
31
Ipelets can ask Ipe to perform various services and request information using this class.
33
<hr><h2>Member Function Documentation</h2>
34
<a class="anchor" name="a0" doxytag="IpeletHelper::Message" ></a><p>
35
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
38
<table cellpadding="0" cellspacing="0" border="0">
40
<td class="md" nowrap valign="top"> virtual void IpeletHelper::Message </td>
41
<td class="md" valign="top">( </td>
42
<td class="md" nowrap valign="top">const char * </td>
43
<td class="mdname1" valign="top" nowrap> <em>msg</em> </td>
44
<td class="md" valign="top"> ) </td>
45
<td class="md" nowrap><code> [pure virtual]</code></td>
52
<table cellspacing=5 cellpadding=0 border=0>
60
Show a message in the status bar.
65
<a class="anchor" name="a1" doxytag="IpeletHelper::MessageBox" ></a><p>
66
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
69
<table cellpadding="0" cellspacing="0" border="0">
71
<td class="md" nowrap valign="top"> virtual int IpeletHelper::MessageBox </td>
72
<td class="md" valign="top">( </td>
73
<td class="md" nowrap valign="top">const char * </td>
74
<td class="mdname" nowrap> <em>text</em>, </td>
79
<td class="md" nowrap>const char * </td>
80
<td class="mdname" nowrap> <em>button1</em>, </td>
85
<td class="md" nowrap>const char * </td>
86
<td class="mdname" nowrap> <em>button2</em>, </td>
91
<td class="md" nowrap>const char * </td>
92
<td class="mdname" nowrap> <em>button3</em></td>
96
<td class="md">) </td>
97
<td class="md" colspan="2"><code> [pure virtual]</code></td>
104
<table cellspacing=5 cellpadding=0 border=0>
112
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. </td>
115
<a class="anchor" name="a2" doxytag="IpeletHelper::GetString" ></a><p>
116
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
119
<table cellpadding="0" cellspacing="0" border="0">
121
<td class="md" nowrap valign="top"> virtual bool IpeletHelper::GetString </td>
122
<td class="md" valign="top">( </td>
123
<td class="md" nowrap valign="top">const char * </td>
124
<td class="mdname" nowrap> <em>prompt</em>, </td>
129
<td class="md" nowrap><a class="el" href="class_ipe_string.html">IpeString</a> & </td>
130
<td class="mdname" nowrap> <em>str</em></td>
134
<td class="md">) </td>
135
<td class="md" colspan="2"><code> [pure virtual]</code></td>
142
<table cellspacing=5 cellpadding=0 border=0>
150
Pop up a modal dialog asking the user to enter a string. Returns true if the user didn't cancel the dialog. </td>
153
<a class="anchor" name="a3" doxytag="IpeletHelper::StyleSheet" ></a><p>
154
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
157
<table cellpadding="0" cellspacing="0" border="0">
159
<td class="md" nowrap valign="top"> virtual const <a class="el" href="class_ipe_style_sheet.html">IpeStyleSheet</a>* IpeletHelper::StyleSheet </td>
160
<td class="md" valign="top">( </td>
161
<td class="mdname1" valign="top" nowrap> </td>
162
<td class="md" valign="top"> ) </td>
163
<td class="md" nowrap><code> [pure virtual]</code></td>
170
<table cellspacing=5 cellpadding=0 border=0>
178
Return the style sheet. </td>
181
<a class="anchor" name="a4" doxytag="IpeletHelper::Document" ></a><p>
182
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
185
<table cellpadding="0" cellspacing="0" border="0">
187
<td class="md" nowrap valign="top"> virtual const <a class="el" href="class_ipe_document.html">IpeDocument</a>* IpeletHelper::Document </td>
188
<td class="md" valign="top">( </td>
189
<td class="mdname1" valign="top" nowrap> </td>
190
<td class="md" valign="top"> ) </td>
191
<td class="md" nowrap><code> [pure virtual]</code></td>
198
<table cellspacing=5 cellpadding=0 border=0>
206
Return read-only document. </td>
209
<a class="anchor" name="a5" doxytag="IpeletHelper::EditDocument" ></a><p>
210
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
213
<table cellpadding="0" cellspacing="0" border="0">
215
<td class="md" nowrap valign="top"> virtual <a class="el" href="class_ipe_document.html">IpeDocument</a>* IpeletHelper::EditDocument </td>
216
<td class="md" valign="top">( </td>
217
<td class="mdname1" valign="top" nowrap> </td>
218
<td class="md" valign="top"> ) </td>
219
<td class="md" nowrap><code> [pure virtual]</code></td>
226
<table cellspacing=5 cellpadding=0 border=0>
234
Get read-write access to the entire document. Marks the document as edited, and resets undo. </td>
237
<a class="anchor" name="a6" doxytag="IpeletHelper::CurrentPage" ></a><p>
238
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
241
<table cellpadding="0" cellspacing="0" border="0">
243
<td class="md" nowrap valign="top"> virtual int IpeletHelper::CurrentPage </td>
244
<td class="md" valign="top">( </td>
245
<td class="mdname1" valign="top" nowrap> </td>
246
<td class="md" valign="top"> ) </td>
247
<td class="md" nowrap> const<code> [pure virtual]</code></td>
254
<table cellspacing=5 cellpadding=0 border=0>
262
Return index of current page (starting with 0).
267
<a class="anchor" name="a7" doxytag="IpeletHelper::CurrentView" ></a><p>
268
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
271
<table cellpadding="0" cellspacing="0" border="0">
273
<td class="md" nowrap valign="top"> virtual int IpeletHelper::CurrentView </td>
274
<td class="md" valign="top">( </td>
275
<td class="mdname1" valign="top" nowrap> </td>
276
<td class="md" valign="top"> ) </td>
277
<td class="md" nowrap> const<code> [pure virtual]</code></td>
284
<table cellspacing=5 cellpadding=0 border=0>
292
Return index of current page view (starting with 0).
297
<a class="anchor" name="a8" doxytag="IpeletHelper::CurrentLayer" ></a><p>
298
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
301
<table cellpadding="0" cellspacing="0" border="0">
303
<td class="md" nowrap valign="top"> virtual int IpeletHelper::CurrentLayer </td>
304
<td class="md" valign="top">( </td>
305
<td class="mdname1" valign="top" nowrap> </td>
306
<td class="md" valign="top"> ) </td>
307
<td class="md" nowrap> const<code> [pure virtual]</code></td>
314
<table cellspacing=5 cellpadding=0 border=0>
322
Return index of current layer in the page.
327
<a class="anchor" name="a9" doxytag="IpeletHelper::Attributes" ></a><p>
328
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
331
<table cellpadding="0" cellspacing="0" border="0">
333
<td class="md" nowrap valign="top"> virtual const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a>& IpeletHelper::Attributes </td>
334
<td class="md" valign="top">( </td>
335
<td class="mdname1" valign="top" nowrap> </td>
336
<td class="md" valign="top"> ) </td>
337
<td class="md" nowrap> const<code> [pure virtual]</code></td>
344
<table cellspacing=5 cellpadding=0 border=0>
352
Return the attributes currently set in the UI.
357
<a class="anchor" name="a10" doxytag="IpeletHelper::SnapData" ></a><p>
358
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
361
<table cellpadding="0" cellspacing="0" border="0">
363
<td class="md" nowrap valign="top"> virtual const <a class="el" href="class_ipe_snap_data.html">IpeSnapData</a>& IpeletHelper::SnapData </td>
364
<td class="md" valign="top">( </td>
365
<td class="mdname1" valign="top" nowrap> </td>
366
<td class="md" valign="top"> ) </td>
367
<td class="md" nowrap> const<code> [pure virtual]</code></td>
374
<table cellspacing=5 cellpadding=0 border=0>
382
Return the current snapping situation in Ipe. </td>
385
<hr>The documentation for this class was generated from the following file:<ul>