Тестовая страница для экспериментов

Материал из Forumooo wiki

(Различия между версиями)
Перейти к: навигация, поиск
(Quickstarter (Linux))
(Quickstarter (Linux))
Строка 52: Строка 52:
     ("org.openoffice.script.DummyServiceForPythonScripts",),)
     ("org.openoffice.script.DummyServiceForPythonScripts",),)
</source>
</source>
-
 
-
==Quickstarter (Linux)==
 
-
В LibreOffice beta2 по умолчанию стоит галочка в Сервис/Параметры/Память/Использовать быстрый запуск. Если вы не хотите чтобы LibreOffice запускался вместе со входом в систему, то снимите её.
 

Версия 18:44, 25 октября 2010


Для проб и ошибок.

Тестовая страница

Example.png

  1. <html>
  2. <body>
  1. <% Response.Write "Hello World!" %>
  1. </body>
  2. </html>

Basic

Dim Doc As Object
Dim Cursor As Object
 
Doc = ThisComponent
Cursor = Doc.Text.createTextCursor()

Java, BeanShell

com.sun.star.uno.XComponentContext xContext = null;
xContext = com.sun.star.comp.helper.Bootstrap.bootstrap();

xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
 <manifest:file-entry manifest:media-type="application/vnd.oasis.opendocument.text" manifest:full-path="/"/>
</manifest:manifest>

Python

# ... here is the python script code
import unohelper
g_ImplementationHelper = unohelper.ImplementationHelper()
g_ImplementationHelper.addImplementation( \
	None,"org.openoffice.script.DummyImplementationForPythonScripts", \
    ("org.openoffice.script.DummyServiceForPythonScripts",),)
Личные инструменты
Пространства имён
Варианты
Действия
Компоненты
Общие вопросы
Совместимость
Навигация
Инструменты