1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://docbook.org/xml/4.2/docbookx.dtd">
<article>
<title>Ubuntu Desktop</title>
<sect1>
<title>Using OpenOffice Applications</title>
<para><emphasis role="strong">Objectives</emphasis></para>
<para>In this lesson, you will learn how to:
<itemizedlist>
<listitem><para>Perform basic word-processing functions using
OpenOffice.org Writer.</para></listitem>
<listitem><para>Perform basic spreadsheet functions using OpenOffice.org
Calc.</para></listitem>
<listitem><para>Create and view multimedia presentations using
OpenOffice.org Impress.</para></listitem>
<listitem><para>Perform basic database operations using OpenOffice.org
Base.</para></listitem>
<listitem><para>Create and edit formulae using OpenOffice.org Math.</para></listitem>
</itemizedlist>
</para>
<sect2>
<title>Introducing the OpenOffice.org Suite</title>
<para>OpenOffice.org is the default office application suite provided with Ubuntu.
This is a free and open-source office software suite that comprises all
the features normally expected in an office suite.
The OpenOffice.org suite is not just a collection of separate software
programs. It has been designed as a complete office package,
in which all applications have a similar look and feel and common tools.</para>
<para>The OpenOffice.org suite is available in more than 30 languages
and can function on many operating systems, including Linux,
Microsoft Windows, Solaris and Mac OS X. It is compatible with all other
major office suites, including Microsoft Office, which makes it easy for you to open, save and exchange documents with
friends and colleagues in Windows and Microsoft Office formats.</para>
<para>Another key feature of the OpenOffice.org suite is that all
the applications save in the OpenDocument format, which is the new
international standard for office documents. This Extensible Markup
Language (XML) based format enables you to access your data from
any OpenDocument-compliant software.</para>
<screen><para><emphasis role="strong">Nice to Know:</emphasis></para>
<para>For more information on the history and development of OpenOffice.org,
please visit <ulink url="http://en.wikipedia.org/wiki/Openoffice.org">http://en.wikipedia.org/wiki/Openoffice.org</ulink>.</para></screen>
<para>The OpenOffice.org software suite includes the following
applications to help you handle your work effectively:
<itemizedlist>
<listitem><para>OpenOffice.org Writer</para></listitem>
<listitem><para>OpenOffice.org Calc</para></listitem>
<listitem><para>OpenOffice.org Impress</para></listitem>
<listitem><para>OpenOffice.org Base</para></listitem>
<listitem><para>OpenOffice.org Draw</para></listitem>
<listitem><para>OpenOffice.org Math</para></listitem>
</itemizedlist>
</para>
<para>To access the OpenOffice.org suite:</para>
<itemizedlist>
<listitem>
<para>On the <emphasis role="strong">Applications</emphasis>
menu, point to <emphasis role="strong">Office</emphasis> and
then click the OpenOffice.org application you want.</para>
</listitem>
</itemizedlist>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_001.png"/>
</imageobject>
</figure>
<sect3>
<title>OpenOffice.org Writer</title>
<para>Writer is the word processor of the OpenOffice.org suite. It
provides you with powerful functions and tools to do anything from
writing a small letter to creating an entire book that contains charts,
graphics, images, tables and an index. It even offers you capabilities
to perform complex desktop publishing tasks, such as creating
multicolumn newsletters and brochures.</para>
<para>The following graphic shows the OpenOffice.org Writer
interface:</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_002.png"/>
</imageobject>
</figure>
</sect3>
<sect3>
<title>OpenOffice.org Calc</title>
<para>Calc is a powerful spreadsheet that contains all the tools
necessary to calculate, analyse, summarise and present your data in
the form of reports or charts. It has a wide range of features to help
you perform advanced functions such as entering complex formulae,
pulling in external data and performing statistical analyses.</para>
<para>The following graphic shows the OpenOffice.org Calc interface:
</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_003.png"/>
</imageobject>
</figure>
</sect3>
<sect3>
<title>OpenOffice.org Impress</title>
<para>Impress is a presentation program that helps you create
effective multimedia presentations. It provides a range of tools to
create outstanding presentations with 2D and 3D graphics, clip art,
graphics, special effects and animations.</para>
<para>The following graphic shows the OpenOffice.org Impress
interface:</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_004.png"/>
</imageobject>
</figure>
</sect3>
<sect3>
<title>OpenOffice.org Base</title>
<para>Base is a program that enables you to create and
work with databases. You can use it to create and modify tables,
forms, queries and reports. It also allows you to access data stored in
a wide variety of database file formats.</para>
<para>The following graphic shows the OpenOffice.org Base interface:
</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_005.png"/>
</imageobject>
</figure>
</sect3>
<sect3>
<title>OpenOffice.org Draw</title>
<para>Draw is a vector graphics editor that provides tools to create
anything from simple graphics to dynamic 3D illustrations and special
effects. It features a huge spectrum of connectors to link various
shapes. These connectors are available in a wide range of line styles
and enable you to create technical drawings, such as flowcharts,
easily.</para>
<para>The following graphic shows the OpenOffice.org Draw interface:
</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_006.png"/>
</imageobject>
</figure>
</sect3>
<sect3>
<title>OpenOffice.org Math</title>
<para>You can use Math for creating and editing mathematical
equations by using a graphic user interface or by directly typing the
formula into the equation editor. The formula created in this manner
can then be inserted into other OpenOffice.org programs, such as
Writer, Calc and Impress.</para>
<para>The following graphic shows the OpenOffice.org Math interface:
</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_007.png"/>
</imageobject>
</figure>
</sect3>
</sect2>
<sect2>
<title>Using OpenOffice.org Writer</title>
<para>Writer forms the word processor component of the OpenOffice.org
office software suite. It contains all the features that you expect from a
modern, fully equipped word processor or a desktop publisher. In
addition, it contains some unique features that give it a cutting edge, in
terms of usability, over other, more popular word processors.</para>
<sect3>
<title>Key Features of OpenOffice.org Writer</title>
<para>The various features of OpenOffice.org Writer enable you to
perform a wide range of operations. Based on the type of operations
that they help you perform, some of these key features can be
categorised as under.</para>
<para><emphasis role="strong">Writing</emphasis></para>
<para>OpenOffice.org Writer offers a variety of useful features to help
you create basic text documents as well as long and complex or
multi-part documents that may include components such as
bibliographies, reference tables and indexes. Some of these features
are:
<itemizedlist>
<listitem><para><emphasis role="strong">Spellchecker:</emphasis> The
spellchecker feature facilitates error-free writing by enabling you
to check your entire document, including the header, footer, index
entries and footnotes, for spelling errors. It even allows you to
identify a misspelled word from a specific selection of the document,
lists suggested words for replacing the misspelled word and provides
you the option to add a new word to the existing user dictionary.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_008.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para><emphasis role="strong">Thesaurus:</emphasis> The
thesaurus helps you enhance the quality of your writing
and make it more effective by allowing you to find a more
appropriate synonym for a selected word.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_009.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para><emphasis role="strong">Autocorrect:</emphasis>
Autocorrect is a software function that enables you to
reduce your typing effort by automatically correcting
common spelling and typing errors. This feature also
allows you to automatically apply correct formatting to the
text or insert special characters by recognizing particular
character usage.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_010.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para><emphasis role="strong">Hyphenation:</emphasis> You
can use the hyphenation feature to insert hyphens in words
that are too long to fit at the end of a line. It searches the
entire document and suggests hyphenation that you can
either accept or reject.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_011.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para><emphasis role="strong">Mail merge:</emphasis> The
Mail merge feature allows you to create multiple
personalised form letters, labels, envelopes, faxes and
e-mail messages by using a form letter template and an
address database.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_012.png"/>
</imageobject>
</figure>
</listitem>
</itemizedlist>
</para>
<para><emphasis role="strong">Designing and Structuring</emphasis></para>
<para>OpenOffice.org enables you to design and structure your text
document by using an assortment of features, including:
<itemizedlist>
<listitem><para><emphasis role="strong">Style and Formatting window:</emphasis>
The Style and Formatting window is one ofthe common
features available in the OpenOffice.org package that can
be used consistently in all the applications included in the
package. You can use this window to create, assign and
modify styles for paragraphs, lists, individual characters,
frames and pages.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_013.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para><emphasis role="strong">Navigator:</emphasis> Navigator
is another common feature available with all the
applications in the OpenOffice.org package. It provides you
an outline view of the entire document and allows you to
quickly navigate inside the document. You can also use
Navigator to track of the objects and elements that are
already inserted and to insert new elements into the
document.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_014.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para><emphasis role="strong">Indexes and Tables:</emphasis>
This feature enables you to insert an index, a table of
contents or a bibliography reference in your text
document. You can also customise the inserted tables and
indexes by defining their structure and appearance.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_015.png"/>
</imageobject>
</figure>
</listitem>
</itemizedlist>
</para>
<para><emphasis role="strong">Desktop Publishing</emphasis></para>
<para>A number of desktop publishing and drawing features are
available in OpenOffice.org Writer. These features can help you create
professionally styled documents, such as brochures, invitations and
newsletters. The features include:
<itemizedlist>
<listitem><para><emphasis role="strong">Text Frames:</emphasis> A text
frame acts as a container for text and graphics and can be
placed anywhere in a document. You can also use these
frames to apply a multi-column layout to your document
and render a professional look and style to it.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_016.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para><emphasis role="strong">Graphics:</emphasis> This
feature allows you to insert a graphic object into your text
document from a gallery, a file or any other OpenOffice.org
application.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_017.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para><emphasis role="strong">Tables:</emphasis>
OpenOffice.org Writer also enables you to create or insert
a table into a text document. You can insert a table from a
toolbar, through a menu command or from a spreadsheet.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_018.png"/>
</imageobject>
</figure>
</listitem>
</itemizedlist>
</para>
<para><emphasis role="strong">Calculations</emphasis></para>
<para>OpenOffice.org Writer offers an integrated calculation function,
which enables you to use a formula bar to perform sophisticated
calculations within a table inside a text document.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_019.png"/>
</imageobject>
</figure>
<para><emphasis role="strong">Drawing</emphasis></para>
<para>The drawing functions available in OpenOffice.org Writer allow
you to create many types of drawings and graphics directly in your
text document. You can use the Drawing bar to add various shapes,
lines, text and callouts to a current document.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_020.png"/>
</imageobject>
</figure>
<para><emphasis role="strong">Drag and Drop</emphasis></para>
<para>The OpenOffice.org Writer provides you with the drag-and-drop
feature to help you work quickly and efficiently with your text
documents. This unique feature allows you to drag objects from one
location to another in the same document, from one OpenOffice
document to another and from the Gallery to your OpenOffice
document.</para>
<para><emphasis role="strong">The Help Function</emphasis></para>
<para>The Help function available in OpenOffice.org Writer provides
you a complete reference for your Writer. You can also use the help
feature to look for instructions to perform simple or complex tasks.
</para>
</sect3>
<sect3>
<title>Performing Basic Word-Processing Tasks</title>
<para>You can perform a number of word-processing tasks, such as
writing, editing, formatting, reviewing and printing documents, using
OpenOffice.org Writer. The word processor also allows you to use
various templates, apply different styles to your document, control
your page layout and insert, edit and create graphics inside your text
document. Instructions to perform some of the basic word-processing
tasks in Writer are described in the following sections.</para>
<para><emphasis role="strong">Entering and Formatting Text</emphasis></para>
<para>OpenOffice.org Writer is primarily used for writing and
formatting text. You can enter text using your keyboard and then
apply a variety of formats to the text, as per the document's
requirements.</para>
<para>You can use the following steps to enter and format text using
OpenOffice.org Writer:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">Applications</emphasis>
menu, point to <emphasis role="strong">Office</emphasis>
and then click <emphasis role="strong">OpenOffice.org
Word Processor</emphasis>. A blank text document opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_021.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Based on your requirement, you can start entering
text on this blank page to create a letter, a memo, a note or
an entire novel. Alternatively, you may also decide to simplify
your task by using a ready-to-use template or sample that is
suitable for your requirements.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_022.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>To access the templates and samples, on the
<emphasis role="strong">File</emphasis> menu, point to
<emphasis role="strong">New</emphasis> and then click
<emphasis role="strong">Templates and Documents</emphasis>.
Alternatively, you can press SHIFT+CTRL+N.
The <emphasis role="strong">Templates and Documents</emphasis>
dialogue box opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_023.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can view the various categories of available
templates in the middle column of the <emphasis role="strong">Templates
and Documents</emphasis> dialogue box. Double-click a category to
display the various templates associated with that category.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_024.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The dialogue box displays the templates associated
with one of the categories. When you select a template that
suits your requirements, a new document is displayed based
on this template. You can then start working on this template
to create your required document in the least possible time.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_025.png"/>
</imageobject>
</figure>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">If students need to know more
about using samples and templates, you can tell them how
to use various wizards, available under the File menu, to
create user-defined templates, such as faxes and letters.
These templates can later be used to create further
documents.</emphasis></para>
</listitem>
<listitem><para>However, you may also decide to work with the blank
document, which is displayed by default. To continue working
with the blank document, exit the <emphasis role="strong">
Templates and Documents</emphasis> dialogue box by
clicking <emphasis role="strong">Close</emphasis> in the
top-right corner of the dialogue box. The blank document
opens.</para>
<para>You can now start entering the required text in your
document.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_026.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After you have created the document of your choice,
you can use the various formatting features provided in Writer
to change the display of the text or emphasise specific areas
in your document. You can use the following options available
on the <emphasis role="strong">Formatting toolbar</emphasis> to
perform some of the most common formatting tasks.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_027.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>OpenOffice.org provides you with several ways to apply
formatting to your text document. One of them is by using
the <emphasis role="strong">Style and Formatting</emphasis>
window. As stated earlier, this is a wonderful
feature to perform a complete document makeover.</para>
<para>To open the <emphasis role="strong">Style and
Formatting</emphasis> window, on the
<emphasis role="strong">Format</emphasis> menu, click
<emphasis role="strong">Style and Formatting</emphasis>.
The <emphasis role="strong">Style and Formatting</emphasis>
window appears.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_028.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can use this window to select and modify the
existing style or create a new style. Clicking one of the icons
below the title bar of the <emphasis role="strong">Style and
Formatting</emphasis> window will display a list of styles in
a particular category, such as a list or a paragraph.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_029.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>By default, when you open the Style and Formatting
window, the Paragraph Style icon is selected. All the styles
listed in this category are displayed in the Style and
Formatting window.</para>
<para>You can start restyling individual parts of the current
document by specific parts of the document and applying an
existing style by double-clicking that style.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_030.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>However, if you want to modify an existing style, you
can simply right-click that style and select <emphasis role="strong">
Modify</emphasis>. This displays a new pop-up window. You can redefine
almost all aspects of the selected style using the various options
available under the different tabs.</para>
<para>Modify the specifications of the selected style, and
click <emphasis role="strong">OK</emphasis> to apply the changes.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_031.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Double-click the modified style to reflect the changes
in the selected text.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_032.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can go on to customise all other parts of the
document in the same way.</para>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">If the students want to know more about
the various formatting options available, you can give them the
following information:</emphasis></para>
<para><emphasis role="italic">OpenOffice.org provides several ways to
apply styles. These are:</emphasis>
<itemizedlist>
<listitem><para><emphasis role="italic">Using the Styles and Formatting
window.</emphasis></para></listitem>
<listitem><para><emphasis role="italic">Using Fill Format mode.</emphasis>
</para></listitem>
<listitem><para><emphasis role="italic">Using the Apply Style list on the
Formatting bar.</emphasis></para></listitem>
<listitem><para><emphasis role="italic">Assigning styles to shortcut keys.
</emphasis></para></listitem>
<listitem><para><emphasis role="italic">Using AutoFormat.</emphasis>
</para></listitem>
</itemizedlist>
</para>
<para><emphasis role="italic">In addition, describe the procedure to
create a new style and add it to the Style and Formatting window.</emphasis>
</para>
<para><emphasis role="strong">Inserting Tables</emphasis></para>
<para>To insert a table in a text document, position the cursor where
you want the table to appear and then follow the procedure described
below:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">Table</emphasis>
menu, point to <emphasis role="strong">Insert</emphasis>
and then click <emphasis role="strong">Table</emphasis>.
The <emphasis role="strong">Insert Table</emphasis>
dialogue box opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_033.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can use the various options present in the
dialogue box to specify some of the table properties.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_034.png"/>
</imageobject>
</figure>
<screen><para><emphasis role="strong">Nice to Know:</emphasis></para>
<para>To directly insert a table with the default properties, click the
<emphasis role="strong">Table</emphasis> icon on the <emphasis role="strong">Standard toolbar</emphasis>
and select the table size in the graphic that appears. To create the
table, click the cell that you want to be on the last row of the last
column.</para></screen>
</listitem>
<listitem><para>Specify the table properties and click
<emphasis role="strong">OK</emphasis>. The table is
inserted at the specified location in your text document.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_035.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>By default, Writer creates a table as wide as the page
margins, with all the rows having the same height and all the
columns having the same width. To adjust the column and
rows and customise the table further, right-click the table and
select <emphasis role="strong">Table</emphasis> from the
short-cut menu. The <emphasis role="strong">Table Format</emphasis>
dialogue box opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_036.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>As the name clearly suggests, you can use this
dialogue box to define finer specifications for the table such
as alignment, column width, text flow, borders and background.</para>
<para>Define the table specifications as per your requirements and
preferences, and click <emphasis role="strong">OK</emphasis> to apply
the changes.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_037.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The defined specifications are applied to the table. In
case the data in one of the table cells needs to be arranged in
the form of a table, you can create another layer of tables
inside the current table. These tables are called nested
tables. Writer permits you to create as many layers of nested
tables as you want.</para>
<para>To create a nested table, click the cell in which you
want the nested table to appear; then, follow the
aforementioned procedure for inserting a new table. A nested
table appears in the specified cell within the larger table.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_038.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can now define the finer specifications of the
nested table using the <emphasis role="strong">Table Format</emphasis>
dialogue box and then populate the table with data.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_039.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Inserting Images</emphasis></para>
<para>OpenOffice.org allows you to import images of various file
formats, including the most common file types such as JPEG, PNG,
BMP and GIF. Writer provides you an option to insert any of these
images, whether downloaded from the Internet, scanned or created
with a graphics program, into your text document. You can insert an
image from a file, the OpenOffice.org Gallery or from any other
sources such as a scanner or a graphics program.</para>
<para>To insert an image into your text document from a file:
<orderedlist numeration="arabic">
<listitem><para>Position the cursor at the appropriate location in the
document where you want the picture to be inserted. On the
<emphasis role="strong">Insert</emphasis> menu, point to
<emphasis role="strong">Picture</emphasis> and then click
<emphasis role="strong">From File</emphasis>. The
<emphasis role="strong">Insert Picture</emphasis> dialogue
box opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_040.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>To insert the file, navigate to the desired file and
select it.</para>
</listitem>
<listitem><para>Select the <emphasis role="strong">Preview</emphasis>
check box at the bottom of the
<emphasis role="strong">Insert Picture</emphasis> dialogue
box to preview the selected image in a pane and verify
whether you have selected the correct image.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_041.png"/>
</imageobject>
</figure>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">You can share with the students
the following details about the use of the <emphasis role="strong">Link</emphasis>
check box, which is present at the bottom of the
<emphasis role="strong">Insert Picture</emphasis> dialogue box.</emphasis></para>
<para><emphasis role="italic">Selecting the
<emphasis role="strong">Link</emphasis> check box
creates a link of the selected file inside your text
document, instead of saving a copy of the image in your
document. As a result, though you'll be able to
view the image in the document, when the image is saved,
the document will contain only a reference to that image
but not the image itself. Linking an image has the following
advantages and disadvantages:</emphasis>
<itemizedlist>
<listitem><para><emphasis role="italic">It reduces the size
of your document when it is saved because the image is
not included in it.</emphasis></para></listitem>
<listitem><para><emphasis role="italic">You can edit or modify
the image separately without making any changes in the document
and can view the modified image the next time you open the
document.</emphasis></para></listitem>
<listitem><para><emphasis role="italic">When you wish to send
the document to someone, you need to send both the document
and the image; else, the receiver will not be able to view the
linked image.</emphasis></para></listitem>
</itemizedlist>
</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_042.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>To insert the selected image into your document, click
<emphasis role="strong">Open</emphasis>.</para></listitem>
<listitem><para>The image is inserted at the specified location in your
document. However, it is very likely that the image will not fit
perfectly into your document and, therefore, will need to be
resized.</para>
<para>To resize the image, while maintaining its proportions,
select the image and then press and hold the
<emphasis role="strong">SHIFT</emphasis>key. When you
select an image, some square points appear along its
perimeter. These are called <emphasis role="italic">handles</emphasis>.
While holding down the <emphasis role="strong">Shift</emphasis> key,
click and drag one of the handles on the image to modify its size.</para>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">Explain the difference between a
scaled and an unscaled resize, and emphasise the advantages of the
scaled resize performed above.</emphasis></para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_043.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After you have resized the image without distorting it,
you need to position the image appropriately with respect to
the text and other graphics in the document.</para>
<para>You can arrange and align images using the tools on
the <emphasis role="strong">Frame toolbar</emphasis>.
This toolbar appears below the <emphasis role="strong">
Standard toolbar</emphasis> when you select a graphic for
the first time.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_044.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Alternatively, you can right-click the image and then
select from the available options, such as
<emphasis role="strong">Arrange, Wrap</emphasis> or
<emphasis role="strong">Anchor</emphasis>, on the
short-cut menu.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_045.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After you have selected appropriate positioning options
for the image, you may obtain a result similar to that shown
overleaf.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_046.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Printing Documents</emphasis></para>
<para>To print a document:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">File</emphasis>
menu, click <emphasis role="strong">Print</emphasis>. The
<emphasis role="strong">Print</emphasis> dialogue box opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_047.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can use this dialogue box to specify the printer to
be used – in case you have more than one printer
installed on your system, the pages to be printed and the
number of copies to be printed. Moreover, you can click the
<emphasis role="strong">Properties</emphasis> button in
the <emphasis role="strong">Print</emphasis> dialogue box
to define the properties of the printer, such as orientation, the
paper tray to be used and the paper size to be printed.</para>
<para>To define printer options for the current document, click
the <emphasis role="strong">Options</emphasis> button in
the <emphasis role="strong">Print</emphasis> dialogue box.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_048.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The <emphasis role="strong">Printer Options</emphasis>
dialogue box enables you to select specific
sections from the current document for printing. For example,
to save toner or ink, you may not want to print the
background and the graphics in the document. You can
specify these details under the <emphasis role="strong">
Content</emphasis> section by selecting or clearing the
appropriate check boxes.</para>
<para>Similarly, you can define the required printing options
in the <emphasis role="strong">Pages</emphasis> and
<emphasis role="strong">Notes</emphasis> section. After
specifying the details, click <emphasis role="strong">OK</emphasis>
to save your settings.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_049.png"/>
</imageobject>
</figure>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>The selection of the options in the <emphasis role="strong">Printer
Options</emphasis> dialogue box will not apply to all other documents.
Rather, this selection will apply only to the printing of the current
document and shall over-ride all the default settings.</para></screen>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">If the students want to know about
the procedure to select the default print options, provide
them the following information:</emphasis></para>
<para><emphasis role="italic">To select the default print
options, On the Tools menu, click Options.</emphasis>
<itemizedlist>
<listitem><para><emphasis role="italic">The OpenOffice.org
– Print dialogue box opens.</emphasis></para></listitem>
<listitem><para><emphasis role="italic">In the left navigation
panel, expand OpenOffice.org Writer and then select
Print.</emphasis></para></listitem>
<listitem><para><emphasis role="italic">Select the required
options and click OK to apply the changes to the
default print settings.</emphasis></para></listitem>
</itemizedlist>
</para>
</listitem>
<listitem><para>You have selected the print options according to your
requirements, and are now set to print the document. Before
printing the document, you may want to preview it to verify
how each page will look when printed. To perform a page
preview, on the <emphasis role="strong">File</emphasis>
menu, click <emphasis role="strong">Page Preview</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_050.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The Writer window changes to provide you a preview of
the current page and the following page as they would appear
when printed. You will notice that the
<emphasis role="strong">Page Preview</emphasis> toolbar
appears in place of the <emphasis role="strong">Formatting
toolbar</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_051.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>If you are satisfied by the page layout and other
settings of the document, click <emphasis role="strong">
Close Preview</emphasis> to close the print preview and
return to the normal view. You can now select the
<emphasis role="strong">Print File Directly</emphasis>
option from the <emphasis role="strong">Standard toolbar</emphasis>
to print the document directly.</para></listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Saving Documents</emphasis></para>
<para>You can save your Writer document in the same way as you
save any other document. To save a new text document:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">File</emphasis>
menu, click <emphasis role="strong">Save As</emphasis>.
The <emphasis role="strong">Save</emphasis> dialogue
box opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_052.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Navigate to the directory where you want to save the
file, enter the file name and click <emphasis role="strong">
Save</emphasis> to save the file at the desired location.</para>
<para>However, you can save an open file with the current file
name by simply clicking <emphasis role="strong">Save</emphasis> on the
<emphasis role="strong">File</emphasis> menu. This overwrites the file
with the last saved state of the document.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_053.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>As stated earlier, OpenOffice.org also allows you to
save your document in a number of other file formats,
including Microsoft Word, Rich Text, Star Writer and HTML
document. This enables you to share your documents with
other people who do not use OpenOffice.org, but use other
office applications, such as Office.</para>
<para>In case you want to save your current document as a
Word file, select the appropriate type of Word format from the
drop-down menu at the bottom of the dialogue box. Then,
click <emphasis role="strong">Save</emphasis> to save the
file as a Word document.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_054.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
</sect3>
</sect2>
<sect2>
<title>Using OpenOffice.org Calc</title>
<para>As stated earlier, Calc is the spreadsheet component of the
OpenOffice.org office software suite. The comprehensive range of
advanced functions included in Calc helps professionals accomplish
complex tasks. At the same time, Calc is user-friendly, which makes it
easier for new users. This topic will familiarise you with the key features
of OpenOffice.org Calc and help you perform some basic spreadsheet
functions using Calc.</para>
<para>The features of Calc are comparable to those of Microsoft Excel.
Calc also includes some additional useful features, such as a system
that automatically formulates series for graphing based on the layout of
the current data.</para>
<para>Similar to all other applications in the OpenOffice.org suite, Calc
allows you to save spreadsheets in OASIS OpenDocument (ODF)
format. This XML-based format enables you to access your spreadsheets
from any OpenDocument-compliant software. In addition, Calc allows you
to save spreadsheets directly as Portable Document Format (PDF) files
without using any additional, expensive software.</para>
<sect3>
<title>Key Features of OpenOffice.org Calc</title>
<para>Calc is a fully featured office application that includes all the
advance analysis, charting and decision-making features that you
expect from a high-end spreadsheet. Some of the key features of
OpenOffice.org Calc are:</para>
<para><emphasis role="strong">Calculation:</emphasis> OpenOffice.org
Calc provides you with over 300 functions for financial, logical,
statistical, mathematical and banking operations. This enables you
to create formulae to perform complex calculations on your data. In
addition, Calc provides you with Function wizard that guides you
interactively through the creation of formulae.</para>
<para>Another remarkable feature of OpenOffice.org Calc is that it
allows you to create natural language formulae using words such as
sales – costs.</para>
<para><emphasis role="strong">Scenario Manager:</emphasis> An
interesting feature of Calc, the Scenario Manager, allows you
perform what-if analyses. It enables you to immediately view the
result of the changes made to any factor of the calculation. For
example, when performing a loan calculation, you can change the
period of the loan and can view the resulting calculations for the
loan-repayment amount or the interest rate.</para>
<para><emphasis role="strong">Data Pilot:</emphasis> Data Pilot
enables you to compare, combine and arrange large amounts of
data. It helps you to pull in raw data from corporate databases,
cross-tabulate, summarise and convert the data into meaningful
information. You can use Data Pilot to create interactive tables,
which allows the data to be frequently arranged, rearranged or
summarised according to different points of view.</para>
<para><emphasis role="strong">Dynamic Charts:</emphasis> This
feature enables you to present data in the form of dynamic charts.
As the name suggests, these charts update automatically as the
data in the spreadsheet changes.</para>
<para><emphasis role="strong">Opening and Saving Microsoft Files:</emphasis>
Another important feature of Calc is that it allows you
to use your old Microsoft spreadsheets and save your work in
Microsoft Excel or a variety of other formats. This facilitates the
easy sharing of data with others using Microsoft or other such
products.</para>
</sect3>
<sect3>
<title>Performing Basic Spreadsheet Tasks </title>
<para>Similar to any other spreadsheet application, Calc is used to
process numerical or textual information in tabular form. It is primarily
used for tabulating numerical figures. It also allows you to sort and
manipulate data, apply arithmetic, mathematic and statistical
functions to data sets and represent the datasets in charts or
graphical forms. The following sections describe the instructions to
perform some basic spreadsheet tasks in Calc.</para>
<para><emphasis role="strong">Formatting Tables and Cells</emphasis></para>
<para>To format tables and cells in a Calc spreadsheet:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">Applications</emphasis>
menu, point to <emphasis role="strong">Office</emphasis> and then
click <emphasis role="strong">OpenOffice.org Spreadsheet</emphasis> to
open a Calc spreadsheet. A new Calc window opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_055.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Some of the key components of the main Calc window
are described below:
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_056.png"/>
</imageobject>
</figure>
<itemizedlist>
<listitem><para>The Name box contains the cell and the row
number, called the cell reference, of the current or
active cell.</para></listitem>
<listitem><para>The active cell indicates the selected cell
currently in use.</para>
<para>The Function wizard opens the <emphasis role="strong">Function
Wizard</emphasis> dialogue box.</para></listitem>
<listitem><para>The Sum button allows you to calculate the
sum of the numbers in the cells that are above the
current cell.</para></listitem>
<listitem><para>Clicking the Function button inserts an equals
sign into the current cell as well as in the input line,
making it ready to accept a formula.</para></listitem>
<listitem><para>The sheet tabs at the bottom of the sheet
indicate the number of worksheets present in the
current spreadsheet. By default, a new spreadsheet
includes three worksheets.</para></listitem>
</itemizedlist>
</para>
<para>To perform operations in your Calc spreadsheet, you
need to first select the cell or the cell range in which you want
to operate. After selecting the cell, row, column or range, you
can start typing your data. To move between the cells while
typing, press <emphasis role="strong">Tab</emphasis> or
<emphasis role="strong">Enter</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_057.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After you have entered the required data in the
spreadsheet, you can apply different formatting styles to it by
selecting from the wide range of options available in Calc. To
apply desired formatting to a selected range of cells, on the
<emphasis role="strong">Format</emphasis> menu, click
<emphasis role="strong">Cells</emphasis>. The
<emphasis role="strong">Format Cells</emphasis> dialogue
box opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_058.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can use the various options available under the
<emphasis role="strong">Font, Font Effects</emphasis>
and <emphasis role="strong">Alignment</emphasis> tabs to
specify various formatting attributes for the selected text.
Similarly, for assigning formatting attributes to numbers, you
can select from a number of pre-defined formats available on
the <emphasis role="strong">Numbers</emphasis> tab page
or define a new one based on your preferences.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_059.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The <emphasis role="strong">Format Cells</emphasis>
dialogue box also provides you with options to add smart
borders and vibrant backgrounds to your spreadsheet. It also
allows you to select a background colour, from a spectrum of
colours, for your otherwise bland and dull spreadsheet.</para>
<para>Define the specifications and click
<emphasis role="strong">OK</emphasis> to apply the
formatting effects.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_060.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After you have selected formatting attributes for the
selected cell range, you may get a result similar to this
one.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_061.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Calc provides you with another useful feature, called
Autoformat, which enables you to create attractive and
professional table designs without undergoing the
time-consuming process of selecting cell groups and
assigning different formats to them. The Autoformat feature
allows you to quickly apply preset formats to an entire sheet
or a selected cell range. To apply Autoformat to a sheet or
selected cell range, on the <emphasis role="strong">Format</emphasis>
menu, click <emphasis role="strong">Autoformat</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_062.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>This displays the <emphasis role="strong">
AutoFormat</emphasis> dialogue box. To assign a pre-set
format to the selected cells, select one from the
<emphasis role="strong">Format</emphasis> list and then
click <emphasis role="strong">OK</emphasis> to apply the
selected format to the selection.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_063.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The format of your choice is immediately applied to
the selection, and you get an attractive and fully formatted
table with very little effort.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_064.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Entering Values and Formulae</emphasis></para>
<para>A formula is a spreadsheet function, complete with arguments,
entered in a cell. All formulae begin with an equal sign and may
contain number, text and, in some cases, other data such as format
details. The formulae may also contain arithmetic operators, logic
operators or function starts. Table 5.1 lists some examples of
OpenOffice.org formulae:
<table>
<title>Calc Formulae</title>
<tgroup cols="2">
<colspec colname="col1" align="left"/>
<colspec colname="col2" align="left"/>
<tbody>
<row>
<entry><para><emphasis role="strong">Formulae</emphasis>
</para></entry>
<entry><para><emphasis role="strong">Description</emphasis>
</para></entry>
</row>
<row>
<entry><para><emphasis role="strong">=SUM(A1:A11)</emphasis>
</para></entry>
<entry><para>Calculates the sum of the cells A1:A11</para>
</entry>
</row>
<row>
<entry><para><emphasis role="strong">=EFFECTIVE(5%;12)</emphasis>
</para></entry>
<entry><para>Calculates the effective interest for 5% annual
nominal interest with 12 payments a year</para></entry>
</row>
<row>
<entry><para><emphasis role="strong">=B1*B2</emphasis></para>
</entry>
<entry><para>Displays the result of the multiplication of B1
and B2</para></entry>
</row>
<row>
<entry><para><emphasis role="strong">=C4-SUM(C10:C14)</emphasis>
</para></entry>
<entry><para>Calculates C4 minus the sum of cells C10 to
C14</para></entry>
</row>
</tbody>
</tgroup>
</table>
</para>
<para>The quickest way to enter a formula is to type the formula
either in the cell where you want the result to display or in the Input
Line on the Formula bar. Yet another way to enter a formula is by
using the Function wizard, which helps you interactively create
formulae.</para>
<para>To enter a formula using the Function wizard:
<orderedlist numeration="arabic">
<listitem><para>In your spreadsheet, select the cell where you want the
formula to be inserted. To allow the Function wizard to guide
you through the creation and application of a formula, on the
<emphasis role="strong">Formula</emphasis> bar, click
<emphasis role="strong">Function Wizard</emphasis>. This
opens the <emphasis role="strong">Function Wizard</emphasis> dialogue
box.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_065.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can see the entire range of functions listed in the
<emphasis role="strong">Functions</emphasis> list box.
You can also select one category from the
<emphasis role="strong">Category</emphasis> drop-down
list to display the functions listed under that category.</para>
<para>Find the desired function from the
<emphasis role="strong">Functions</emphasis> list, and
click to select it.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_066.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After you select the function, the
<emphasis role="strong">Function Wizard</emphasis>
dialogue box provides you some information about the
selected function to guide you through your selection. After
selecting the function, click <emphasis role="strong">Next</emphasis>
to proceed with the task of entering a formula.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_067.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Now, you are required to specify the numbers to which
you want to apply the formula. To select the numbers, you
need to go back to the worksheet.</para>
<para>Click the <emphasis role="strong">Shrink</emphasis>
button to shrink this dialogue box and return to the
worksheet.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_068.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The <emphasis role="strong">Function Wizard</emphasis>
dialogue box shrinks to allow you to view the worksheet. To select the
cell range, hold down the <emphasis role="strong">SHIFT</emphasis> key
and use the mouse to select the cell range containing the desired
numbers.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_069.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After selecting the cells, you can go back to the
Function wizard by clicking the <emphasis role="strong">
Maximize</emphasis> button.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_070.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Notice that the cell reference for the selected cell
range automatically appears in the <emphasis role="strong">
number 1</emphasis> box and the applied formula, complete
with arguments, appears in the <emphasis role="strong">
Formula</emphasis> box at the bottom of the dialogue box.
To complete the task of entering a formula, click
<emphasis role="strong">OK</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_071.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The solution appears in the cell where you had applied
the formula.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_072.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Inserting Charts</emphasis></para>
<para>You can present your data in the form of charts or graphs to
compare your data series visually and view trends in the data. Calc
offers you a number of ways to represent spreadsheet data
graphically.</para>
<para>To insert a chart in your spreadsheet:
<orderedlist numeration="arabic">
<listitem><para>Open a spreadsheet containing data and row and
column headings, and select the data to be included in the
chart.</para></listitem>
<listitem><para>On the <emphasis role="strong">Insert</emphasis>
menu, select <emphasis role="strong">Chart</emphasis>.
The <emphasis role="strong">Auto Format Chart</emphasis>
dialogue box appears.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_073.png"/>
</imageobject>
</figure>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">Tell the students about the
alternate way to insert a chart using the Insert Chart icon
from the Standard toolbar.</emphasis></para>
</listitem>
<listitem><para>As the first step, you are required to define the data
range, the labels and the target sheet where the chart would
be displayed.</para>
<para>If you have already selected the data range, it would
automatically appear in the <emphasis role="strong">Range</emphasis>
input field. Alternatively, you can select the data
range by clicking the <emphasis role="strong">Shrink</emphasis>
button next to the <emphasis role="strong">Range</emphasis>
input field and selecting the desired range.</para>
<para>After defining the required specifications, click
<emphasis role="strong">Next</emphasis> to continue.
</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_074.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>This takes you to the second page of the
<emphasis role="strong">AutoFormat</emphasis> dialogue
box. On this page, you can select the chart type and preview
the output of the chart. Calc allows you to select from a wide
range of 2D and 3D charts. You may decide to create a chart
immediately, based on the options you have specified so far,
by clicking <emphasis role="strong">Create</emphasis>.
Alternatively, you can continue to fine-tune your chart by
defining more specifications.</para>
<para>Select the chart type, and click
<emphasis role="strong">Next</emphasis> to continue with
the procedure of inserting charts.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_075.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The next page provides you a variety of options to
select a variant of the selected graph type and preview it in the
left pane. Again, you may decide to create a chart from this
screen, or click <emphasis role="strong">Next</emphasis>
to define titles and labels for the chart.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_076.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>This is the last screen of the
<emphasis role="strong">AutoFormat</emphasis> dialogue
box, where you can specify the main title for your chart and
title and labels for the axes. After specifying the required
information, click <emphasis role="strong">Create</emphasis>.
This inserts a chart at the specified location on your
spreadsheet.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_077.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can now move and resize the chart and edit it
further to suit your requirements.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_078.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Exporting Spreadsheets to PDF</emphasis></para>
<para>Similar to all other OpenOffice.org applications, Calc enables
you to export your spreadsheets as PDF files. With Openoffice.org,
you need not use any additional third-party software to convert your
document into PDF format.</para>
<para>To export your spreadsheet as a PDF:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">File</emphasis>
menu, click <emphasis role="strong">Export as PDF</emphasis>.
The <emphasis role="strong">Export</emphasis> dialogue box appears.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_079.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Provide a file name for your spreadsheet and navigate
to the directory where you want to save it. Click
<emphasis role="strong">Save</emphasis> to continue. This
opens the <emphasis role="strong">PDF Options</emphasis>
dialogue box.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_080.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The four tabbed pages in this dialogue box allow you
to define options, such as the pages to be included in the
PDF, the type of compression to be used and the level of
security to be assigned to the file. After defining these
specifications, click <emphasis role="strong">Export</emphasis>
to export the spreadsheet as a PDF file.</para>
<screen><para><emphasis role="strong">Nice to Know:</emphasis></para>
<para>To discover an Easter Egg tucked away in Calc, click within any of
the cells of your spreadsheet, type = <emphasis role="strong">GAME("StarWars")</emphasis>
and start playing right away.</para></screen>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_081.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Your spreadsheet is now displayed as a PDF file.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_082.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
</sect3>
</sect2>
<sect2>
<title>Using OpenOffice.org Impress</title>
<para>Impress is a fully featured presentation tool of the OpenOffice.org
office software suite. It enables you to create effective multi-media
presentations by creating 2D and 3D clip art and images. It also allows
you to create special effects and animations by using high-impact
drawing tools.</para>
<para>OpenOffice.org Impress is similar to Microsoft PowerPoint in its
functionality. However, Impress includes certain features that render it
more useful than PowerPoint. In addition to allowing you to create PDF
files from presentations, Impress lets you export the presentations into
ShockWave Flash (SWF) files. This enables you to run the output on
any computer that has a Flash player installed.</para>
<sect3>
<title>Key Features of OpenOffice.org Impress</title>
<para>Some of the many useful features of Impress are:</para>
<para><emphasis role="strong">Creating Vector Graphics:</emphasis>
Impress comes bundled with various drawing tools that allow you to
create vector graphics from within the application. You can also
export vector graphics to bitmap pictures and, inversely, convert
bitmap pictures into vector graphics.</para>
<para><emphasis role="strong">Creating Slides:</emphasis> Impress
provides ready-to-use templates to create professional slides. It
also provides a complete range of drawing and diagramming tools to
jazz up your slides. You can even use a Master view to add the
elements that you want to appear on all slides of your presentation.
</para>
<para>Further, Impress users have the option to install the Open
ClipArt library, which contains a huge gallery of images for creating
general presentations as well as drawing projects.</para>
<para><emphasis role="strong">Creating Presentations:</emphasis>
When you design presentations, Impress provides a complete
range of views such as Drawing, Outline, Slides, Notes and
Handouts to help you meet the needs of your audience. In addition,
it provides an optional multi-pane view in which you can use all the
tools easily and conveniently.</para>
<para>Animations and effects help add spice to your presentations.
You can render stunning 2D and 3D effects to your text using
Fontwork, which lets you create life-like 3D images easily.</para>
<para><emphasis role="strong">Publishing Presentations:</emphasis>
As stated earlier, Impress allows you to publish presentations as
handouts, export them into PDF files, convert them into SWF files
and publish them as HTML documents. This enables you to
access your presentation from a variety of platforms.</para>
<para><emphasis role="strong">Running Presentations:</emphasis>
OpenOffice.org Impress provides different ways to start and control
your slideshows. You can either run your slideshow manually by
using your keyboard or mouse or automatically, if you have defined
the slide transition for each slide.</para>
<para><emphasis role="strong">Saving Presentation in Other Formats:</emphasis>
Similar to other OpenOffice.Org applications, Impress saves your
work in the international OpenDocument format. It also allows you
to save your work in other, more popular formats, such as
PowerPoint. This enables you to share your work with people
using Microsoft or other office applications.</para>
<screen><para><emphasis role="strong">Nice to Know:</emphasis></para>
<para>Apart from the PowerPoint format, you may also save your work in other
formats, including StarDraw 5.0, StarDraw 3.0, Star Impress 5.0, the Star
Impress 5.0 template, Star Impress 4.0, the Star Impress 4.0 template and
OpenDocument Drawing.</para></screen>
</sect3>
<sect3>
<title>Creating Multi-Media Presentations</title>
<para>You can create outstanding multi-media presentations using
OpenOffice.org Impress. It allows you to create slides, handouts,
notes and outlines. In conjunction with projectors, it allows you to
reach out to a large audience. In other words, Impress has all the
capabilities you would expect in any presentation application.</para>
<para><emphasis role="strong">Creating, Viewing and Printing a
Presentation</emphasis></para>
<para>To create and view presentations using OpenOffice.org Impress:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">Applications</emphasis>
menu, point to <emphasis role="strong">Office</emphasis>
and then click <emphasis role="strong">OpenOffice.org
Presentation</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_083.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The <emphasis role="strong">Presentation Wizard</emphasis>
dialogue box appears. The Presentation wizard allows you to
define the basic structure of a presentation in three brief
steps. As a first step, you can define the type of presentation
you want to create. You may decide to create a presentation
using a pre-defined template, open an already created
presentation or create a new presentation from scratch. By
default, the <emphasis role="strong">Empty presentation</emphasis>
radio button is selected.</para>
<para>To create a new blank presentation, retain the default
selection and click Next.</para>
<screen><para><emphasis role="strong">Nice to Know:</emphasis></para>
<para>To be able to preview the slide template, slide design and slide
transition effects, leave the <emphasis role="strong">Preview</emphasis>
check box selected.</para></screen>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_084.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The second page of the <emphasis role="strong">
Presentation Wizard</emphasis> dialogue box allows you to
select a slide design and the output medium where you want
the presentation to display. By default,
<emphasis role="strong">Screen</emphasis> is selected as
the output medium because, most often, presentations are
displayed on the computer screen.</para>
<para>Select the desired options, and click
<emphasis role="strong">Next</emphasis> to advance the
Presentation wizard.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_085.png"/>
</imageobject>
</figure>
<para>The third and the last page of the
<emphasis role="strong">Presentation Wizard</emphasis>
dialogue box allow you to define the transition effect to be
applied to the slides during a slide show. The transition effect
that you select at this stage will apply on all the slides in
your presentation. However, if required, you can add or
change transitions later while creating your
presentation.</para>
<para>Apart from selecting the transition effect, you can also
set the speed of the transition and specify the presentation
type. After specifying your preferences, click
<emphasis role="strong">Create</emphasis> to proceed.
This creates a new presentation.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_086.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>This figure shows the main Impress window with an
empty presentation. From the <emphasis role="strong">Task
pane</emphasis> on the left, you can select a layout for your
current slide.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_087.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can enter the required text in the provided text
boxes to create the first slide.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_088.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>To make your presentation more attractive and render
it a professional look, you can either change the background
and format the font size and colour for each slide or simply
select a pre-defined template from the
<emphasis role="strong">Master Pages</emphasis>
panel.</para>
<para>Click <emphasis role="strong">Master
Pages</emphasis> to open the Master Pages panel.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_089.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>A number of templates are available on the
<emphasis role="strong">Master Pages</emphasis> panel.
Click the template of your choice to apply it to your
presentation. This applies a whole new look to your
presentation.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_090.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>If you decide to enhance the look of the presentation
further, you can do so by adding various elements, such as
objects, pictures and animated images, from the
<emphasis role="strong">Insert</emphasis> menu.
Alternatively, you can start adding new slides to the
presentation.</para>
<para>You can add a new slide by clicking the
<emphasis role="strong">Slide</emphasis> button on the
<emphasis role="strong">Standard toolbar</emphasis>.
Alternatively, click <emphasis role="strong">Slide</emphasis>
on the <emphasis role="strong">Insert</emphasis> menu.
This inserts a new slide into your presentation.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_091.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Notice that the new slide is also formatted as the first
slide because that is the layout you selected last. According
to the requirements of your presentation, you can select a
new format from the <emphasis role="strong">Layout pane</emphasis>.
The newly selected layout replaces the previous one.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_092.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The new layout has two columns, one for text and the
other for images. This allows you to display text along with an
associated image on the same slide. Enter the textual content
in the provided text boxes.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_093.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Notice that the text you enter automatically takes on
the formatting predefined in the template. However, if the text
is not fitting into the text box provided, you can always use a
smaller font size.</para>
<para>Next, you need to insert a graphic into the provided
placeholder. As prompted by the text in the placeholder,
double-click the house icon to insert a graphic into your slide.
This displays the <emphasis role="strong">Insert Picture</emphasis>
dialogue box, which enables you to select an appropriate
image from any directory on your computer.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_094.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Select the desired image and click
<emphasis role="strong">OK</emphasis> to insert it into
your slide.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_095.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Notice that the inserted picture is automatically
resized to fit into the provided space. However, you are free to
resize it or move it to a different location on the slide.</para>
<para>An alternate way to insert an image is to select
<emphasis role="strong">Picture</emphasis> from the
<emphasis role="strong">Insert</emphasis> menu. A picture
inserted in this way is not automatically resized. You can
move and resize the image, as needed.</para>
<para>To complete your presentation, create new slides in a
similar fashion.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_096.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After you have created all the slides for your
presentation, you can display it as a slide show. To configure
the basic slide show setting, select
<emphasis role="strong">Slide Show Settings</emphasis>
from the <emphasis role="strong">Slide Show</emphasis>
menu.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_097.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The <emphasis role="strong">Slide Show</emphasis>
dialogue box helps you define the basic settings for your slide
show. In the <emphasis role="strong">Range</emphasis>
section, you can specify the slides to be included in the
presentation and their order of display. In the
<emphasis role="strong">Type</emphasis> section, you can
define how to display the slides. Similarly, the
<emphasis role="strong">Options</emphasis> section
allows you to define various other settings for your
presentation.</para>
<para>After selecting the desired options, click
<emphasis role="strong">OK</emphasis> to apply the
settings.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_098.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After the slide show settings are specified, you can
start the slide show to view your presentation. To start the
slide show, select <emphasis role="strong">Slide Show</emphasis>
from the <emphasis role="strong">Slide Show</emphasis>
menu or press <emphasis role="strong">F5</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_099.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The presentation can be viewed as a running slide
show. When you reach the last slide of the presentation, you
are prompted to exit the presentation by clicking once.
However, you can exit a slide show at any point of time by
pressing <emphasis role="strong">ESC</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_100.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>OpenOffice.org Impress also provides you many
options for printing your presentation. You may decide to print
your slides with notes, as an outline, with page numbers, with
date and time and so on. To print the presentation, select
<emphasis role="strong">Print</emphasis> from the
<emphasis role="strong">File</emphasis> menu.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_101.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>This displays the <emphasis role="strong">Print</emphasis>
dialogue box. Click <emphasis role="strong">Options</emphasis>
to specify the print options of your choice. The
<emphasis role="strong">Print Options</emphasis> dialogue
box allows you to specify various options, such as the content
to print, the quality of the print, the number of slides to print
on a page and more.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_102.png"/>
</imageobject>
</figure>
<para>After specifying your desired options, click
<emphasis role="strong">OK</emphasis> to apply those
settings and return to the <emphasis role="strong">Print</emphasis>
dialogue box.</para></listitem>
<listitem><para>You can use the <emphasis role="strong">Print</emphasis>
dialogue box to further define printer settings or accept the
default settings, and click <emphasis role="strong">OK</emphasis>
to start printing your presentation.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_103.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Animating Objects and 3D Objects</emphasis></para>
<para>Impress provides an amazing range of tools to create rich
presentations with stunning 3D effects and animations. To create a
presentation with 3D effects and animations:
<orderedlist numeration="arabic">
<listitem><para>Open a new presentation in which you want to use 3D
graphics and animations, and select a suitable template from
the <emphasis role="strong">Master pages</emphasis>
panel. Now, you can start adding elements to your
presentation to spice it up. Begin with placing the title of your
presentation on the first slide.</para>
<para>To create an eye-catching display for the title text, you
can use one of the many wonderful great text tools available in
Impress. One of these is Fontwork, which enables you render
special 3D effects to your text. To start using
<emphasis role="strong">Fontwork</emphasis>, on the
<emphasis role="strong">Drawing toolbar</emphasis>, click
the <emphasis role="strong">Fontwork Gallery</emphasis>
button. The <emphasis role="strong">Fontwork Gallery</emphasis>
window appears.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_104.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Select the style in which you want the title text to be
displayed, and click <emphasis role="strong">OK</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_105.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The text <emphasis role="strong">Fontwork</emphasis>,
in the selected style, appears on the slide as an object.
Notice that the <emphasis role="strong">Fontwork toolbar</emphasis>
and the <emphasis role="strong">3D-Settings toolbar</emphasis>
simultaneously appear in your presentation window. You can
use these toolbars later to modify the Fontwork object as per
your preferences.</para>
<para>To display the title text in place of the Fontwork
object, double-click the object and type the title text in place
of the black <emphasis role="strong">Fontwork</emphasis>
that appears over the object. Click outside the
object's selected area to exit the Fontwork edit
mode.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_106.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You have achieved an impressive display for your
presentation title. Now, you can go ahead and weave the
same level of interest on the other slides too by inserting 3D
images and animating them.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_107.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can insert 3D graphic objects in your presentation
from the <emphasis role="strong">3D-Objects toolbar</emphasis>. By
default, this toolbar is not displayed on the
<emphasis role="strong">Drawing toolbar</emphasis>. To
display the <emphasis role="strong">3D-Objects toolbar</emphasis>,
on the <emphasis role="strong">View</emphasis> menu, point to
<emphasis role="strong">Toolbars</emphasis> and then select
<emphasis role="strong">3D-Objects</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_108.png"/>
</imageobject>
</figure>
<screen><para><emphasis role="strong">Nice to Know:</emphasis></para>
<para>You can also display the 3D-Objects toolbar by clicking the
small arrow at the end of the Drawing toolbar and selecting it from
the Visible Buttons list.</para></screen>
</listitem>
<listitem><para>The <emphasis role="strong">3D-Objects toolbar</emphasis>
appears as a floating toolbar. If you don't find it convenient
to use a floating toolbar, you can place it on one of the existing
toolbars. To dock the <emphasis role="strong">3D-Objects
toolbar</emphasis>, drag the title bar of the toolbar to the desired
location and release the mouse button.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_109.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The <emphasis role="strong">3D-Objects toolbar</emphasis>
is now attached to the <emphasis role="strong">Line and Filling
toolbar</emphasis>. You can pick up objects from this toolbar and
insert them into your slides. To insert a 3D Object on your current
slide, click the desired object on the <emphasis role="strong">3D-Objects
toolbar</emphasis>. Then, move your mouse to the point where you want to
insert the object. You can see a plus sign in place of the mouse tip.
Holding down the left mouse button, drag the mouse to insert the object
on the slide. The selected 3D object appears on the slide.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_110.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can change the proportion and size of the object
by holding the green handles that appear around it. Impress
also provides you tools to apply a number of 3D effects on the
object to modify its look and feel as per your
requirements.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_111.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>To apply 3D effects on the inserted graphic, right-click
the object. On the short-cut menu, click
<emphasis role="strong">3D Effects</emphasis>. The
<emphasis role="strong">3D Effects</emphasis> dialogue
box opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_112.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can use the options available under the different
buttons in this dialogue box to define the look and feel of the
inserted object. Click the <emphasis role="strong">
Illumination</emphasis> button to fine-tune the illumination
effect on the object. The options available under the
<emphasis role="strong">Illumination</emphasis> button are
displayed.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_113.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can select the appropriate options from the
drop-down lists to render the desired illumination effect to the
object. Alternatively, you can simply drag the white dot in the
graphic at the bottom of the dialogue box and move it to get
the desired effect.</para>
<para>After specifying the desired options, click the
<emphasis role="strong">Assign</emphasis> icon on the top
right of the dialogue box to apply the effects on the selected
object.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_114.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Notice that with a couple of mouse clicks, the 3D
object has got a complete new look. Click
<emphasis role="strong">Close</emphasis> to exit the
<emphasis role="strong">3D Effects</emphasis> dialogue
box.</para>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">If you are not short of time, you
can also demonstrate the procedure of converting 2D
objects into 3D objects and applying the finer 3D effects to
it.</emphasis>
</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_115.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>In a similar fashion, you can add many more 3D and
2D elements to your presentation and apply various 3D effects
to jazz it up. In addition to all these features, Impress offers
some animation functionalities to help you bring life to your
presentations. To display the animation options available in
Impress, on the <emphasis role="strong">Slide Show</emphasis> menu,
click <emphasis role="strong">Custom Animation</emphasis>. The
<emphasis role="strong">Custom Animations</emphasis> panel now appears
on the right edge of the presentation window.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_116.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>To apply an animation effect on an individual element
in your slide, select that element and click the
<emphasis role="strong">Add</emphasis> button on the
<emphasis role="strong">Custom Animation</emphasis>
panel. The <emphasis role="strong">Custom Animation</emphasis> dialogue
box opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_117.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can now apply various animations to the selected
object, define the entrance and exit animation for it and chart
a motion path for the object. Similarly, you can specify
animation effects for other elements on the slides.</para>
<para>After defining all the desired settings for the object,
click <emphasis role="strong">OK</emphasis> to apply the
animation effects.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_118.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The specified animations can be viewed at the bottom
of the <emphasis role="strong">Custom Animations</emphasis> panel.
You can now view the animation effects in a <emphasis role="strong">slide
show</emphasis>. Click the Slide Show button to view the presentation
as a slide show.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_119.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Your presentation runs as a spectacular and lively
slide show.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_120.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Exporting a Presentation</emphasis></para>
<para>As stated earlier, another useful feature associated with
Impress is that it has the built-in capacity to export presentations
directly into several other file formats. As a result, Impress allows you
to export your slide shows directly as SWF files.</para>
<para>To export your presentation as an SWF file:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">File</emphasis>
menu, click <emphasis role="strong">Export</emphasis>.
This opens the <emphasis role="strong">Save as</emphasis>
dialogue box.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_121.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Here, you need to specify a file name in the
<emphasis role="strong">Name</emphasis> field and
navigate to the directory where you want to export the
file.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_122.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>To export the presentation as a Flash file, select
<emphasis role="strong">Macromedia Flash (SWF) (.swf)</emphasis> from
the file type drop-down list. The file is exported to the indicated
location.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_123.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You can now view the presentation as an SWF
file.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_124.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
</sect3>
</sect2>
<sect2>
<title>Using OpenOffice.org Base</title>
<para>OpenOffice.org Base is the Database Management System
(DBMS) in the OpenOffice.org applications suite. Like any other DBMS,
it provides an environment to organise data in a way that facilitates the
easy use and management of the data. This application is useful where it
is necessary to store a large amount of data that is accessible to
multiple people, from multiple places. A typical example where data
management is critical is in storing patient history in a hospital. Timely
access to information could save lives, and its absence could have an
adverse impact on a person's life.</para>
<para>Alternatively, you can use Base for non-critical tasks, such as
maintaining household expenses, managing an inventory list in a
departmental store or responding to customer queries at a travel
helpdesk.</para>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">For experienced learners, you need not
explain the basic concepts of a DBMS. However, for home users,
you must explain the concepts in great detail using the following
analogy:</emphasis>
</para>
<para><emphasis role="italic">Consider that you have multiple shelves in
your house, and one of them holds an address book, a stock list, a
phone book and a price list. The address book, stock list, phone book
and price list on the shelf are fields that contain specific data. The
shelves would constitute the tables in a database – your
house.</emphasis>
</para>
<para>Before learning how to perform database operations, it is
important to browse some basic concepts related to databases. A
database is a structure for storing related information. Databases are
typically organised into tables, which are collections of related items. A
table is a single store of related information. For instance, you could
track all the information about the students in a school in a Students
table, which is a grid of columns and rows. If you then create separate
tables containing details about teachers, classes and classrooms, you
could combine all four tables into a timetabling database. The following
figure shows the basic layout of a database table:</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_125.png"/>
</imageobject>
</figure>
<para>A column defines one snippet of data stored in all the rows of a
table and is called a field. Each column is identified by a name. A row
contains one item from each column in the table and is called a
<emphasis role="strong">record</emphasis>.</para>
<para>For example, a table might contain the ID, name, title and other
information of the individuals employed by a company. Each row, called
a data record, corresponds to one employee. The value of a column
within a record is referred to as a record field.</para>
<para>The following figure shows an example table, named employees,
containing information about company employees:</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_126.png"/>
</imageobject>
</figure>
<para>The record for Employee 4 contains the following field values:
<itemizedlist>
<listitem><para>LastName is "Smith"</para></listitem>
<listitem><para>FirstName is "John"</para></listitem>
<listitem><para>Title is "Engineer"</para></listitem>
</itemizedlist>
</para>
<para>You are now set to perform some basic database operations. Let
us begin with some of the features that Base offers.</para>
<sect3>
<title>Key Features of OpenOffice.org Base</title>
<para>Base provides a wide variety of features, namely:
<itemizedlist>
<listitem><para>Create new data tables and modify them.
After the tables are populated, you can build different components, such as queries, forms
and reports, to address specific needs.</para>
</listitem>
<listitem><para>Maintain indexes on the tables to make data access
faster.</para></listitem>
<listitem><para>View a table in an editing grid and add, change and
delete records: Base provides the option to edit a table after
creating it.</para></listitem>
<listitem><para>Use the Report wizard to produce reports from your
data. Base also provides powerful search tools to help you find relevant information from your
databases.</para></listitem>
<listitem><para>Use the Form wizard to create instant database
applications: The Form wizard in Base guides you through a
series of steps to create a form, which allows you to enter
records in multiple tables.</para></listitem>
<listitem><para>Perform simple or complex sorts: Base provides the
option to perform multiple layers of sorts on your data.</para></listitem>
<listitem><para>View subsets of your data with simple or complex
filters.</para></listitem>
<listitem><para>Create powerful queries to show your data in new
ways, including summaries and multi-table views: Base
allows you to create queries to perform specific tasks, such
as adding or updating records and retrieving selected records.</para>
</listitem>
<listitem><para>Integrated with OpenOffice applications: Base is tightly
integrated with the other OpenOffice applications, and data
from a Base database can be automatically fed into letters,
documents, envelopes, labels, spreadsheets and graphs.</para></listitem>
<listitem><para>Supported database formats: Base natively supports
some flat file database formats, such as the dBase format.
You can also use Base to connect to external relational
databases, such as databases from MySQL or Oracle.</para></listitem>
</itemizedlist>
</para>
</sect3>
<sect3>
<title>Performing Basic Database Operations</title>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">This topic intends to provide the learners
with basic information about this application, assuming that they
have no prior knowledge. Base provides both wizards and the
Design view to work with database objects, such as tables, queries,
reports and forms. The Instructor Guide covers both methods in
detail. Depending on the availability of time and the comfort level of
the participants, choose between the wizards and the Design view
to perform basic operations.</emphasis></para>
<para><emphasis role="strong">Creating a New Database</emphasis></para>
<para>To create a new database using OpenOffice.org Database:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">Applications</emphasis>
menu, point to <emphasis role="strong">Office</emphasis> and then click
<emphasis role="strong">OpenOffice.org Database</emphasis> to display the
<emphasis role="strong">Database</emphasis> wizard.</para>
<screen><para><emphasis role="strong">Nice to Know:</emphasis></para>
<para>Wizards help you perform complex tasks in a step-by-step manner.
A wizard consists of a series of windows that collects specific
information related to the task you want to perform and uses the
information to accomplish the task.</para></screen>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_127.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The <emphasis role="strong">Database</emphasis>
wizard helps you create a new database, open an existing
database created using Base and connect to an existing
non-OpenOffice.org database, such as Oracle. By default,
the <emphasis role="strong">Create a new Database</emphasis>
option is selected. To create a database, retain the default selection
and click <emphasis role="strong">Next</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_128.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The next step involves specifying what you want to do
with the database after saving it. Select the
<emphasis role="strong">Yes, register the database for me</emphasis>
option to use the data of the database in other OpenOffice.org
applications; otherwise, select the No, do not register the
<emphasis role="strong">database</emphasis> option.</para>
<para>You also specify the next action that you want the
wizard to perform after saving the database. You can select
the <emphasis role="strong">Open the database for editing</emphasis>
check box to open the <emphasis role="strong">New Database</emphasis>
window to make changes. You can simultaneously select the
<emphasis role="strong">Create tables using the table wizard</emphasis>
check box to start creating a table for your database. If you do not
select any check box, the wizard closes the application after saving the
database. Select the appropriate options and click
<emphasis role="strong">Finish</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_129.png"/>
</imageobject>
</figure>
<para>Specify the name and location of your database, and
click <emphasis role="strong">Save</emphasis> in the
<emphasis role="strong">Save</emphasis> dialogue box.
The <emphasis role="strong">New Database</emphasis>
window for the new database appears.</para>
</listitem>
<listitem><para>The <emphasis role="strong">New Database</emphasis>
window consists of three panes, which provide easy access to the
various features of a database. You can navigate through the tasks,
tables, queries and forms using the Database pane, create a component
with relative ease by using the options provided in the Tasks pane and
preview a document in the lower pane.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_130.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para>As you have learned, a database is a virtual placeholder for
data. To insert data into a database in an organised format, you need
to create tables to hold the data. After the tables are populated with
data, you can build different components, such as queries, forms and
reports to address specific purposes.</para>
<para><emphasis role="strong">Working with Tables</emphasis></para>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>Before creating a table for your data, spend some time on identifying
all the fields needed to ensure the completeness of the table.</para></screen>
<para>Base provides the following methods to create a table:
<itemizedlist>
<listitem><para>Using the Table wizard</para></listitem>
<listitem><para>Using the Design view</para></listitem>
</itemizedlist>
</para>
<para><emphasis role="strong">Using the Table wizard to Create a Table</emphasis></para>
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">Applications</emphasis>
menu, point to <emphasis role="strong">Office</emphasis> and then click
<emphasis role="strong">OpenOffice.org Database</emphasis>. The
<emphasis role="strong">Database</emphasis> wizard appears.</para></listitem>
<listitem><para>You have already created a database in the previous procedure.
Select the <emphasis role="strong">Open an existing database file</emphasis>
option and select the database from the <emphasis role="strong">Recently
used</emphasis> list or click <emphasis role="strong">Open</emphasis> to
open another database saved on your computer. Click
<emphasis role="strong">Finish</emphasis> to proceed.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_131.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>In the <emphasis role="strong">New Database</emphasis>
window, click <emphasis role="strong">Tables</emphasis> in
the Database pane and then the <emphasis role="strong">Use
Wizard to Create Table</emphasis> option from the Tasks
pane. The <emphasis role="strong">Table</emphasis> wizard
appears.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_132.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Creating a table requires you to specify its fields and their
formats. To ease the task, the <emphasis role="strong">Table</emphasis>
wizard provides various sample tables and the corresponding fields to choose
from. Fill out the following sections:</para>
<itemizedlist>
<listitem><para><emphasis role="strong">Category:</emphasis> You
can create a table for <emphasis role="strong">
Business</emphasis> or <emphasis role="strong">
Personal</emphasis> use by selecting the
corresponding button. The <emphasis role="strong">
Sample tables</emphasis> list changes to suit the
selected category.</para></listitem>
<listitem><para><emphasis role="strong">Sample Tables:</emphasis>
You can choose a table from the list of tables already
defined in the wizard. Click the
<emphasis role="strong">Sample tables</emphasis>
arrow, and select the type of table you want to
create.</para></listitem>
<listitem><para><emphasis role="strong">Available Fields:</emphasis>
Correspond to the sample table selected. You can view
the <emphasis role="strong">Available fields</emphasis> in the
wizard. The list of <emphasis role="strong">Available
fields</emphasis> varies with the sample table. You can select
fields from this list.</para></listitem>
<listitem><para><emphasis role="strong">Selected Fields:</emphasis>
You can select specific fields from the
<emphasis role="strong">Available Fields</emphasis>
and transfer them to the <emphasis role="strong">
Selected Fields</emphasis> box by using the arrow
buttons.</para></listitem>
</itemizedlist>
<para>After selecting the fields you need in the table, click
<emphasis role="strong">Next</emphasis> to proceed.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_133.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Now, set the field types and formats for each selected
field. To view the properties of a field, click the field in the
<emphasis role="strong">Selected fields</emphasis> list. The
following information is displayed in the
<emphasis role="strong">Field information</emphasis> section:
</para>
<itemizedlist>
<listitem><para>Field name – This is the name of the
selected data field. If you want, you can modify the name
by overwriting it in the <emphasis role="strong">Field
name</emphasis> box.</para></listitem>
<listitem><para>Field Type – Depending on the value a field
is supposed to hold, its field type is defined. For example,
the CredtCardExpiryDate field should hold the date and not
any other alphanumerical value. Therefore, its field type is
set to Date. So, users can enter only a date value in this
field. This ensures the accuracy of data. Similarly, the
PaymentAmount field should be set to decimal to ensure
that users enter only numbers.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_134.png"/>
</imageobject>
</figure></listitem>
<listitem><para>Auto value – Typically, a business assigns
an ID, which is a sequential number to any new customer
being added to its records. To avoid human error when
creating IDs, they can be automatically generated. To do
this, set the <emphasis role="strong">Auto Value</emphasis> field to
Yes.</para></listitem>
<listitem><para>Entry required – If a particular field cannot
be left blank, set the Entry required field to Yes. Base will
force the user to fill the field. If it is okay to leave the field
blank, set the option to No.</para></listitem>
<listitem><para>Length – To ensure that the user gets just
enough space to enter a value for a field, you can specify
the maximum number of characters for the data field.</para></listitem>
<listitem><para>Decimal places – For all Numeric field
types, you can specify the number of decimal places that
you want the user to enter.</para></listitem>
<listitem><para>Default value – To ease the process of data
entry, you can specify the value that appears in the field at
the time of data entry, by default. You can set the default
value for only Yes/No fields.</para></listitem>
</itemizedlist>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>This is another opportunity for you to retain and reject fields for
your table by using the - or + button. Click <emphasis role="strong">Next</emphasis>
to continue.</para></screen>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_135.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After defining all the fields in the table, set a primary key
for your table. A primary key is a field or combination of fields
that uniquely identifies a record in a table. This allows you to
easily locate an individual record and implement a relationship
between two tables. Select the <emphasis role="strong">Create
a primary key</emphasis> check box.</para></listitem>
<listitem><para>The wizard provides three options to create a primary key:</para>
<itemizedlist>
<listitem><para>Automatically add a primary key: Base creates an
identifier for each record on its own.</para></listitem>
<listitem><para>Use an existing field as a primary key: You can
designate one of the existing fields in the
<emphasis role="strong">Fieldname</emphasis> box as
a primary key.</para></listitem>
<listitem><para>Define the primary key as a combination of several
fields: For tables bearing similar fields, you can combine
and set a list of fields as the primary key.</para></listitem>
</itemizedlist>
<para>Select the appropriate option button to create the key,
and click <emphasis role="strong">Next</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_136.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The final step is to assign a name to your table, and
choose the next action by clicking the corresponding button
against the action specified. If you still want to make changes to
the table fields and formats, select the
<emphasis role="strong">Modify the table design</emphasis>
option. To create a form, based on this table, for users to enter
data, select the <emphasis role="strong">Create a form based
on this table</emphasis> option. Retain the default selection,
which is the <emphasis role="strong">Insert data immediately</emphasis>
option, and click <emphasis role="strong">Finish</emphasis> to display
the table created. The <emphasis role="strong">Payments</emphasis> table
appears resembling a spreadsheet.</para>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>If, at any point in time, you need to make changes to the table, use
the <emphasis role="strong">Back</emphasis> and <emphasis role="strong">Next</emphasis>
buttons to traverse to the page on which you need to make changes.</para></screen>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_137.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Insert data related to a field in its respective column.
Click Save to save the data and then click
<emphasis role="strong">Exit</emphasis>. The
<emphasis role="strong">New Database</emphasis> window
now shows the table you created in the Tables pane along with
its preview in the right section of the <emphasis role="strong">
Database</emphasis> window.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_138.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>If you want to make any changes to the table, open the
table in edit mode. Right-click the table name and click
<emphasis role="strong">Edit</emphasis>. You are ready to
make modifications.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_139.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
<para><emphasis role="strong">Using the Design View to Create a Table</emphasis></para>
<para>For complex or infrequently performed tasks, where you are
unfamiliar with the steps involved, it seems better to use a wizard.
This wizard leads you through a series of dialogue boxes to perform
the task in a specific sequence, ensuring that no steps are missed.
However, if you are an experienced user, you can use the Design view
to create a new table. The Design view allows you to directly enter
information about each field in the table itself.</para>
<para>To create a table in the Design view:</para>
<orderedlist numeration="arabic">
<listitem><para>In the <emphasis role="strong">New Database</emphasis>
window, click <emphasis role="strong">Create table in Design View</emphasis>.
The <emphasis role="strong">Table Design</emphasis> window opens.</para>
<para>This window is similar to the one created using the
wizard. The only difference is that you need to specify
<emphasis role="strong">Field Name</emphasis>,
<emphasis role="strong">Field Type</emphasis> and
<emphasis role="strong">Field Properties</emphasis> on your
own, without any user interface providing you options.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_140.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Click the first cell in the <emphasis role="strong">Field
Name</emphasis> column, and type the name of the field. After
you enter the field name, the corresponding
<emphasis role="strong">Field Type</emphasis> cell displays
the default field type as Text [VARCHAR]. To change the field
type, click the corresponding field type cell to display a down
arrow. By clicking this arrow, you can view the field types to
choose from. Click the <emphasis role="strong">Field Type</emphasis>
arrow and select a <emphasis role="strong">Field Type</emphasis>
from the list.</para></listitem>
<listitem><para>The Field Properties pane provides options to specify
field properties, such as <emphasis role="strong">Entry
required, Length, Default value</emphasis> and
<emphasis role="strong">Format example</emphasis> for each
field. After all the fields are listed, you need to identify a field and
set it as the primary key. Right-click the field you want to set as
the primary key, and click <emphasis role="strong">Primary
Key</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_141.png"/>
</imageobject>
</figure>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_142.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After assigning the primary key, click
<emphasis role="strong">Save</emphasis>. In the
<emphasis role="strong">Save As</emphasis> dialog box,
specify the name of the table and click
<emphasis role="strong">OK</emphasis>. The table is listed in
the Tables pane in the <emphasis role="strong">New Database</emphasis>
window.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_143.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>To add data to this table, double-click the table. The
<emphasis role="strong">Table</emphasis> window opens.
This window is the same as the one shows the output from the
<emphasis role="strong">Table</emphasis> wizard. Insert the
data in the respective field columns, click
<emphasis role="strong">Save</emphasis> to save the data
and then click <emphasis role="strong">Exit</emphasis>.
</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_144.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
<para><emphasis role="strong">Creating a View</emphasis></para>
<para>A view is used to provide a subset view of a table. This can be
for security or clarity. For example, you have a payroll table that
includes information such as name, address, city, state, zip, phone,
supervisor, salary and last pay check date. You want an employee to
see only the name, address, phone number and supervisor, and not
the HR-related information. In this situation, you use views to select
and display only required fields.</para>
<para>To create a view:</para>
<orderedlist numeration="arabic">
<listitem><para>In the <emphasis role="strong">New Database</emphasis>
window, click <emphasis role="strong">Create View</emphasis> in the Tasks
pane. The <emphasis role="strong">Add Tables</emphasis> dialogue box
displays the list of tables in the database.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_145.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Select the required tables and click
<emphasis role="strong">Add</emphasis> to display them in
the <emphasis role="strong">View Design</emphasis> window.
</para></listitem>
<listitem><para>Double-click the fields of the table you want to include in
the view, and click <emphasis role="strong">Save</emphasis>.
The selected fields appear in the lower pane as a view.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_146.png"/>
</imageobject>
</figure>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_147.png"/>
</imageobject>
</figure>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>The reason for Customer ID to appear twice in this table is because
both tables had the same primary key in the form of Customer ID.</para></screen>
</listitem>
</orderedlist>
<para><emphasis role="strong">Working with Queries</emphasis></para>
<para>Consider that you need to check the records of employees who
joined in the last two years and draw a salary that is more than a
specific amount. How do you retrieve the required records? You could
scroll down the database to view the data in each record and then
compare the data against the criteria. However, this is a
time-consuming method, and you may get inaccurate results due to
human error.</para>
<para>When you want to quickly view a group of data that meets
specific criteria, create a query. Querying is a process by which you
specify a criterion to extract specific information from a database. You
can create queries to retrieve information from multiple tables. You
also create queries to perform specific tasks, such as adding or
updating records and retrieving selected records.</para>
<para>Base provides the following methods to create a query:
<itemizedlist>
<listitem><para>Using the Query wizard</para></listitem>
<listitem><para>Using the Design view</para></listitem>
<listitem><para>Using the SQL view</para></listitem>
</itemizedlist>
</para>
<para><emphasis role="strong">Using the Query Wizard</emphasis></para>
<para>The Query wizard accelerates and simplifies the process of
designing queries. It consists of steps to retrieve data from a table or
multiple tables. With the Query wizard, you can display the summary
value of a group of records or all records.</para>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">Use the table created in the previous topic
as a reference for creating the queries in this topic.</emphasis></para>
<para>To generate a query using the Base wizard:
<orderedlist numeration="arabic">
<listitem><para>In the <emphasis role="strong">New Database</emphasis>
window, click <emphasis role="strong">Queries</emphasis> in the database
pane.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_148.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Click <emphasis role="strong">Use Wizard to Create
query</emphasis> in the Tasks pane. The
<emphasis role="strong">Query</emphasis> wizard appears.
</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_149.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Select the table you want to query in the
<emphasis role="strong">Tables</emphasis> list.</para>
</listitem>
<listitem><para>Select the fields you need in your query list from the
<emphasis role="strong">Available fields</emphasis> list,
and move them to the <emphasis role="strong">Fields in the
Query</emphasis> list to the right using the arrow buttons.
Click <emphasis role="strong">Next</emphasis> after
selecting the required fields.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_150.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Next, specify how you want the query results to be
ordered. You can sort the results based on a particular field.
Select a field from the <emphasis role="strong">Sort by</emphasis>
box, choose the <emphasis role="strong">Ascending</emphasis>
or <emphasis role="strong">Descending</emphasis> option and then click
<emphasis role="strong">Next</emphasis>.</para>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>You can use the <emphasis role="strong">Then by</emphasis> section
to build nested queries.</para></screen>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_151.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The next step is to specify search condition(s) for your
query. You can define a maximum of three conditions. If you
want the query result to satisfy all the conditions, select the
<emphasis role="strong">Match all of the following</emphasis> option.
Alternatively, if you want to display the result for any of the
conditions met, select the <emphasis role="strong">Match any of the
following</emphasis> option. Select a field from the
<emphasis role="strong">Fields</emphasis> list, select the
condition from the <emphasis role="strong">Condition</emphasis>
list, specify the value to map the condition and then click
<emphasis role="strong">Next</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_152.png"/>
</imageobject>
</figure>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_153.png"/>
</imageobject>
</figure>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_154.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Next, select the level of detail you want the query
result to display. Select the <emphasis role="strong">
Detailed query</emphasis> option to display all records of
the query or select the <emphasis role="strong">Summary
query</emphasis> option to display the results of aggregate
functions, and then click <emphasis role="strong">Next</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_155.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You have the option of changing the name of the fields
that appear in the query results by assigning aliases to the
fields on which you are performing a query. The query result
will be displayed using the alias instead of the field name. By
default, the <emphasis role="strong">Alias</emphasis> box
for each field includes the field name itself. To assign an
alias, clear the Alias box, type the desired alias and click
<emphasis role="strong">Next</emphasis> to move to the
next step.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_156.png"/>
</imageobject>
</figure>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_157.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Finally, specify the name of the query in the Name of
the query box. If you want to make any changes to the query,
you can select the Modify Query option; otherwise, you can
display the query results by selecting the Display Query
option. Click Finish to generate the query.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_158.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The Query wizard generates the query based on the
conditions specified and displays the result in the
<emphasis role="strong">Query</emphasis> window.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_159.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Base registers the query and displays it in the Queries
pane of the New Database window.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_160.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Using the Design View</emphasis></para>
<para>The <emphasis role="strong">Design view</emphasis> is an
alternative way to create queries. To create a query by using the
Design view:
<orderedlist numeration="arabic">
<listitem><para>In the <emphasis role="strong">New Database</emphasis>
window, select <emphasis role="strong">Create Query in Design
View</emphasis> from the Tasks pane. The <emphasis role="strong">Add
Table or Query</emphasis> dialogue box appears.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_161.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Select either the <emphasis role="strong">Tables
</emphasis> or the <emphasis role="strong">Queries
</emphasis> option depending on whether you want to
retrieve records from an existing query or table, and then
select the required tables or queries from the list. Click
<emphasis role="strong">Add</emphasis> and then click
<emphasis role="strong">Close</emphasis>.</para>
</listitem>
<listitem><para>The <emphasis role="strong">Query Design
</emphasis> window contains two panes, upper and lower.
The upper pane displays the fields of the selected tables and
queries. The lower pane contains the design grid.</para>
</listitem>
<listitem><para>You need to enter the details of your query in the
design grid. Fill in the following details of your query in the
design grid:</para>
<itemizedlist>
<listitem><para>Field: Each column of the Field row is a
drop-down list. Select the field you want to display in
the query from the list.</para>
</listitem>
<listitem><para>Alias: Each column of the Alias row is a text
box. Type the alias you want to assign to the field.
However, it is not necessary to assign an alias to a field.
</para>
</listitem>
<listitem><para>Table: Each column of the Table row is a
drop-down list. From the dropdown list, select the table
from which to extract the corresponding field data. It is
recommended that you specify the table first and then
the field.</para>
</listitem>
<listitem><para>Sort: Each column of the Sort row is a drop-down
list. Select the sort preferences for the query result. The
sort row provides only two options, ascending order or
descending order.</para>
</listitem>
<listitem><para>Visible row: Select the check box in the visible
row to display the information of that field in the query
result.</para>
</listitem>
<listitem><para>Criterion: You can specify data as criteria to
extract the records needed from tables. Criteria for each
field need to be specified in the respective column of that
field. For example, to select records for the employee
whose employee ID is 1, specify 1 in the Criteria row in
the column where you have selected Employee ID as a
field.</para>
</listitem>
<listitem><para>Alternatively, you can specify criteria for the OR
operator in a query. For example, to select the customer
ID for a customer whose credit card type is Visa or
Master, specify Visa in the Criteria row and Master in
the column where you have selected CreditCardTypes
as a field.</para>
</listitem>
</itemizedlist>
</listitem>
</orderedlist>
</para>
<para>After entering details for the query, click the Save button on the
toolbar and press <emphasis role="strong">F5</emphasis> on your
keyboard to run the query to display the results in the upper pane of
the <emphasis role="strong">Query</emphasis> window.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_162.png"/>
</imageobject>
</figure>
<para><emphasis role="strong">Working with Forms</emphasis></para>
<para>Entering, updating and searching records in a database is a
cumbersome process. Then, how do you update a database?
Databases records are updated using forms. For example, a ticketing
clerk who makes reservations uses a form to update journey details in
the database. It takes a few minutes to complete the entire process.
Forms act as an interface to update records in the database. Forms
are specifically useful when you want to work with multiple tables at
the same point in time. For example, for managing the Sales
database, you need to maintain the Inventory Master and Transaction
tables to record sales.</para>
<para>A form, therefore, is a user-friendly representation of a
database table or query in which you can add, view or modify existing
data. Each form contains only the required fields related to one record
in a table or query, which makes the data more comprehensible. So,
instead of scrolling across the screen to view particular data within one
record in a table, you can view it all together in a form.</para>
<para>You can use forms to:
<itemizedlist>
<listitem><para>Browse the contents of a database.</para></listitem>
<listitem><para>Enter data in a database.</para></listitem>
<listitem><para>Modify the data in a database.</para></listitem>
</itemizedlist>
</para>
<para>All these functions can be performed easily because forms use
a number of controls such as text boxes, combo boxes and dialogue
boxes, which display data or perform specific actions.</para>
<para>Base provides the following methods for creating a form:
<itemizedlist>
<listitem><para>Using the Query wizard</para></listitem>
<listitem><para>Using the Design view</para></listitem>
</itemizedlist>
</para>
<para><emphasis role="strong">Using the Form Wizard</emphasis></para>
<para>The <emphasis role="strong">Form</emphasis> wizard
guides you through a series of steps to create a form that allows you
to enter records in multiple tables.</para>
<para>To create a form using the Form wizard:
<orderedlist numeration="arabic">
<listitem><para>In the <emphasis role="strong">New Database
</emphasis> window, click <emphasis role="strong">Forms
</emphasis> from the Database pane and then click
<emphasis role="strong">Use Wizard to Create Form
</emphasis> from the Tasks pane. The
<emphasis role="strong">Form</emphasis> wizard appears.
</para>
</listitem>
<listitem><para>The first step in the <emphasis role="strong">Form
</emphasis> wizard is to select the fields in your form. Select
the table from the <emphasis role="strong">Tables
</emphasis> box and then the fields in the
<emphasis role="strong">Available fields</emphasis>
list.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_163.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Click the arrows to move the selected fields to the
<emphasis role="strong">Fields in the form</emphasis> list.
Click <emphasis role="strong">Next</emphasis>.</para>
</listitem>
<listitem><para>Decide whether to add a sub-form or not. Since the
tables you created are not linked to each other, you can
bypass adding a sub-form. Retain the default selection, and
click <emphasis role="strong">Next</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_164.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>For entering data on the form, you can choose the
arrangement of data entry boxes and labels. This arrangement
is called the controls on your form. Click the desired
arrangement of the main form, and click
<emphasis role="strong">Next</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_165.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Next, select the data entry mode, that is, whether the
form can be used to make changes to the data and the type
of modification that can be made. This window provides
various options to specify the level of control on the form.
Select the appropriate options, and click
<emphasis role="strong">Next</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_166.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Define the look and feel of the form by selecting a
colour from the <emphasis role="strong">Apply styles
</emphasis> list and your border preference in the
<emphasis role="strong">Field border</emphasis> section.
Click <emphasis role="strong">Next</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_167.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Assign a name to the form in the
<emphasis role="strong">Name of the Form</emphasis>
text box, select the appropriate option to define whether you
want to <emphasis role="strong">Work with the form
</emphasis> or <emphasis role="strong">Modify the form
</emphasis> after creation and click
<emphasis role="strong">Finish</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_168.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The Form window appears, and the form opens in the
<emphasis role="strong">New Database</emphasis>
window.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_169.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para>You are now ready to enter data in the form.</para>
<para><emphasis role="strong">Working with Reports</emphasis></para>
<para>What is the function of a database unless there is an effective
way of sharing and analysing the information it contains? Using Base,
you can generate reports that present information in readable format,
such as a printed document.</para>
<para>You can use a report to:
<itemizedlist>
<listitem><para>Present information in a customised way, both on
screen and on paper.</para></listitem>
<listitem><para>Group and sort data as per your needs and in the
order you want.</para></listitem>
<listitem><para>Calculate averages and field totals, and draw graphs
based on the data.</para></listitem>
</itemizedlist>
</para>
<para>For example, in a report that shows the monthly sale of a
product, you can display the total sales of each product in the month
in tabular form or use a graph to depict the rise in sales.</para>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>Reports versus Forms – You can use either a form or a report for
a specific need. Forms are interactive and let you edit or view the information
in the database. Reports are read-only and intended only for pre-viewing or
printing documents.</para>
<para>You use forms to:
<itemizedlist>
<listitem><para>Modify the data stored in a database.</para></listitem>
<listitem><para>Enter new data into the database.</para></listitem>
<listitem><para>Browse the database contents.</para></listitem>
</itemizedlist>
</para>
<para>You use reports to:
<itemizedlist>
<listitem><para>Distribute information.</para></listitem>
<listitem><para>Summarise information for analysis.</para></listitem>
<listitem><para>Customise the appearance of printed information.</para></listitem>
<listitem><para>Create mailing labels.</para></listitem>
</itemizedlist>
</para></screen>
<para><emphasis role="strong">Creating a Report</emphasis></para>
<para>Before starting a report, you need to plan what data the report
should contain. Design the report in a way that transforms all the data
into meaningful information. Creating a report involves the following
steps:
<orderedlist numeration="arabic">
<listitem><para><emphasis role="strong">Planning the layout of the report:
</emphasis> Conceptualise the layout of the report.</para></listitem>
<listitem><para><emphasis role="strong">Getting data ready:</emphasis>
After planning the rough layout, collect the data required for
the report. You might use data from one or many tables.
You can link the tables using a query and use the result of
the query as the base of the report.</para></listitem>
</orderedlist>
</para>
<para>Base provides a wizard to facilitate the creation of a report. To
create a report by using the <emphasis role="strong">Report
</emphasis> wizard:
<orderedlist numeration="arabic">
<listitem><para>In the <emphasis role="strong">New Database
</emphasis> window, click <emphasis role="strong">Reports
</emphasis> in the Database pane and then click
<emphasis role="strong">Use Wizard to Create Report
</emphasis> from the Tasks pane. The
<emphasis role="strong">Report</emphasis> wizard
appears.</para></listitem>
<listitem><para>Decide the fields that you want in your report. Select
the table from the <emphasis role="strong">Tables
</emphasis> box and fields from the selected table. Click the
arrows to move all these fields to the
<emphasis role="strong">Fields in report</emphasis> list.
Click <emphasis role="strong">Next</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_170.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Often, field names are user facing. Therefore, it is
good practice to assign meaningful labels to the fields, similar
to assigning aliases. Type the label for the fields in the
<emphasis role="strong">Label</emphasis> text box and
click <emphasis role="strong">Next</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_171.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>If you want all the records/transactions related to a
customer to show up together, you can group them. Select a
field on which you want the grouping to be done from the
<emphasis role="strong">Fields</emphasis> list, and click
the right arrow to transfer the field to the
<emphasis role="strong">Groupings</emphasis> list. Click
<emphasis role="strong">Next</emphasis> to proceed.
</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_172.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Specify how you want the data to be sorted. If you
chose to group the data under a field, Base uses that field to
sort the information on the report and the Sort by category is
greyed out. Click <emphasis role="strong">Next</emphasis>
to proceed.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_173.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Decide the layout of the report. Select a layout from
the <emphasis role="strong">Layout of data</emphasis> list
and a layout for the header and footer from the
<emphasis role="strong">Layout of headers and footers
</emphasis> list. You can also choose the orientation of the
report by selecting the <emphasis role="strong">Landscape
</emphasis> or <emphasis role="strong">Portrait
</emphasis> option and then clicking
<emphasis role="strong">Next</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_174.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Type a title in the <emphasis role="strong">Title of
report</emphasis> box, select the option to create a
<emphasis role="strong">Static report</emphasis> or a
<emphasis role="strong">Dynamic report</emphasis> and
click <emphasis role="strong">Finish</emphasis> to
generate the report.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_175.png"/>
</imageobject>
</figure>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_176.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
</sect3>
</sect2>
<sect2>
<title>Using OpenOffice.org Draw</title>
<para>Draw is a vector graphics drawing tool, which means that the
resolution of the graphics created remains constant and the images do
not blur after stretching. Draw is integrated with the OpenOffice.org suite,
and this eases the exchange of graphics with all other components of
the suite. For example, if you create an image in Draw, reusing it in a
Writer document is as simple as copying and pasting content. You can
also work with drawings from within Writer and Impress by using a
subset of the functions and tools in Draw.</para>
<sect3>
<title>Key Features of OpenOffice.org Draw</title>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>Vector drawing software follows a common notation for referring to all
shapes, whether simple lines, rectangles or more-complicated shapes, as objects.</para></screen>
<para>Draw provides an extensive functionality that integrates more
functions than the majority of drawing tools available in office suites.
Some of the key features of Draw are:
<itemizedlist>
<listitem><para>Vector Graphics Creation: You can create vector
graphics in Draw by using the lines and curves defined by
mathematical vectors. Vectors describe lines, ellipses and
polygons according to their geometry, which is based on
mathematical equations, to represent images in computer
graphics.</para></listitem>
<listitem><para>3D Objects Creation: In Draw, you can create simple
3D objects, such as cubes, spheres and cylinders, and
modify the light source of the objects.</para></listitem>
<listitem><para>Grids and Guides: You can align objects in your
drawing by using grids and guides as visual cues. You can
also snap an object to a grid line, a guide or to the edge of
another object.</para></listitem>
<listitem><para>Connecting Objects to Show Relationships: In Draw,
you can link objects using special lines called connectors to
show the relationship between objects. Connectors attach to
glue points on drawing objects and remain attached when the
connected objects move. Connectors are useful for creating
organisation charts and technical diagrams.</para></listitem>
<listitem><para>Displaying Dimensions: You can use dimension lines
to calculate and display linear dimensions in technical
diagrams, which often show the dimensions of the objects in
the drawing.</para></listitem>
<listitem><para>Gallery: You can insert and use images, animations,
sounds and other items from the OpenOffice.org gallery in
your drawings as well as in other OpenOffice.org programs.
</para></listitem>
<listitem><para>Graphic File Formats: You can export your creation
to many common graphic file formats, such as
<emphasis role="strong">BMP, GIF, JPG</emphasis> and
<emphasis role="strong">PNG</emphasis>.</para></listitem>
</itemizedlist>
</para>
</sect3>
<sect3>
<title>Performing Basic Drawing Operations</title>
<para>Before you start to learn the basic functionality of Draw, you
should have an overview of the work area and tools with which you will
get to work.</para>
<para>To launch OpenOffice.org Draw:
<itemizedlist>
<listitem><para>On the <emphasis role="strong">Applications
</emphasis> menu, point to Accessories and click Terminal
to display the <emphasis role="strong">Terminal Window
</emphasis>. In the <emphasis role="strong">Terminal
Window</emphasis>, type oodraw to launch OpenOffice.org
Draw.</para>
<para>The main components of the Draw window are shown
in the following graphic:</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_177.png"/>
</imageobject>
</figure>
<para>The drawings are created in the drawing area, which is
surrounded by the following toolbars:
<itemizedlist>
<listitem><para>The <emphasis role="strong">Menu</emphasis>
bar lists the main menus available in Draw. It
includes options to manage, edit and view the format
of your drawings.</para></listitem>
<listitem><para>The <emphasis role="strong">Function</emphasis>
bar displays icons to perform tasks such as Open,
Save, Copy, Cut and Paste.</para></listitem>
<listitem><para>The <emphasis role="strong">Line and Filling
</emphasis> bar includes specific drawing tools to
modify the appearance of a selected object such as
line style, colour and thickness; fill style and
colour.</para></listitem>
<listitem><para>The <emphasis role="strong">Drawing</emphasis>
toolbar is the most important toolbar in Draw. It
contains all the necessary functions for drawing
various geometric and freehand shapes. Creating
basic shapes in Draw requires the extensive use of
this toolbar. However, you have to further edit,
combine and manipulate them to create complex
objects.</para></listitem>
</itemizedlist>
</para>
<para>You can vary the number and position of the visible
tools to make the interface look a bit different. To add or
remove a toolbar from the <emphasis role="strong">Draw
</emphasis> window:</para></listitem>
<listitem><para>On the <emphasis role="strong">View</emphasis>
menu, point to <emphasis role="strong">Toolbars</emphasis>.
The Toolbar list displays the toolbars available, with a
check mark next to the toolbars that are displayed. To
remove a toolbar from the <emphasis role="strong">Draw</emphasis>
window, clear the corresponding check mark and click the
toolbar without a check mark to add it to the window.</para></listitem>
</itemizedlist>
</para>
<para><emphasis role="strong">Creating Objects</emphasis></para>
<para>To create an object by using the Drawing toolbar:
<orderedlist numeration="arabic">
<listitem><para>Click a specific object button such as
<emphasis role="strong">Rectangle</emphasis> or
<emphasis role="strong">Ellipse</emphasis> on the
<emphasis role="strong">Drawing</emphasis> toolbar, and
place the mouse cursor at the point in the drawing area where
you want the object to start.</para></listitem>
<listitem><para>Press the left button on the mouse, drag the cursor to
where you want the object to end and release the button. The
object appears in the <emphasis role="strong">Drawing
</emphasis> area.</para></listitem>
</orderedlist>
</para>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">The Drawing toolbar is not discussed in
detail because you use its options to draw only basic shapes. For
novice users, demonstrate the creation of a few objects, such as
square, rectangle and connector. Visit <ulink url="http://documentation.openoffice.org/">http://documentation.openoffice.org/</ulink>
for more details on OpenOfice.org products.</emphasis></para>
<para><emphasis role="strong">Selecting Objects</emphasis></para>
<para>Before making any changes to an object, you need to select
the object. Draw provides the following options to select an object:
<itemizedlist>
<listitem><para>Direct Selection: Click the object to select it.</para></listitem>
<listitem><para>Selection by Framing: On the
<emphasis role="strong">Drawing</emphasis> toolbar, click
the Select button and drag a large rectangle around the object
to select it. This option is useful for selecting multiple objects
in the drawing area.</para>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>You have to enclose the object(s) completely in the rectangle
to select them.</para></screen>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_178.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Selecting hidden objects: To select an object that is
covered by another object, press Alt key and click the object
you want to select.</para>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>To be able to select a hidden object, you must know the position
of that object relative to the objects on top.</para></screen>
</listitem>
</itemizedlist>
</para>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>All the options covered in the subsequent sections apply to a
selected object or a group of objects. You can identify a selected
object from any other by the small, coloured square or circle around
the object. These squares or circles are called handles and form a
rectangular frame that is just big enough to contain the object.</para></screen>
<para><emphasis role="strong">Editing Objects</emphasis></para>
<para>When creating objects, you may have to edit them or change
their properties to get the desired output. However, you may not
always find that flexibility in the default software settings. For
example, you cannot change the shape of the square to a rectangle or
rotate the square on its own axis by using the default
<emphasis role="strong">Drawing</emphasis> toolbar. To perform
these tasks, Draw provides various other options with the required
flexibility. Let us now look at some of the options to edit an object in
Draw.</para>
<para><emphasis role="strong">Modifying Object Size</emphasis></para>
<para>To change the size of an object:
<orderedlist numeration="arabic">
<listitem><para>In the Drawing area, select the created object by
clicking it. Handles appear on the object.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_179.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Place the mouse cursor over one of the handles. When
the cursor becomes a double-headed arrow, drag the cursor in
the direction of the arrow to modify the size of the object. If
you choose a corner handle, you will resize the object along
two axes at the same time. If you use a side handle, the
objects will only be resized along one axis. The outline of the
resulting new object appears as a dotted line.</para></listitem>
<listitem><para>Release the mouse button when the object is sized
correctly. The dotted line disappears, and the resized object
appears.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_180.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Arranging Objects</emphasis></para>
<para>If the document on which you are working includes many
objects overlapping each other, the visibility of an object with respect
to the others and, therefore, the editing of individual objects might
pose a challenge. To overcome this you can modify the stacking order
of the objects without affecting the arrangement, such that the object
you want to work on comes to the forefront. You can now perform
operations on the object.</para>
<para>To change the arrangement of objects:
<orderedlist numeration="arabic">
<listitem><para>In the drawing area, right-click the object you want to
rearrange, point to <emphasis role="strong">Arrange
</emphasis> and select the appropriate option from the
<emphasis role="strong">Arrange</emphasis> list.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_181.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>If you select the <emphasis role="strong">Send
Backward</emphasis> option, the output is as shown in the
following graphic:</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_182.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">If time permits, ask the students to explore
the other options in the <emphasis role="strong">Arrange
</emphasis> list. In addition, explain which option to use under
what circumstances. Specifically discuss the Behind Object option
and the difference between the output from the
<emphasis role="strong">Send to Back</emphasis> and
<emphasis role="strong">Behind Object</emphasis> options. This
is a low-priority activity.</emphasis></para>
<para><emphasis role="strong">Duplicating Objects</emphasis></para>
<para>Often, you may need to create multiple objects of the same
shape and size; creating each of these individually may yield
inaccurate results. In Draw, you can create duplicate or multiple
copies of an object. The copies can be identical or differing in size,
colour, orientation and location.</para>
<para>To create multiple copies of an object:
<orderedlist numeration="arabic">
<listitem><para>Click the object to be copied, click
<emphasis role="strong">Edit</emphasis> and select the
<emphasis role="strong">Duplicate</emphasis> option. The
<emphasis role="strong">Duplicate</emphasis> dialogue
box opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_183.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Specify the appropriate values in the
<emphasis role="strong">Duplicate</emphasis> dialogue box, and click
<emphasis role="strong">OK</emphasis> to display the
output in the drawing area.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_184.png"/>
</imageobject>
</figure>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_185.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Grouping and Combining Objects</emphasis></para>
<para>When creating or editing an object, the object might be
displaced from its original position. This change in location disturbs
the relative position of the object to the others in the drawing. This
could be critical where accuracy, in terms of position, is important
such as in architectural drawings. Using Draw, you can combine
drawing objects in two distinct ways, grouping and combining.</para>
<para><emphasis role="strong">Grouping Objects</emphasis></para>
<para>Grouping objects is like putting them into a container, where
the objects are grouped with each other but retain their individual
identities. You can move the group as one entity and apply changes
to all the enclosed objects. A group can always be undone, and the
objects that constitute the group can always be manipulated
separately.</para>
<para>To group objects:
<orderedlist numeration="arabic">
<listitem><para>In the <emphasis role="strong">Drawing</emphasis>
area, select all the objects you want to include in the group.
Rightclick any selected object, and then select the
<emphasis role="strong">Group</emphasis> option.</para></listitem>
<listitem><para>Click any object in the group; handles appear around
the entire group instead of around an object.</para></listitem>
</orderedlist>
</para>
<para>You can now modify the entire group, without applying effects
to objects individually. To resize a group:
<itemizedlist>
<listitem><para>Place the mouse cursor over one of the handles. When
the cursor becomes a double-headed arrow, drag the cursor to
increase or decrease the size of the objects in the group. All
the objects in the group are resized equally.</para></listitem>
</itemizedlist>
</para>
<para>You can also edit a single object in the group without breaking
it. To edit individual objects in a group:
<orderedlist numeration="arabic">
<listitem><para>Double-click an object in the group. You can now enter
the group and work on individual objects.</para></listitem>
<listitem><para>Click the object you want to edit; the handles appear
around that object. In this mode, you can edit, add or delete
this object.</para></listitem>
<listitem><para>To re-instate the group after modifying the object,
double-click anywhere outside the selection frame.</para></listitem>
</orderedlist>
</para>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>You can group objects of all shapes and sizes. You can group objects
in 2D, 3D or a combination of both. However, you can combine only overlapping
2D objects.</para></screen>
<para><emphasis role="strong">Combining Objects</emphasis></para>
<para>Combining drawing objects is similar to grouping, except that
combining creates a permanent fusion of objects, leading to the
formation of a new object. The original objects are no longer available
as individual entities, and you cannot enter the group to edit the
individual objects. When you combine the objects, the group takes on
the properties of the lower-most object in the arrangement.</para>
<para>To combine objects:
<orderedlist numeration="arabic">
<listitem><para>In the drawing area, select multiple 2D objects.</para>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>The lower-most object in the following graphic is the blue object.</para></screen>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_186.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Right-click any of the objects in the selection and click
the <emphasis role="strong">Combine</emphasis> option in
the list. Where the objects overlap, the overlapping zone is
either filled or empty, depending on the number of overlaps.
When the number of overlaps is even, you get an empty
space. When the number of overlaps is odd, you get a filled
area.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_187.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After you have combined the objects, you can select
the combined objects as an entity. However, you will not be
able to select the empty area in the object.</para></listitem>
</orderedlist>
</para>
<para>To split the objects:
<itemizedlist>
<listitem><para>In the Drawing area, right-click the combination created
in the previous procedure and select the
<emphasis role="strong">Split</emphasis> option from the
list.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_188.png"/>
</imageobject>
</figure>
</listitem>
</itemizedlist>
</para>
<para>Note that the objects return to their original status. However,
the properties of the objects have now changed as per the lower-most
object in the arrangement.</para>
<para><emphasis role="strong">Editing Colours and Textures</emphasis></para>
<para>When creating a drawing, you may need to work with objects
of variable colours and textures in the same drawing area. You can
customise the area fill of an object by using the
<emphasis role="strong">Line and Fill</emphasis> toolbar.</para>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>The OpenOffice.org term for the inside of an object is area fill. The
area fill of an object can be of uniform colour, a gradient or an image.</para></screen>
<para><emphasis role="strong">Editing a Colour Fill</emphasis></para>
<para>To edit the colour fill of an object:
<orderedlist numeration="arabic">
<listitem><para>In the drawing area, select the object you want to edit
and click the <emphasis role="strong">Area</emphasis>
button on the <emphasis role="strong">Line and Fill
</emphasis> toolbar. The <emphasis role="strong">Area
</emphasis> dialogue box opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_189.png"/>
</imageobject>
</figure>
<para>The <emphasis role="strong">Area</emphasis>
dialogue box provides the option to change the existing colour
fill of the object.</para></listitem>
<listitem><para>Click the <emphasis role="strong">Colours</emphasis>
tab, select a colour listed under the Table category and click
<emphasis role="strong">OK</emphasis> to apply the
change.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_190.png"/>
</imageobject>
</figure>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_191.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The <emphasis role="strong">Table</emphasis>
category lists the standard colours or the colours that are
used most often. However, if you need a colour of a hue that
is not available in the list, go ahead and create it. To define a
custom colour:</para>
<orderedlist numeration="loweralpha">
<listitem><para>Click the standard colour closest to your needs,
and specify the RGB ratio to change its tone and
hue.</para>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>Draw provides you two options to define a colour. You can
specify the colour in the RGB or CMYK ratio. For CMYK, click
<emphasis role="strong">RGB</emphasis> and then select
<emphasis role="strong">CMYK</emphasis> from the options.</para></screen>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_192.png"/>
</imageobject>
</figure>
<screen><para><emphasis role="strong">Nice to Know:</emphasis></para>
<para>Every colour is specified by a combination of the three primary
colours, Red, Green and Blue, hence the notation RGB.</para></screen>
</listitem>
<listitem><para>If you want to add a new custom colour to the
available list, type its name in the
<emphasis role="strong">Name</emphasis> box ,
specify the RGB ratio and click
<emphasis role="strong">Add</emphasis>. The
standard list under the Table category displays the new
colour.</para>
</listitem>
<listitem><para>Click <emphasis role="strong">OK</emphasis>
to apply the change.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_193.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Editing a Gradient Fill</emphasis></para>
<para>A gradient fill is an incremental blend of two different colours or
shades of the same colour, which you can apply to a drawing object.
To edit the gradient fill of an object:
<orderedlist numeration="arabic">
<listitem><para>In the Drawing area, select the object you want to edit
and click the <emphasis role="strong">Area</emphasis>
button on the <emphasis role="strong">Line and Fill
</emphasis> toolbar. The <emphasis role="strong">Area
</emphasis> dialogue box opens.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_194.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Click the <emphasis role="strong">Gradients</emphasis>
tab, select a gradient from the gradient list and click
<emphasis role="strong">OK</emphasis> to apply the
change to the object.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_195.png"/>
</imageobject>
</figure>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_196.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">Mention that by using the Area dialogue
box, students can also add or modify the other properties of
objects such as using a shadow on an object, increasing or
decreasing transparency, hatching the object or adding their own
bitmap images as the area fill of the object.</emphasis></para>
<para><emphasis role="strong">Editing Text</emphasis></para>
<para>When designing cards and posters, you include some text
along with the drawing objects. Draw provides you the following
options to insert text in the Drawing area:
<itemizedlist>
<listitem><para><emphasis role="strong">The Text tool on the Drawing
toolbar:</emphasis> You can create a text frame anywhere
in the drawing area, and you can work with this text box
like you do with any other object.</para></listitem>
<listitem><para><emphasis role="strong">Callouts next to the object:</emphasis>
You can use this when you want to relate the text to the
object. Click the <emphasis role="strong">Callouts</emphasis>
tool on the <emphasis role="strong">Drawing</emphasis>
toolbar.</para></listitem>
<listitem><para><emphasis role="strong">Text superimposed on a drawing
object:</emphasis> Double-click the object. A text box
opens. Type the necessary text in it.</para></listitem>
</itemizedlist>
</para>
<para>The following graphic displays various options for inserting text
relevant to an object in the Drawing area:</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_197.png"/>
</imageobject>
</figure>
<para><emphasis role="strong">Visual Effects</emphasis></para>
<para>Apart from offering the basic drawing tools, Draw provides
scope for you to add some visual effects to your drawings.</para>
<para><emphasis role="strong">Cross-Fading</emphasis></para>
<para>The cross-fading feature in Draw transforms one shape into
another. The result is a new group of objects, including the start and
end objects and the intermediate shapes.</para>
<para>To cross-fade:
<orderedlist numeration="arabic">
<listitem><para>Create two objects of different shapes in the drawing
area and select them.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_198.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>On the <emphasis role="strong">Edit</emphasis>
menu, click the <emphasis role="strong">Cross-fading
</emphasis> option to display the <emphasis role="strong">
Cross-fading</emphasis> dialogue box.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_199.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>In the <emphasis role="strong">Cross-fading
</emphasis> dialogue box, select the number of incremental
objects between the ends. Retain the default selection for
smoother transition, and click <emphasis role="strong">OK
</emphasis> to display the result in the drawing area.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_200.png"/>
</imageobject>
</figure>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>You can vary the order of the objects by changing their arrangement
in the drawing area.</para></screen>
<para><emphasis role="strong"><emphasis role="italic">Instructor Notes:</emphasis></emphasis></para>
<para><emphasis role="italic">Draw provides many more
features and tasks. For more information on the detailed
features of Draw and other OpenOffice.org applications,
refer the students to <ulink url="http://documentation.openoffice.org/">http://documentation.openoffice.org/</ulink>.</emphasis></para></listitem>
</orderedlist>
</para>
</sect3>
</sect2>
<sect2>
<title>Using OpenOffice.org Math</title>
<para>Math is the equation writer component of OpenOffice.org office software suite.
It contains a number of functions, operators and formatting assistants to help you create properly formatted
equations and formulae. These created formulae can then be imported
for display in any other OpenOffice.org applications.</para>
<sect3>
<title>Key Features of OpenOffice.org Math</title>
<para>Some of the important features and capabilities of Math are
discussed in the following section:</para>
<para><emphasis role="strong">Creating a Formula:</emphasis> Math
offers you the convenience of creating formulae as objects within
your document. In other words, you can invoke Math from inside a
document whenever you need to insert a formula or equation into
the document. With Math, you have a large selection of pre-defined
symbols and functions at your disposal for creating, editingand
formatting a formulae.</para>
<para><emphasis role="strong">Typing a Formula Directly:</emphasis>
Math allows you to type an equation directly in your document if
you are familiar with the Math markup language. You can directly
type the markup language into your document and then invoke
Math to convert the text into a formatted formula.</para>
<para><emphasis role="strong">Creating a Formula in the Commands
Window:</emphasis> You can also use the Math command
window to enter and edit formulae in your document. While you
make entries in the commands window, you can simultaneously
view the results in the document.</para>
<para><emphasis role="strong">Creating Individual Symbols:</emphasis>
Math also allows you to create or own symbols and import new
characters from other fonts. You are free to add the new symbols
in the basic math catalogue or create a new catalogue for the new
symbols.</para>
<para><emphasis role="strong">Creating Formulae in Context:</emphasis>
Math provides you the ease of working with the context menus,
which can be displayed at a right mouse-click. These context
menus contain all command that are found on the Selection
window. Moreover, you can insert these into the document with just
a mouse click.</para>
<screen><para><emphasis role="strong">Note:</emphasis></para>
<para>Math is only used to create properly formatted equations in its
symbolic form. It cannot be used for calculation purposes.</para></screen>
</sect3>
<sect3>
<title>Creating and Editing Formulae</title>
<para>Though Math can be used with all the OpenOffice.org
applications, it is primarily used as an equation editor with text
documents. To be able to use Math when working with Writer perform
the following steps:
<orderedlist numeration="arabic">
<listitem><para>Position the cursor on the document where you want to
insert the formula. On the <emphasis role="strong">Insert
</emphasis> menu, point to <emphasis role="strong">Object
</emphasis> and then click <emphasis role="strong">
Formula</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_201.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>This invokes Math from inside the Writer window.
Notice that the equation editor appears at the bottom of the
document window. You can now access all the Math tools
from inside the Writer window. A placeholder box appears
besides the text where the equation is to be entered.</para>
<para>The simplest method to enter an equation in your
document is to use the <emphasis role="strong">Selection
</emphasis> window. By default, the
<emphasis role="strong">Selection</emphasis> window is
not displayed.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_202.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>To display the <emphasis role="strong">Selection
window</emphasis>, on the <emphasis role="strong">View
</emphasis> menu, click <emphasis role="strong">Selection
</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_203.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The <emphasis role="strong">Selection window
</emphasis> appears as a floating toolbar. Notice that the
<emphasis role="strong">Selection</emphasis> window is
divided into two halves. The upper halves contains the symbol
categories whereas the lower half displays the symbols
available in the selected category. You can now start inserting
the equation by selecting the symbols from the
<emphasis role="strong">Selection</emphasis> window.
</para>
<para>To insert a symbol, such as a/b select the appropriate
category from the upper half and click the appropriate symbol
from the lower half of the Selection window.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_204.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>You will notice that when you select the symbol on
the <emphasis role="strong">Selection</emphasis> window,
the markup for the selected symbol appears in the equation
editor. Simultaneously, some grey boxes appear in the main
text body.</para>
<para>The <?> symbols appearing in the equation editor
are placeholders where you need to enter the actual text or
symbol associated with your formula.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_205.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>As you enter the required text or symbol into the
placeholders, the grey boxes are simultaneously updated with
the equation. You can enter the rest of the equation in the
same fashion.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_206.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Once you enter the complete equation using the
<emphasis role="strong">Selection</emphasis> window, the
equation appears as an object in your document window and
you can view the complete markup for the equation in the
equation editor.</para>
<para>Exit the formula editor by clicking anywhere on the
document body.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_207.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Once the formula is inserted in your document, you
may want to modify it further. To edit a formula right-click
once on it and select <emphasis role="strong">Edit
</emphasis> from the short-cut menu.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_208.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>This makes you enter the formula editor once
again.Now you can follow the same procedure to insert a new
symbol into your formula or delete an old one.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_209.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>After making the required changes in the entered
formula and inserting some new ones, you may need to insert
some more formulas, which contain Greek characters.
Though Greek characters are widely used in mathematical
formulae, especially geometric formulae, these characters are
not available in either the <emphasis role="strong">Selection
window</emphasis> or the <emphasis role="strong">Context
</emphasis> menu.</para>
<para>You can enter the Greek characters by typing the
markup language for the characters in the equation editor.
Alternatively, you can use the <emphasis role="strong">
Catalog</emphasis> window.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_210.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>To display the <emphasis role="strong">Catalog
window</emphasis>, on the <emphasis role="strong">Tools</emphasis>
menu, click <emphasis role="strong">Catalog</emphasis>.
</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_211.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The <emphasis role="strong">Symbols</emphasis>
dialogue box is displayed. Before selecting a character,
ensure that <emphasis role="strong">Greek</emphasis> is
selected under the <emphasis role="strong">Symbol set
</emphasis> drop-down window. Select the required Greek
symbol from the <emphasis role="strong">Symbols
</emphasis> window and click <emphasis role="strong">
Insert</emphasis>.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_212.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>The symbol is inserted into your document and the
markup is displayed in the equation editor. You can continue
entering formulas into your document following the same
procedure.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_213.png"/>
</imageobject>
</figure>
</listitem>
<listitem><para>Once you have entered all the required formulae, your
document may appear like this</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_214.png"/>
</imageobject>
</figure>
</listitem>
</orderedlist>
</para>
</sect3>
</sect2>
<sect2>
<title>Additional Applications</title>
<sect3>
<title>GnuCash Accounting Application</title>
<para>GnuCash is application software that helps you track home or
small business finances. Instead of making a note of all your
expenses on paper, you can use GnuCash to ensure that you
don't lose any information at the end of the month. All details
of income and expenditure can be managed with this utility. Using
GnuCash, a small business can track its customers as well as its
vendors by entering their details in GnuCash. You can also create a
monthly profit/loss report for your business.</para>
<para>Using GnuCash, you can store the details of all your bank
accounts at one place. You can choose the type of account that suits
your requirements and create as many accounts. GnuCash is based
on professional accounting principles to ensure balanced accounts
and accurate reports.</para>
<para>The software is easy to use and can be tailored as per your
needs. The following is a screenshot of the main window of the
Gnucash accounting application:</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_215.png"/>
</imageobject>
</figure>
<para><emphasis role="strong">Key Features of the GnuCash Application</emphasis></para>
<para>Using GnuCash is like filling your personal finance information
in a register but in a more organised way. Even if you were using a
register to maintain your financial records till now, you can easily
switch to GnuCash because using GnuCash is just like entering
information in a register. It can be configured as per the needs of the
user. The following features make GnuCash a very useful, powerful, yet
flexible software programme:</para>
<para>We achieve our mission by:
<itemizedlist>
<listitem><para><emphasis role="strong">Easy-to-Use Interface:</emphasis>
The interface of GnuCash is as simple to use as keeping
records on a piece of paper. It also has a Quick-Fill
feature, which means that as soon as you type a few
characters, GnuCash scans its list and completes the
entry automatically. If you use an entry on a regular basis,
you don't need to type it every time.</para></listitem>
<listitem><para>Double Entry System: Following the principles of
accounting systems, in GnuCash, each transaction has to
be mentioned at two places, that is, debit in one account and
credit in another. This means that the difference between
income and expenses exactly equals the sum of all assets
and equity. This will help you verify that you have entered the
details of the income and expenses accurately, which, in
turn, will also help you track all expenses.</para></listitem>
<listitem><para>Reports: You can generate a vast range of reports
using GnuCash. Home users can generate a Budget report,
which will give them a clear view of the income and expenses
for the month. You can also generate a Tax report for
calculating tax based on tax-related income and expenses. A
vast range of Business reports, such as Customer and Vendor
reports, can also be generated. Another report that can be
generated is the Assets and Liabilities report, which includes
the balance sheet.</para></listitem>
<listitem><para>New Multi-Currency Transaction Handling: You need
not worry about transactions in different currencies; GnuCash
automatically handles all currencies. In addition, GnuCash
provides menus and pop-up windows in different languages.
</para></listitem>
<listitem><para>The Reconcile Window: GnuCash provides the
Reconcile window, which contains the balances of all your
accounts. As a result, you don't have to check the
balances in various registers. Using this window, you can
easily validate bank statements.</para></listitem>
<listitem><para>Split Transactions: The split transaction feature allows
you to split a transaction into multiple amounts and
categories. For example, you purchase a few things, which
can be divided into different categories, from a store. Here,
the main transaction is the amount spent on the purchase of
these items, and the split transaction consists of the entries
of all the items on the split transaction editor screen. You can
re-check the main transaction at any time by simply
displaying the split transaction entries.</para></listitem>
<listitem><para>HBCI Support: GnuCash also supports the German
Home Banking Computer Information (HBCI) protocol. This
feature is useful for German users who need not enter the
details of their bank account manually. They can directly
perform online bank account transfers, download bank
statements and make direct debits.</para></listitem>
<listitem><para>Scheduled Transactions: Users can schedule
transactions in GnuCash as per their requirements, and they
can also set a reminder for the transactions. This feature
does not require you to remember which transaction needs to
run at what time. The software will automatically keep track of
the transaction and run the transaction at the scheduled
time. You can also re-schedule the transactions, when
required.</para></listitem>
<listitem><para>Transaction Finder: The Transaction Finder dialogue
box helps you locate even the smallest transaction. You can
enter the relevant fields in the Transaction Finder window,
and GnuCash will find the transaction for you. For example,
you want to identify all expenses above a certain amount this
month. GnuCash will be able to identify these transactions.
You need to mention the transaction as greater than and the
amount in the amount field.</para></listitem>
<listitem><para>New User Manual and Help: GnuCash provides a new
Tutorial and Concepts guide to give an overview of the
accounting principles to new users. This helps the users
apply the principles effectively and gives them the exact
procedure of each task.</para></listitem>
</itemizedlist>
</para>
</sect3>
<sect3>
<title>Scribus</title>
<para>Scribus is a programme that you require to produce documents
that cannot be created easily with a word processor. For example,
you will not be able to use a word processor to create a poster or a
greeting card. This is because, when you print the card or poster
using a word processor, the print will not be clear. Scribus also allows
easy alignment of text and graphics, which is not a simple task using
a word processor. Using Scribus, you can create PDF documents
with professional features for commercial purposes. You can also use
Scribus to design brochures, newspapers, magazines, newsletters,
posters and technical documentation.</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_216.png"/>
</imageobject>
</figure>
<para><emphasis role="strong">Key Features of Scribus:</emphasis></para>
<para>You use Scribus to design documents that have a great deal of
graphical content. Scribus is an application that allows the users to
position images, logos and so on at the appropriate place. Scribus is
able to assemble all your text and pictures at the end of the document.
<itemizedlist>
<listitem><para><emphasis role="strong">Updatable page templates:</emphasis>
Scribus provides page templates that contain common
page properties, such as background, header and footer.
Scribus also allows you to update a page automatically
whenever a template changes. You may use the templates
on any number of pages.</para></listitem>
<listitem><para><emphasis role="strong">Style manager:</emphasis>
Scribus contains an integrated style manager palette that
contains a wide range of styling options, including style
inheritance for paragraphs, character styles and line
styles. The style manager gives you the advantage of
viewing all the styling options at one place and makes it
easier to use the appropriate styling option at the right
place.</para></listitem>
<listitem><para><emphasis role="strong">XML-based file format:</emphasis>
Scribus uses an XML-based file format that is fully
documented. These documents, therefore, don't
stop responding and don't corrupt easily. You can
also add features in a very simplified way.</para></listitem>
<listitem><para><emphasis role="strong">Font-handling features:</emphasis>
Scribus includes a vast range of features for handling fonts.
The features include rotating, flipping and scaling text.
Both Type1 and TrueType fonts are supported by Scribus,
so you can work on a document with any type of font.
</para></listitem>
<listitem><para><emphasis role="strong">Image-handling features:
</emphasis> Scribus imports most common image
formats, such as PNG, TIFF and JPEGs, so you can insert
images of almost all the common formats.</para></listitem>
</itemizedlist>
</para>
<para>In addition, Scribus supports:
<itemizedlist>
<listitem><para><emphasis role="strong">Unicode text and fonts:</emphasis>
Scribus imports most common text formats and supports
Unicode text and fonts. It also supports right-to-left scripts,
such as Arabic and Hebrew. This helps you open a
document for page layout, without worrying about which
font it is written in.</para></listitem>
<listitem><para><emphasis role="strong">Direct file imports:</emphasis>
If you want to add pictures and graphs to your document,
you can use Draw, Impress and so on, and you can directly
import the file from that application to Scribus.</para></listitem>
<listitem><para><emphasis role="strong">CMYK:</emphasis> Scribus
supports Cyan, Magenta, Yellow and Black (CMYK)
layering, which is most important for professional use.
Printing is done in the four CMYK layers. Because of the
CMYK feature, there will be minimal difference between the
on-screen and final printing. Scribus also provides
enhanced colour management functions.</para></listitem>
<listitem><para><emphasis role="strong">Functions related to PDF files:</emphasis>
Even if your file is in PDF, you can export these files easily
to Scribus. You can also add effects to these files and
encrypt them. In addition, you can include keywords in an
exported PDF file.</para></listitem>
<listitem><para><emphasis role="strong">Vector formats:</emphasis>
Scribus imports all the important vector formats, including
Adobe Illustrator (AI), Encapsulated PostScript (EPS) EPS
and Scalable Vector Graphics (SVG), so that you can
open any vector graphic in Scribus effortlessly.</para></listitem>
</itemizedlist>
</para>
</sect3>
<sect3>
<title>Evince</title>
<para>Evince is a document viewer in Ubuntu. It supports multiple
document formats, such as Portable Document Format (PDF),
PostScript, djvu, tiff and dvi. This viewer makes reading documents a
simple and hassle-free experience and has intuitive preview, index and
search capabilities. You can also view documents in full-screen or
presentation format, where each page is displayed like a slide in a
slideshow.</para>
<para>Because Evince can support multiple document formats, it can
replace the various document viewers that were used previously to
view the other document formats. Evince also supports multi-page
formats.</para>
<para>The following screenshot shows the main interface of Evince:
</para>
<figure>
<imageobject>
<imagedata fileref="images/Chapter5_217.png"/>
</imageobject>
</figure>
<para><emphasis role="strong">Key Features of Evince</emphasis></para>
<para>Some key features of Evince are described below:
<itemizedlist>
<listitem><para><emphasis role="strong">Enhanced search feature:</emphasis>
Evince has an enhanced and integrated search feature that
displays the number of results found and highlights the
results on the page.</para></listitem>
<listitem><para><emphasis role="strong">Thumbnails:</emphasis> Evince
provides page thumbnails to the users. Using this feature,
you need not go through each page; you can quickly refer
to the pages on the left sidebar of the window. You can
click any of the thumbnails to easily navigate to that page.
</para></listitem>
<listitem><para><emphasis role="strong">Indexing:</emphasis> In the
documents that support indexing, Evince allows easy
navigation by showing a document index. This index allows
you to move from one section to another.</para></listitem>
<listitem><para><emphasis role="strong">Zoom:</emphasis> Evince
allows you to zoom in and zoom out of the document. In
addition, Evince remembers the zoom level of the
document after closing it. The next time you open the
document, it opens at the same zoom level.</para></listitem>
<listitem><para><emphasis role="strong">Selection:</emphasis> Evince
also allows you to select the text in a .PDF document,
which is not possible in all other viewers.</para></listitem>
<listitem><para>Encrypted Documents: Evince can also open
Encrypted PDF documents for viewing.</para></listitem>
</itemizedlist>
</para>
</sect3>
</sect2>
<sect2>
<title>Lesson Summary</title>
<para>In this chapter, you learnt that:
<itemizedlist>
<listitem><para>OpenOffice.org is the default office application suite
provided with Ubuntu.</para></listitem>
<listitem><para>The OpenOffice.org sofware suite comprises five applications
to help you handle your work effectively.</para></listitem>
<listitem><para>Writer forms the word processor component of the
OpenOffice.org office software suite and contains all the features that
you expect from a modern, fully equipped word processor or a desktop
publisher.</para></listitem>
<listitem><para>You can use the tools and features of the OpenOffice.org
Writer to perform various wordprocessing tasks.</para></listitem>
<listitem><para>Calc forms the spreadsheet component of the OpenOffice.org
office software suite and offers a whole range of advanced functions to help
accomplish complex tasks.</para></listitem>
<listitem><para>You can use the tools and features of the OpenOffice.org
calc to perform various spreadsheet functions.</para></listitem>
<listitem><para>Impress is a fully featured presentation tool included in
the OpenOffice.org office software suite.</para></listitem>
<listitem><para>You can use the tools and features of the OpenOffice.org
Impress to create effective multimedia presentations containg 2D and 3D
text and images.</para></listitem>
<listitem><para>Math is the equation writer component of OpenOffice.org
office software suite.</para></listitem>
<listitem><para>You can use the various functions, operators and formatting
assistants in Math to create properly formatted equations and
formulae.</para></listitem>
<listitem><para>Create a new database using the OpenOffice.org
Database. Perform basic functions on the database such as
inserting data using tables, extracting selected information from
the data using queries, updating the data using forms and
creating reports.</para></listitem>
<listitem><para>Create and edit basic drawing objects by using the
features available in OpenOffice.org Draw.</para></listitem>
<listitem><para>GnuCash is extremely useful application software for
managing your home and/or small business finances.</para></listitem>
<listitem><para>Scribus is a page layout application that you can use to
create posters, cards, brochures and so on for commercial
purposes.</para></listitem>
<listitem><para>Evince is document viewer software that allows you to
easily navigate a document. The document can also be viewed
or searched.</para></listitem>
</itemizedlist>
</para>
</sect2>
<sect2>
<title>Review Exercise</title>
<para><emphasis role="strong">Question 1</emphasis></para>
<para>List the applications included in the OpenOffice.org office
software suite.</para>
<para><emphasis role="strong">Answer 1</emphasis></para>
<para>The applications included in the OpenOffice.org office software
suite are:</para>
<itemizedlist>
<listitem><para>OpenOffice.org Writer</para></listitem>
<listitem><para>OpenOffice.org Calc</para></listitem>
<listitem><para>OpenOffice.org Impress</para></listitem>
<listitem><para>OpenOffice.org Draw</para></listitem>
<listitem><para>OpenOffice.org Base</para></listitem>
<listitem><para>OpenOffice.org Math</para></listitem>
</itemizedlist>
<para><emphasis role="strong">Question 2</emphasis></para>
<para>The applications in OpenOffice.org save files in which format, by
default?</para>
<para>a) SWF</para>
<para>b) PDF</para>
<para>c) ODF</para>
<para><emphasis role="strong">Answer 2</emphasis></para>
<para>c) OpenDocument Format (ODF)</para>
<para><emphasis role="strong">Question 3</emphasis></para>
<para>Name the equation editor component of the OpenOffice.org
software suite.</para>
<para><emphasis role="strong">Answer 3</emphasis></para>
<para>OpenOffice.org Math.</para>
<para><emphasis role="strong">Question 4</emphasis></para>
<para>Which software feature help you create multiple personalised form
letters?</para>
<para><emphasis role="strong">Answer 4</emphasis></para>
<para>The Mail merge feature in Writer allows you to create multiple
personalised form letters, labels, envelopes, faxes, e-mail messages by
using a form letter template and an address database.</para>
<para><emphasis role="strong">Question 5</emphasis></para>
<para>Which software feature in available OpenOffice.org helps you
navigate inside your document?</para>
<para><emphasis role="strong">Answer 5</emphasis></para>
<para>The Navigator feature available in OpenOffice.org provides you an
outline view of your entire document and allows you to quickly navigate
inside your documant.</para>
<para><emphasis role="strong">Question 6</emphasis></para>
<para>Name the feature in the Openoffice.org software suite that allows
you to perform a complete document makeover?</para>
<para><emphasis role="strong">Answer 6</emphasis></para>
<para>The Style and Formatting window.</para>
<para><emphasis role="strong">Question 7</emphasis></para>
<para>Do you require any additional software to convert a
OpenOffice.org document into a PDF file?</para>
<para><emphasis role="strong">Answer 7</emphasis></para>
<para>The OpenOffice.org software suite allows you to save your
document directly as a Portable Document Format (PDF) file without the
use of any additional expensive software.</para>
<para><emphasis role="strong">Question 8</emphasis></para>
<para>Name the software tool that guide you through the creation of a
formula in OpenOffice.org Calc.</para>
<para><emphasis role="strong">Answer 8</emphasis></para>
<para>The Function Wizard</para>
<para><emphasis role="strong">Question 9</emphasis></para>
<para>How does the Scenario Manager feature of Calc help you in your
calculations?</para>
<para><emphasis role="strong">Answer 9</emphasis></para>
<para>The Scenario Manager enables you to perform 'what
if' analysis and allows you to immediately view the results of
the changes made to any one parameter of the calculation on the rest of
the parameters.</para>
<para><emphasis role="strong">Question 10</emphasis></para>
<para>How does the Autoformat feature help you in creating table
designs?</para>
<para><emphasis role="strong">Answer 10</emphasis></para>
<para>The Autoformat feature allows you to quickly apply preset formats
to an entire sheet or a selected cell range and create attractive and
professional level table designs, thereby saving you from the time
consuming process of selecting cell groups in turn and assigning different
formats to them.</para>
<para><emphasis role="strong">Question 11</emphasis></para>
<para>What are the advantages of exporting your presentation in a
Adobe Flash file?</para>
<para><emphasis role="strong">Answer 11</emphasis></para>
<para>Exporting your prsentation in a Adobe Flash file increases its
accessibilty by enabling you to run the output on any computer, which
has a Flash player installed.</para>
<para><emphasis role="strong">Question 12</emphasis></para>
<para>Math allows you to type yopur formula directly into the document
if you are familiar with the_______________?</para>
<para><emphasis role="strong">Answer 12</emphasis></para>
<para>Math markup language</para>
<para><emphasis role="strong">Question 13</emphasis></para>
<para>Name the feature available in OpenOffice.org Impress that allows
you to create text with stunning 3D effects?</para>
<para><emphasis role="strong">Answer 13</emphasis></para>
<para>The Fontwork Gallery</para>
<para><emphasis role="strong">Question 14</emphasis></para>
<para>Which feature of GnuCash helps you look for a transaction using
a Query window?
<orderedlist numeration="arabic">
<listitem><para>Split transaction</para></listitem>
<listitem><para>Scheduled transaction</para></listitem>
<listitem><para>Transaction finder</para></listitem>
<listitem><para>Reconcile window</para></listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Answer 14</emphasis></para>
<para>3. Transaction finder</para>
<para><emphasis role="strong">Question 15</emphasis></para>
<para>What is Scribus?.
<orderedlist numeration="loweralpha">
<listitem><para>An accounting application</para></listitem>
<listitem><para>A word processor</para></listitem>
<listitem><para>A document viewer</para></listitem>
<listitem><para>Page layout software</para></listitem>
</orderedlist>
</para>
<para><emphasis role="strong">Answer 15</emphasis></para>
<para>d)Page layout software</para>
<para><emphasis role="strong">Question 16</emphasis></para>
<para>Which feature in OpenOffice.org Database allows you to retrieve
selected records from a database?</para>
<para><emphasis role="strong">Answer 16</emphasis></para>
<para>a) Tables</para>
<para>b) Forms</para>
<para>c) Queries</para>
<para>d) Reports</para>
<para><emphasis role="strong">Question 17</emphasis></para>
<para>Which feature in Openoffice.org Database provides an interactive
way to enter new data in a database?</para>
<para><emphasis role="strong">Answer 17</emphasis></para>
<para>Forms</para>
<para><emphasis role="strong">Question 18</emphasis></para>
<para>List the differences between grouping and combining the objects
in OpenOffice.org Draw?</para>
<para><emphasis role="strong">Answer 18</emphasis></para>
<orderedlist numeration="arabic">
<listitem><para>Combined drawing objects act as grouped objects, except
that you cannot enter the group to edit the individual objects.</para></listitem>
<listitem><para>Unlike groups, a combined object takes on the properties of
the lowermost object in the stacking order. You can split apart
combined objects, but the original object properties are lost.</para></listitem>
<listitem><para>When you combine objects, holes appear where the objects
overlap.</para></listitem>
</orderedlist>
</sect2>
<sect2>
<title>Lab Exercises</title>
<para><emphasis role="strong">Exercise 1: Performing Basic Word
Processing Tasks Using Writer</emphasis></para>
<para>As an employee in an interior decorating company, you have been
asked to prepare an article on interior decoration that would feature in
the company's e-newlsetter. You have been quite upbeat about
the assignment as it would showcase your abilities to the fore. However,
you will have to prepare the article in the most aesthatically correct
manner as possible. You plan to include lots of text, equally supported
by some graphics and tables all aligned to live up to the highly aesthetic
sensibilities of the company employees.</para>
<para>To complete your assignment, you need to perform the following
tasks:
<itemizedlist>
<listitem><para>Create and format a text document</para></listitem>
<listitem><para>Insert tables in the document</para></listitem>
<listitem><para>Insert images in the document</para></listitem>
<listitem><para>Save the document</para></listitem>
</itemizedlist>
</para>
<para>To create and format a text document:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">Applications</emphasis>
menu, point to <emphasis role="strong">Office</emphasis> and
then click <emphasis role="strong">OpenOffice.org Word
Processor</emphasis>.</para></listitem>
<listitem><para>Enter the required text in the blank document.</para></listitem>
<listitem><para>On the <emphasis role="strong">Format</emphasis>
menu, click <emphasis role="strong">Style and Formatting
</emphasis> to display the <emphasis role="strong">Style and
Formatting</emphasis> window.</para></listitem>
<listitem><para>On the <emphasis role="strong">Style and Formatting
</emphasis> window, click a style category to reveal the various
styles under that category.</para></listitem>
<listitem><para>Select the text on which you want to apply the style and
formatting.</para></listitem>
<listitem><para>Double-click the desired style displayed in the
<emphasis role="strong">Style and Formatting</emphasis>
window to apply it on the selected text.</para></listitem>
<listitem><para>Repeat the same procedure to apply different styles and
formatting for different components of the document.</para></listitem>
</orderedlist>
</para>
<para>You have created and formatted your document according to your
requirements.</para>
<para>To insert tables in the document:
<orderedlist numeration="arabic">
<listitem><para>Position the cursor at the appropriate location in the
document where you want to insert the table.</para></listitem>
<listitem><para>On the <emphasis role="strong">Table</emphasis>
menu, point to <emphasis role="strong">Insert</emphasis> and
then click <emphasis role="strong">Table</emphasis>
</para></listitem>
<listitem><para>Specify the table properties and click
<emphasis role="strong">OK</emphasis>.</para></listitem>
<listitem><para>To display the <emphasis role="strong">Table Format
</emphasis> dialogue box, right-click the inserted table and
select <emphasis role="strong">Table</emphasis> from the
short-cut menu.</para></listitem>
<listitem><para>Define the table specifications per your requirements and
preferences in the <emphasis role="strong">Table Format
</emphasis> dialogue box and click <emphasis role="strong">
OK</emphasis> to apply the changes.</para></listitem>
</orderedlist>
</para>
<para>You have successfully inserted tables in your text document. You
can now populate the tables with the required data.</para>
<para>To insert images in the document:
<orderedlist numeration="arabic">
<listitem><para>Position the cursor at the appropriate location in the
document where you want the picture to be inserted.</para></listitem>
<listitem><para>On the Insert menu, point to Picture, then click From File.
</para></listitem>
<listitem><para>In the Insert Picture dialogue box, navigate to the desired
file, select the file and then, click Open.</para></listitem>
<listitem><para>To resize the inserted image, select the image, then
press and hold the Shift key.</para></listitem>
<listitem><para>Holding down the Shift key, click and drag one of the
handles on the image to modify its size.</para></listitem>
<listitem><para>To arrange and align the image properly, right-click the
image, then select from the available options on the short-cut
menu.</para></listitem>
<listitem><para>Define the appropriate positioning options for the image.
</para></listitem>
</orderedlist>
</para>
<para>The image is now inserted properly into your text document.</para>
<para>To save the document:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">File</emphasis> menu
click <emphasis role="strong">Save As</emphasis>.</para></listitem>
<listitem><para>In the <emphasis role="strong">Save</emphasis>
dialogue box, Navigate to the directory where you want to save
the file.</para></listitem>
<listitem><para>Enter the file name in the <emphasis role="strong">Name
</emphasis> field.</para></listitem>
<listitem><para>Specify the file type by selecting from the drop-down
menu at the bottom of the dialogue box.</para></listitem>
<listitem><para>Click <emphasis role="strong">Save</emphasis> to save
the file.</para></listitem>
</orderedlist>
</para>
<para>You have successfully saved your document at the desired
location.</para>
<para><emphasis role="strong">Exercise 2: Performing Basic Spreadsheet
Tasks Using Calc</emphasis></para>
<para>As the accounts manager for your company, you are assigned
with the task of preparing the quarterly accounts report for the company.
You have been suddenly burdened with the task of collating a huge
amount of data, analyzing the data to derive the required reports, present
the data before the management and generate the reports in PDF format
for documentation and future reference. In order to accomplish this feat,
you shall have to perform the following tasks:
<itemizedlist>
<listitem><para>Entering and format the data in a spreadsheet</para></listitem>
<listitem><para>Apply formulas and functions on the data</para></listitem>
<listitem><para>Present the data graphically</para></listitem>
<listitem><para>Generate the report in PDF format</para></listitem>
</itemizedlist>
</para>
<para>To enter and format the data in a spreadsheet:
<itemizedlist>
<listitem><para>On the <emphasis role="strong">Applications</emphasis>
menu, point to <emphasis role="strong">Office</emphasis> and
then click <emphasis role="strong">OpenOffice.org Spreadsheet
</emphasis> to open a Calc spreadsheet.</para></listitem>
<listitem><para>Enter the required data in the spreadsheet.</para></listitem>
<listitem><para>To apply desired formatting to a selected range of cells,
on the <emphasis role="strong">Format</emphasis> menu,
click <emphasis role="strong">Cells</emphasis>.</para></listitem>
<listitem><para>The <emphasis role="strong">Format Cells</emphasis>
dialogue box is displayed. Use the various options available
under the <emphasis role="strong">Font, Font Effects
</emphasis> and <emphasis role="strong">Alignment
</emphasis> tabs to specify various formatting attributes for the
selected text.</para></listitem>
<listitem><para>Click <emphasis role="strong">Ok</emphasis> to apply
the formatting effects.</para></listitem>
<listitem><para>To apply <emphasis role="strong">Autoformat
</emphasis> to a sheet or selected cell range, on the
<emphasis role="strong">Format</emphasis> menu, click
<emphasis role="strong">Autoformat</emphasis>.</para></listitem>
<listitem><para>To assign a preset format to the selected cells, select
one from the <emphasis role="strong">Format</emphasis> list
and then click <emphasis role="strong">OK</emphasis> to
apply the selcted format on the selection.</para>
<para>You have successfully enterd your data in a spreadsheet
and applied the desired formatting to it.</para></listitem>
</itemizedlist>
</para>
<para>To apply formulas and functions on the data:
<itemizedlist>
<listitem><para>Select the cell in your spreadsheet where you want the
formula to be inserted.</para></listitem>
<listitem><para>To create and apply a formula or function with the help of
Function Wizard, click <emphasis role="strong">Function
Wizard</emphasis> on the <emphasis role="strong">Formula
Bar</emphasis>.</para></listitem>
<listitem><para>Select the desired function category from the
<emphasis role="strong">Category</emphasis> drop-down list
to display the functions listed under that specific category.</para></listitem>
<listitem><para>Find the desired function from the
<emphasis role="strong">Functions</emphasis> list and click it
once to select it.</para></listitem>
<listitem><para>Click <emphasis role="strong">Next</emphasis> to
proceed with the task of entering a formula.</para></listitem>
<listitem><para>To specify the cell range on which you want to apply the
formula, click the <emphasis role="strong">Shrink</emphasis>
button. This shrinks the <emphasis role="strong">Function
Wizard</emphasis> dialogue box and you are returned to the
main spreadsheet window.</para></listitem>
<listitem><para>Select the cell range containing the desired data.</para></listitem>
<listitem><para>After selecting the cells, go back to the
<emphasis role="strong">Function Wizard</emphasis> by
clicking the <emphasis role="strong">Maximize</emphasis>
button.</para></listitem>
<listitem><para>To complete the task of entering a formula, click
<emphasis role="strong">OK</emphasis>.</para></listitem>
</itemizedlist>
</para>
<para>You have successfully applied a formula on the data. The solution
appears in the cell where you had applied the formula.</para>
<para>To present your data graphically:
<itemizedlist>
<listitem><para>On the <emphasis role="strong">Insert</emphasis>
menu, select <emphasis role="strong">Chart</emphasis>.
</para></listitem>
<listitem><para>Define the data range, the labels and the target sheet
where the chart would be displayed</para></listitem>
<listitem><para>Click <emphasis role="strong">Next</emphasis> to
continue.</para></listitem>
<listitem><para>Select the chart type and click <emphasis role="strong">
Next</emphasis> to continue with the procedure of inserting
charts.</para></listitem>
<listitem><para>Specify a variant for the selected graph type and click
<emphasis role="strong">Next</emphasis> to continue</para></listitem>
<listitem><para>Specify the main title for your chart and title and labels
for the axes. After specifying the required information, click
<emphasis role="strong">Create</emphasis>.</para></listitem>
</itemizedlist>
</para>
<para>A chart is inserted at the specified location in your spreadsheet.
You have successfully displayed your data in the form of a chart.</para>
<para>To generate a PDF file of the report:
<itemizedlist>
<listitem><para>On the <emphasis role="strong">File</emphasis> menu,
click <emphasis role="strong">Export as PDF</emphasis>.
</para></listitem>
<listitem><para>Enter a file name in the <emphasis role="strong">Name
</emphasis> field on the <emphasis role="strong">Export
</emphasis> dialogue box</para></listitem>
<listitem><para>Navigate to the directory where you want to save the file.
</para></listitem>
<listitem><para>Click <emphasis role="strong">Save</emphasis> to
continue.</para></listitem>
<listitem><para>Define the desired options on the
<emphasis role="strong">PDF Options</emphasis> dialogue
box, then click <emphasis role="strong">OK</emphasis>.
</para></listitem>
</itemizedlist>
</para>
<para>You have successfully exported your spreadsheet as a PDF file.</para>
<para><emphasis role="strong">Exercise 3: Creating Multimedia
Presentation Using Impress</emphasis></para>
<para>In your job profile as a trainer in an architecture firm, you are
required to develop a presentation on architectural designs and plans,
which shalll be used as training material for the new joinees. You want
your training material to effectively demonstare all the dimensional
details of your architectural designs, which may include floor plans,
elevations and siteplans. You would also like to infuse some life into
your presentation by adding animations wherever required. Finally, you
want to convert the presentation into a Flash file for easy future reference.</para>
<para>To accomplish the task, you will need to:
<itemizedlist>
<listitem><para>Create a presentation with the required text and images
</para></listitem>
<listitem><para>Add 3D graphics and animations in the presentation
</para></listitem>
<listitem><para>Configure and perform a slide show</para></listitem>
<listitem><para>Export the presentation as a Flash file</para></listitem>
</itemizedlist>
</para>
<para>To create a presentation with the required text and images:
<itemizedlist>
<listitem><para>On the <emphasis role="strong">Applications</emphasis>
menu, point to <emphasis role="strong">Office</emphasis> and
then click <emphasis role="strong">OpenOffice.org Presentation
</emphasis>.</para></listitem>
<listitem><para>The <emphasis role="strong">Presentation Wizard
</emphasis> dialogue box appears.To create a new blank
presentation, retain the default selection and click
<emphasis role="strong">Next</emphasis>.</para></listitem>
<listitem><para>Select the slide design and output medium for the
presentation and click <emphasis role="strong">Next
</emphasis>.</para></listitem>
<listitem><para>Define the transition effect to be applied on the slides and
click <emphasis role="strong">Create</emphasis> to proceed.
</para></listitem>
<listitem><para>Select a layout for your current slide from the
<emphasis role="strong">Task</emphasis> pane on the left.
</para></listitem>
<listitem><para>Enter the required text in the provided textboxes to create
the first slide, then click <emphasis role="strong">Master Pages
</emphasis> to open the <emphasis role="strong">Master
Pages panel</emphasis>.</para></listitem>
<listitem><para>Click once on the template of your choice to apply it to
your presentation.</para></listitem>
<listitem><para>Insert a new slide by clicking the
<emphasis role="strong">Slide</emphasis> button on the
<emphasis role="strong">Standard toolbar</emphasis>.</para></listitem>
<listitem><para>Select a layout for the new slide.</para></listitem>
<listitem><para>Enter the required text in the provided text box.</para></listitem>
<listitem><para>To insert a picture in the presentation, on the Insert
menu, click <emphasis role="strong">Picture</emphasis>.
</para></listitem>
<listitem><para>In the <emphasis role="strong">Insert Picture</emphasis>
dialogue box, select the desired image and click
<emphasis role="strong">Open</emphasis> to insert it.</para></listitem>
<listitem><para>Follow the same procedure to create the rest of the
slides.</para></listitem>
</itemizedlist>
</para>
<para>You have successfully created a presentation with the required
text and images.</para>
<para>To add 3D graphics and animations:
<itemizedlist>
<listitem><para>To render special 3D effects to a piece of text, on the
<emphasis role="strong">Drawing</emphasis> toolbar, click
the <emphasis role="strong">Fontwork Gallery</emphasis>
button.</para></listitem>
<listitem><para>Select the style in which you want the text to be
displayed and click <emphasis role="strong">OK</emphasis>.
</para></listitem>
<listitem><para>Double-click the <emphasis role="strong">Fontwork</emphasis>
object.</para></listitem>
<listitem><para>Type the required text in place of the black
'<emphasis role="strong">Fontwork</emphasis>'
that appears over the object.</para></listitem>
<listitem><para>Click once outside the object's selected area to
exit the <emphasis role="strong">Fontwork</emphasis> edit
mode.</para></listitem>
<listitem><para>To display the <emphasis role="strong">3D-Objects
</emphasis> toolbar, on the <emphasis role="strong">View
</emphasis> menu, point to <emphasis role="strong">Toolbars
</emphasis> and then select <emphasis role="strong">
3D-Objects</emphasis>.</para></listitem>
<listitem><para>To insert a <emphasis role="strong">3D-Object
</emphasis> in your current slide, click the desired object on
the <emphasis role="strong">3D-Objects</emphasis> toolbar.
</para></listitem>
<listitem><para>Then move your mouse to the point where you want to
insert the object.</para></listitem>
<listitem><para>Holing down the left mose button drag the mouse to insert
the object on the slide.</para></listitem>
<listitem><para>Change the proportion and size of the object by holding
down the green handles.</para></listitem>
<listitem><para>To apply 3D effects on the inserted graphic, right-click
the object. On the short-cut menu, click
<emphasis role="strong">3D Effects</emphasis>.</para></listitem>
<listitem><para>Define the look and feel of the inserted object by
selecting appropriate options in the <emphasis role="strong">
3D Effects</emphasis> dialogue box.</para></listitem>
<listitem><para>After defining the options, click the
<emphasis role="strong">Assign</emphasis> icon on top right
of the <emphasis role="strong">3D Effects</emphasis>
dialogue box.</para></listitem>
<listitem><para>Click <emphasis role="strong">Close</emphasis> to exit
the <emphasis role="strong">3D Effects</emphasis> dialogue
box.</para></listitem>
<listitem><para>To add animations, to the various elements in your
presentation, on the <emphasis role="strong">Slide Show</emphasis>
menu, click <emphasis role="strong">Custom Animation</emphasis>.
</para></listitem>
<listitem><para>Select an element and click the
<emphasis role="strong">Add</emphasis> button on the
<emphasis role="strong">Custom Animation</emphasis> panel
to display the <emphasis role="strong">Custom Animation</emphasis>
dialogue box.</para></listitem>
<listitem><para>After defining all the desired settings for the object, click
<emphasis role="strong">OK</emphasis> to apply the
animation effects.</para></listitem>
</itemizedlist>
</para>
<para>Your have successfully added 3D graphics and animations in
your presentation.</para>
<para>To configure and perform a slide show:
<itemizedlist>
<listitem><para>On the <emphasis role="strong">Slide Show</emphasis>
menu, select <emphasis role="strong">Slide Show Settings
</emphasis>.</para></listitem>
<listitem><para>Select the desired options on the
<emphasis role="strong">Slide Show</emphasis> dialogue box
and click <emphasis role="strong">OK</emphasis> to apply
the settings.</para></listitem>
<listitem><para>To start the slide show, select <emphasis role="strong">
Slide Show</emphasis> from the <emphasis role="strong">
Slide Show</emphasis> menu or press
<emphasis role="strong">F5</emphasis>.</para></listitem>
</itemizedlist>
</para>
<para>Your presentation runs as a lively slide show.</para>
<para>To export the presentation as a Flash file:
<itemizedlist>
<listitem><para>On the <emphasis role="strong">File</emphasis> menu,
click <emphasis role="strong">Export</emphasis>.</para></listitem>
<listitem><para>Specify a file name in the <emphasis role="strong">File
name</emphasis> field and navigate to the directory where you
want to export the file.</para></listitem>
<listitem><para>To export the presentation as a Flash file, select
<emphasis role="strong">Macromedia Flash (SWF) (.swf)
</emphasis> from the <emphasis role="strong">File format
</emphasis> drop-down list.</para></listitem>
<listitem><para>Click <emphasis role="strong">Save</emphasis> to
export the file at the desired location.</para></listitem>
</itemizedlist>
</para>
<para>The file is exported at the indicated location. You can now view
the presentation as an SWF file.</para>
<para><emphasis role="strong">Exercise 4: Creating Formulae Using Math</emphasis></para>
<para>In your rôle as a high school mathematics teacher, you need to
create a mathematics test paper that also contains geometrical and
arithmatical equations. You have to find a way to display the
mathematical equations properly in the text document.</para>
<para><emphasis role="strong">Solution:</emphasis>
<itemizedlist>
<listitem><para>Position the cursor on the document where you want to
insert the formula.</para></listitem>
<listitem><para>On the <emphasis role="strong">Insert</emphasis>
menu, point to <emphasis role="strong">Object</emphasis>
and then click <emphasis role="strong">Formula</emphasis>.
The Equation editor appears at the bottom of the document
window.</para></listitem>
<listitem><para>To display the <emphasis role="strong">Selection
</emphasis> window, on the <emphasis role="strong">View
</emphasis> menu, click <emphasis role="strong">Selection
</emphasis>.</para></listitem>
<listitem><para>Start inserting the formula by selecting a symbol from
the <emphasis role="strong">Selection</emphasis> window.
</para></listitem>
<listitem><para>Enter the required text in the placeholders that appear in
the equation editor.</para></listitem>
<listitem><para>Follow the same procedure to enter the rest of the
equation.</para></listitem>
<listitem><para> Click anywhere on the document body to exit the
equation editor.</para></listitem>
<listitem><para>To insert some formulas containing Greek characters,
display the <emphasis role="strong">Catalog</emphasis>
window by selecting it from the <emphasis role="strong">Tools
</emphasis> menu.</para></listitem>
<listitem><para>Ensure that <emphasis role="strong">Greek</emphasis>
is selected under the <emphasis role="strong">Symbol set
</emphasis> drop-down window.</para></listitem>
<listitem><para>Select the required Greek symbol from the
<emphasis role="strong">Symbols</emphasis> window and
click <emphasis role="strong">Insert</emphasis>.</para></listitem>
<listitem><para>Follow the same procedure to enter the rest of the
formula.</para></listitem>
</itemizedlist>
</para>
<para><emphasis role="strong">Exercise 5: Performing Database operation using Base</emphasis></para>
<para>You are working in the human resource department of a company. The company
has recently launched a policy to celebrate the birthdays of its employees.
All the employees you have worked in the company for more than three months are
included in the perview of this policy. You have been assigned a task to collate
the information of all the employees at one place, so that you can retrive the
list of people whose birthdays are falling in one calender month. You will also
have to present an annual report to the management for reviewing the implementation
of this policy.</para>
<para>To complete your assignment, you need to perform the following tasks:
<itemizedlist>
<listitem><para>Create a database</para></listitem>
<listitem><para>Create a table and insert the employee details</para></listitem>
<listitem><para>Frame a query to extract selected information</para></listitem>
<listitem><para>Create a report</para></listitem>
</itemizedlist>
</para>
<para>To create a database:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">Applications</emphasis>
menu, point to <emphasis role="strong">Office</emphasis> and then click
<emphasis role="strong">OpenOffice.org Database</emphasis> to display the
<emphasis role="strong">Database</emphasis> wizard.</para></listitem>
<listitem><para>In the <emphasis role="strong">Database</emphasis> wizard
dialogue box, retain the default selection and click
<emphasis role="strong">Next</emphasis>.</para></listitem>
<listitem><para>In the next step, select the <emphasis role="strong">Yes,
register the database</emphasis> <emphasis role="strong">for me</emphasis>
option and select the <emphasis role="strong">Open the database for
editing</emphasis> check box. Click <emphasis role="strong">Finish</emphasis>
to display the <emphasis role="strong">New Database</emphasis>
window.</para></listitem>
</orderedlist>
</para>
<para>To create a table and insert the employee details:
<orderedlist numeration="arabic">
<listitem><para>On the <emphasis role="strong">Database</emphasis> window,
click <emphasis role="strong">Tables</emphasis> from the Database pane
and then click <emphasis role="strong">Use Wizard to Create Table</emphasis>
from the Tasks pane to display the <emphasis role="strong">Table</emphasis>
wizard.</para></listitem>
<listitem><para>Select the fields you need in the table and click
<emphasis role="strong">Next</emphasis> to proceed.</para></listitem>
<listitem><para>Set the types and formats for the fields selected in the
previous step and click <emphasis role="strong">Next</emphasis>.
</para></listitem>
<listitem><para>Select the <emphasis role="strong">Create a primary
key</emphasis> check box, select the appropriate option button to create
the key, and click <emphasis role="strong">Next.</emphasis></para></listitem>
<listitem><para>Assign a name to your table, retain the default selection for
<emphasis role="strong">Insert data immediately</emphasis> option, and click
<emphasis role="strong">Finish</emphasis> to display the table
created.</para></listitem>
<listitem><para>Insert data related to a field into its respective column.
Click <emphasis role="strong">Save</emphasis> to save the data and then click
<emphasis role="strong">Exit</emphasis>. The <emphasis role="strong">New
Database</emphasis> window now shows the table you created in the Tables
pane along with its preview in the right section of the
<emphasis role="strong">Database</emphasis> window.</para></listitem>
</orderedlist>
</para>
<para>To frame a query and extract selected information:
<orderedlist numeration="arabic">
<listitem><para>In the <emphasis role="strong">New Database</emphasis>
window, click <emphasis role="strong">Queries</emphasis> in the database
pane.</para></listitem>
<listitem><para>Click <emphasis role="strong">Use Wizard to Create
query</emphasis> in the Tasks pane. The
<emphasis role="strong">Query</emphasis> wizard appears.</para></listitem>
<listitem><para>Select the table you want to query in the
<emphasis role="strong">Tables</emphasis> list.</para></listitem>
<listitem><para>Select the fields you need in your query list from the
<emphasis role="strong">Available fields</emphasis> list, and move them to
the <emphasis role="strong">Fields in the Query</emphasis> list to the right
using the arrow buttons. Click <emphasis role="strong">Next</emphasis> after
selecting the required fields.</para></listitem>
<listitem><para>Next, specify how you want the query results to be ordered.
Select a field from the <emphasis role="strong">Sort by</emphasis> box,
choose the <emphasis role="strong">Ascending</emphasis> or
<emphasis role="strong">Descending</emphasis> option and then click
<emphasis role="strong">Next</emphasis>.</para></listitem>
<listitem><para>The next step is to specify search condition(s) for your
query. If you want the query result to satisfy all the conditions, select
the <emphasis role="strong">Match all of the following</emphasis> option.
Alternatively, if you want to display the result for any of the conditions
met, select the <emphasis role="strong">Match any of the following</emphasis>
option. Select a field from the <emphasis role="strong">Fields</emphasis>
list, select the condition from the <emphasis role="strong">Condition</emphasis>
list, specify the value to map the condition and then click
<emphasis role="strong">Next.</emphasis></para></listitem>
<listitem><para>Select the <emphasis role="strong">Detailed query</emphasis>
option to display all records of the query or select the
<emphasis role="strong">Summary query</emphasis> option to display the
results of aggregate functions, and then click
<emphasis role="strong">Next</emphasis>.</para></listitem>
<listitem><para>To assign an alias, clear the Alias box, type the desired
alias and click <emphasis role="strong">Next</emphasis> to move to the next
step.</para></listitem>
<listitem><para>Finally, specify the name of the query in the
<emphasis role="strong">Name of the query</emphasis> box. If you want to make
any changes to the query, you can select the <emphasis role="strong">Modify
Query</emphasis> option; otherwise, you can display the query results by
selecting the <emphasis role="strong">Display Query</emphasis> option.
Click <emphasis role="strong">Finish</emphasis> to generate the
query.</para></listitem>
<listitem><para>The <emphasis role="strong">Query</emphasis> wizard generates
the query based on the conditions specified and displays the result in the
<emphasis role="strong">Query</emphasis> window.</para></listitem>
</orderedlist>
</para>
<para>To create a report:
<orderedlist numeration="arabic">
<listitem><para>In the <emphasis role="strong">New Database</emphasis>
window, click <emphasis role="strong">Reports</emphasis> in the Database pane
and then click <emphasis role="strong">Use Wizard to Create Report</emphasis>
from the Tasks pane. The <emphasis role="strong">Report</emphasis>
wizard<emphasis role="strong"></emphasis> appears.</para></listitem>
<listitem><para>Decide the fields that you want in your report. Select the
table from the <emphasis role="strong">Tables</emphasis> box and fields from
the selected table. Click the arrows to move all these fields to the
<emphasis role="strong">Fields in report</emphasis> list. Click
<emphasis role="strong">Next</emphasis>.</para></listitem>
<listitem><para>Type the label for the fields in the
<emphasis role="strong">Label</emphasis> text box, and click
<emphasis role="strong">Next</emphasis>.</para></listitem>
<listitem><para>To group the fields, select a field on which you want the
grouping to be done from the <emphasis role="strong">Fields</emphasis> list,
and click the right arrow to transfer the field to the
<emphasis role="strong">Groupings</emphasis> list. Click
<emphasis role="strong">Next</emphasis> to proceed.</para></listitem>
<listitem><para>Specify how you want the data to be sorted. If you chose
to group the data under a field, Base uses that field to sort the
information on the report and the Sort by category is greyed out.
Click <emphasis role="strong">Next</emphasis> to proceed.</para></listitem>
<listitem><para>Decide the layout of the report. Select a layout from the
<emphasis role="strong">Layout of data</emphasis> list and a layout for the
header and footer from the <emphasis role="strong">Layout of headers and
footers</emphasis> list. You can also choose the orientation of the report
by selecting the <emphasis role="strong">Landscape</emphasis> or
<emphasis role="strong">Portrait</emphasis> option and then clicking
<emphasis role="strong">Next</emphasis>.</para></listitem>
<listitem><para>Type a title in the <emphasis role="strong">Title of
report</emphasis> box, select the option to create a
<emphasis role="strong">Static report</emphasis> or a
<emphasis role="strong">Dynamic report</emphasis> and click
<emphasis role="strong">Finish</emphasis> to generate the
report.</para></listitem>
</orderedlist>
</para>
</sect2>
</sect1>
</article>
|