OpenOffice.org OpenOffice - 3.2 Guia de Início Rápido Página 401

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 442
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 400
MsgBox "This macro only works with a text document"
Exit Sub
End If
REM Get the view cursor from the current controller.
oCurs = oDoc.currentController.getViewCursor()
REM Move the cursor to the end of the document
oCurs.gotoEnd(False)
REM Insert text "Hello" at the end of the document
oCurs.Text.insertString(oCurs, "Hello", False)
End Sub
Finding more information
Numerous resources are available that provide help with writing
macros. Use Help > OpenOffice.org Help to open the OOo help
pages. The upper left corner of the OOo help system contains a drop-
down list that determines which help set is displayed. To view the help
for Basic, choose OpenOffice.org Basic from this list.
Included material
Many excellent macros are included with OOo. Use Tools > Macros >
Organize Macros > OpenOffice.org Basic to open the Macro dialog.
Expand the Tools library in the OpenOffice.org library container.
Inspect the Debug module—some good examples include
Writed/jointfilesconvert/41501/bgInfo(document) and printd/jointfilesconvert/41501/bgInfo(sheet).
Online resources
The following links and references contain information regarding
macro programming:
http://user.services.openoffice.org/ (OOo forums, well supported)
http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html
(official IDL reference; here you'll find almost every command with a
description)
http://wiki.services.openoffice.org/wiki/Documentation/BASIC_Guide
(official OpenOffice.org BASIC Programming Guide)
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Open
Office.org_Developers_Guide (official OpenOffice.org Developers
Guide; contains a detailed explanation)
Chapter 13 Getting Started with Macros 401
Free eBook Edition
Vista de página 400
1 2 ... 396 397 398 399 400 401 402 403 404 405 406 ... 441 442

Comentários a estes Manuais

Sem comentários