rghost 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rghost.rb +1 -0
- data/lib/rghost/arc.rb +1 -1
- data/lib/rghost/doc/classes/Arc.html +200 -0
- data/lib/rghost/doc/classes/Arc.src/M000049.html +18 -0
- data/lib/rghost/doc/classes/Arc.src/M000050.html +23 -0
- data/lib/rghost/doc/classes/Barcode.html +214 -0
- data/lib/rghost/doc/classes/Barcode.src/M000001.html +19 -0
- data/lib/rghost/doc/classes/Barcode.src/M000002.html +18 -0
- data/lib/rghost/doc/classes/Barcode.src/M000003.html +19 -0
- data/lib/rghost/doc/classes/Barcode.src/M000004.html +27 -0
- data/lib/rghost/doc/classes/CMYK.html +209 -0
- data/lib/rghost/doc/classes/CMYK.src/M000047.html +18 -0
- data/lib/rghost/doc/classes/CMYK.src/M000048.html +24 -0
- data/lib/rghost/doc/classes/Callback.html +220 -0
- data/lib/rghost/doc/classes/Callback.src/M000071.html +21 -0
- data/lib/rghost/doc/classes/Callback.src/M000072.html +26 -0
- data/lib/rghost/doc/classes/Color.html +175 -0
- data/lib/rghost/doc/classes/Color.src/M000028.html +33 -0
- data/lib/rghost/doc/classes/Constants.html +120 -0
- data/lib/rghost/doc/classes/Constants/Colors.html +129 -0
- data/lib/rghost/doc/classes/Constants/Devices.html +163 -0
- data/lib/rghost/doc/classes/Constants/Devices.src/M000168.html +22 -0
- data/lib/rghost/doc/classes/Constants/Fonts.html +144 -0
- data/lib/rghost/doc/classes/Constants/Papers.html +124 -0
- data/lib/rghost/doc/classes/Convert.html +189 -0
- data/lib/rghost/doc/classes/Convert.src/M000067.html +20 -0
- data/lib/rghost/doc/classes/Convert.src/M000068.html +24 -0
- data/lib/rghost/doc/classes/Cursor.html +330 -0
- data/lib/rghost/doc/classes/Cursor.src/M000031.html +21 -0
- data/lib/rghost/doc/classes/Cursor.src/M000032.html +21 -0
- data/lib/rghost/doc/classes/Cursor.src/M000033.html +20 -0
- data/lib/rghost/doc/classes/Cursor.src/M000034.html +18 -0
- data/lib/rghost/doc/classes/Cursor.src/M000035.html +18 -0
- data/lib/rghost/doc/classes/Cursor.src/M000036.html +19 -0
- data/lib/rghost/doc/classes/Cursor.src/M000037.html +22 -0
- data/lib/rghost/doc/classes/Cursor.src/M000038.html +18 -0
- data/lib/rghost/doc/classes/Cursor.src/M000039.html +18 -0
- data/lib/rghost/doc/classes/DSCEntry.html +173 -0
- data/lib/rghost/doc/classes/DSCEntry.src/M000059.html +19 -0
- data/lib/rghost/doc/classes/DSCEntry.src/M000060.html +19 -0
- data/lib/rghost/doc/classes/DataGrid.html +133 -0
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.html +343 -0
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000140.html +27 -0
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000141.html +26 -0
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000142.html +22 -0
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000143.html +19 -0
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000144.html +26 -0
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000145.html +34 -0
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000146.html +18 -0
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000147.html +37 -0
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000148.html +26 -0
- data/lib/rghost/doc/classes/DataGrid/CSVGrid.html +152 -0
- data/lib/rghost/doc/classes/DataGrid/CSVGrid.src/M000139.html +32 -0
- data/lib/rghost/doc/classes/DataGrid/DynamicCallback.html +158 -0
- data/lib/rghost/doc/classes/DataGrid/DynamicCallback.src/M000149.html +19 -0
- data/lib/rghost/doc/classes/DataGrid/FieldFormat.html +216 -0
- data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000131.html +19 -0
- data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000132.html +18 -0
- data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000133.html +23 -0
- data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000134.html +18 -0
- data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000135.html +22 -0
- data/lib/rghost/doc/classes/DataGrid/FieldFormat/Custom.html +176 -0
- data/lib/rghost/doc/classes/DataGrid/FieldFormat/Custom.src/M000136.html +18 -0
- data/lib/rghost/doc/classes/DataGrid/FieldFormat/Custom.src/M000137.html +18 -0
- data/lib/rghost/doc/classes/DataGrid/FieldFormat/Custom.src/M000138.html +18 -0
- data/lib/rghost/doc/classes/DataGrid/Grid.html +148 -0
- data/lib/rghost/doc/classes/DataGrid/Grid.src/M000160.html +19 -0
- data/lib/rghost/doc/classes/DataGrid/Header.html +367 -0
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000150.html +26 -0
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000151.html +25 -0
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000152.html +24 -0
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000153.html +19 -0
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000154.html +18 -0
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000155.html +18 -0
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000156.html +18 -0
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000157.html +18 -0
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000158.html +19 -0
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000159.html +19 -0
- data/lib/rghost/doc/classes/DataGrid/RailsGrid.html +234 -0
- data/lib/rghost/doc/classes/DataGrid/RailsGrid.src/M000161.html +27 -0
- data/lib/rghost/doc/classes/DataGrid/RailsGrid.src/M000162.html +23 -0
- data/lib/rghost/doc/classes/DataGrid/RailsGrid.src/M000163.html +18 -0
- data/lib/rghost/doc/classes/DataGrid/StaticCallback.html +158 -0
- data/lib/rghost/doc/classes/DataGrid/StaticCallback.src/M000164.html +19 -0
- data/lib/rghost/doc/classes/DataGrid/Style.html +113 -0
- data/lib/rghost/doc/classes/DataGrid/Style/BorderLines.html +137 -0
- data/lib/rghost/doc/classes/DataGrid/Style/BorderLines.src/M000128.html +55 -0
- data/lib/rghost/doc/classes/DataGrid/Style/BottomLines.html +137 -0
- data/lib/rghost/doc/classes/DataGrid/Style/BottomLines.src/M000129.html +38 -0
- data/lib/rghost/doc/classes/DataGrid/Style/OldForms.html +137 -0
- data/lib/rghost/doc/classes/DataGrid/Style/OldForms.src/M000130.html +38 -0
- data/lib/rghost/doc/classes/Document.html +990 -0
- data/lib/rghost/doc/classes/Document.src/M000075.html +32 -0
- data/lib/rghost/doc/classes/Document.src/M000076.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000077.html +29 -0
- data/lib/rghost/doc/classes/Document.src/M000078.html +33 -0
- data/lib/rghost/doc/classes/Document.src/M000079.html +20 -0
- data/lib/rghost/doc/classes/Document.src/M000080.html +21 -0
- data/lib/rghost/doc/classes/Document.src/M000081.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000082.html +19 -0
- data/lib/rghost/doc/classes/Document.src/M000083.html +21 -0
- data/lib/rghost/doc/classes/Document.src/M000084.html +22 -0
- data/lib/rghost/doc/classes/Document.src/M000085.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000086.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000087.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000088.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000089.html +19 -0
- data/lib/rghost/doc/classes/Document.src/M000090.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000091.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000092.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000093.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000094.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000095.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000096.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000097.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000098.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000099.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000100.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000101.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000102.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000103.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000104.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000105.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000106.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000107.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000108.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000109.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000110.html +18 -0
- data/lib/rghost/doc/classes/Document.src/M000111.html +20 -0
- data/lib/rghost/doc/classes/Document.src/M000112.html +19 -0
- data/lib/rghost/doc/classes/Document.src/M000113.html +19 -0
- data/lib/rghost/doc/classes/DynamicDocumentCallback.html +175 -0
- data/lib/rghost/doc/classes/DynamicDocumentCallback.src/M000022.html +19 -0
- data/lib/rghost/doc/classes/Eps.html +168 -0
- data/lib/rghost/doc/classes/Eps.src/M000063.html +20 -0
- data/lib/rghost/doc/classes/Eps.src/M000064.html +20 -0
- data/lib/rghost/doc/classes/Font.html +205 -0
- data/lib/rghost/doc/classes/Font.src/M000061.html +22 -0
- data/lib/rghost/doc/classes/Font.src/M000062.html +37 -0
- data/lib/rghost/doc/classes/Function.html +196 -0
- data/lib/rghost/doc/classes/Function.src/M000045.html +27 -0
- data/lib/rghost/doc/classes/Function.src/M000046.html +20 -0
- data/lib/rghost/doc/classes/GSAlone.html +154 -0
- data/lib/rghost/doc/classes/GSAlone.src/M000065.html +19 -0
- data/lib/rghost/doc/classes/GSAlone.src/M000066.html +22 -0
- data/lib/rghost/doc/classes/Gif.html +148 -0
- data/lib/rghost/doc/classes/Gif.src/M000040.html +30 -0
- data/lib/rghost/doc/classes/Graphic.html +153 -0
- data/lib/rghost/doc/classes/Graphic.src/M000014.html +18 -0
- data/lib/rghost/doc/classes/Gray.html +181 -0
- data/lib/rghost/doc/classes/Gray.src/M000026.html +18 -0
- data/lib/rghost/doc/classes/Gray.src/M000027.html +19 -0
- data/lib/rghost/doc/classes/Helpers.html +112 -0
- data/lib/rghost/doc/classes/Helpers/HashKeyMethod.html +131 -0
- data/lib/rghost/doc/classes/Helpers/HashKeyMethod.src/M000127.html +18 -0
- data/lib/rghost/doc/classes/Helpers/HashKeyMethodClass.html +118 -0
- data/lib/rghost/doc/classes/HorizontalLine.html +186 -0
- data/lib/rghost/doc/classes/HorizontalLine.src/M000023.html +23 -0
- data/lib/rghost/doc/classes/Image.html +176 -0
- data/lib/rghost/doc/classes/Image.src/M000042.html +20 -0
- data/lib/rghost/doc/classes/Image.src/M000043.html +26 -0
- data/lib/rghost/doc/classes/Jpeg.html +148 -0
- data/lib/rghost/doc/classes/Jpeg.src/M000013.html +28 -0
- data/lib/rghost/doc/classes/Line.html +190 -0
- data/lib/rghost/doc/classes/Line.src/M000069.html +20 -0
- data/lib/rghost/doc/classes/Line.src/M000070.html +19 -0
- data/lib/rghost/doc/classes/LineWidth.html +172 -0
- data/lib/rghost/doc/classes/LineWidth.src/M000005.html +18 -0
- data/lib/rghost/doc/classes/LineWidth.src/M000006.html +18 -0
- data/lib/rghost/doc/classes/Load.html +161 -0
- data/lib/rghost/doc/classes/Load.src/M000165.html +21 -0
- data/lib/rghost/doc/classes/Load.src/M000166.html +34 -0
- data/lib/rghost/doc/classes/Load.src/M000167.html +19 -0
- data/lib/rghost/doc/classes/NewPath.html +153 -0
- data/lib/rghost/doc/classes/NewPath.src/M000041.html +18 -0
- data/lib/rghost/doc/classes/Paper.html +213 -0
- data/lib/rghost/doc/classes/Paper.src/M000010.html +20 -0
- data/lib/rghost/doc/classes/Paper.src/M000011.html +24 -0
- data/lib/rghost/doc/classes/Paper.src/M000012.html +20 -0
- data/lib/rghost/doc/classes/Point.html +180 -0
- data/lib/rghost/doc/classes/Point.src/M000073.html +20 -0
- data/lib/rghost/doc/classes/Point.src/M000074.html +18 -0
- data/lib/rghost/doc/classes/PointWithCommand.html +150 -0
- data/lib/rghost/doc/classes/PointWithCommand.src/M000115.html +22 -0
- data/lib/rghost/doc/classes/PsObject.html +269 -0
- data/lib/rghost/doc/classes/PsObject.src/M000015.html +25 -0
- data/lib/rghost/doc/classes/PsObject.src/M000016.html +18 -0
- data/lib/rghost/doc/classes/PsObject.src/M000017.html +18 -0
- data/lib/rghost/doc/classes/PsObject.src/M000018.html +18 -0
- data/lib/rghost/doc/classes/PsObject.src/M000019.html +21 -0
- data/lib/rghost/doc/classes/PsObject.src/M000020.html +19 -0
- data/lib/rghost/doc/classes/PsObject.src/M000021.html +18 -0
- data/lib/rghost/doc/classes/RGB.html +213 -0
- data/lib/rghost/doc/classes/RGB.src/M000024.html +21 -0
- data/lib/rghost/doc/classes/RGB.src/M000025.html +25 -0
- data/lib/rghost/doc/classes/Rectangle.html +226 -0
- data/lib/rghost/doc/classes/Rectangle.src/M000056.html +18 -0
- data/lib/rghost/doc/classes/Rectangle.src/M000057.html +24 -0
- data/lib/rghost/doc/classes/Rectangle.src/M000058.html +21 -0
- data/lib/rghost/doc/classes/RubyGhostConfig.html +144 -0
- data/lib/rghost/doc/classes/RubyGhostConfig.src/M000118.html +22 -0
- data/lib/rghost/doc/classes/RubyGhostEngine.html +261 -0
- data/lib/rghost/doc/classes/RubyGhostEngine.src/M000007.html +24 -0
- data/lib/rghost/doc/classes/RubyGhostEngine.src/M000008.html +96 -0
- data/lib/rghost/doc/classes/RubyGhostEngine.src/M000009.html +21 -0
- data/lib/rghost/doc/classes/RubyToPs.html +272 -0
- data/lib/rghost/doc/classes/RubyToPs.src/M000119.html +23 -0
- data/lib/rghost/doc/classes/RubyToPs.src/M000120.html +18 -0
- data/lib/rghost/doc/classes/RubyToPs.src/M000121.html +18 -0
- data/lib/rghost/doc/classes/RubyToPs.src/M000122.html +19 -0
- data/lib/rghost/doc/classes/RubyToPs.src/M000123.html +30 -0
- data/lib/rghost/doc/classes/RubyToPs.src/M000124.html +18 -0
- data/lib/rghost/doc/classes/RubyToPs.src/M000125.html +18 -0
- data/lib/rghost/doc/classes/RubyToPs.src/M000126.html +30 -0
- data/lib/rghost/doc/classes/Scale.html +153 -0
- data/lib/rghost/doc/classes/Scale.src/M000114.html +18 -0
- data/lib/rghost/doc/classes/Show.html +203 -0
- data/lib/rghost/doc/classes/Show.src/M000052.html +20 -0
- data/lib/rghost/doc/classes/Show.src/M000053.html +19 -0
- data/lib/rghost/doc/classes/StaticDocumentCallback.html +168 -0
- data/lib/rghost/doc/classes/StaticDocumentCallback.src/M000051.html +19 -0
- data/lib/rghost/doc/classes/TextArea.html +217 -0
- data/lib/rghost/doc/classes/TextArea.src/M000029.html +22 -0
- data/lib/rghost/doc/classes/TextArea.src/M000030.html +24 -0
- data/lib/rghost/doc/classes/TextIn.html +201 -0
- data/lib/rghost/doc/classes/TextIn.src/M000054.html +19 -0
- data/lib/rghost/doc/classes/TextIn.src/M000055.html +24 -0
- data/lib/rghost/doc/classes/Units.html +166 -0
- data/lib/rghost/doc/classes/Units.src/M000169.html +22 -0
- data/lib/rghost/doc/classes/Units/Cm.html +145 -0
- data/lib/rghost/doc/classes/Units/Cm.src/M000175.html +19 -0
- data/lib/rghost/doc/classes/Units/Inch.html +145 -0
- data/lib/rghost/doc/classes/Units/Inch.src/M000174.html +18 -0
- data/lib/rghost/doc/classes/Units/PSUnit.html +139 -0
- data/lib/rghost/doc/classes/Units/PSUnit.src/M000170.html +18 -0
- data/lib/rghost/doc/classes/Units/Unit.html +190 -0
- data/lib/rghost/doc/classes/Units/Unit.src/M000171.html +18 -0
- data/lib/rghost/doc/classes/Units/Unit.src/M000172.html +19 -0
- data/lib/rghost/doc/classes/Units/Unit.src/M000173.html +18 -0
- data/lib/rghost/doc/classes/Variable.html +152 -0
- data/lib/rghost/doc/classes/Variable.src/M000044.html +18 -0
- data/lib/rghost/doc/classes/VerticalLine.html +175 -0
- data/lib/rghost/doc/classes/VerticalLine.src/M000116.html +23 -0
- data/lib/rghost/doc/classes/VerticalLine.src/M000117.html +19 -0
- data/lib/rghost/doc/created.rid +1 -0
- data/lib/rghost/doc/files/arc_rb.html +109 -0
- data/lib/rghost/doc/files/barcode_rb.html +108 -0
- data/lib/rghost/doc/files/callback_rb.html +109 -0
- data/lib/rghost/doc/files/color_rb.html +110 -0
- data/lib/rghost/doc/files/constants_rb.html +108 -0
- data/lib/rghost/doc/files/convert_rb.html +107 -0
- data/lib/rghost/doc/files/cursor_rb.html +110 -0
- data/lib/rghost/doc/files/data_grid/basic_grid_rb.html +108 -0
- data/lib/rghost/doc/files/data_grid/csv_grid_rb.html +108 -0
- data/lib/rghost/doc/files/data_grid/data_grid_rb.html +116 -0
- data/lib/rghost/doc/files/data_grid/dynamic_callback_rb.html +108 -0
- data/lib/rghost/doc/files/data_grid/field_format_rb.html +109 -0
- data/lib/rghost/doc/files/data_grid/grid_rb.html +108 -0
- data/lib/rghost/doc/files/data_grid/header_rb.html +113 -0
- data/lib/rghost/doc/files/data_grid/rails_grid_rb.html +108 -0
- data/lib/rghost/doc/files/data_grid/static_callback_rb.html +109 -0
- data/lib/rghost/doc/files/data_grid/style/border_lines_rb.html +101 -0
- data/lib/rghost/doc/files/data_grid/style/bottom_lines_rb.html +101 -0
- data/lib/rghost/doc/files/data_grid/style/old_forms_rb.html +101 -0
- data/lib/rghost/doc/files/data_grid/style/style_rb.html +110 -0
- data/lib/rghost/doc/files/document_rb.html +150 -0
- data/lib/rghost/doc/files/dsc_entry_rb.html +108 -0
- data/lib/rghost/doc/files/dynamic_document_callback_rb.html +108 -0
- data/lib/rghost/doc/files/eps_rb.html +108 -0
- data/lib/rghost/doc/files/font_rb.html +110 -0
- data/lib/rghost/doc/files/function_rb.html +108 -0
- data/lib/rghost/doc/files/gif_rb.html +114 -0
- data/lib/rghost/doc/files/graphic_rb.html +113 -0
- data/lib/rghost/doc/files/gs_alone_rb.html +101 -0
- data/lib/rghost/doc/files/helpers_rb.html +101 -0
- data/lib/rghost/doc/files/horizontal_line_rb.html +109 -0
- data/lib/rghost/doc/files/image_rb.html +108 -0
- data/lib/rghost/doc/files/jpeg_rb.html +112 -0
- data/lib/rghost/doc/files/line_rb.html +109 -0
- data/lib/rghost/doc/files/line_width_rb.html +108 -0
- data/lib/rghost/doc/files/load_rb.html +108 -0
- data/lib/rghost/doc/files/newpath_rb.html +113 -0
- data/lib/rghost/doc/files/paper_rb.html +112 -0
- data/lib/rghost/doc/files/point_rb.html +109 -0
- data/lib/rghost/doc/files/point_with_command_rb.html +109 -0
- data/lib/rghost/doc/files/ps_object_rb.html +107 -0
- data/lib/rghost/doc/files/rectangle_rb.html +110 -0
- data/lib/rghost/doc/files/rghost_rb.html +109 -0
- data/lib/rghost/doc/files/ruby_ghost_config_rb.html +109 -0
- data/lib/rghost/doc/files/ruby_ghost_engine_rb.html +111 -0
- data/lib/rghost/doc/files/ruby_to_ps_rb.html +107 -0
- data/lib/rghost/doc/files/scale_rb.html +108 -0
- data/lib/rghost/doc/files/show_rb.html +109 -0
- data/lib/rghost/doc/files/static_document_callback_rb.html +109 -0
- data/lib/rghost/doc/files/text_in_rb.html +110 -0
- data/lib/rghost/doc/files/textarea_rb.html +111 -0
- data/lib/rghost/doc/files/units_rb.html +109 -0
- data/lib/rghost/doc/files/variable_rb.html +108 -0
- data/lib/rghost/doc/files/version_rb.html +101 -0
- data/lib/rghost/doc/files/vertical_line_rb.html +110 -0
- data/lib/rghost/doc/fr_class_index.html +93 -0
- data/lib/rghost/doc/fr_file_index.html +81 -0
- data/lib/rghost/doc/fr_method_index.html +201 -0
- data/lib/rghost/doc/index.html +24 -0
- data/lib/rghost/ruby_ghost_engine.rb +69 -67
- metadata +473 -117
- data/History.txt +0 -4
- data/Manifest.txt +0 -131
- data/README.txt +0 -3
- data/Rakefile +0 -93
- data/lib/rgteste.rb +0 -46
- data/scripts/txt2html +0 -67
- data/setup.rb +0 -1585
- data/test/test_helper.rb +0 -2
- data/test/test_rghost.rb +0 -11
- data/website/index.html +0 -11
- data/website/index.txt +0 -30
- data/website/javascripts/rounded_corners_lite.inc.js +0 -285
- data/website/stylesheets/screen.css +0 -129
- data/website/template.rhtml +0 -48
@@ -0,0 +1,55 @@
|
|
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>set_style (DataGrid::Style::BorderLines)</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 data_grid/style/border_lines.rb, line 5</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_style</span>(<span class="ruby-identifier">grid</span>)
|
15
|
+
|
16
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">before_row</span> <span class="ruby-keyword kw">do</span>
|
17
|
+
|
18
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">HorizontalLine</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:top</span>, <span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">size</span>)
|
19
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">HorizontalLine</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:bottom</span>,<span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">size</span>)
|
20
|
+
<span class="ruby-keyword kw">end</span>
|
21
|
+
|
22
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">before_column</span> <span class="ruby-identifier">:only</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">do</span>
|
23
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">VerticalLine</span>.<span class="ruby-identifier">row</span>
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
|
26
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">after_column</span> <span class="ruby-keyword kw">do</span>
|
27
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">VerticalLine</span>.<span class="ruby-identifier">row</span>
|
28
|
+
<span class="ruby-keyword kw">end</span>
|
29
|
+
|
30
|
+
|
31
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">before_create</span> <span class="ruby-keyword kw">do</span>
|
32
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">LineWidth</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span>)
|
33
|
+
<span class="ruby-identifier">call</span> <span class="ruby-identifier">:font_bold</span>
|
34
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">HorizontalLine</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:top</span>, <span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">size</span>)
|
35
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">HorizontalLine</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:bottom</span>,<span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">size</span>)
|
36
|
+
<span class="ruby-keyword kw">end</span>
|
37
|
+
|
38
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">after_create</span> { <span class="ruby-identifier">call</span> <span class="ruby-identifier">:font_normal</span> }
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">before_column</span> <span class="ruby-identifier">:only</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">do</span>
|
43
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">VerticalLine</span>.<span class="ruby-identifier">row</span>
|
44
|
+
<span class="ruby-keyword kw">end</span>
|
45
|
+
|
46
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">after_column</span> <span class="ruby-keyword kw">do</span>
|
47
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">VerticalLine</span>.<span class="ruby-identifier">row</span>
|
48
|
+
<span class="ruby-keyword kw">end</span>
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
<span class="ruby-keyword kw">end</span></pre>
|
54
|
+
</body>
|
55
|
+
</html>
|
@@ -0,0 +1,137 @@
|
|
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: DataGrid::Style::BottomLines</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">DataGrid::Style::BottomLines</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/data_grid/style/bottom_lines_rb.html">
|
59
|
+
data_grid/style/bottom_lines.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
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000129">set_style</a>
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<!-- if includes -->
|
97
|
+
|
98
|
+
<div id="section">
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<!-- if method_list -->
|
108
|
+
<div id="methods">
|
109
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
110
|
+
|
111
|
+
<div id="method-M000129" class="method-detail">
|
112
|
+
<a name="M000129"></a>
|
113
|
+
|
114
|
+
<div class="method-heading">
|
115
|
+
<a href="BottomLines.src/M000129.html" target="Code" class="method-signature"
|
116
|
+
onclick="popupCode('BottomLines.src/M000129.html');return false;">
|
117
|
+
<span class="method-name">set_style</span><span class="method-args">(grid)</span>
|
118
|
+
</a>
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div class="method-description">
|
122
|
+
</div>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
</div>
|
127
|
+
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
|
132
|
+
<div id="validator-badges">
|
133
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
134
|
+
</div>
|
135
|
+
|
136
|
+
</body>
|
137
|
+
</html>
|
@@ -0,0 +1,38 @@
|
|
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>set_style (DataGrid::Style::BottomLines)</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 data_grid/style/bottom_lines.rb, line 5</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_style</span>(<span class="ruby-identifier">grid</span>)
|
15
|
+
|
16
|
+
<span class="ruby-identifier">size</span>=<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">size</span>
|
17
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">before_row</span> <span class="ruby-keyword kw">do</span>
|
18
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">HorizontalLine</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:bottom</span>,<span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">size</span>)
|
19
|
+
|
20
|
+
<span class="ruby-keyword kw">end</span>
|
21
|
+
|
22
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">before_create</span> <span class="ruby-keyword kw">do</span>
|
23
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">LineWidth</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span>)
|
24
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">HorizontalLine</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:bottom</span>,<span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">size</span>)
|
25
|
+
<span class="ruby-identifier">call</span> <span class="ruby-identifier">:font_bold</span>
|
26
|
+
<span class="ruby-keyword kw">end</span>
|
27
|
+
|
28
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">after_create</span> { <span class="ruby-identifier">call</span> <span class="ruby-identifier">:font_normal</span> }
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
<span class="ruby-keyword kw">end</span></pre>
|
37
|
+
</body>
|
38
|
+
</html>
|
@@ -0,0 +1,137 @@
|
|
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: DataGrid::Style::OldForms</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">DataGrid::Style::OldForms</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/data_grid/style/old_forms_rb.html">
|
59
|
+
data_grid/style/old_forms.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
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000130">set_style</a>
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<!-- if includes -->
|
97
|
+
|
98
|
+
<div id="section">
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<!-- if method_list -->
|
108
|
+
<div id="methods">
|
109
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
110
|
+
|
111
|
+
<div id="method-M000130" class="method-detail">
|
112
|
+
<a name="M000130"></a>
|
113
|
+
|
114
|
+
<div class="method-heading">
|
115
|
+
<a href="OldForms.src/M000130.html" target="Code" class="method-signature"
|
116
|
+
onclick="popupCode('OldForms.src/M000130.html');return false;">
|
117
|
+
<span class="method-name">set_style</span><span class="method-args">(grid)</span>
|
118
|
+
</a>
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div class="method-description">
|
122
|
+
</div>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
</div>
|
127
|
+
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
|
132
|
+
<div id="validator-badges">
|
133
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
134
|
+
</div>
|
135
|
+
|
136
|
+
</body>
|
137
|
+
</html>
|
@@ -0,0 +1,38 @@
|
|
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>set_style (DataGrid::Style::OldForms)</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 data_grid/style/old_forms.rb, line 5</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_style</span>(<span class="ruby-identifier">grid</span>)
|
15
|
+
|
16
|
+
<span class="ruby-identifier">size</span>=<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">size</span>
|
17
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">odd_row</span> <span class="ruby-keyword kw">do</span>
|
18
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">Rectangle</span>.<span class="ruby-identifier">background_row</span>(<span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">size</span>)
|
19
|
+
|
20
|
+
<span class="ruby-keyword kw">end</span>
|
21
|
+
|
22
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">before_create</span> <span class="ruby-keyword kw">do</span>
|
23
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">LineWidth</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span>)
|
24
|
+
<span class="ruby-identifier">set</span> <span class="ruby-constant">Rectangle</span>.<span class="ruby-identifier">background_row</span>(<span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">size</span>, <span class="ruby-identifier">:color</span> =<span class="ruby-operator">></span> <span class="ruby-constant">Gray</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span><span class="ruby-value">.9</span>) )
|
25
|
+
<span class="ruby-identifier">call</span> <span class="ruby-identifier">:font_bold</span>
|
26
|
+
<span class="ruby-keyword kw">end</span>
|
27
|
+
|
28
|
+
<span class="ruby-identifier">grid</span>.<span class="ruby-identifier">header</span>.<span class="ruby-identifier">after_create</span> { <span class="ruby-identifier">call</span> <span class="ruby-identifier">:font_normal</span> }
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
<span class="ruby-keyword kw">end</span></pre>
|
37
|
+
</body>
|
38
|
+
</html>
|
@@ -0,0 +1,990 @@
|
|
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: Document</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">Document</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/document_rb.html">
|
59
|
+
document.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="PsObject.html">
|
69
|
+
PsObject
|
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="Document.html">Document</a> � a classe que centraliza a estrutura
|
86
|
+
do documento
|
87
|
+
</p>
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
|
92
|
+
</div>
|
93
|
+
|
94
|
+
<div id="method-list">
|
95
|
+
<h3 class="section-bar">Methods</h3>
|
96
|
+
|
97
|
+
<div class="name-list">
|
98
|
+
<a href="#M000104">background_row</a>
|
99
|
+
<a href="#M000081">define</a>
|
100
|
+
<a href="#M000082">define_and_call</a>
|
101
|
+
<a href="#M000098">define_template</a>
|
102
|
+
<a href="#M000088">define_variable</a>
|
103
|
+
<a href="#M000113">done</a>
|
104
|
+
<a href="#M000096">dsc_entry</a>
|
105
|
+
<a href="#M000099">font</a>
|
106
|
+
<a href="#M000090">goto_row</a>
|
107
|
+
<a href="#M000086">graphic</a>
|
108
|
+
<a href="#M000076">gs_paper</a>
|
109
|
+
<a href="#M000101">hl</a>
|
110
|
+
<a href="#M000102">horizontal_line</a>
|
111
|
+
<a href="#M000100">image</a>
|
112
|
+
<a href="#M000091">jump_rows</a>
|
113
|
+
<a href="#M000111">load_font</a>
|
114
|
+
<a href="#M000077">method_missing</a>
|
115
|
+
<a href="#M000093">moveto</a>
|
116
|
+
<a href="#M000075">new</a>
|
117
|
+
<a href="#M000087">newpath</a>
|
118
|
+
<a href="#M000085">next_page</a>
|
119
|
+
<a href="#M000083">next_row</a>
|
120
|
+
<a href="#M000084">print_file</a>
|
121
|
+
<a href="#M000078">ps</a>
|
122
|
+
<a href="#M000103">rectangle</a>
|
123
|
+
<a href="#M000079">render</a>
|
124
|
+
<a href="#M000080">render_stream</a>
|
125
|
+
<a href="#M000094">rmoveto</a>
|
126
|
+
<a href="#M000092">rotate</a>
|
127
|
+
<a href="#M000105">scale</a>
|
128
|
+
<a href="#M000108">show</a>
|
129
|
+
<a href="#M000089">showpage</a>
|
130
|
+
<a href="#M000112">stroke</a>
|
131
|
+
<a href="#M000097">template</a>
|
132
|
+
<a href="#M000107">text</a>
|
133
|
+
<a href="#M000109">text_area</a>
|
134
|
+
<a href="#M000106">text_in</a>
|
135
|
+
<a href="#M000095">translate</a>
|
136
|
+
<a href="#M000110">vertical_line</a>
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
|
140
|
+
</div>
|
141
|
+
|
142
|
+
|
143
|
+
<!-- if includes -->
|
144
|
+
|
145
|
+
<div id="section">
|
146
|
+
|
147
|
+
|
148
|
+
<div id="constants-list">
|
149
|
+
<h3 class="section-bar">Constants</h3>
|
150
|
+
|
151
|
+
<div class="name-list">
|
152
|
+
<table summary="Constants">
|
153
|
+
<tr class="top-aligned-row context-row">
|
154
|
+
<td class="context-item-name">DEFAULT_OPTIONS</td>
|
155
|
+
<td>=</td>
|
156
|
+
<td class="context-item-value">{ :rows_per_page => 80 , :count_pages => 10, :row_height => 0.4, :row_padding => 0.1, :fontsize=> RubyGhostConfig::GS[:fontsize], :font_encoding=> RubyGhostConfig::GS[:font_encoding]</td>
|
157
|
+
</tr>
|
158
|
+
</table>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<!-- if method_list -->
|
168
|
+
<div id="methods">
|
169
|
+
<h3 class="section-bar">Public Class methods</h3>
|
170
|
+
|
171
|
+
<div id="method-M000075" class="method-detail">
|
172
|
+
<a name="M000075"></a>
|
173
|
+
|
174
|
+
<div class="method-heading">
|
175
|
+
<a href="Document.src/M000075.html" target="Code" class="method-signature"
|
176
|
+
onclick="popupCode('Document.src/M000075.html');return false;">
|
177
|
+
<span class="method-name">new</span><span class="method-args">(options={},&block)</span>
|
178
|
+
</a>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
<div class="method-description">
|
182
|
+
<p>
|
183
|
+
Nova inst�ncia de <a href="Document.html">Document</a> com proxy da classe
|
184
|
+
<a href="Paper.html">Paper</a>.
|
185
|
+
</p>
|
186
|
+
<pre>
|
187
|
+
Responde as op��es
|
188
|
+
</pre>
|
189
|
+
<p>
|
190
|
+
<a href="Document.html">Document</a>
|
191
|
+
</p>
|
192
|
+
<pre>
|
193
|
+
:rows_per_page => 80 , # M�ximo de linhas por p�gina
|
194
|
+
:count_pages => 10, # Total de p�ginas do documento
|
195
|
+
:row_height => 0.4, # Altura da faixa
|
196
|
+
:row_padding => 0.1, # Espa�o entre cada faixa
|
197
|
+
:fontsize=> 8 # Tamanho da fonte padr�o
|
198
|
+
</pre>
|
199
|
+
<p>
|
200
|
+
<a href="Paper.html">Paper</a>
|
201
|
+
</p>
|
202
|
+
<pre>
|
203
|
+
:paper => :A4 # Tamanho do papel, personalizavel com array width X height(em pontos). Exmp: :paper => [400,300]
|
204
|
+
:landscape => false # Disposi��o do papel em 90�
|
205
|
+
:margin_top => 1, # Margin de topo
|
206
|
+
:margin_right => 1, # Margin direita
|
207
|
+
:margin_bottom => 1, # Margin da base
|
208
|
+
:margin_left => 1, # Margin esquerda
|
209
|
+
:duplex => false, # true - duas faces(para impress�o)
|
210
|
+
:tumble => false # true - tipo do duplex(para impress�o)
|
211
|
+
</pre>
|
212
|
+
</div>
|
213
|
+
</div>
|
214
|
+
|
215
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
216
|
+
|
217
|
+
<div id="method-M000104" class="method-detail">
|
218
|
+
<a name="M000104"></a>
|
219
|
+
|
220
|
+
<div class="method-heading">
|
221
|
+
<a href="Document.src/M000104.html" target="Code" class="method-signature"
|
222
|
+
onclick="popupCode('Document.src/M000104.html');return false;">
|
223
|
+
<span class="method-name">background_row</span><span class="method-args">(options={})</span>
|
224
|
+
</a>
|
225
|
+
</div>
|
226
|
+
|
227
|
+
<div class="method-description">
|
228
|
+
<p>
|
229
|
+
Facade <a href="Rectangle.html#M000058">Rectangle.background_row</a>
|
230
|
+
</p>
|
231
|
+
</div>
|
232
|
+
</div>
|
233
|
+
|
234
|
+
<div id="method-M000081" class="method-detail">
|
235
|
+
<a name="M000081"></a>
|
236
|
+
|
237
|
+
<div class="method-heading">
|
238
|
+
<a href="Document.src/M000081.html" target="Code" class="method-signature"
|
239
|
+
onclick="popupCode('Document.src/M000081.html');return false;">
|
240
|
+
<span class="method-name">define</span><span class="method-args">(name,&block)</span>
|
241
|
+
</a>
|
242
|
+
</div>
|
243
|
+
|
244
|
+
<div class="method-description">
|
245
|
+
<p>
|
246
|
+
Facade <a href="Function.html#M000045">Function.new</a> Define uma fun��o.
|
247
|
+
Exemplo:
|
248
|
+
</p>
|
249
|
+
<pre>
|
250
|
+
doc=Document.new
|
251
|
+
doc.define :myfont do
|
252
|
+
set Font.new(:name => "ZapfChancery-MediumItalic", :size => 10)
|
253
|
+
end
|
254
|
+
</pre>
|
255
|
+
</div>
|
256
|
+
</div>
|
257
|
+
|
258
|
+
<div id="method-M000082" class="method-detail">
|
259
|
+
<a name="M000082"></a>
|
260
|
+
|
261
|
+
<div class="method-heading">
|
262
|
+
<a href="Document.src/M000082.html" target="Code" class="method-signature"
|
263
|
+
onclick="popupCode('Document.src/M000082.html');return false;">
|
264
|
+
<span class="method-name">define_and_call</span><span class="method-args">(name,&block)</span>
|
265
|
+
</a>
|
266
|
+
</div>
|
267
|
+
|
268
|
+
<div class="method-description">
|
269
|
+
<p>
|
270
|
+
Define e chama uma fun��o.
|
271
|
+
</p>
|
272
|
+
<pre>
|
273
|
+
doc=Document.new
|
274
|
+
doc.define_and_call :my_photo do
|
275
|
+
set Jpeg.new("/local/img/my_photo.jpg", :y=> 5,:x => 8, :zoom=> 50)
|
276
|
+
end
|
277
|
+
</pre>
|
278
|
+
</div>
|
279
|
+
</div>
|
280
|
+
|
281
|
+
<div id="method-M000098" class="method-detail">
|
282
|
+
<a name="M000098"></a>
|
283
|
+
|
284
|
+
<div class="method-heading">
|
285
|
+
<a href="Document.src/M000098.html" target="Code" class="method-signature"
|
286
|
+
onclick="popupCode('Document.src/M000098.html');return false;">
|
287
|
+
<span class="method-name">define_template</span><span class="method-args">(name,file_path,options)</span>
|
288
|
+
</a>
|
289
|
+
</div>
|
290
|
+
|
291
|
+
<div class="method-description">
|
292
|
+
<p>
|
293
|
+
Define um template/eps
|
294
|
+
</p>
|
295
|
+
<pre>
|
296
|
+
dt=Document.new
|
297
|
+
dt.define_template(:myform, '/local/template/form1.eps', :x=> 3, :y => 5)
|
298
|
+
dt.call :myform # Executa o template
|
299
|
+
</pre>
|
300
|
+
</div>
|
301
|
+
</div>
|
302
|
+
|
303
|
+
<div id="method-M000088" class="method-detail">
|
304
|
+
<a name="M000088"></a>
|
305
|
+
|
306
|
+
<div class="method-heading">
|
307
|
+
<a href="Document.src/M000088.html" target="Code" class="method-signature"
|
308
|
+
onclick="popupCode('Document.src/M000088.html');return false;">
|
309
|
+
<span class="method-name">define_variable</span><span class="method-args">(name,value)</span>
|
310
|
+
</a>
|
311
|
+
</div>
|
312
|
+
|
313
|
+
<div class="method-description">
|
314
|
+
<p>
|
315
|
+
Facade <a href="Variable.html#M000044">Variable.new</a> Define uma vari�vel
|
316
|
+
global em Postscript.
|
317
|
+
</p>
|
318
|
+
<pre>
|
319
|
+
d=Document.new
|
320
|
+
d.define_variable(:my_var,[3,4,5,6])
|
321
|
+
</pre>
|
322
|
+
</div>
|
323
|
+
</div>
|
324
|
+
|
325
|
+
<div id="method-M000113" class="method-detail">
|
326
|
+
<a name="M000113"></a>
|
327
|
+
|
328
|
+
<div class="method-heading">
|
329
|
+
<a href="Document.src/M000113.html" target="Code" class="method-signature"
|
330
|
+
onclick="popupCode('Document.src/M000113.html');return false;">
|
331
|
+
<span class="method-name">done</span><span class="method-args">()</span>
|
332
|
+
</a>
|
333
|
+
</div>
|
334
|
+
|
335
|
+
<div class="method-description">
|
336
|
+
<p>
|
337
|
+
Informa que o documento est� pronto para ser convertido/impresso
|
338
|
+
</p>
|
339
|
+
</div>
|
340
|
+
</div>
|
341
|
+
|
342
|
+
<div id="method-M000096" class="method-detail">
|
343
|
+
<a name="M000096"></a>
|
344
|
+
|
345
|
+
<div class="method-heading">
|
346
|
+
<a href="Document.src/M000096.html" target="Code" class="method-signature"
|
347
|
+
onclick="popupCode('Document.src/M000096.html');return false;">
|
348
|
+
<span class="method-name">dsc_entry</span><span class="method-args">(&block)</span>
|
349
|
+
</a>
|
350
|
+
</div>
|
351
|
+
|
352
|
+
<div class="method-description">
|
353
|
+
<p>
|
354
|
+
Facade <a href="DSCEntry.html#M000059">DSCEntry.new</a>
|
355
|
+
</p>
|
356
|
+
</div>
|
357
|
+
</div>
|
358
|
+
|
359
|
+
<div id="method-M000099" class="method-detail">
|
360
|
+
<a name="M000099"></a>
|
361
|
+
|
362
|
+
<div class="method-heading">
|
363
|
+
<a href="Document.src/M000099.html" target="Code" class="method-signature"
|
364
|
+
onclick="popupCode('Document.src/M000099.html');return false;">
|
365
|
+
<span class="method-name">font</span><span class="method-args">(options)</span>
|
366
|
+
</a>
|
367
|
+
</div>
|
368
|
+
|
369
|
+
<div class="method-description">
|
370
|
+
<p>
|
371
|
+
Facade <a href="Font.html#M000061">Font.new</a>
|
372
|
+
</p>
|
373
|
+
</div>
|
374
|
+
</div>
|
375
|
+
|
376
|
+
<div id="method-M000090" class="method-detail">
|
377
|
+
<a name="M000090"></a>
|
378
|
+
|
379
|
+
<div class="method-heading">
|
380
|
+
<a href="Document.src/M000090.html" target="Code" class="method-signature"
|
381
|
+
onclick="popupCode('Document.src/M000090.html');return false;">
|
382
|
+
<span class="method-name">goto_row</span><span class="method-args">(row)</span>
|
383
|
+
</a>
|
384
|
+
</div>
|
385
|
+
|
386
|
+
<div class="method-description">
|
387
|
+
<p>
|
388
|
+
Facade <a href="Cursor.html#M000031">Cursor.goto_row</a>
|
389
|
+
</p>
|
390
|
+
</div>
|
391
|
+
</div>
|
392
|
+
|
393
|
+
<div id="method-M000086" class="method-detail">
|
394
|
+
<a name="M000086"></a>
|
395
|
+
|
396
|
+
<div class="method-heading">
|
397
|
+
<a href="Document.src/M000086.html" target="Code" class="method-signature"
|
398
|
+
onclick="popupCode('Document.src/M000086.html');return false;">
|
399
|
+
<span class="method-name">graphic</span><span class="method-args">(ps_obj=PsObject.new,&block)</span>
|
400
|
+
</a>
|
401
|
+
</div>
|
402
|
+
|
403
|
+
<div class="method-description">
|
404
|
+
<p>
|
405
|
+
Facade <a href="Graphic.html">Graphic</a> Condiciona em um bloco gr�fico.
|
406
|
+
Defini��es gr�ficas v�lidas apenas para o escopo do bloco n�o interferindo
|
407
|
+
nos demais gr�ficos.
|
408
|
+
</p>
|
409
|
+
<pre>
|
410
|
+
doc=Document.new
|
411
|
+
doc.graphic do
|
412
|
+
set LineWidth.new(0)
|
413
|
+
set Line.lineto(5,7)
|
414
|
+
end
|
415
|
+
</pre>
|
416
|
+
</div>
|
417
|
+
</div>
|
418
|
+
|
419
|
+
<div id="method-M000076" class="method-detail">
|
420
|
+
<a name="M000076"></a>
|
421
|
+
|
422
|
+
<div class="method-heading">
|
423
|
+
<a href="Document.src/M000076.html" target="Code" class="method-signature"
|
424
|
+
onclick="popupCode('Document.src/M000076.html');return false;">
|
425
|
+
<span class="method-name">gs_paper</span><span class="method-args">()</span>
|
426
|
+
</a>
|
427
|
+
</div>
|
428
|
+
|
429
|
+
<div class="method-description">
|
430
|
+
<p>
|
431
|
+
Facade <a href="Paper.html#M000012">Paper.gs_paper</a> Obtem o valor no
|
432
|
+
formato esperado pelo GS.
|
433
|
+
</p>
|
434
|
+
</div>
|
435
|
+
</div>
|
436
|
+
|
437
|
+
<div id="method-M000101" class="method-detail">
|
438
|
+
<a name="M000101"></a>
|
439
|
+
|
440
|
+
<div class="method-heading">
|
441
|
+
<a href="Document.src/M000101.html" target="Code" class="method-signature"
|
442
|
+
onclick="popupCode('Document.src/M000101.html');return false;">
|
443
|
+
<span class="method-name">hl</span><span class="method-args">(valign=:middle,options={})</span>
|
444
|
+
</a>
|
445
|
+
</div>
|
446
|
+
|
447
|
+
<div class="method-description">
|
448
|
+
<p>
|
449
|
+
Idem <a href="Document.html#M000102">horizontal_line</a>
|
450
|
+
</p>
|
451
|
+
</div>
|
452
|
+
</div>
|
453
|
+
|
454
|
+
<div id="method-M000102" class="method-detail">
|
455
|
+
<a name="M000102"></a>
|
456
|
+
|
457
|
+
<div class="method-heading">
|
458
|
+
<a href="Document.src/M000102.html" target="Code" class="method-signature"
|
459
|
+
onclick="popupCode('Document.src/M000102.html');return false;">
|
460
|
+
<span class="method-name">horizontal_line</span><span class="method-args">(valign=:middle,options={})</span>
|
461
|
+
</a>
|
462
|
+
</div>
|
463
|
+
|
464
|
+
<div class="method-description">
|
465
|
+
<p>
|
466
|
+
Facade <a href="HorizontalLine.html#M000023">HorizontalLine.new</a>
|
467
|
+
</p>
|
468
|
+
</div>
|
469
|
+
</div>
|
470
|
+
|
471
|
+
<div id="method-M000100" class="method-detail">
|
472
|
+
<a name="M000100"></a>
|
473
|
+
|
474
|
+
<div class="method-heading">
|
475
|
+
<a href="Document.src/M000100.html" target="Code" class="method-signature"
|
476
|
+
onclick="popupCode('Document.src/M000100.html');return false;">
|
477
|
+
<span class="method-name">image</span><span class="method-args">(path,options={})</span>
|
478
|
+
</a>
|
479
|
+
</div>
|
480
|
+
|
481
|
+
<div class="method-description">
|
482
|
+
<p>
|
483
|
+
Facade <a href="Image.html#M000043">Image.for</a>
|
484
|
+
</p>
|
485
|
+
</div>
|
486
|
+
</div>
|
487
|
+
|
488
|
+
<div id="method-M000091" class="method-detail">
|
489
|
+
<a name="M000091"></a>
|
490
|
+
|
491
|
+
<div class="method-heading">
|
492
|
+
<a href="Document.src/M000091.html" target="Code" class="method-signature"
|
493
|
+
onclick="popupCode('Document.src/M000091.html');return false;">
|
494
|
+
<span class="method-name">jump_rows</span><span class="method-args">(row)</span>
|
495
|
+
</a>
|
496
|
+
</div>
|
497
|
+
|
498
|
+
<div class="method-description">
|
499
|
+
<p>
|
500
|
+
Facade <a href="Cursor.html#M000032">Cursor.jump_rows</a>
|
501
|
+
</p>
|
502
|
+
</div>
|
503
|
+
</div>
|
504
|
+
|
505
|
+
<div id="method-M000111" class="method-detail">
|
506
|
+
<a name="M000111"></a>
|
507
|
+
|
508
|
+
<div class="method-heading">
|
509
|
+
<a href="Document.src/M000111.html" target="Code" class="method-signature"
|
510
|
+
onclick="popupCode('Document.src/M000111.html');return false;">
|
511
|
+
<span class="method-name">load_font</span><span class="method-args">(name=:CODE39)</span>
|
512
|
+
</a>
|
513
|
+
</div>
|
514
|
+
|
515
|
+
<div class="method-description">
|
516
|
+
<p>
|
517
|
+
Carrega de c�digo de barras(GNU Barcodes) da API
|
518
|
+
</p>
|
519
|
+
</div>
|
520
|
+
</div>
|
521
|
+
|
522
|
+
<div id="method-M000077" class="method-detail">
|
523
|
+
<a name="M000077"></a>
|
524
|
+
|
525
|
+
<div class="method-heading">
|
526
|
+
<a href="Document.src/M000077.html" target="Code" class="method-signature"
|
527
|
+
onclick="popupCode('Document.src/M000077.html');return false;">
|
528
|
+
<span class="method-name">method_missing</span><span class="method-args">(name,*args,&block)</span>
|
529
|
+
</a>
|
530
|
+
</div>
|
531
|
+
|
532
|
+
<div class="method-description">
|
533
|
+
<p>
|
534
|
+
Aceita StaticDocumentCallback::ACCEPT e DynamicDocumentCallback::ACCEPT
|
535
|
+
</p>
|
536
|
+
<pre>
|
537
|
+
doc=Document.new
|
538
|
+
doc.before_page_create :only => [1,2] do
|
539
|
+
set HorizontalLine.new
|
540
|
+
end
|
541
|
+
doc.even_pages :except => [1] do
|
542
|
+
set Show.new("ET say: Hello Humans!!")
|
543
|
+
end
|
544
|
+
doc.last_page do
|
545
|
+
set Cursor.jump_rows(3)
|
546
|
+
set TextIn.new(:x=> 4, :y => 15.5, :text => "Total: %current_page%")
|
547
|
+
end
|
548
|
+
</pre>
|
549
|
+
</div>
|
550
|
+
</div>
|
551
|
+
|
552
|
+
<div id="method-M000093" class="method-detail">
|
553
|
+
<a name="M000093"></a>
|
554
|
+
|
555
|
+
<div class="method-heading">
|
556
|
+
<a href="Document.src/M000093.html" target="Code" class="method-signature"
|
557
|
+
onclick="popupCode('Document.src/M000093.html');return false;">
|
558
|
+
<span class="method-name">moveto</span><span class="method-args">(point={})</span>
|
559
|
+
</a>
|
560
|
+
</div>
|
561
|
+
|
562
|
+
<div class="method-description">
|
563
|
+
<p>
|
564
|
+
Facade <a href="Cursor.html#M000034">Cursor.moveto</a>
|
565
|
+
</p>
|
566
|
+
</div>
|
567
|
+
</div>
|
568
|
+
|
569
|
+
<div id="method-M000087" class="method-detail">
|
570
|
+
<a name="M000087"></a>
|
571
|
+
|
572
|
+
<div class="method-heading">
|
573
|
+
<a href="Document.src/M000087.html" target="Code" class="method-signature"
|
574
|
+
onclick="popupCode('Document.src/M000087.html');return false;">
|
575
|
+
<span class="method-name">newpath</span><span class="method-args">(ps_obj=PsObject.new,&block)</span>
|
576
|
+
</a>
|
577
|
+
</div>
|
578
|
+
|
579
|
+
<div class="method-description">
|
580
|
+
<p>
|
581
|
+
Facade Newpath Cria um bloco que cria um novo path sem alterar o path
|
582
|
+
corrente. O path v�lido apenas para o escopo do bloco. Contudo fecha o
|
583
|
+
path(closepath) ao fim do bloco.
|
584
|
+
</p>
|
585
|
+
<pre>
|
586
|
+
doc=Document.new
|
587
|
+
doc.newpath do
|
588
|
+
set Arc.new(:x => 10, :y => 10, :radius => 100)
|
589
|
+
end
|
590
|
+
</pre>
|
591
|
+
</div>
|
592
|
+
</div>
|
593
|
+
|
594
|
+
<div id="method-M000085" class="method-detail">
|
595
|
+
<a name="M000085"></a>
|
596
|
+
|
597
|
+
<div class="method-heading">
|
598
|
+
<a href="Document.src/M000085.html" target="Code" class="method-signature"
|
599
|
+
onclick="popupCode('Document.src/M000085.html');return false;">
|
600
|
+
<span class="method-name">next_page</span><span class="method-args">()</span>
|
601
|
+
</a>
|
602
|
+
</div>
|
603
|
+
|
604
|
+
<div class="method-description">
|
605
|
+
<p>
|
606
|
+
Salta a p�gina com controlando o documento.
|
607
|
+
</p>
|
608
|
+
</div>
|
609
|
+
</div>
|
610
|
+
|
611
|
+
<div id="method-M000083" class="method-detail">
|
612
|
+
<a name="M000083"></a>
|
613
|
+
|
614
|
+
<div class="method-heading">
|
615
|
+
<a href="Document.src/M000083.html" target="Code" class="method-signature"
|
616
|
+
onclick="popupCode('Document.src/M000083.html');return false;">
|
617
|
+
<span class="method-name">next_row</span><span class="method-args">(&block)</span>
|
618
|
+
</a>
|
619
|
+
</div>
|
620
|
+
|
621
|
+
<div class="method-description">
|
622
|
+
<p>
|
623
|
+
Salta uma faixa e usa a faixa corrente.
|
624
|
+
</p>
|
625
|
+
<pre>
|
626
|
+
d=Document.new
|
627
|
+
doc.next_line do
|
628
|
+
set Show.new("single text in page center", :align => :page_center)
|
629
|
+
end
|
630
|
+
</pre>
|
631
|
+
<p>
|
632
|
+
Para cada linha de um arquivo.
|
633
|
+
</p>
|
634
|
+
<pre>
|
635
|
+
d=Document.new
|
636
|
+
File.open(__FILE__).each { |line| doc.next_row{ set Show.new(line) } }
|
637
|
+
d.done
|
638
|
+
d.render :pdf
|
639
|
+
</pre>
|
640
|
+
<p>
|
641
|
+
Uma linha separando cada faixa File.open(<em>FILE</em>).each do |line|
|
642
|
+
</p>
|
643
|
+
<pre>
|
644
|
+
doc.next_row do
|
645
|
+
set HorizontalLine.new(:top)
|
646
|
+
set Show.new(line)
|
647
|
+
end
|
648
|
+
</pre>
|
649
|
+
<p>
|
650
|
+
end
|
651
|
+
</p>
|
652
|
+
</div>
|
653
|
+
</div>
|
654
|
+
|
655
|
+
<div id="method-M000084" class="method-detail">
|
656
|
+
<a name="M000084"></a>
|
657
|
+
|
658
|
+
<div class="method-heading">
|
659
|
+
<a href="Document.src/M000084.html" target="Code" class="method-signature"
|
660
|
+
onclick="popupCode('Document.src/M000084.html');return false;">
|
661
|
+
<span class="method-name">print_file</span><span class="method-args">(file)</span>
|
662
|
+
</a>
|
663
|
+
</div>
|
664
|
+
|
665
|
+
<div class="method-description">
|
666
|
+
<p>
|
667
|
+
Carrega o texto do arquivo em uma itera��o de linhas.
|
668
|
+
</p>
|
669
|
+
</div>
|
670
|
+
</div>
|
671
|
+
|
672
|
+
<div id="method-M000078" class="method-detail">
|
673
|
+
<a name="M000078"></a>
|
674
|
+
|
675
|
+
<div class="method-heading">
|
676
|
+
<a href="Document.src/M000078.html" target="Code" class="method-signature"
|
677
|
+
onclick="popupCode('Document.src/M000078.html');return false;">
|
678
|
+
<span class="method-name">ps</span><span class="method-args">()</span>
|
679
|
+
</a>
|
680
|
+
</div>
|
681
|
+
|
682
|
+
<div class="method-description">
|
683
|
+
</div>
|
684
|
+
</div>
|
685
|
+
|
686
|
+
<div id="method-M000103" class="method-detail">
|
687
|
+
<a name="M000103"></a>
|
688
|
+
|
689
|
+
<div class="method-heading">
|
690
|
+
<a href="Document.src/M000103.html" target="Code" class="method-signature"
|
691
|
+
onclick="popupCode('Document.src/M000103.html');return false;">
|
692
|
+
<span class="method-name">rectangle</span><span class="method-args">(options={})</span>
|
693
|
+
</a>
|
694
|
+
</div>
|
695
|
+
|
696
|
+
<div class="method-description">
|
697
|
+
<p>
|
698
|
+
Facade <a href="Rectangle.html#M000056">Rectangle.new</a>
|
699
|
+
</p>
|
700
|
+
</div>
|
701
|
+
</div>
|
702
|
+
|
703
|
+
<div id="method-M000079" class="method-detail">
|
704
|
+
<a name="M000079"></a>
|
705
|
+
|
706
|
+
<div class="method-heading">
|
707
|
+
<a href="Document.src/M000079.html" target="Code" class="method-signature"
|
708
|
+
onclick="popupCode('Document.src/M000079.html');return false;">
|
709
|
+
<span class="method-name">render</span><span class="method-args">(device,options={})</span>
|
710
|
+
</a>
|
711
|
+
</div>
|
712
|
+
|
713
|
+
<div class="method-description">
|
714
|
+
<p>
|
715
|
+
Facade <a href="RubyGhostEngine.html#M000008">RubyGhostEngine.render</a>
|
716
|
+
Renderiza o documento.
|
717
|
+
</p>
|
718
|
+
<pre>
|
719
|
+
Valores v�lidos para options.
|
720
|
+
|
721
|
+
:tmpdir => File::SEPARATOR + "tmp", # Diret�rio tempor�rio
|
722
|
+
:logfile => File::SEPARATOR + "tmp" +File::SEPARATOR + "ruby_ghost.log" # Arquivo de log
|
723
|
+
:multipage=> true # Para imagens em v�rios arquivos
|
724
|
+
:resolution => 72 # Resolu��o
|
725
|
+
:size => "200x180" # Para crop da imagem de sa�da
|
726
|
+
:range =>2..3 # Range de p�ginas (PDF Only)
|
727
|
+
Array contendo um Hash para op��es em modo raw do Ghostscript :d ou :s
|
728
|
+
:s => [{:GenericResourceDir => /dir, :DEFAULTPAPERSIZE=> "a3"}]
|
729
|
+
:d => [ {:TextAlphaBits => 2} ]
|
730
|
+
</pre>
|
731
|
+
<p>
|
732
|
+
Ou usando string
|
733
|
+
</p>
|
734
|
+
<pre>
|
735
|
+
:raw => "-sGenericResourceDir=/test -dTextAlphaBits=2"
|
736
|
+
</pre>
|
737
|
+
<p>
|
738
|
+
Exemplo:
|
739
|
+
</p>
|
740
|
+
<pre>
|
741
|
+
d=Document.new
|
742
|
+
#fa�a o documento ....
|
743
|
+
|
744
|
+
d.render :pdf # Sa�da em pdf
|
745
|
+
d.render :jpeg # Sa�da em jpeg
|
746
|
+
d.render :png, :multipage => true # Uma imagem por arquivo
|
747
|
+
d.render :tiff, :resolution => 300 # Imagem com resolu��o de 300 dpi
|
748
|
+
</pre>
|
749
|
+
</div>
|
750
|
+
</div>
|
751
|
+
|
752
|
+
<div id="method-M000080" class="method-detail">
|
753
|
+
<a name="M000080"></a>
|
754
|
+
|
755
|
+
<div class="method-heading">
|
756
|
+
<a href="Document.src/M000080.html" target="Code" class="method-signature"
|
757
|
+
onclick="popupCode('Document.src/M000080.html');return false;">
|
758
|
+
<span class="method-name">render_stream</span><span class="method-args">(device,options={})</span>
|
759
|
+
</a>
|
760
|
+
</div>
|
761
|
+
|
762
|
+
<div class="method-description">
|
763
|
+
<p>
|
764
|
+
Renderiza, abre o stream e deleta o arquivo de sa�da. N�o aceita
|
765
|
+
multipage=>true
|
766
|
+
</p>
|
767
|
+
</div>
|
768
|
+
</div>
|
769
|
+
|
770
|
+
<div id="method-M000094" class="method-detail">
|
771
|
+
<a name="M000094"></a>
|
772
|
+
|
773
|
+
<div class="method-heading">
|
774
|
+
<a href="Document.src/M000094.html" target="Code" class="method-signature"
|
775
|
+
onclick="popupCode('Document.src/M000094.html');return false;">
|
776
|
+
<span class="method-name">rmoveto</span><span class="method-args">(point={})</span>
|
777
|
+
</a>
|
778
|
+
</div>
|
779
|
+
|
780
|
+
<div class="method-description">
|
781
|
+
<p>
|
782
|
+
Facade <a href="Cursor.html#M000035">Cursor.rmoveto</a>
|
783
|
+
</p>
|
784
|
+
</div>
|
785
|
+
</div>
|
786
|
+
|
787
|
+
<div id="method-M000092" class="method-detail">
|
788
|
+
<a name="M000092"></a>
|
789
|
+
|
790
|
+
<div class="method-heading">
|
791
|
+
<a href="Document.src/M000092.html" target="Code" class="method-signature"
|
792
|
+
onclick="popupCode('Document.src/M000092.html');return false;">
|
793
|
+
<span class="method-name">rotate</span><span class="method-args">(angle)</span>
|
794
|
+
</a>
|
795
|
+
</div>
|
796
|
+
|
797
|
+
<div class="method-description">
|
798
|
+
<p>
|
799
|
+
Facade <a href="Cursor.html#M000033">Cursor.rotate</a>
|
800
|
+
</p>
|
801
|
+
</div>
|
802
|
+
</div>
|
803
|
+
|
804
|
+
<div id="method-M000105" class="method-detail">
|
805
|
+
<a name="M000105"></a>
|
806
|
+
|
807
|
+
<div class="method-heading">
|
808
|
+
<a href="Document.src/M000105.html" target="Code" class="method-signature"
|
809
|
+
onclick="popupCode('Document.src/M000105.html');return false;">
|
810
|
+
<span class="method-name">scale</span><span class="method-args">(sx,sy)</span>
|
811
|
+
</a>
|
812
|
+
</div>
|
813
|
+
|
814
|
+
<div class="method-description">
|
815
|
+
<p>
|
816
|
+
Facade <a href="Scale.html#M000114">Scale.new</a>
|
817
|
+
</p>
|
818
|
+
</div>
|
819
|
+
</div>
|
820
|
+
|
821
|
+
<div id="method-M000108" class="method-detail">
|
822
|
+
<a name="M000108"></a>
|
823
|
+
|
824
|
+
<div class="method-heading">
|
825
|
+
<a href="Document.src/M000108.html" target="Code" class="method-signature"
|
826
|
+
onclick="popupCode('Document.src/M000108.html');return false;">
|
827
|
+
<span class="method-name">show</span><span class="method-args">(text,align={ :align=>:show_left })</span>
|
828
|
+
</a>
|
829
|
+
</div>
|
830
|
+
|
831
|
+
<div class="method-description">
|
832
|
+
<p>
|
833
|
+
Facade <a href="Show.html#M000052">Show.new</a>
|
834
|
+
</p>
|
835
|
+
</div>
|
836
|
+
</div>
|
837
|
+
|
838
|
+
<div id="method-M000089" class="method-detail">
|
839
|
+
<a name="M000089"></a>
|
840
|
+
|
841
|
+
<div class="method-heading">
|
842
|
+
<a href="Document.src/M000089.html" target="Code" class="method-signature"
|
843
|
+
onclick="popupCode('Document.src/M000089.html');return false;">
|
844
|
+
<span class="method-name">showpage</span><span class="method-args">()</span>
|
845
|
+
</a>
|
846
|
+
</div>
|
847
|
+
|
848
|
+
<div class="method-description">
|
849
|
+
<p>
|
850
|
+
Use <a href="Document.html#M000089">showpage</a> para o fim do documento ou
|
851
|
+
para saltar p�ginas.
|
852
|
+
</p>
|
853
|
+
<pre>
|
854
|
+
Obs.: showpage n�o reseta os contadores de p�ginas,faixas, etc.
|
855
|
+
</pre>
|
856
|
+
</div>
|
857
|
+
</div>
|
858
|
+
|
859
|
+
<div id="method-M000112" class="method-detail">
|
860
|
+
<a name="M000112"></a>
|
861
|
+
|
862
|
+
<div class="method-heading">
|
863
|
+
<a href="Document.src/M000112.html" target="Code" class="method-signature"
|
864
|
+
onclick="popupCode('Document.src/M000112.html');return false;">
|
865
|
+
<span class="method-name">stroke</span><span class="method-args">()</span>
|
866
|
+
</a>
|
867
|
+
</div>
|
868
|
+
|
869
|
+
<div class="method-description">
|
870
|
+
<p>
|
871
|
+
Executa o comando stoke para desenho de vertores
|
872
|
+
</p>
|
873
|
+
</div>
|
874
|
+
</div>
|
875
|
+
|
876
|
+
<div id="method-M000097" class="method-detail">
|
877
|
+
<a name="M000097"></a>
|
878
|
+
|
879
|
+
<div class="method-heading">
|
880
|
+
<a href="Document.src/M000097.html" target="Code" class="method-signature"
|
881
|
+
onclick="popupCode('Document.src/M000097.html');return false;">
|
882
|
+
<span class="method-name">template</span><span class="method-args">(file_path,options={})</span>
|
883
|
+
</a>
|
884
|
+
</div>
|
885
|
+
|
886
|
+
<div class="method-description">
|
887
|
+
<p>
|
888
|
+
Facade EPS.new
|
889
|
+
</p>
|
890
|
+
</div>
|
891
|
+
</div>
|
892
|
+
|
893
|
+
<div id="method-M000107" class="method-detail">
|
894
|
+
<a name="M000107"></a>
|
895
|
+
|
896
|
+
<div class="method-heading">
|
897
|
+
<a href="Document.src/M000107.html" target="Code" class="method-signature"
|
898
|
+
onclick="popupCode('Document.src/M000107.html');return false;">
|
899
|
+
<span class="method-name">text</span><span class="method-args">(text,align={ :align=>:show_left })</span>
|
900
|
+
</a>
|
901
|
+
</div>
|
902
|
+
|
903
|
+
<div class="method-description">
|
904
|
+
<p>
|
905
|
+
Facade <a href="Show.html#M000052">Show.new</a>
|
906
|
+
</p>
|
907
|
+
</div>
|
908
|
+
</div>
|
909
|
+
|
910
|
+
<div id="method-M000109" class="method-detail">
|
911
|
+
<a name="M000109"></a>
|
912
|
+
|
913
|
+
<div class="method-heading">
|
914
|
+
<a href="Document.src/M000109.html" target="Code" class="method-signature"
|
915
|
+
onclick="popupCode('Document.src/M000109.html');return false;">
|
916
|
+
<span class="method-name">text_area</span><span class="method-args">(text,options={})</span>
|
917
|
+
</a>
|
918
|
+
</div>
|
919
|
+
|
920
|
+
<div class="method-description">
|
921
|
+
<p>
|
922
|
+
Facade <a href="TextArea.html#M000029">TextArea.new</a>
|
923
|
+
</p>
|
924
|
+
</div>
|
925
|
+
</div>
|
926
|
+
|
927
|
+
<div id="method-M000106" class="method-detail">
|
928
|
+
<a name="M000106"></a>
|
929
|
+
|
930
|
+
<div class="method-heading">
|
931
|
+
<a href="Document.src/M000106.html" target="Code" class="method-signature"
|
932
|
+
onclick="popupCode('Document.src/M000106.html');return false;">
|
933
|
+
<span class="method-name">text_in</span><span class="method-args">(options={})</span>
|
934
|
+
</a>
|
935
|
+
</div>
|
936
|
+
|
937
|
+
<div class="method-description">
|
938
|
+
<p>
|
939
|
+
Facade <a href="TextIn.html#M000054">TextIn.new</a>
|
940
|
+
</p>
|
941
|
+
</div>
|
942
|
+
</div>
|
943
|
+
|
944
|
+
<div id="method-M000095" class="method-detail">
|
945
|
+
<a name="M000095"></a>
|
946
|
+
|
947
|
+
<div class="method-heading">
|
948
|
+
<a href="Document.src/M000095.html" target="Code" class="method-signature"
|
949
|
+
onclick="popupCode('Document.src/M000095.html');return false;">
|
950
|
+
<span class="method-name">translate</span><span class="method-args">(point={})</span>
|
951
|
+
</a>
|
952
|
+
</div>
|
953
|
+
|
954
|
+
<div class="method-description">
|
955
|
+
<p>
|
956
|
+
Facade <a href="Cursor.html#M000036">Cursor.translate</a>
|
957
|
+
</p>
|
958
|
+
</div>
|
959
|
+
</div>
|
960
|
+
|
961
|
+
<div id="method-M000110" class="method-detail">
|
962
|
+
<a name="M000110"></a>
|
963
|
+
|
964
|
+
<div class="method-heading">
|
965
|
+
<a href="Document.src/M000110.html" target="Code" class="method-signature"
|
966
|
+
onclick="popupCode('Document.src/M000110.html');return false;">
|
967
|
+
<span class="method-name">vertical_line</span><span class="method-args">(start_in=:limit_left,size=:area_y)</span>
|
968
|
+
</a>
|
969
|
+
</div>
|
970
|
+
|
971
|
+
<div class="method-description">
|
972
|
+
<p>
|
973
|
+
Facade <a href="VerticalLine.html#M000116">VerticalLine.new</a>
|
974
|
+
</p>
|
975
|
+
</div>
|
976
|
+
</div>
|
977
|
+
|
978
|
+
|
979
|
+
</div>
|
980
|
+
|
981
|
+
|
982
|
+
</div>
|
983
|
+
|
984
|
+
|
985
|
+
<div id="validator-badges">
|
986
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
987
|
+
</div>
|
988
|
+
|
989
|
+
</body>
|
990
|
+
</html>
|