rghost_barcode 0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. data/lib/doc/classes/RGhost.html +109 -0
  2. data/lib/doc/classes/RGhost/Barcode.html +147 -0
  3. data/lib/doc/classes/RGhost/Barcode/Auspost.html +113 -0
  4. data/lib/doc/classes/RGhost/Barcode/Azteccode.html +113 -0
  5. data/lib/doc/classes/RGhost/Barcode/Base.html +266 -0
  6. data/lib/doc/classes/RGhost/Barcode/Base.src/M000004.html +34 -0
  7. data/lib/doc/classes/RGhost/Barcode/Base.src/M000005.html +30 -0
  8. data/lib/doc/classes/RGhost/Barcode/Base.src/M000006.html +20 -0
  9. data/lib/doc/classes/RGhost/Barcode/Border.html +170 -0
  10. data/lib/doc/classes/RGhost/Barcode/Border.src/M000001.html +27 -0
  11. data/lib/doc/classes/RGhost/Barcode/Code11.html +113 -0
  12. data/lib/doc/classes/RGhost/Barcode/Code128.html +113 -0
  13. data/lib/doc/classes/RGhost/Barcode/Code2of5.html +113 -0
  14. data/lib/doc/classes/RGhost/Barcode/Code39.html +113 -0
  15. data/lib/doc/classes/RGhost/Barcode/Code93.html +113 -0
  16. data/lib/doc/classes/RGhost/Barcode/Datamatrix.html +113 -0
  17. data/lib/doc/classes/RGhost/Barcode/Ean13.html +113 -0
  18. data/lib/doc/classes/RGhost/Barcode/Ean2.html +113 -0
  19. data/lib/doc/classes/RGhost/Barcode/Ean5.html +113 -0
  20. data/lib/doc/classes/RGhost/Barcode/Ean8.html +113 -0
  21. data/lib/doc/classes/RGhost/Barcode/Guard.html +174 -0
  22. data/lib/doc/classes/RGhost/Barcode/Guard.src/M000003.html +27 -0
  23. data/lib/doc/classes/RGhost/Barcode/Interleaved2of5.html +113 -0
  24. data/lib/doc/classes/RGhost/Barcode/Isbn.html +113 -0
  25. data/lib/doc/classes/RGhost/Barcode/Kix.html +113 -0
  26. data/lib/doc/classes/RGhost/Barcode/Maxicode.html +113 -0
  27. data/lib/doc/classes/RGhost/Barcode/Msi.html +113 -0
  28. data/lib/doc/classes/RGhost/Barcode/Onecode.html +113 -0
  29. data/lib/doc/classes/RGhost/Barcode/Parameter.html +262 -0
  30. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000007.html +20 -0
  31. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000008.html +18 -0
  32. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000009.html +18 -0
  33. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000010.html +18 -0
  34. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000011.html +18 -0
  35. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000012.html +24 -0
  36. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000013.html +18 -0
  37. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000014.html +18 -0
  38. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000015.html +16 -0
  39. data/lib/doc/classes/RGhost/Barcode/Pdf417.html +113 -0
  40. data/lib/doc/classes/RGhost/Barcode/Pharmacode.html +113 -0
  41. data/lib/doc/classes/RGhost/Barcode/Plessey.html +113 -0
  42. data/lib/doc/classes/RGhost/Barcode/Postnet.html +113 -0
  43. data/lib/doc/classes/RGhost/Barcode/Qrcode.html +113 -0
  44. data/lib/doc/classes/RGhost/Barcode/Rationalizedcodabar.html +113 -0
  45. data/lib/doc/classes/RGhost/Barcode/Raw.html +113 -0
  46. data/lib/doc/classes/RGhost/Barcode/Royalmail.html +113 -0
  47. data/lib/doc/classes/RGhost/Barcode/Rss14.html +113 -0
  48. data/lib/doc/classes/RGhost/Barcode/Rssexpanded.html +113 -0
  49. data/lib/doc/classes/RGhost/Barcode/Rsslimited.html +113 -0
  50. data/lib/doc/classes/RGhost/Barcode/Symbol.html +113 -0
  51. data/lib/doc/classes/RGhost/Barcode/Text.html +193 -0
  52. data/lib/doc/classes/RGhost/Barcode/Text.src/M000002.html +30 -0
  53. data/lib/doc/classes/RGhost/Barcode/Upca.html +113 -0
  54. data/lib/doc/classes/RGhost/Barcode/Upce.html +113 -0
  55. data/lib/doc/classes/RGhost/Config.html +150 -0
  56. data/lib/doc/classes/RGhost/Config.src/M000016.html +45 -0
  57. data/lib/doc/classes/RGhost/Document.html +704 -0
  58. data/lib/doc/classes/RGhost/Document.src/M000017.html +19 -0
  59. data/lib/doc/classes/RGhost/Document.src/M000018.html +18 -0
  60. data/lib/doc/classes/RGhost/Document.src/M000019.html +18 -0
  61. data/lib/doc/classes/RGhost/Document.src/M000020.html +18 -0
  62. data/lib/doc/classes/RGhost/Document.src/M000021.html +18 -0
  63. data/lib/doc/classes/RGhost/Document.src/M000022.html +18 -0
  64. data/lib/doc/classes/RGhost/Document.src/M000023.html +18 -0
  65. data/lib/doc/classes/RGhost/Document.src/M000024.html +18 -0
  66. data/lib/doc/classes/RGhost/Document.src/M000025.html +18 -0
  67. data/lib/doc/classes/RGhost/Document.src/M000026.html +18 -0
  68. data/lib/doc/classes/RGhost/Document.src/M000027.html +18 -0
  69. data/lib/doc/classes/RGhost/Document.src/M000028.html +18 -0
  70. data/lib/doc/classes/RGhost/Document.src/M000029.html +18 -0
  71. data/lib/doc/classes/RGhost/Document.src/M000030.html +18 -0
  72. data/lib/doc/classes/RGhost/Document.src/M000031.html +18 -0
  73. data/lib/doc/classes/RGhost/Document.src/M000032.html +18 -0
  74. data/lib/doc/classes/RGhost/Document.src/M000033.html +18 -0
  75. data/lib/doc/classes/RGhost/Document.src/M000034.html +18 -0
  76. data/lib/doc/classes/RGhost/Document.src/M000035.html +18 -0
  77. data/lib/doc/classes/RGhost/Document.src/M000036.html +18 -0
  78. data/lib/doc/classes/RGhost/Document.src/M000037.html +18 -0
  79. data/lib/doc/classes/RGhost/Document.src/M000038.html +18 -0
  80. data/lib/doc/classes/RGhost/Document.src/M000039.html +18 -0
  81. data/lib/doc/classes/RGhost/Document.src/M000040.html +18 -0
  82. data/lib/doc/classes/RGhost/Document.src/M000041.html +18 -0
  83. data/lib/doc/classes/RGhost/Document.src/M000042.html +18 -0
  84. data/lib/doc/classes/RGhost/Document.src/M000043.html +18 -0
  85. data/lib/doc/classes/RGhost/Document.src/M000044.html +18 -0
  86. data/lib/doc/classes/RGhost/Document.src/M000045.html +18 -0
  87. data/lib/doc/classes/RGhost/Document.src/M000046.html +18 -0
  88. data/lib/doc/classes/RGhost/Document.src/M000047.html +18 -0
  89. data/lib/doc/classes/RGhost/Document.src/M000048.html +18 -0
  90. data/lib/doc/created.rid +1 -0
  91. data/lib/doc/files/rghost_barcode/rghost_barcode_adapter_rb.html +101 -0
  92. data/lib/doc/files/rghost_barcode/rghost_barcode_base_rb.html +101 -0
  93. data/lib/doc/files/rghost_barcode/rghost_barcode_classes_rb.html +101 -0
  94. data/lib/doc/files/rghost_barcode/rghost_barcode_examples_rb.html +101 -0
  95. data/lib/doc/files/rghost_barcode/rghost_barcode_version_rb.html +101 -0
  96. data/lib/doc/files/rghost_barcode_rb.html +111 -0
  97. data/lib/doc/files/teste_main_rb.html +110 -0
  98. data/lib/doc/fr_class_index.html +67 -0
  99. data/lib/doc/fr_file_index.html +33 -0
  100. data/lib/doc/fr_method_index.html +74 -0
  101. data/lib/doc/index.html +24 -0
  102. data/lib/rghost_barcode.rb +7 -0
  103. data/lib/rghost_barcode/ps/auspost.ps +192 -0
  104. data/lib/rghost_barcode/ps/azteccode.ps +357 -0
  105. data/lib/rghost_barcode/ps/barcode_template.eps +1193 -0
  106. data/lib/rghost_barcode/ps/code11.ps +128 -0
  107. data/lib/rghost_barcode/ps/code128.ps +121 -0
  108. data/lib/rghost_barcode/ps/code2of5.ps +106 -0
  109. data/lib/rghost_barcode/ps/code39.ps +109 -0
  110. data/lib/rghost_barcode/ps/code93.ps +117 -0
  111. data/lib/rghost_barcode/ps/datamatrix.ps +328 -0
  112. data/lib/rghost_barcode/ps/ean13.ps +183 -0
  113. data/lib/rghost_barcode/ps/ean2.ps +101 -0
  114. data/lib/rghost_barcode/ps/ean5.ps +116 -0
  115. data/lib/rghost_barcode/ps/ean8.ps +101 -0
  116. data/lib/rghost_barcode/ps/interleaved2of5.ps +132 -0
  117. data/lib/rghost_barcode/ps/isbn.ps +118 -0
  118. data/lib/rghost_barcode/ps/kix.ps +98 -0
  119. data/lib/rghost_barcode/ps/maxicode.ps +307 -0
  120. data/lib/rghost_barcode/ps/msi.ps +104 -0
  121. data/lib/rghost_barcode/ps/onecode.ps +276 -0
  122. data/lib/rghost_barcode/ps/pdf417.ps +428 -0
  123. data/lib/rghost_barcode/ps/pharmacode.ps +69 -0
  124. data/lib/rghost_barcode/ps/plessey.ps +121 -0
  125. data/lib/rghost_barcode/ps/postnet.ps +114 -0
  126. data/lib/rghost_barcode/ps/qrcode.ps +530 -0
  127. data/lib/rghost_barcode/ps/rationalizedcodabar.ps +117 -0
  128. data/lib/rghost_barcode/ps/raw.ps +35 -0
  129. data/lib/rghost_barcode/ps/render.ps +307 -0
  130. data/lib/rghost_barcode/ps/render.ps~ +308 -0
  131. data/lib/rghost_barcode/ps/royalmail.ps +119 -0
  132. data/lib/rghost_barcode/ps/rss14.ps +237 -0
  133. data/lib/rghost_barcode/ps/rssexpanded.ps +211 -0
  134. data/lib/rghost_barcode/ps/rsslimited.ps +191 -0
  135. data/lib/rghost_barcode/ps/symbol.ps +49 -0
  136. data/lib/rghost_barcode/ps/upca.ps +128 -0
  137. data/lib/rghost_barcode/ps/upce.ps +157 -0
  138. data/lib/rghost_barcode/rghost_barcode_adapter.rb +249 -0
  139. data/lib/rghost_barcode/rghost_barcode_base.rb +210 -0
  140. data/lib/rghost_barcode/rghost_barcode_classes.rb +96 -0
  141. data/lib/rghost_barcode/rghost_barcode_examples.rb +35 -0
  142. data/lib/rghost_barcode/rghost_barcode_version.rb +8 -0
  143. data/lib/teste_main.rb +94 -0
  144. metadata +218 -0
