Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
Mettre à jour 02.linux examples
authored
Feb 20, 2018
by
LibreOfficiant
Show whitespace changes
Inline
Side-by-side
02.linux-examples.md
View page @
597a651c
## Default Instance
```
python
import
uno
def
macro_1
():
pass
# Your code goes here
def
macro_2
():
pass
# Your code goes here
g_exportedScripts
=
macro_1
,
macro_2
# *Office public macros
```
## Single instance
### officehelper.py module
```
python
```
python
# officehelper module
# officehelper module
...
@@ -9,7 +21,7 @@ if __name__ == "__main__":
...
@@ -9,7 +21,7 @@ if __name__ == "__main__":
macro_2
()
# Run
macro_2
()
# Run
```
```
##
Single Instance
##
# {pgm: [accept, *options]} argument
```
python
```
python
# LibreOffice Named Pipe
# LibreOffice Named Pipe
...
@@ -21,5 +33,6 @@ if __name__ == "__main__":
...
@@ -21,5 +33,6 @@ if __name__ == "__main__":
macro_1
()
# Run
macro_1
()
# Run
```
```
### JSON property file
## Multiple Instances
## Multiple Instances
\ No newline at end of file