From eb9ec1c794a0d3b8522375c7a87ac3ee999c8a66 Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Tue, 9 May 2017 16:11:32 +0200 Subject: remove obsolete oldref attribute (removes one context line in pot) also remove obsolete l10n attribute (doesn't affect translations/pot) Change-Id: I809866ea7b16cb1cacad9efacb6fdeebae38ea9f --- source/text/sbasic/guide/access2base.xhp | 64 ++++++++++++------------- source/text/sbasic/guide/control_properties.xhp | 6 +-- source/text/sbasic/guide/create_dialog.xhp | 12 ++--- source/text/sbasic/guide/insert_control.xhp | 10 ++-- source/text/sbasic/guide/sample_code.xhp | 16 +++---- source/text/sbasic/guide/show_dialog.xhp | 10 ++-- source/text/sbasic/guide/translation.xhp | 64 ++++++++++++------------- 7 files changed, 91 insertions(+), 91 deletions(-) (limited to 'source/text/sbasic/guide') diff --git a/source/text/sbasic/guide/access2base.xhp b/source/text/sbasic/guide/access2base.xhp index 9bed65339a..b0ed3ae09a 100644 --- a/source/text/sbasic/guide/access2base.xhp +++ b/source/text/sbasic/guide/access2base.xhp @@ -37,59 +37,59 @@ Access2Base - Access2Base - What is Access2Base ? - Access2Base is a LibreOffice Basic library of macros for (business or personal) application developers and advanced users. It is one of the libraries stored in "LibreOffice macros and dialogs". - The provided macros implement functionalities, all directly inspired by Microsoft Access. The macros are callable from a LibreOffice Base application only. - The API provided by Access2Base is intended to be more concise, intuitive and easy to learn than the standard UNO API (API = Application Programming Interface). - The library is documented online on http://www.access2base.com - The implemented macros include: + Access2Base + What is Access2Base ? + Access2Base is a LibreOffice Basic library of macros for (business or personal) application developers and advanced users. It is one of the libraries stored in "LibreOffice macros and dialogs". + The provided macros implement functionalities, all directly inspired by Microsoft Access. The macros are callable from a LibreOffice Base application only. + The API provided by Access2Base is intended to be more concise, intuitive and easy to learn than the standard UNO API (API = Application Programming Interface). + The library is documented online on http://www.access2base.com + The implemented macros include: - a simplified and extensible API for forms, dialogs and controls manipulations similar with the MSAccess object model + a simplified and extensible API for forms, dialogs and controls manipulations similar with the MSAccess object model - an API for database access with the table, query, recordset and field objects + an API for database access with the table, query, recordset and field objects - a number of actions with a syntax identical to their corresponding MSAccess macros/actions + a number of actions with a syntax identical to their corresponding MSAccess macros/actions - the DLookup, DSum, ... database functions + the DLookup, DSum, ... database functions - the support of the shortcut notations like Forms!myForm!myControl + the support of the shortcut notations like Forms!myForm!myControl - + + + - a consistent errors and exceptions handler + a consistent errors and exceptions handler - facilities for programming form, dialog and control events + facilities for programming form, dialog and control events - the support of both embedded forms and standalone (Writer) forms + the support of both embedded forms and standalone (Writer) forms - Compare Access2Base with MSAccess VBA + Compare Access2Base with MSAccess VBA - REM Open a form ... - OpenForm("myForm") - REM Move a form to new left-top coordinates ... - Dim ofForm As Object ' In VBA => Dim ofForm As Form - Set ofForm = Forms("myForm") - ofForm.Move(100, 200) - REM Get the value of a control ... - Dim ocControl As Object - ocControl = ofForm.Controls("myControl") - MsgBox ocControl.Value - REM Hide a control ... - ocControl.Visible = False - REM ... or alternatively ... - setValue("Forms!myForm!myControl.Visible", False) ' Shortcut notation - ' In VBA => Forms!myForm!myControl.Visible = False + REM Open a form ... + OpenForm("myForm") + REM Move a form to new left-top coordinates ... + Dim ofForm As Object ' In VBA => Dim ofForm As Form + Set ofForm = Forms("myForm") + ofForm.Move(100, 200) + REM Get the value of a control ... + Dim ocControl As Object + ocControl = ofForm.Controls("myControl") + MsgBox ocControl.Value + REM Hide a control ... + ocControl.Visible = False + REM ... or alternatively ... + setValue("Forms!myForm!myControl.Visible", False) ' Shortcut notation + ' In VBA => Forms!myForm!myControl.Visible = False diff --git a/source/text/sbasic/guide/control_properties.xhp b/source/text/sbasic/guide/control_properties.xhp index 1b45627c4c..7d8ff2c3eb 100644 --- a/source/text/sbasic/guide/control_properties.xhp +++ b/source/text/sbasic/guide/control_properties.xhp @@ -35,10 +35,10 @@ controls;changing properties dialog editor;changing control properties -Changing the Properties of Controls in the Dialog Editor +Changing the Properties of Controls in the Dialog Editor -You can set the properties of control that you add to a dialog. For example, you can change the color, name, and size of a button that you added. You can change most control properties when you create or edit a dialog. However, you can only change some properties at runtime. -To change the properties of a control in design mode, right-click the control, and then choose Properties. +You can set the properties of control that you add to a dialog. For example, you can change the color, name, and size of a button that you added. You can change most control properties when you create or edit a dialog. However, you can only change some properties at runtime. +To change the properties of a control in design mode, right-click the control, and then choose Properties.
diff --git a/source/text/sbasic/guide/create_dialog.xhp b/source/text/sbasic/guide/create_dialog.xhp index f204ecc679..4789e59b14 100644 --- a/source/text/sbasic/guide/create_dialog.xhp +++ b/source/text/sbasic/guide/create_dialog.xhp @@ -30,23 +30,23 @@ dialogs;creating Basic dialogs -Creating a Basic Dialog +Creating a Basic Dialog -Choose Tools - Macros - Organize Dialogs, and then click New. +Choose Tools - Macros - Organize Dialogs, and then click New. -Enter a name for the dialog, and click OK. To rename the dialog later, right-click the name on the tab, and choose Rename. UFI: issue #i51589# +Enter a name for the dialog, and click OK. To rename the dialog later, right-click the name on the tab, and choose Rename. UFI: issue #i51589# -Click Edit. The Basic dialog editor opens and contains a blank dialog. +Click Edit. The Basic dialog editor opens and contains a blank dialog. -If you do not see the Toolbox bar, click the arrow next to the Insert Controls icon to open the Toolbox bar. +If you do not see the Toolbox bar, click the arrow next to the Insert Controls icon to open the Toolbox bar. -Click a tool and then drag in the dialog to create the control. +Click a tool and then drag in the dialog to create the control.
diff --git a/source/text/sbasic/guide/insert_control.xhp b/source/text/sbasic/guide/insert_control.xhp index e2a7c69233..cbc6fdbdbd 100644 --- a/source/text/sbasic/guide/insert_control.xhp +++ b/source/text/sbasic/guide/insert_control.xhp @@ -33,18 +33,18 @@ controls; creating in the dialog editor dialog editor;creating controls -Creating Controls in the Dialog Editor +Creating Controls in the Dialog Editor -Use the tools on the Toolbox of the BASIC dialog editor to add controls to your dialog. +Use the tools on the Toolbox of the BASIC dialog editor to add controls to your dialog. -To open the Toolbox, click the arrow next to the Insert Controls icon on the Macro toolbar. +To open the Toolbox, click the arrow next to the Insert Controls icon on the Macro toolbar. -Click a tool on the toolbar, for example, Button. +Click a tool on the toolbar, for example, Button. -On the dialog, drag the button to the size you want. +On the dialog, drag the button to the size you want.
diff --git a/source/text/sbasic/guide/sample_code.xhp b/source/text/sbasic/guide/sample_code.xhp index 06938e60ff..a5141068d7 100644 --- a/source/text/sbasic/guide/sample_code.xhp +++ b/source/text/sbasic/guide/sample_code.xhp @@ -39,11 +39,11 @@ examples; programming controls dialog editor;programming examples for controls -Programming Examples for Controls in the Dialog Editor +Programming Examples for Controls in the Dialog Editor -The following examples are for a new dialog called "Dialog1". Use the tools on the Toolbox bar in the dialog editor to create the dialog and add the following controls: a Check Box called "CheckBox1", a Label Field called "Label1", a Button called "CommandButton1", and a List Box called "ListBox1". -Be consistent with uppercase and lowercase letter when you attach a control to an object variable. -Global Function for Loading Dialogs +The following examples are for a new dialog called "Dialog1". Use the tools on the Toolbox bar in the dialog editor to create the dialog and add the following controls: a Check Box called "CheckBox1", a Label Field called "Label1", a Button called "CommandButton1", and a List Box called "ListBox1". +Be consistent with uppercase and lowercase letter when you attach a control to an object variable. +Global Function for Loading Dialogs Function LoadDialog(Libname as String, DialogName as String, Optional oLibContainer) Dim oLib as Object @@ -59,7 +59,7 @@ LoadDialog() = oRuntimeDialog End Function -Displaying a Dialog +Displaying a Dialog REM global definition of variables Dim oDialog1 AS Object @@ -69,7 +69,7 @@ oDialog1.Execute() End Sub -Read or Edit Properties of Controls in the Program +Read or Edit Properties of Controls in the Program Sub Sample1 BasicLibraries.LoadLibrary("Tools") @@ -96,7 +96,7 @@ oDialog1.Execute() End Sub -Add an Entry to a ListBox +Add an Entry to a ListBox Sub AddEntry BasicLibraries.LoadLibrary("Tools") @@ -109,7 +109,7 @@ oListbox.additem("New Item" & iCount,0) End Sub -Remove an Entry from a ListBox +Remove an Entry from a ListBox Sub RemoveEntry BasicLibraries.LoadLibrary("Tools") diff --git a/source/text/sbasic/guide/show_dialog.xhp b/source/text/sbasic/guide/show_dialog.xhp index 6ff3151ea3..ee65960625 100644 --- a/source/text/sbasic/guide/show_dialog.xhp +++ b/source/text/sbasic/guide/show_dialog.xhp @@ -32,10 +32,10 @@ module/dialog toggle dialogs;using program code to show (example) examples; showing a dialog using program code -Opening a Dialog With Program Code +Opening a Dialog With Program Code -In the %PRODUCTNAME BASIC window for a dialog that you created, leave the dialog editor by clicking the name tab of the Module that the dialog is assigned to. The name tab is at the bottom of the window. -Enter the following code for a subroutine called Dialog1Show. In this example, the name of the dialog that you created is "Dialog1": +In the %PRODUCTNAME BASIC window for a dialog that you created, leave the dialog editor by clicking the name tab of the Module that the dialog is assigned to. The name tab is at the bottom of the window. +Enter the following code for a subroutine called Dialog1Show. In this example, the name of the dialog that you created is "Dialog1": Sub Dialog1Show BasicLibraries.LoadLibrary("Tools") @@ -43,7 +43,7 @@ oDialog1.Execute() End Sub -Without using "LoadDialog" you can call the code as follows: +Without using "LoadDialog" you can call the code as follows: Sub Dialog1Show DialogLibraries.LoadLibrary("Standard") @@ -51,7 +51,7 @@ oDialog1.Execute() End Sub -When you execute this code, "Dialog1" opens. To close the dialog, click the close button (x) on its title bar. +When you execute this code, "Dialog1" opens. To close the dialog, click the close button (x) on its title bar.
diff --git a/source/text/sbasic/guide/translation.xhp b/source/text/sbasic/guide/translation.xhp index c7a64ef814..cfc81244ca 100644 --- a/source/text/sbasic/guide/translation.xhp +++ b/source/text/sbasic/guide/translation.xhp @@ -33,69 +33,69 @@ localizing dialogs translating dialogs -Translation of Controls in the Dialog Editor +Translation of Controls in the Dialog Editor -The Language toolbar in the Basic IDE dialog editor shows controls to enable and manage localizable dialogs. -By default, any dialog that you create only contains string resources for one language. You may want to create dialogs that automatically show localized strings according to the user's language settings. -Select the language for the strings that you want to edit. Click the Manage Languages icon to add languages.Manage Language icon is in sbasic/shared/02/20000000.xhp +The Language toolbar in the Basic IDE dialog editor shows controls to enable and manage localizable dialogs. +By default, any dialog that you create only contains string resources for one language. You may want to create dialogs that automatically show localized strings according to the user's language settings. +Select the language for the strings that you want to edit. Click the Manage Languages icon to add languages.Manage Language icon is in sbasic/shared/02/20000000.xhp -Click a language, then click Default to set the language as default, or click Delete to remove the language from the list. -Opens a dialog where you can add a language to the list. -Select a language in the list and click Delete to remove that language. When you remove all languages, the string resources for localizable dialogs are removed from all dialogs in the current library. -Select a language in the list and click Default to set the language as default language. +Click a language, then click Default to set the language as default, or click Delete to remove the language from the list. +Opens a dialog where you can add a language to the list. +Select a language in the list and click Delete to remove that language. When you remove all languages, the string resources for localizable dialogs are removed from all dialogs in the current library. +Select a language in the list and click Default to set the language as default language. -The default language will be used as a source for all other language strings. -Add UI languages for your dialog strings. -To enable localizable dialogs +The default language will be used as a source for all other language strings. +Add UI languages for your dialog strings. +To enable localizable dialogs -In the Basic IDE dialog editor, open the Language toolbar choosing View - Toolbars - Language. -If the current library already contains a localizable dialog, the Language toolbar is shown automatically. +In the Basic IDE dialog editor, open the Language toolbar choosing View - Toolbars - Language. +If the current library already contains a localizable dialog, the Language toolbar is shown automatically. -Click the Manage Languages icon +Click the Manage Languages icon Manage Language icon on the Language toolbar or on the Toolbox bar. -You see the Manage User Interface Language dialog. The dialog manages languages for the current library. The name of the current library is shown on the title bar. +You see the Manage User Interface Language dialog. The dialog manages languages for the current library. The name of the current library is shown on the title bar. -Click Add in the dialog to add a language entry. -This step enables all new dialogs to contain localizable string resources. +Click Add in the dialog to add a language entry. +This step enables all new dialogs to contain localizable string resources. -The first time you click Add, you see the Set Default User Interface Language dialog. The following times you click Add, this dialog has the name Add User Interface Language. -You can also change the default language in the Manage User Interface Language dialog. +The first time you click Add, you see the Set Default User Interface Language dialog. The following times you click Add, this dialog has the name Add User Interface Language. +You can also change the default language in the Manage User Interface Language dialog. -Select a language. -This adds string resources to contain the translated versions of all strings to the dialog properties. The set of dialog strings of the default language is copied to the new set of strings. Later, you can switch to the new language and then translate the strings. +Select a language. +This adds string resources to contain the translated versions of all strings to the dialog properties. The set of dialog strings of the default language is copied to the new set of strings. Later, you can switch to the new language and then translate the strings. -Close the dialog or add additional languages. +Close the dialog or add additional languages. -To edit localizable controls in your dialog -Once you have added the resources for localizable strings in your dialogs, you can select the current language from the Current Language listbox on the Language toolbar. +To edit localizable controls in your dialog +Once you have added the resources for localizable strings in your dialogs, you can select the current language from the Current Language listbox on the Language toolbar. -Switch the Current Language listbox to display the default language. +Switch the Current Language listbox to display the default language. -Insert any number of controls to your dialog and enter all strings you want. +Insert any number of controls to your dialog and enter all strings you want. -Select another language in the Current Language listbox. +Select another language in the Current Language listbox. -Using the control's property dialogs, edit all strings to the other language. +Using the control's property dialogs, edit all strings to the other language. -Repeat for all languages that you added. +Repeat for all languages that you added. -The user of your dialog will see the strings of the user interface language of the user's version of %PRODUCTNAME, if you did provide strings in that language. -If no language matches the user's version, the user will see the default language strings. -If the user has an older version of %PRODUCTNAME that does not know localizable string resources for Basic dialogs, the user will see the default language strings. +The user of your dialog will see the strings of the user interface language of the user's version of %PRODUCTNAME, if you did provide strings in that language. +If no language matches the user's version, the user will see the default language strings. +If the user has an older version of %PRODUCTNAME that does not know localizable string resources for Basic dialogs, the user will see the default language strings.
-- cgit