Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
adf77268
Kaydet (Commit)
adf77268
authored
Eyl 22, 2011
tarafından
Xisco Fauli
Kaydeden (comit)
Michael Meeks
Ara 05, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Hello world (python) as a component
üst
e20b4fe7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
62 additions
and
4 deletions
+62
-4
makefile.mk
instsetoo_native/util/makefile.mk
+1
-0
Common.xcu
officecfg/registry/data/org/openoffice/Office/Common.xcu
+1
-1
makefile.mk
postprocess/packcomponents/makefile.mk
+2
-0
file_ooo.scp
scp2/source/ooo/file_ooo.scp
+11
-0
Module_wizards.mk
wizards/Module_wizards.mk
+1
-0
CallWizard.py
wizards/com/sun/star/wizards/fax/CallWizard.py
+43
-0
fax.component
wizards/com/sun/star/wizards/fax/fax.component
+3
-3
No files found.
instsetoo_native/util/makefile.mk
Dosyayı görüntüle @
adf77268
...
...
@@ -74,6 +74,7 @@ LOCALPYFILES= \
$(BIN)$/
pythonloader.py
\
$(BIN)$/
officehelper.py
\
$(BIN)$/
mailmerge.py
\
$(BIN)$/
CallWizard.py
\
$(BIN)$/
msgbox.py
.ENDIF
...
...
officecfg/registry/data/org/openoffice/Office/Common.xcu
Dosyayı görüntüle @
adf77268
...
...
@@ -404,7 +404,7 @@
</node>
<node
oor:name=
"m1"
oor:op=
"replace"
install:module=
"writer"
>
<prop
oor:name=
"URL"
oor:type=
"xs:string"
>
<value
>
service:com.sun.star.wizards.fax.CallWizard?
sta
rt
</value>
<value
>
service:com.sun.star.wizards.fax.CallWizard?
inse
rt
</value>
</prop>
<prop
oor:name=
"Title"
>
<value
xml:lang=
"en-US"
>
~Fax...
</value>
...
...
postprocess/packcomponents/makefile.mk
Dosyayı görüntüle @
adf77268
...
...
@@ -357,6 +357,8 @@ my_components += evoab
my_components
+=
component/avmedia/source/gstreamer/avmediagstreamer
.END
my_ooo_components
=
mailmerge component/wizards/com/sun/star/wizards/fax/fax
.INCLUDE
:
target.mk
ALLTAR
:
$(MISC)/services.rdb
...
...
scp2/source/ooo/file_ooo.scp
Dosyayı görüntüle @
adf77268
...
...
@@ -466,6 +466,17 @@ STD_JAR_FILE( gid_File_Jar_Saxon, saxon9 )
#endif
#endif
#ifndef AIX
#ifndef DISABLE_PYUNO
File gid_File_PyCallFaxWizard
TXT_FILE_BODY;
Dir = gid_Dir_Program;
Name = "CallWizard.py";
Styles = (PACKED);
End
#endif
#endif
#ifndef SYSTEM_LIBEXTTEXTCAT
// fingerprint files (lm)
...
...
wizards/Module_wizards.mk
Dosyayı görüntüle @
adf77268
...
...
@@ -36,6 +36,7 @@ $(eval $(call gb_Module_add_targets,wizards,\
AllLangResTarget_tpl \
AllLangResTarget_wwz \
AllLangResTarget_wzi \
Pyuno_fax \
Zip_depot \
Zip_euro \
Zip_form \
...
...
wizards/com/sun/star/wizards/fax/CallWizard.py
0 → 100644
Dosyayı görüntüle @
adf77268
# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
import
uno
import
unohelper
from
com.sun.star.task
import
XJobExecutor
# implement a UNO component by deriving from the standard unohelper.Base class
# and from the interface(s) you want to implement.
class
HelloWorldJob
(
unohelper
.
Base
,
XJobExecutor
):
def
__init__
(
self
,
ctx
):
# store the component context for later use
self
.
ctx
=
ctx
def
trigger
(
self
,
args
):
# note: args[0] == "HelloWorld", see below config settings
# retrieve the desktop object
desktop
=
self
.
ctx
.
ServiceManager
.
createInstanceWithContext
(
"com.sun.star.frame.Desktop"
,
self
.
ctx
)
# get current document model
model
=
desktop
.
getCurrentComponent
()
# access the document's text property
text
=
model
.
Text
# create a cursor
cursor
=
text
.
createTextCursor
()
# insert the text into the document
text
.
insertString
(
cursor
,
"Hello World"
,
0
)
# pythonloader looks for a static g_ImplementationHelper variable
g_ImplementationHelper
=
unohelper
.
ImplementationHelper
()
g_ImplementationHelper
.
addImplementation
(
\
HelloWorldJob
,
# UNO object class
"com.sun.star.wizards.fax.CallWizard"
,
# implemenation name
(
"com.sun.star.task.Job"
,),)
# list of implemented services
# (the only service)
# vim:set shiftwidth=4 softtabstop=4 expandtab:
wizards/com/sun/star/wizards/fax/fax.component
Dosyayı görüntüle @
adf77268
...
...
@@ -26,10 +26,10 @@
*
**********************************************************************-->
<component
loader=
"com.sun.star.loader.
Java2
"
<component
loader=
"com.sun.star.loader.
Python
"
xmlns=
"http://openoffice.org/2010/uno-components"
>
<implementation
name=
"com.sun.star.wizards.fax.CallWizard
$WizardImplementation
"
>
<service
name=
"com.sun.star.
wizards.fax.CallWizard
"
/>
name=
"com.sun.star.wizards.fax.CallWizard"
>
<service
name=
"com.sun.star.
task.Job
"
/>
</implementation>
</component>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment