From 3114a84355a738b365d3c65c403a8062305ddaff Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Sat, 16 Dec 2017 20:32:33 -0200 Subject: tdf#104171 Cleanup of Macro Help pages Removed shared/main0600.xhp (obsolete) Fixed links between help pages Added entry to tree file (contents) Change-Id: I2a954c328f214728d554bff2166f82b2c2b96f35 Reviewed-on: https://gerrit.libreoffice.org/46618 Reviewed-by: Olivier Hallot Tested-by: Olivier Hallot --- AllLangHelp_shared.mk | 1 - source/auxiliary/sbasic.tree | 1 + source/text/shared/01/06130000.xhp | 11 +- source/text/shared/01/06130010.xhp | 7 +- source/text/shared/guide/macro_recording.xhp | 181 ++++++++++++++------------- source/text/shared/main0600.xhp | 47 ------- 6 files changed, 100 insertions(+), 148 deletions(-) delete mode 100644 source/text/shared/main0600.xhp diff --git a/AllLangHelp_shared.mk b/AllLangHelp_shared.mk index e1b0bfdca7..dc70121ba1 100644 --- a/AllLangHelp_shared.mk +++ b/AllLangHelp_shared.mk @@ -802,7 +802,6 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,shared,\ helpcontent2/source/text/shared/main0227 \ helpcontent2/source/text/shared/main0400 \ helpcontent2/source/text/shared/main0500 \ - helpcontent2/source/text/shared/main0600 \ helpcontent2/source/text/shared/main0650 \ helpcontent2/source/text/shared/main0800 \ helpcontent2/source/text/shared/menu/insert_chart \ diff --git a/source/auxiliary/sbasic.tree b/source/auxiliary/sbasic.tree index 6a3e8aeb93..dc5ca57dfc 100644 --- a/source/auxiliary/sbasic.tree +++ b/source/auxiliary/sbasic.tree @@ -291,6 +291,7 @@ +Recording a Macro Changing the Properties of Controls in the Dialog Editor Creating Controls in the Dialog Editor Programming Examples for Controls in the Dialog Editor diff --git a/source/text/shared/01/06130000.xhp b/source/text/shared/01/06130000.xhp index eb21ca8414..bae1e03710 100644 --- a/source/text/shared/01/06130000.xhp +++ b/source/text/shared/01/06130000.xhp @@ -1,6 +1,6 @@ - + - - + + Macro @@ -35,7 +35,6 @@
- Macro name Displays the name of the selected macro. To create or to change the name of a macro, enter a name here. @@ -112,7 +111,7 @@ Importchanged in #i64102 Locate that $[officename] Basic library that you want to add to the current list, and then click Open. -Scripts +Scripts To open the BeanShell Macros dialog box, choose Tools - Macros - Organize Macros - BeanShell. To open the JavaScript dialog box, choose Tools - Macros - Organize Macros - JavaScript. Export @@ -142,8 +141,8 @@ Macro name Click a script, and then click a command button.
-Macro programming in $[officename] +
diff --git a/source/text/shared/01/06130010.xhp b/source/text/shared/01/06130010.xhp index de95e8bd81..d0172cc807 100644 --- a/source/text/shared/01/06130010.xhp +++ b/source/text/shared/01/06130010.xhp @@ -1,6 +1,6 @@ - + - - + + Record Macro @@ -42,7 +42,6 @@ Stops recording a macro.
-
diff --git a/source/text/shared/guide/macro_recording.xhp b/source/text/shared/guide/macro_recording.xhp index dc77467189..fe2c4ea56f 100644 --- a/source/text/shared/guide/macro_recording.xhp +++ b/source/text/shared/guide/macro_recording.xhp @@ -1,95 +1,96 @@ - - - - +* This file is part of the LibreOffice project. +* +* This Source Code Form is subject to the terms of the Mozilla Public +* License, v. 2.0. If a copy of the MPL was not distributed with this +* file, You can obtain one at http://mozilla.org/MPL/2.0/. +* +* This file incorporates work covered by the following license notice: +* +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed +* with this work for additional information regarding copyright +* ownership. The ASF licenses this file to you under the Apache +* License, Version 2.0 (the "License"); you may not use this file +* except in compliance with the License. You may obtain a copy of +* the License at http://www.apache.org/licenses/LICENSE-2.0 . +--> - - - -Recording a Macro -/text/shared/guide/macro_recording.xhp - - - -macros; recording -recording; macros -Basic; recording macros - -Recording a Macro - - - -Open the document for which you want to record a macro. - - -Choose Tools - Macros - Record Macro. -If Tools - Macros - Record Macro menu item is missing, make sure that macro recording feature is enabled in %PRODUCTNAME - PreferencesTools - Options - %PRODUCTNAME - Advanced. -You see the small Recording dialog with just one button called Stop Recording. - - -Perform the actions you want to be recorded in the document. -Press the Escape key to deselect an object, as the macro recorder currently does not record this action by mouse click. - - -Click Stop Recording. -The Macro dialog appears, in which you can save and run the macro. -If you want to abort the recording without saving a macro, click the Close button of the Recording dialog. - - -To save the macro, first select the object where you want the macro to be saved in the Save macro in list box. - - -If you want the macro to be saved into a new library or module, click the New Library or New Module button and enter a name for the library or module. - - -Enter a name for the new macro in the Macro name text box. Do not use Basic keywords as a name. - - -Click Save. - - -Limitations of the macro recorder -The following actions are not recorded: - - -Opening of windows is not recorded. - - -Actions carried out in another window than where the recorder was started are not recorded. - - -Window switching is not recorded. - - -Actions that are not related to the document contents are not recorded. For example, changes made in the Options dialog, macro organizer, customizing. - - -Selections are recorded only if they are done by using the keyboard (cursor traveling), but not when the mouse is used. - - -The macro recorder works only in Calc and Writer. - - - -Macro -Programming in %PRODUCTNAME + + + + Recording a Macro + /text/shared/guide/macro_recording.xhp + + + + + macros; recording + recording; macros + Basic; recording macros + + Recording a Macro + + %PRODUCTNAME can record commands executed with the keyboard and mouse in Writer and Calc + + + Open the document for which you want to record a macro. + + + Choose Tools - Macros - Record Macro. + If Tools - Macros - Record Macro menu item is missing, make sure that macro recording feature is enabled in %PRODUCTNAME - PreferencesTools - Options - %PRODUCTNAME - Advanced. + You see the small Recording dialog with just one button called Stop Recording. + + + Perform the actions you want to be recorded in the document. + Press the Escape key to deselect an object, as the macro recorder currently does not record this action by mouse click. + + + Click Stop Recording. + The Macro dialog appears, in which you can save and run the macro. + If you want to abort the recording without saving a macro, click the Close button of the Recording dialog. + + + To save the macro, first select the object where you want the macro to be saved in the Save macro in list box. + + + If you want the macro to be saved into a new library or module, click the New Library or New Module button and enter a name for the library or module. + + + Enter a name for the new macro in the Macro name text box. Do not use Basic keywords as a name. + + + Click Save. + + + + macro recording;limitations + + Limitations of the macro recorder + The following actions are not recorded: + + + Opening of windows is not recorded. + + + Actions carried out in another window than where the recorder was started are not recorded. + + + Window switching is not recorded. + + + Actions that are not related to the document contents are not recorded. For example, changes made in the Options dialog, macro organizer, customizing. + + + Selections are recorded only if they are done by using the keyboard (cursor traveling), but not when the mouse is used. + + + The macro recorder works only in Calc and Writer. + + +
+ Macro +
diff --git a/source/text/shared/main0600.xhp b/source/text/shared/main0600.xhp deleted file mode 100644 index 5372c17106..0000000000 --- a/source/text/shared/main0600.xhp +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - -Programming $[officename] -/text/shared/main0600.xhp - - -Sun Microsystems, Inc. - - - -programming;$[officename] -Basic;programming - -Programming $[officename] - -$[officename] can be controlled by using the $[officename] API. - -
-$[officename] provides an Application Programming Interface (API) that enables you to control $[officename] components by using various programming languages. A $[officename] Software Development Kit is available for the programming interface. -For more information about $[officename] API reference, please visit http://api.libreoffice.org/removed link; see i75345 -Macros created with $[officename] Basic based on the old programming interface will no longer be supported by the current version. -
-For more information on $[officename] Basic, select "$[officename] Basic" in the list box. - -
-- cgit