Тестовая страница для экспериментов
Материал из Forumooo wiki
(Различия между версиями)
Clio (Обсуждение | вклад) |
Clio (Обсуждение | вклад) |
||
Строка 48: | Строка 48: | ||
{{Tip|Python}} | {{Tip|Python}} | ||
{{Office|Pyhton}} | {{Office|Pyhton}} | ||
+ | {{HowToGet|Контекстное меню для заголовка столбца в открытой таблице базы данных - '''Удалить строки'''}} | ||
<source lang=python> | <source lang=python> | ||
# ... here is the python script code | # ... here is the python script code |
Версия 07:08, 3 ноября 2010
Для проб и ошибок.
Тестовая страница
<html>
<body>
<% Response.Write "Hello World!" %>
</body>
</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
LibreOffice/OpenOffice
Контекстное меню для заголовка столбца в открытой таблице базы данных - Удалить строки |
# ... here is the python script code import unohelper g_ImplementationHelper = unohelper.ImplementationHelper() g_ImplementationHelper.addImplementation( \ None,"org.openoffice.script.DummyImplementationForPythonScripts", \ ("org.openoffice.script.DummyServiceForPythonScripts",),)