Faq/Writer/155/it

Avviso di bug
A causa del seguente bug, è impossibile ottenere l'effetto desiderato in questo momento. Se sapete come scrivere e correggere il codice, non esitare a contattarci. La Document Foundation ha bisogno del vostro aiuto.

Tutto ciò che segue non funzionerebbe a meno che il bug sopra menzionato non venga corretto.

Come utilizzare i campi privati ​​nella finestra "Biglietti da visita"
Volete creare biglietti da visita “privati” utilizzando il menu. La scheda Privato sembra ideale per acquisire le informazioni che dovrebbero apparire sulle carte ma, quando viene creato un nuovo documento, questi dati non sono presenti.



Il programma non crea biglietti da visita dal nulla. Ogni scheda si basa su un AutoText. La seguente tecnica vi consente di "progettare" i vostri biglietti esattamente come desiderate.

The AutoText is chosen in the “Business Cards” tab, but the dialog box can integrate the data (surname, given name, etc.), only if the AutoText you are using contains User Fields that follow certain criteria.



As shown in the screenshot above, the dialog {{bc|File|New|Business Cards|AutoText - Section}} shows only a default category Business Cards, Work (3½ x 2). Similarly the menu {{bc|Edit|AutoText}} contains only the same default category.

The trick is to create new AutoTexts that contain the “right” fields. You can also create a new category “Private Business Cards” to store them in. How do you name these user fields so that the dialog will recognise them and the Business Cards window can use them?

The answer is given by inspecting a “professional” AutoText:
 * in a Writer document, go to {{bc|Tools|AutoText|Business Cards, Work}};
 * choose Elegant, with name, then click on Insert. Some example text appears;
 * go to {{bc|Insert|Fields|More Fields...}}. On the Variable tab, click on User Fields to display the list of fields created in this AutoText;



You can see in this screenshot that the names of most of the fields begin with BC_COMP_, but some (NAME and FIRSTNAME) begin with BC_PRIV_. It is clear that you need to insert user fields built on the same model, but replacing COMP by PRIV. Enter them by using the Name and Value boxes at the bottom.



To delete the unwanted company field names, first delete the corresponding values in the text example. Then insert the new private fields where you want them, using the Insert button. The next screenshot shows the modified example text with the required fields. All you then need to do is select this text after creating it and use the Edit AutoText dialog to create an AutoText based on it (inserted for example in a new category “Private Business Cards” cf. above.


 * from now on, the Private tab in the wizard will be functional (if you have correctly chosen an AutoText containing these fields).