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: IpeLatex class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.3.6 -->
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>IpeLatex Class Reference</h1>Object that converts latex source to PDF format.
9
<a href="#_details">More...</a>
11
<a href="class_ipe_latex-members.html">List of all members.</a><h2>Public Member Functions</h2>
13
<li><a class="el" href="class_ipe_latex.html#a0">IpeLatex</a> ()
14
<li><a class="el" href="class_ipe_latex.html#a1">~IpeLatex</a> ()
15
<li>int <a class="el" href="class_ipe_latex.html#a2">ScanPage</a> (<a class="el" href="class_ipe_page.html">IpePage</a> *page)
16
<li>int <a class="el" href="class_ipe_latex.html#a3">CreateLatexSource</a> (<a class="el" href="class_ipe_stream.html">IpeStream</a> &stream, <a class="el" href="class_ipe_string.html">IpeString</a> preamble, const <a class="el" href="class_ipe_style_sheet.html">IpeStyleSheet</a> *sheet)
17
<li>bool <a class="el" href="class_ipe_latex.html#a4">ReadPdf</a> (<a class="el" href="class_ipe_data_source.html">IpeDataSource</a> &source)
18
<li>bool <a class="el" href="class_ipe_latex.html#a5">UpdateTextObjects</a> ()
19
<li><a class="el" href="class_ipe_font_pool.html">IpeFontPool</a> * <a class="el" href="class_ipe_latex.html#a6">TakeFontPool</a> ()
23
<li><a class="anchor" name="n0" doxytag="IpeLatex::TextCollectingVisitor" ></a>
24
class <b>TextCollectingVisitor</b>
26
<hr><a name="_details"></a><h2>Detailed Description</h2>
27
Object that converts latex source to PDF format.
29
This object is responsible for creating the PDF representation of text objects.
31
<hr><h2>Constructor & Destructor Documentation</h2>
32
<a class="anchor" name="a0" doxytag="IpeLatex::IpeLatex" ></a><p>
33
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
36
<table cellpadding="0" cellspacing="0" border="0">
38
<td class="md" nowrap valign="top"> IpeLatex::IpeLatex </td>
39
<td class="md" valign="top">( </td>
40
<td class="mdname1" valign="top" nowrap> </td>
41
<td class="md" valign="top"> ) </td>
42
<td class="md" nowrap></td>
49
<table cellspacing=5 cellpadding=0 border=0>
57
Create a converter object.
62
<a class="anchor" name="a1" doxytag="IpeLatex::~IpeLatex" ></a><p>
63
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
66
<table cellpadding="0" cellspacing="0" border="0">
68
<td class="md" nowrap valign="top"> IpeLatex::~<a class="el" href="class_ipe_latex.html">IpeLatex</a> </td>
69
<td class="md" valign="top">( </td>
70
<td class="mdname1" valign="top" nowrap> </td>
71
<td class="md" valign="top"> ) </td>
72
<td class="md" nowrap></td>
79
<table cellspacing=5 cellpadding=0 border=0>
92
<hr><h2>Member Function Documentation</h2>
93
<a class="anchor" name="a2" doxytag="IpeLatex::ScanPage" ></a><p>
94
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
97
<table cellpadding="0" cellspacing="0" border="0">
99
<td class="md" nowrap valign="top"> int IpeLatex::ScanPage </td>
100
<td class="md" valign="top">( </td>
101
<td class="md" nowrap valign="top"><a class="el" href="class_ipe_page.html">IpePage</a> * </td>
102
<td class="mdname1" valign="top" nowrap> <em>page</em> </td>
103
<td class="md" valign="top"> ) </td>
104
<td class="md" nowrap></td>
111
<table cellspacing=5 cellpadding=0 border=0>
119
Scan a page and insert all text objects into IpeLatex's list. Returns total number of text objects found so far. </td>
122
<a class="anchor" name="a3" doxytag="IpeLatex::CreateLatexSource" ></a><p>
123
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
126
<table cellpadding="0" cellspacing="0" border="0">
128
<td class="md" nowrap valign="top"> int IpeLatex::CreateLatexSource </td>
129
<td class="md" valign="top">( </td>
130
<td class="md" nowrap valign="top"><a class="el" href="class_ipe_stream.html">IpeStream</a> & </td>
131
<td class="mdname" nowrap> <em>stream</em>, </td>
134
<td class="md" nowrap align="right"></td>
136
<td class="md" nowrap><a class="el" href="class_ipe_string.html">IpeString</a> </td>
137
<td class="mdname" nowrap> <em>preamble</em>, </td>
140
<td class="md" nowrap align="right"></td>
142
<td class="md" nowrap>const <a class="el" href="class_ipe_style_sheet.html">IpeStyleSheet</a> * </td>
143
<td class="mdname" nowrap> <em>sheet</em></td>
147
<td class="md">) </td>
148
<td class="md" colspan="2"></td>
155
<table cellspacing=5 cellpadding=0 border=0>
163
Create a Latex source file with all the text objects collected before. The client should have prepared a directory for the Pdflatex run, and pass the name of the Latex source file to be written by IpeLatex.<p>
164
Returns the number of text objects that did not yet have an XForm, or a negative error code. </td>
167
<a class="anchor" name="a4" doxytag="IpeLatex::ReadPdf" ></a><p>
168
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
171
<table cellpadding="0" cellspacing="0" border="0">
173
<td class="md" nowrap valign="top"> bool IpeLatex::ReadPdf </td>
174
<td class="md" valign="top">( </td>
175
<td class="md" nowrap valign="top"><a class="el" href="class_ipe_data_source.html">IpeDataSource</a> & </td>
176
<td class="mdname1" valign="top" nowrap> <em>source</em> </td>
177
<td class="md" valign="top"> ) </td>
178
<td class="md" nowrap></td>
185
<table cellspacing=5 cellpadding=0 border=0>
193
Read the PDF file created by Pdflatex.
195
Must have performed the call to Pdflatex, and pass the name of the resulting output file. </td>
198
<a class="anchor" name="a5" doxytag="IpeLatex::UpdateTextObjects" ></a><p>
199
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
202
<table cellpadding="0" cellspacing="0" border="0">
204
<td class="md" nowrap valign="top"> bool IpeLatex::UpdateTextObjects </td>
205
<td class="md" valign="top">( </td>
206
<td class="mdname1" valign="top" nowrap> </td>
207
<td class="md" valign="top"> ) </td>
208
<td class="md" nowrap></td>
215
<table cellspacing=5 cellpadding=0 border=0>
223
Notify all text objects about their updated PDF code.
225
Returns true if successful. </td>
228
<a class="anchor" name="a6" doxytag="IpeLatex::TakeFontPool" ></a><p>
229
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
232
<table cellpadding="0" cellspacing="0" border="0">
234
<td class="md" nowrap valign="top"> <a class="el" href="class_ipe_font_pool.html">IpeFontPool</a> * IpeLatex::TakeFontPool </td>
235
<td class="md" valign="top">( </td>
236
<td class="mdname1" valign="top" nowrap> </td>
237
<td class="md" valign="top"> ) </td>
238
<td class="md" nowrap></td>
245
<table cellspacing=5 cellpadding=0 border=0>
253
Return the newly created font pool and pass ownership of pool to caller.
258
<hr>The documentation for this class was generated from the following files:<ul>
259
<li>ipelatex.h<li>ipelatex.cpp</ul>