Libreoffice Series Special Edition Volume 5
Total Page:16
File Type:pdf, Size:1020Kb
FullTHE INDEPENDENT MAGAZINE FORCircle THE UBUNTU LINUX COMMUNITY LIBREOFFICE SERIES SPECIAL EDITION VOLUME 5 LIBREOFFICELIBREOFFICE Volume Five Parts 35-41 Full Circle Magazine is neither affiliated, with nor endorsed by, Canonical Ltd. HHOOWW--TTOO LibreOffice Pt35: The Gallery Written by Elmer Perry LibreOffice Pt35: The Gallery ollecting clip art for use in your button on the standard toolbar; the main area are two buttons for file and Insert > Copy. C newsletter, spreadsheet, and through a panelon the displaying the files –in tile ordetail presentation, or other document experimental sidebar. By default, view. Beside the buttons, it shows To link a file from your Gallery can become a timely task. the Gallery is docked under the the theme name, file name, and into a document, select the theme Especially when it comes to formatting toolbar. You can undock path for the selected file. and file. Hold down SHIFT+ CTRL organizing –and laterfinding –the and dock the Gallery with the while dragging and dropping the image you want to use. LibreOffice combination of CTRL + double-click USING THE GALLERY file into the document, or right- provides a built-in Gallery for on the borderofthe Gallery. Use click then Insert > Link. collecting and organizing images, the hide/show button on the lower The Gallery allows you to insert sounds, and videos. The Gallery borderto display and hide the a fileasa copy, a link, ora Sometimes, you will want to use collects files into categories called Gallery while it is docked. Ifyou background. When you insert the an image as the background fora themes. You can add files from the hover over the lower border, your file as a copy, the file is embedded page ora paragraph. To setan Gallery directly into your mouse cursorwill turn to a double into the current document and is image as the background fora document. Creating new themes arrow, and you can resize the not reliant on another file. Ifyou page, select the theme and image. allows you to add yourown files docked Gallery's height. insert the file as a link, a reference Right-click the image and Insert > into the collection. to the file is created in the Background > page. To set the On the leftside ofthe Galleryis document. Ifyou opened a image as the background forthe the themes list. Selecting a theme current paragraph, right-click the THE GALLERY document with linked files, the changes the files which display in files will show only ifthey are in image and Insert> Background > the main panel. The main panel Paragraph. You can access the Gallery in the location referenced in the shows the files available in the three different ways, through the document. Ifthe file needs to currently selected theme. Above menus (Tools > Gallery); by a travel among multiple computers, MANAGING THE GALLERY insert a copy. Ifthe document will reside on only one computer, you Anice feature ofthe Gallery is can safely insert a link. the ability to add yourown files to the collection. You cannot, To inserta copyofa file from however, add to, remove from, or your Gallery into the document, delete the default themes. In order select the theme containing the to add yourown files to the file and select the file. You can Gallery, you will have to create then drag and drop the file into yourown themes. You add your your document, or right-click the own theme by clicking on the “New full circle magazine #82 1 4 contents ^ HOWTO - LIBREOFFICE Pt35 Theme” button, which opens the the file(s) you want, and click “New Theme” dialog. In the “Select.” A list offiles in the folder “General” tab, enter the name for will display in the list box. Use the yournewtheme. You can nowadd drop-down box above the list to files to your theme in the “Files” filter the files ifneeded. Take time tab orjust click“OK” to save the to scroll through the filter list to theme. getan idea ofthe manyfile created for the project. To delete a only for a certain project, you can formats the Gallery accepts. For file from a theme, right-click the delete them when the project is Adding files to the theme you image files, you can get a preview file and select “Delete.” You can finished. The Gallery is available in justcreated is easy. You can add by checking the “Preview” check also delete a theme with all its files all modules ofthe suite, and helps files one ata time bydragging and box. Once you find the file you by right-clicking the theme title you to maintain consistency for dropping them into the main panel want, you can select it and click and selecting “Delete.” Keep in newsletters, spreadsheets, with your theme selected. To “Add” to add itto the theme, or mind thatthere is no undo for presentations, databases, and selectively add files orto add an click“Add All” to add all the files in these actions, and that deleting a reports. entire folder, right-click on the the list box. file from the Gallery does not theme title and click “Properties.” delete it from the computer, just A theme “Properties” dialog will You won't always add files to from the Gallery’s theme list. display. This is the same dialog you the Gallery with the intention of Elmer Perry's history ofworking, and getwhen adding a theme, so you keeping them there indefinitely. LibreOffice provides a media programming, computers involves an can use this method to add files You maywantto justadd them library called the Gallery. The Apple ][E, adding some Amiga, a generous helping ofDOS and when you create a new theme. while working on a certain project. Gallery is divided in collections Windows, a dash ofUnix, and blend Select the “Files” tab, then click Once the projectis done and you called themes. You can add your well with Linux and Ubuntu. “Find Files.” Use the file dialog to no longerneed them, you will want own themes and files to the He blogs at navigate to the folder containing to delete the files and themes Gallery. Ifa file ortheme is added http://eeperry.wordpress.com full circle magazine #82 1 5 contents ^ HHOOWW--TTOO LibreOffice Pt36: Base Views Written by Elmer Perry LibreOffice Pt36: Base Views fyou workwith Base long Increment drop table "Project" if exists; I enough, you willrun into a FirstName|Varchar(25)|Not drop table "TeamMember" if exists; Null situation where you need a table LastName|Varchar(25)|Not Null create table "TeamMember" ( structured a little differently, or "ID" integer generated by default as identity you’ll need the results ofa query as Shown right is the SQL to create (start with 1) not null primary key, "FirstName" varchar(25) not null, a table you can use. The answerto the tables. Create a new database "LastName" varchar(25) not null these problems is ‘Views’. A view is document, then go to Tools > SQL, ); and type the commands in byhand a querywhich acts like a table you create table "Project" ( can use in otherqueries, forms, or orcopy and paste. "ID" integer generated by default as identity controls. Today, I will show you an (start with 1) not null primary key, "Title" varchar(50) not null, example ofhow this is useful when You can also getthe above SQL "Description" varchar(250), creating forms. commands on pastebin.com at "Due" date, http://pastebin.com/Wyb3R5Fz. "Member" integer, constraint FK_MEM foreign key ("Member") OUR TABLES references "TeamMember" ("ID") The keyto ourtaskis the ); foreign key “MemberID” in the We are going to create a simple “Project” table, which connects to database with two tables. The into one field called “Name”. We the first and last name fields to the “TeamMember” table's “ID” database will track projects for a will use ourview to populate the create one field. We will also get field. When we create our form we companyand allowus to assign a drop-down list box. the “ID” field, as we willneed itto will create a drop-down list for team member to each project. connect back to the “Project” table. selecting the team member who is Below is the structure ofthe tables Ifthe tables do notshowin your responsible for the project. Notice we will create. table list after running the To create the query, we select that the “TeamMember” table commands, Review > Refresh Table the “Queries” option in the provides first and last name fields. Project Table will populate the list. “Database” pane. In the “Actions” Field|Type|Properties The list control allows us to use pane, select “Create Query in SQL ID|Integer|Primary Key, Auto onlyone field in the list. We could Increment View.” The follow SQL command displayjustthe lastname in the CREATE QUERY /VIEW Title|varchar(50)|Not Null will create our query: Description|varchar(250) drop-down list, but what iftwo Due|Date team members have the same last To create ourview, we will use a MemberID|Integer|foreign key SELECT"FirstName" || ' ' || name. We will solve this problem two-step process. First, we create a "LastName" AS "Name", TeamMember Table by creating a view that will query, then convert the query into "ID" FROM "TeamMember"; Field|Type|Properties combine the first and last name a view. In ourquery, we combine ID|Integer|Primary Key, Auto full circle magazine #83 1 9 contents ^ HOWTO - LIBREOFFICE Pt36 Ifyou are familiarwith SQL, this wizard will display. a label foreach field. In orderto design window. looks like a standard query except change the control for the data for the double pipe symbols “||”. On the first screen, select field, you have to ungroup the text Now, ifyou entered names in They are used to concatenate “Table: TeamMember” from the boxfrom the label.