@@ -0,0 +1,266 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: RGhost::Barcode::Base</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">RGhost::Barcode::Base</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/rghost_barcode/rghost_barcode_base_rb.html">
59
+ rghost_barcode/rghost_barcode_base.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="Parameter.html">
69
+ RGhost::Barcode::Parameter
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+ <div id="description">
84
+ <p>
85
+ <a href="Base.html">Base</a> of all kinds of barcodes. It&#8216;s used to
86
+ creates barcode. For more details about options see <a
87
+ href="http://groups.google.com/group/postscriptbarcode/web/Options">groups.google.com/group/postscriptbarcode/web/Options</a>
88
+ </p>
89
+ <h2>Options</h2>
90
+ <p>
91
+ Facades
92
+ </p>
93
+ <ul>
94
+ <li><tt>:text</tt> <a href="Text.html">RGhost::Barcode::Text</a>
95
+
96
+ </li>
97
+ <li><tt>:guard</tt> <a href="Guard.html">RGhost::Barcode::Guard</a>
98
+
99
+ </li>
100
+ <li><tt>:border</tt> <a href="Border.html">RGhost::Barcode::Border</a>
101
+
102
+ </li>
103
+ </ul>
104
+ <p>
105
+ Options. Between parenthesis the original parameter.
106
+ </p>
107
+ <ul>
108
+ <li><tt>:scale</tt> Scale in Array([x,y]). Example for twice the original size,
109
+ :scale =&gt; [2,2]
110
+
111
+ </li>
112
+ <li><tt>:rotate</tt> Rotate angle.
113
+
114
+ </li>
115
+ <li><tt>:color</tt>(barcolor) Foreground color.
116
+
117
+ </li>
118
+ <li><tt>:background</tt>(backgroundcolor)
119
+
120
+ </li>
121
+ <li><tt>:x and :y</tt> Position. RGhost::Config::GS[:unit] will be used.
122
+ Default :current_row and :limit_left
123
+
124
+ </li>
125
+ <li><tt>:width and :height</tt>(width and height). Width and height of barcode,
126
+ RGhost::Config::GS[:unit] will be used.
127
+
128
+ </li>
129
+ </ul>
130
+ <p>
131
+ Example:
132
+ </p>
133
+ <pre>
134
+ doc=Document.new
135
+ doc.barcode_interleaved2of5('0123456789',
136
+ :text =&gt; {:size =&gt; 10, :offset =&gt; [0,-10], :enable =&gt; [:text, :check, :checkintext] },
137
+ :border =&gt; {:width =&gt; 4, :left =&gt; 15, :right =&gt; 15, :show =&gt; true},
138
+ :height =&gt; 2
139
+ )
140
+ </pre>
141
+ <p>
142
+ Without options
143
+ </p>
144
+ <pre>
145
+ doc=Document.new
146
+ doc.barcode_code39('0123456789')
147
+ </pre>
148
+
149
+ </div>
150
+
151
+
152
+ </div>
153
+
154
+ <div id="method-list">
155
+ <h3 class="section-bar">Methods</h3>
156
+
157
+ <div class="name-list">
158
+ <a href="#M000005">make</a>&nbsp;&nbsp;
159
+ <a href="#M000004">new</a>&nbsp;&nbsp;
160
+ <a href="#M000006">ps</a>&nbsp;&nbsp;
161
+ </div>
162
+ </div>
163
+
164
+ </div>
165
+
166
+
167
+ <!-- if includes -->
168
+
169
+ <div id="section">
170
+
171
+
172
+
173
+
174
+
175
+ <div id="attribute-list">
176
+ <h3 class="section-bar">Attributes</h3>
177
+
178
+ <div class="name-list">
179
+ <table>
180
+ <tr class="top-aligned-row context-row">
181
+ <td class="context-item-name">border</td>
182
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
183
+ <td class="context-item-desc"></td>
184
+ </tr>
185
+ <tr class="top-aligned-row context-row">
186
+ <td class="context-item-name">guard</td>
187
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
188
+ <td class="context-item-desc"></td>
189
+ </tr>
190
+ <tr class="top-aligned-row context-row">
191
+ <td class="context-item-name">point</td>
192
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
193
+ <td class="context-item-desc"></td>
194
+ </tr>
195
+ <tr class="top-aligned-row context-row">
196
+ <td class="context-item-name">text</td>
197
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
198
+ <td class="context-item-desc"></td>
199
+ </tr>
200
+ </table>
201
+ </div>
202
+ </div>
203
+
204
+
205
+
206
+ <!-- if method_list -->
207
+ <div id="methods">
208
+ <h3 class="section-bar">Public Class methods</h3>
209
+
210
+ <div id="method-M000004" class="method-detail">
211
+ <a name="M000004"></a>
212
+
213
+ <div class="method-heading">
214
+ <a href="Base.src/M000004.html" target="Code" class="method-signature"
215
+ onclick="popupCode('Base.src/M000004.html');return false;">
216
+ <span class="method-name">new</span><span class="method-args">(barcode_string,options={})</span>
217
+ </a>
218
+ </div>
219
+
220
+ <div class="method-description">
221
+ </div>
222
+ </div>
223
+
224
+ <h3 class="section-bar">Public Instance methods</h3>
225
+
226
+ <div id="method-M000005" class="method-detail">
227
+ <a name="M000005"></a>
228
+
229
+ <div class="method-heading">
230
+ <a href="Base.src/M000005.html" target="Code" class="method-signature"
231
+ onclick="popupCode('Base.src/M000005.html');return false;">
232
+ <span class="method-name">make</span><span class="method-args">()</span>
233
+ </a>
234
+ </div>
235
+
236
+ <div class="method-description">
237
+ </div>
238
+ </div>
239
+
240
+ <div id="method-M000006" class="method-detail">
241
+ <a name="M000006"></a>
242
+
243
+ <div class="method-heading">
244
+ <a href="Base.src/M000006.html" target="Code" class="method-signature"
245
+ onclick="popupCode('Base.src/M000006.html');return false;">
246
+ <span class="method-name">ps</span><span class="method-args">()</span>
247
+ </a>
248
+ </div>
249
+
250
+ <div class="method-description">
251
+ </div>
252
+ </div>
253
+
254
+
255
+ </div>
256
+
257
+
258
+ </div>
259
+
260
+
261
+ <div id="validator-badges">
262
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
263
+ </div>
264
+
265
+ </body>
266
+ </html>
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (RGhost::Barcode::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File rghost_barcode/rghost_barcode_base.rb, line 165</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">barcode_string</span>,<span class="ruby-identifier">options</span>={})
15
+ <span class="ruby-identifier">options</span><span class="ruby-operator">||=</span>{}
16
+
17
+ <span class="ruby-ivar">@options</span>=<span class="ruby-identifier">options</span>.<span class="ruby-identifier">dup</span>
18
+ <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:x</span>]<span class="ruby-operator">||=</span> <span class="ruby-identifier">:limit_left</span>
19
+ <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:y</span>]<span class="ruby-operator">||=</span> <span class="ruby-identifier">:current_row</span>
20
+ <span class="ruby-ivar">@barcode</span>=<span class="ruby-identifier">barcode_string</span>
21
+ <span class="ruby-ivar">@text</span> = <span class="ruby-constant">RGhost</span><span class="ruby-operator">::</span><span class="ruby-constant">Barcode</span><span class="ruby-operator">::</span><span class="ruby-constant">Text</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:text</span>])
22
+
23
+ <span class="ruby-ivar">@guard</span> = <span class="ruby-constant">RGhost</span><span class="ruby-operator">::</span><span class="ruby-constant">Barcode</span><span class="ruby-operator">::</span><span class="ruby-constant">Guard</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:guard</span>])
24
+ <span class="ruby-ivar">@border</span> = <span class="ruby-constant">RGhost</span><span class="ruby-operator">::</span><span class="ruby-constant">Barcode</span><span class="ruby-operator">::</span><span class="ruby-constant">Border</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:border</span>])
25
+ <span class="ruby-ivar">@point</span>=<span class="ruby-constant">RGhost</span><span class="ruby-operator">::</span><span class="ruby-constant">Cursor</span>.<span class="ruby-identifier">translate</span>(<span class="ruby-ivar">@options</span>)
26
+ <span class="ruby-ivar">@rotate</span>=<span class="ruby-constant">RGhost</span><span class="ruby-operator">::</span><span class="ruby-constant">Cursor</span>.<span class="ruby-identifier">rotate</span> <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:rotate</span>]
27
+ <span class="ruby-ivar">@scale</span>=<span class="ruby-constant">RGhost</span><span class="ruby-operator">::</span><span class="ruby-constant">Scale</span>.<span class="ruby-identifier">new</span> <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:scale</span>][<span class="ruby-value">0</span>],<span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:scale</span>][<span class="ruby-value">1</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:scale</span>]
28
+ [<span class="ruby-identifier">:scale</span>, <span class="ruby-identifier">:enable</span>, <span class="ruby-identifier">:text</span>,<span class="ruby-identifier">:guard</span>,<span class="ruby-identifier">:border</span>, <span class="ruby-identifier">:x</span>, <span class="ruby-identifier">:y</span>, <span class="ruby-identifier">:rotate</span>].<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">delete</span> <span class="ruby-identifier">v</span>}
29
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-ivar">@options</span>)
30
+ <span class="ruby-ivar">@self_name</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/::/</span>).<span class="ruby-identifier">last</span>
31
+ <span class="ruby-constant">RGhost</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">GS</span>[<span class="ruby-identifier">:preload</span>] <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@self_name</span>
32
+ <span class="ruby-keyword kw">end</span></pre>
33
+ </body>
34
+ </html>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>make (RGhost::Barcode::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File rghost_barcode/rghost_barcode_base.rb, line 185</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make</span>
15
+
16
+ [<span class="ruby-identifier">:x</span>,<span class="ruby-identifier">:y</span>].<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">delete</span> <span class="ruby-identifier">v</span>}
17
+
18
+ <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>,<span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
19
+ <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">key</span>
20
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:color</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">add_color</span>(<span class="ruby-value str">&quot;barcolor&quot;</span>, <span class="ruby-identifier">value</span>)
21
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:background</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">add_color</span>(<span class="ruby-value str">&quot;backgroundcolor&quot;</span>, <span class="ruby-identifier">value</span>)
22
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:width</span>, <span class="ruby-identifier">:height</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">add_with_unit</span>(<span class="ruby-identifier">key</span>,<span class="ruby-identifier">value</span>)
23
+ <span class="ruby-comment cmt">#when :inkspread then add(key,value)</span>
24
+ <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">key</span>,<span class="ruby-identifier">value</span>)
25
+ <span class="ruby-keyword kw">end</span>
26
+ <span class="ruby-keyword kw">end</span>
27
+
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>ps (RGhost::Barcode::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File rghost_barcode/rghost_barcode_base.rb, line 201</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ps</span>
15
+ <span class="ruby-identifier">formated_params</span>=[ <span class="ruby-ivar">@text</span>.<span class="ruby-identifier">map</span>, <span class="ruby-ivar">@border</span>.<span class="ruby-identifier">map</span>, <span class="ruby-ivar">@guard</span>.<span class="ruby-identifier">map</span>, <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">map</span>].<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot; &quot;</span>)
16
+ <span class="ruby-identifier">puts</span> <span class="ruby-identifier">formated_params</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@self_name</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/inter/</span>
17
+ <span class="ruby-node">&quot;gsave newpath #{@point.ps} #{@rotate} #{@scale} 0 0 moveto (#{@barcode}) (#{formated_params}) #{@self_name} barcode closepath grestore&quot;</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,170 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: RGhost::Barcode::Border</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">RGhost::Barcode::Border</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/rghost_barcode/rghost_barcode_base_rb.html">
59
+ rghost_barcode/rghost_barcode_base.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="Parameter.html">
69
+ RGhost::Barcode::Parameter
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+ <div id="description">
84
+ <p>
85
+ Display border properties. It&#8216;s used on the contructor of the class
86
+ <a href="Base.html">RGhost::Barcode::Base</a>(parent of all barcodes) by
87
+ Hash :border. Between parenthesis the original parameter.
88
+ </p>
89
+ <ul>
90
+ <li><tt>:show</tt>(showborder) - Enabled by true. Example: :show =&gt; true
91
+
92
+ </li>
93
+ <li><tt>:width</tt>(borderwidth) - Width of border in points.
94
+
95
+ </li>
96
+ <li><tt>:left, :right, :top, :bottom</tt>( borderleft, borderright, bordertop,
97
+ borderbottom) - specifies the width of the each side of border.
98
+
99
+ </li>
100
+ <li><tt>:color</tt>(textcolor) - Color of text. Only rgb hex. Example: :color
101
+ =&gt; &#8216;FF0000&#8216;
102
+
103
+ </li>
104
+ </ul>
105
+ <p>
106
+ Example:
107
+ </p>
108
+ <pre>
109
+ doc=Document.new
110
+ doc.barcode_interleaved2of5('0123456789', :border =&gt; {:width =&gt; 4, :left =&gt; 15, :right =&gt; 15, :show =&gt; true} )
111
+ </pre>
112
+
113
+ </div>
114
+
115
+
116
+ </div>
117
+
118
+ <div id="method-list">
119
+ <h3 class="section-bar">Methods</h3>
120
+
121
+ <div class="name-list">
122
+ <a href="#M000001">make</a>&nbsp;&nbsp;
123
+ </div>
124
+ </div>
125
+
126
+ </div>
127
+
128
+
129
+ <!-- if includes -->
130
+
131
+ <div id="section">
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+ <!-- if method_list -->
141
+ <div id="methods">
142
+ <h3 class="section-bar">Public Instance methods</h3>
143
+
144
+ <div id="method-M000001" class="method-detail">
145
+ <a name="M000001"></a>
146
+
147
+ <div class="method-heading">
148
+ <a href="Border.src/M000001.html" target="Code" class="method-signature"
149
+ onclick="popupCode('Border.src/M000001.html');return false;">
150
+ <span class="method-name">make</span><span class="method-args">()</span>
151
+ </a>
152
+ </div>
153
+
154
+ <div class="method-description">
155
+ </div>
156
+ </div>
157
+
158
+
159
+ </div>
160
+
161
+
162
+ </div>
163
+
164
+
165
+ <div id="validator-badges">
166
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
167
+ </div>
168
+
169
+ </body>
170
+ </html>