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

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

(Различия между версиями)
Перейти к: навигация, поиск
 
(28 промежуточных версий не показаны.)
Строка 1: Строка 1:
 +
{{DISPLAYTITLE:Тестовая страница для экспериментов}}
 +
[[Category:Редакторам]]
Для проб и ошибок.
Для проб и ошибок.
Тестовая страница
Тестовая страница
 +
 +
см. [[StyleGuide|Рекомендации по оформлению страниц]]
[[Файл:Example.png]]
[[Файл:Example.png]]
 +
 +
<source lang="html4strict" line>
 +
<html>
 +
<body>
 +
</source>
 +
<source lang="asp" line start="3">
 +
<% Response.Write "Hello World!" %>
 +
</source>
 +
<source lang="html4strict" line start="4">
 +
</body>
 +
</html>
 +
</source>
 +
 +
Basic
 +
<source lang="oobas">
 +
Dim Doc As Object
 +
Dim Cursor As Object
 +
 +
Doc = ThisComponent
 +
Cursor = Doc.Text.createTextCursor()
 +
</source>
 +
 +
<source lang="SQL">
 +
SELECT * FROM table1
 +
</source>
 +
 +
Java, BeanShell
 +
<source lang="java">
 +
com.sun.star.uno.XComponentContext xContext = null;
 +
xContext = com.sun.star.comp.helper.Bootstrap.bootstrap();
 +
</source>
 +
 +
xml
 +
<source lang=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>
 +
</source>
 +
 +
Python
 +
{{Note|Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python }}
 +
{{Warning|Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python }}
 +
{{Tip|Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python }}
 +
{{Office|Pyhton}}
 +
{{HowToGet|Контекстное меню для заголовка столбца в открытой таблице базы данных - '''Удалить строки'''}}
 +
<source lang=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",),)
 +
</source>

Текущая версия на 15:34, 6 ноября 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()
SELECT * FROM table1

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

Note.pngPython Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python
Warning.pngPython Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python
Tip.pngPython Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python 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",),)
Личные инструменты
Пространства имён
Варианты
Действия
Компоненты
Общие вопросы
Совместимость
Навигация
Инструменты