rghost_barcode 0.8 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. data/lib/rghost_barcode.rb +7 -5
  2. data/lib/rghost_barcode/ps/barcode_base.ps +17090 -0
  3. data/lib/rghost_barcode/rghost_barcode_adapter.rb +22 -226
  4. data/lib/rghost_barcode/rghost_barcode_base.rb +12 -14
  5. data/lib/rghost_barcode/rghost_barcode_types.rb +86 -0
  6. data/lib/rghost_barcode/rghost_barcode_version.rb +2 -2
  7. metadata +30 -177
  8. data/lib/doc/classes/RGhost.html +0 -109
  9. data/lib/doc/classes/RGhost/Barcode.html +0 -147
  10. data/lib/doc/classes/RGhost/Barcode/Auspost.html +0 -113
  11. data/lib/doc/classes/RGhost/Barcode/Azteccode.html +0 -113
  12. data/lib/doc/classes/RGhost/Barcode/Base.html +0 -266
  13. data/lib/doc/classes/RGhost/Barcode/Base.src/M000004.html +0 -34
  14. data/lib/doc/classes/RGhost/Barcode/Base.src/M000005.html +0 -30
  15. data/lib/doc/classes/RGhost/Barcode/Base.src/M000006.html +0 -20
  16. data/lib/doc/classes/RGhost/Barcode/Border.html +0 -170
  17. data/lib/doc/classes/RGhost/Barcode/Border.src/M000001.html +0 -27
  18. data/lib/doc/classes/RGhost/Barcode/Code11.html +0 -113
  19. data/lib/doc/classes/RGhost/Barcode/Code128.html +0 -113
  20. data/lib/doc/classes/RGhost/Barcode/Code2of5.html +0 -113
  21. data/lib/doc/classes/RGhost/Barcode/Code39.html +0 -113
  22. data/lib/doc/classes/RGhost/Barcode/Code93.html +0 -113
  23. data/lib/doc/classes/RGhost/Barcode/Datamatrix.html +0 -113
  24. data/lib/doc/classes/RGhost/Barcode/Ean13.html +0 -113
  25. data/lib/doc/classes/RGhost/Barcode/Ean2.html +0 -113
  26. data/lib/doc/classes/RGhost/Barcode/Ean5.html +0 -113
  27. data/lib/doc/classes/RGhost/Barcode/Ean8.html +0 -113
  28. data/lib/doc/classes/RGhost/Barcode/Guard.html +0 -174
  29. data/lib/doc/classes/RGhost/Barcode/Guard.src/M000003.html +0 -27
  30. data/lib/doc/classes/RGhost/Barcode/Interleaved2of5.html +0 -113
  31. data/lib/doc/classes/RGhost/Barcode/Isbn.html +0 -113
  32. data/lib/doc/classes/RGhost/Barcode/Kix.html +0 -113
  33. data/lib/doc/classes/RGhost/Barcode/Maxicode.html +0 -113
  34. data/lib/doc/classes/RGhost/Barcode/Msi.html +0 -113
  35. data/lib/doc/classes/RGhost/Barcode/Onecode.html +0 -113
  36. data/lib/doc/classes/RGhost/Barcode/Parameter.html +0 -262
  37. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000007.html +0 -20
  38. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000008.html +0 -18
  39. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000009.html +0 -18
  40. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000010.html +0 -18
  41. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000011.html +0 -18
  42. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000012.html +0 -24
  43. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000013.html +0 -18
  44. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000014.html +0 -18
  45. data/lib/doc/classes/RGhost/Barcode/Parameter.src/M000015.html +0 -16
  46. data/lib/doc/classes/RGhost/Barcode/Pdf417.html +0 -113
  47. data/lib/doc/classes/RGhost/Barcode/Pharmacode.html +0 -113
  48. data/lib/doc/classes/RGhost/Barcode/Plessey.html +0 -113
  49. data/lib/doc/classes/RGhost/Barcode/Postnet.html +0 -113
  50. data/lib/doc/classes/RGhost/Barcode/Qrcode.html +0 -113
  51. data/lib/doc/classes/RGhost/Barcode/Rationalizedcodabar.html +0 -113
  52. data/lib/doc/classes/RGhost/Barcode/Raw.html +0 -113
  53. data/lib/doc/classes/RGhost/Barcode/Royalmail.html +0 -113
  54. data/lib/doc/classes/RGhost/Barcode/Rss14.html +0 -113
  55. data/lib/doc/classes/RGhost/Barcode/Rssexpanded.html +0 -113
  56. data/lib/doc/classes/RGhost/Barcode/Rsslimited.html +0 -113
  57. data/lib/doc/classes/RGhost/Barcode/Symbol.html +0 -113
  58. data/lib/doc/classes/RGhost/Barcode/Text.html +0 -193
  59. data/lib/doc/classes/RGhost/Barcode/Text.src/M000002.html +0 -30
  60. data/lib/doc/classes/RGhost/Barcode/Upca.html +0 -113
  61. data/lib/doc/classes/RGhost/Barcode/Upce.html +0 -113
  62. data/lib/doc/classes/RGhost/Config.html +0 -150
  63. data/lib/doc/classes/RGhost/Config.src/M000016.html +0 -45
  64. data/lib/doc/classes/RGhost/Document.html +0 -704
  65. data/lib/doc/classes/RGhost/Document.src/M000017.html +0 -19
  66. data/lib/doc/classes/RGhost/Document.src/M000018.html +0 -18
  67. data/lib/doc/classes/RGhost/Document.src/M000019.html +0 -18
  68. data/lib/doc/classes/RGhost/Document.src/M000020.html +0 -18
  69. data/lib/doc/classes/RGhost/Document.src/M000021.html +0 -18
  70. data/lib/doc/classes/RGhost/Document.src/M000022.html +0 -18
  71. data/lib/doc/classes/RGhost/Document.src/M000023.html +0 -18
  72. data/lib/doc/classes/RGhost/Document.src/M000024.html +0 -18
  73. data/lib/doc/classes/RGhost/Document.src/M000025.html +0 -18
  74. data/lib/doc/classes/RGhost/Document.src/M000026.html +0 -18
  75. data/lib/doc/classes/RGhost/Document.src/M000027.html +0 -18
  76. data/lib/doc/classes/RGhost/Document.src/M000028.html +0 -18
  77. data/lib/doc/classes/RGhost/Document.src/M000029.html +0 -18
  78. data/lib/doc/classes/RGhost/Document.src/M000030.html +0 -18
  79. data/lib/doc/classes/RGhost/Document.src/M000031.html +0 -18
  80. data/lib/doc/classes/RGhost/Document.src/M000032.html +0 -18
  81. data/lib/doc/classes/RGhost/Document.src/M000033.html +0 -18
  82. data/lib/doc/classes/RGhost/Document.src/M000034.html +0 -18
  83. data/lib/doc/classes/RGhost/Document.src/M000035.html +0 -18
  84. data/lib/doc/classes/RGhost/Document.src/M000036.html +0 -18
  85. data/lib/doc/classes/RGhost/Document.src/M000037.html +0 -18
  86. data/lib/doc/classes/RGhost/Document.src/M000038.html +0 -18
  87. data/lib/doc/classes/RGhost/Document.src/M000039.html +0 -18
  88. data/lib/doc/classes/RGhost/Document.src/M000040.html +0 -18
  89. data/lib/doc/classes/RGhost/Document.src/M000041.html +0 -18
  90. data/lib/doc/classes/RGhost/Document.src/M000042.html +0 -18
  91. data/lib/doc/classes/RGhost/Document.src/M000043.html +0 -18
  92. data/lib/doc/classes/RGhost/Document.src/M000044.html +0 -18
  93. data/lib/doc/classes/RGhost/Document.src/M000045.html +0 -18
  94. data/lib/doc/classes/RGhost/Document.src/M000046.html +0 -18
  95. data/lib/doc/classes/RGhost/Document.src/M000047.html +0 -18
  96. data/lib/doc/classes/RGhost/Document.src/M000048.html +0 -18
  97. data/lib/doc/created.rid +0 -1
  98. data/lib/doc/files/rghost_barcode/rghost_barcode_adapter_rb.html +0 -101
  99. data/lib/doc/files/rghost_barcode/rghost_barcode_base_rb.html +0 -101
  100. data/lib/doc/files/rghost_barcode/rghost_barcode_classes_rb.html +0 -101
  101. data/lib/doc/files/rghost_barcode/rghost_barcode_examples_rb.html +0 -101
  102. data/lib/doc/files/rghost_barcode/rghost_barcode_version_rb.html +0 -101
  103. data/lib/doc/files/rghost_barcode_rb.html +0 -111
  104. data/lib/doc/files/teste_main_rb.html +0 -110
  105. data/lib/doc/fr_class_index.html +0 -67
  106. data/lib/doc/fr_file_index.html +0 -33
  107. data/lib/doc/fr_method_index.html +0 -74
  108. data/lib/doc/index.html +0 -24
  109. data/lib/rghost_barcode/ps/auspost.ps +0 -192
  110. data/lib/rghost_barcode/ps/azteccode.ps +0 -357
  111. data/lib/rghost_barcode/ps/barcode_template.eps +0 -1193
  112. data/lib/rghost_barcode/ps/code11.ps +0 -128
  113. data/lib/rghost_barcode/ps/code128.ps +0 -121
  114. data/lib/rghost_barcode/ps/code2of5.ps +0 -106
  115. data/lib/rghost_barcode/ps/code39.ps +0 -109
  116. data/lib/rghost_barcode/ps/code93.ps +0 -117
  117. data/lib/rghost_barcode/ps/datamatrix.ps +0 -328
  118. data/lib/rghost_barcode/ps/ean13.ps +0 -183
  119. data/lib/rghost_barcode/ps/ean2.ps +0 -101
  120. data/lib/rghost_barcode/ps/ean5.ps +0 -116
  121. data/lib/rghost_barcode/ps/ean8.ps +0 -101
  122. data/lib/rghost_barcode/ps/interleaved2of5.ps +0 -132
  123. data/lib/rghost_barcode/ps/isbn.ps +0 -118
  124. data/lib/rghost_barcode/ps/kix.ps +0 -98
  125. data/lib/rghost_barcode/ps/maxicode.ps +0 -307
  126. data/lib/rghost_barcode/ps/msi.ps +0 -104
  127. data/lib/rghost_barcode/ps/onecode.ps +0 -276
  128. data/lib/rghost_barcode/ps/pdf417.ps +0 -428
  129. data/lib/rghost_barcode/ps/pharmacode.ps +0 -69
  130. data/lib/rghost_barcode/ps/plessey.ps +0 -121
  131. data/lib/rghost_barcode/ps/postnet.ps +0 -114
  132. data/lib/rghost_barcode/ps/qrcode.ps +0 -530
  133. data/lib/rghost_barcode/ps/rationalizedcodabar.ps +0 -117
  134. data/lib/rghost_barcode/ps/raw.ps +0 -35
  135. data/lib/rghost_barcode/ps/render.ps +0 -307
  136. data/lib/rghost_barcode/ps/render.ps~ +0 -308
  137. data/lib/rghost_barcode/ps/royalmail.ps +0 -119
  138. data/lib/rghost_barcode/ps/rss14.ps +0 -237
  139. data/lib/rghost_barcode/ps/rssexpanded.ps +0 -211
  140. data/lib/rghost_barcode/ps/rsslimited.ps +0 -191
  141. data/lib/rghost_barcode/ps/symbol.ps +0 -49
  142. data/lib/rghost_barcode/ps/upca.ps +0 -128
  143. data/lib/rghost_barcode/ps/upce.ps +0 -157
  144. data/lib/rghost_barcode/rghost_barcode_classes.rb +0 -96
  145. data/lib/rghost_barcode/rghost_barcode_examples.rb +0 -35
  146. data/lib/teste_main.rb +0 -94
@@ -1,266 +0,0 @@
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>
@@ -1,34 +0,0 @@
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>
@@ -1,30 +0,0 @@
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>
@@ -1,20 +0,0 @@
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>
@@ -1,170 +0,0 @@
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>