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
ec20c94a
Kaydet (Commit)
ec20c94a
authored
Eki 28, 2012
tarafından
Xisco Fauli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pyagenda: now it's possible to call the wizard remotely
Change-Id: I25c49f58e580a0d08a2b0d0fce9d76e372c69d19
üst
02dd4619
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
203 additions
and
174 deletions
+203
-174
AgendaTemplate.py
wizards/com/sun/star/wizards/agenda/AgendaTemplate.py
+6
-5
AgendaWizardDialog.py
wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.py
+106
-75
AgendaWizardDialogConst.py
...ds/com/sun/star/wizards/agenda/AgendaWizardDialogConst.py
+51
-53
AgendaWizardDialogImpl.py
...rds/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py
+26
-32
AgendaWizardDialogResources.py
...om/sun/star/wizards/agenda/AgendaWizardDialogResources.py
+1
-1
TopicsControl.py
wizards/com/sun/star/wizards/agenda/TopicsControl.py
+7
-6
FileAccess.py
wizards/com/sun/star/wizards/common/FileAccess.py
+4
-1
UnoDialog2.py
wizards/com/sun/star/wizards/ui/UnoDialog2.py
+2
-1
No files found.
wizards/com/sun/star/wizards/agenda/AgendaTemplate.py
Dosyayı görüntüle @
ec20c94a
...
...
@@ -16,12 +16,13 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
import
uno
from
TemplateConsts
import
*
from
.
TemplateConsts
import
*
from
threading
import
RLock
from
wizards.text.TextDocument
import
*
from
wizards.common.FileAccess
import
FileAccess
from
wizards.text.TextSectionHandler
import
TextSectionHandler
from
TopicsControl
import
TopicsControl
from
..text.TextDocument
import
*
from
..common.FileAccess
import
FileAccess
from
..text.TextSectionHandler
import
TextSectionHandler
from
.TopicsControl
import
TopicsControl
from
datetime
import
date
as
dateTimeObject
from
com.sun.star.text.PlaceholderType
import
TEXT
...
...
wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.py
Dosyayı görüntüle @
ec20c94a
...
...
@@ -15,9 +15,9 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
from
wizards.ui.WizardDialog
import
*
from
wizards.ui.WizardDialog
import
*
from
AgendaWizardDialogConst
import
*
from
wizards.ui.WizardDialog
import
WizardDialog
,
uno
,
Helper
,
UIConsts
,
\
PropertyNames
from
AgendaWizardDialogConst
import
AgendaWizardDialogConst
,
HID
from
AgendaWizardDialogResources
import
AgendaWizardDialogResources
from
com.sun.star.awt.FontUnderline
import
SINGLE
...
...
@@ -26,23 +26,22 @@ class AgendaWizardDialog(WizardDialog):
def
__init__
(
self
,
xmsf
):
super
(
AgendaWizardDialog
,
self
)
.
__init__
(
xmsf
,
HID
)
#Load Resources
self
.
resources
=
AgendaWizardDialogResources
(
xmsf
)
#set dialog properties...
Helper
.
setUnoPropertyValues
(
self
.
xDialogModel
,
(
"Closeable"
,
PropertyNames
.
PROPERTY_HEIGHT
,
"Moveable"
,
PropertyNames
.
PROPERTY_POSITION_X
,
"Moveable"
,
PropertyNames
.
PROPERTY_POSITION_X
,
PropertyNames
.
PROPERTY_POSITION_Y
,
PropertyNames
.
PROPERTY_STEP
,
PropertyNames
.
PROPERTY_TABINDEX
,
"Title"
,
PropertyNames
.
PROPERTY_WIDTH
),
"Title"
,
PropertyNames
.
PROPERTY_WIDTH
),
(
True
,
210
,
True
,
200
,
52
,
1
,
1
,
self
.
resources
.
resAgendaWizardDialog_title
,
310
))
self
.
IMGHELP1_HID
=
""
self
.
PROPS_LIST
=
(
"Dropdown"
,
PropertyNames
.
PROPERTY_HEIGHT
,
PropertyNames
.
PROPERTY_HELPURL
,
...
...
@@ -105,16 +104,17 @@ class AgendaWizardDialog(WizardDialog):
PropertyNames
.
PROPERTY_IMAGEURL
,
PropertyNames
.
PROPERTY_POSITION_X
,
PropertyNames
.
PROPERTY_POSITION_Y
,
"ScaleImage"
,
PropertyNames
.
PROPERTY_STEP
,
"ScaleImage"
,
PropertyNames
.
PROPERTY_STEP
,
PropertyNames
.
PROPERTY_TABINDEX
,
PropertyNames
.
PROPERTY_WIDTH
)
self
.
fontDescriptor1
=
\
uno
.
createUnoStruct
(
'com.sun.star.awt.FontDescriptor'
)
self
.
fontDescriptor2
=
\
uno
.
createUnoStruct
(
'com.sun.star.awt.FontDescriptor'
)
self
.
fontDescriptor4
=
\
uno
.
createUnoStruct
(
'com.sun.star.awt.FontDescriptor'
)
#Set member- FontDescriptors...
self
.
fontDescriptor1
.
Weight
=
150
self
.
fontDescriptor1
.
Underline
=
SINGLE
...
...
@@ -125,35 +125,40 @@ class AgendaWizardDialog(WizardDialog):
build components
'''
def
buildStep1
(
self
):
self
.
insertLabel
(
"lblTitle1"
,
self
.
PROPS_LABEL_B
,
(
self
.
fontDescriptor4
,
16
,
self
.
resources
.
reslblTitle1_value
,
True
,
91
,
8
,
1
,
100
,
212
))
self
.
insertLabel
(
"lblTitle1"
,
self
.
PROPS_LABEL_B
,
(
self
.
fontDescriptor4
,
16
,
self
.
resources
.
reslblTitle1_value
,
True
,
91
,
8
,
1
,
100
,
212
))
self
.
insertLabel
(
"lblPageDesign"
,
self
.
PROPS_TEXT
,
(
8
,
self
.
resources
.
reslblPageDesign_value
,
97
,
32
,
1
,
101
,
66
))
self
.
listPageDesign
=
self
.
insertListBox
(
"listPageDesign"
,
None
,
LISTPAGEDESIGN_ACTION_PERFORMED
,
self
.
PROPS_LIST
,
(
True
,
12
,
LISTPAGEDESIGN_HID
,
166
,
30
,
1
,
102
,
70
),
self
)
None
,
AgendaWizardDialogConst
.
LISTPAGEDESIGN_ACTION_PERFORMED
,
self
.
PROPS_LIST
,
(
True
,
12
,
AgendaWizardDialogConst
.
LISTPAGEDESIGN_HID
,
166
,
30
,
1
,
102
,
70
),
self
)
self
.
chkMinutes
=
self
.
insertCheckBox
(
"chkMinutes"
,
None
,
self
.
PROPS_CHECK
,
(
9
,
CHKMINUTES_HID
,
self
.
PROPS_CHECK
,
(
9
,
AgendaWizardDialogConst
.
CHKMINUTES_HID
,
self
.
resources
.
reschkMinutes_value
,
97
,
50
,
0
,
1
,
103
,
203
),
self
)
self
.
insertImage
(
"imgHelp1"
,
self
.
PROPS_IMAGE
,
(
0
,
10
,
self
.
IMGHELP1_HID
,
INFO_IMAGE_URL
,
92
,
145
,
False
,
1
,
104
,
10
))
(
0
,
10
,
""
,
UIConsts
.
INFOIMAGEURL
,
92
,
145
,
False
,
1
,
104
,
10
))
self
.
insertLabel
(
"lblHelp1"
,
self
.
PROPS_TEXTAREA
,
(
39
,
self
.
resources
.
reslblHelp1_value
,
True
,
104
,
145
,
1
,
105
,
199
))
(
39
,
self
.
resources
.
reslblHelp1_value
,
True
,
104
,
145
,
1
,
105
,
199
))
def
buildStep2
(
self
):
self
.
insertLabel
(
"lblTitle2"
,
self
.
PROPS_LABEL_B
,
(
self
.
fontDescriptor4
,
16
,
self
.
resources
.
reslblTitle2_value
,
True
,
91
,
8
,
2
,
200
,
212
))
(
self
.
fontDescriptor4
,
16
,
self
.
resources
.
reslblTitle2_value
,
True
,
91
,
8
,
2
,
200
,
212
))
self
.
insertLabel
(
"lblDate"
,
self
.
PROPS_TEXT
,
(
8
,
self
.
resources
.
reslblDate_value
,
97
,
32
,
2
,
201
,
66
))
self
.
txtDate
=
self
.
insertDateField
(
"txtDate"
,
TXTDATE_TEXT_CHANGED
,
self
.
PROPS_LIST
,
(
True
,
12
,
TXTDATE_HID
,
166
,
30
,
2
,
202
,
70
),
self
)
"txtDate"
,
AgendaWizardDialogConst
.
TXTDATE_TEXT_CHANGED
,
self
.
PROPS_LIST
,
(
True
,
12
,
AgendaWizardDialogConst
.
TXTDATE_HID
,
166
,
30
,
2
,
202
,
70
),
self
)
self
.
insertLabel
(
"lblTime"
,
self
.
PROPS_TEXT
,
(
8
,
self
.
resources
.
reslblTime_value
,
97
,
50
,
2
,
203
,
66
))
self
.
txtTime
=
self
.
insertTimeField
(
"txtTime"
,
TXTTIME_TEXT_CHANGED
,
self
.
txtTime
=
self
.
insertTimeField
(
"txtTime"
,
AgendaWizardDialogConst
.
TXTTIME_TEXT_CHANGED
,
(
PropertyNames
.
PROPERTY_HEIGHT
,
PropertyNames
.
PROPERTY_HELPURL
,
PropertyNames
.
PROPERTY_POSITION_X
,
...
...
@@ -162,11 +167,12 @@ class AgendaWizardDialog(WizardDialog):
"StrictFormat"
,
PropertyNames
.
PROPERTY_TABINDEX
,
PropertyNames
.
PROPERTY_WIDTH
),
(
12
,
TXTTIME_HID
,
166
,
48
,
2
,
True
,
204
,
70
),
self
)
(
12
,
AgendaWizardDialogConst
.
TXTTIME_HID
,
166
,
48
,
2
,
True
,
204
,
70
),
self
)
self
.
insertLabel
(
"lblTitle"
,
self
.
PROPS_TEXT
,
(
8
,
self
.
resources
.
reslblTitle_value
,
97
,
68
,
2
,
205
,
66
))
(
8
,
self
.
resources
.
reslblTitle_value
,
97
,
68
,
2
,
205
,
66
))
self
.
txtTitle
=
self
.
insertTextField
(
"txtTitle"
,
TXTTITLE_TEXT_CHANGED
,
"txtTitle"
,
AgendaWizardDialogConst
.
TXTTITLE_TEXT_CHANGED
,
(
PropertyNames
.
PROPERTY_HEIGHT
,
PropertyNames
.
PROPERTY_HELPURL
,
PropertyNames
.
PROPERTY_MULTILINE
,
...
...
@@ -175,11 +181,12 @@ class AgendaWizardDialog(WizardDialog):
PropertyNames
.
PROPERTY_STEP
,
PropertyNames
.
PROPERTY_TABINDEX
,
PropertyNames
.
PROPERTY_WIDTH
),
(
26
,
TXTTITLE_HID
,
True
,
166
,
66
,
2
,
206
,
138
),
self
)
(
26
,
AgendaWizardDialogConst
.
TXTTITLE_HID
,
True
,
166
,
66
,
2
,
206
,
138
),
self
)
self
.
insertLabel
(
"lblLocation"
,
self
.
PROPS_TEXT
,
(
8
,
self
.
resources
.
reslblLocation_value
,
97
,
100
,
2
,
207
,
66
))
self
.
cbLocation
=
self
.
insertTextField
(
"cbLocation"
,
TXTLOCATION_TEXT_CHANGED
,
"cbLocation"
,
AgendaWizardDialogConst
.
TXTLOCATION_TEXT_CHANGED
,
(
PropertyNames
.
PROPERTY_HEIGHT
,
PropertyNames
.
PROPERTY_HELPURL
,
PropertyNames
.
PROPERTY_MULTILINE
,
...
...
@@ -188,37 +195,40 @@ class AgendaWizardDialog(WizardDialog):
PropertyNames
.
PROPERTY_STEP
,
PropertyNames
.
PROPERTY_TABINDEX
,
PropertyNames
.
PROPERTY_WIDTH
),
(
34
,
CBLOCATION_HID
,
True
,
166
,
98
,
2
,
208
,
138
),
self
)
(
34
,
AgendaWizardDialogConst
.
CBLOCATION_HID
,
True
,
166
,
98
,
2
,
208
,
138
),
self
)
self
.
insertImage
(
"imgHelp2"
,
self
.
PROPS_IMAGE
,
(
0
,
10
,
self
.
IMGHELP1_HID
,
INFO_IMAGE_URL
,
92
,
145
,
False
,
2
,
209
,
10
))
(
0
,
10
,
""
,
UIConsts
.
INFOIMAGEURL
,
92
,
145
,
False
,
2
,
209
,
10
))
self
.
insertLabel
(
"lblHelp2"
,
self
.
PROPS_TEXTAREA
,
(
39
,
self
.
resources
.
reslblHelp2_value
,
True
,
104
,
145
,
2
,
210
,
199
))
(
39
,
self
.
resources
.
reslblHelp2_value
,
True
,
104
,
145
,
2
,
210
,
199
))
def
buildStep3
(
self
):
self
.
insertLabel
(
"lblTitle3"
,
self
.
PROPS_LABEL_B
,
(
self
.
fontDescriptor4
,
16
,
self
.
resources
.
reslblTitle3_value
,
True
,
91
,
8
,
3
,
300
,
212
))
self
.
chkMeetingTitle
=
self
.
insertCheckBox
(
"chkMeetingTitle"
,
CHKUSEMEETINGTYPE_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
CHKMEETINGTITLE_HID
,
self
.
resources
.
reschkMeetingTitle_value
,
AgendaWizardDialogConst
.
CHKUSEMEETINGTYPE_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
AgendaWizardDialogConst
.
CHKMEETINGTITLE_HID
,
self
.
resources
.
reschkMeetingTitle_value
,
97
,
32
,
1
,
3
,
301
,
69
),
self
)
self
.
chkRead
=
self
.
insertCheckBox
(
"chkRead"
,
CHKUSEREAD_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
CHKREAD_HID
,
self
.
resources
.
reschkRead_value
,
97
,
46
,
0
,
3
,
302
,
162
),
self
)
AgendaWizardDialogConst
.
CHKUSEREAD_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
AgendaWizardDialogConst
.
CHKREAD_HID
,
self
.
resources
.
reschkRead_value
,
97
,
46
,
0
,
3
,
302
,
162
),
self
)
self
.
chkBring
=
self
.
insertCheckBox
(
"chkBring"
,
CHKUSEBRING_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
CHKBRING_HID
,
self
.
resources
.
reschkBring_value
,
AgendaWizardDialogConst
.
CHKUSEBRING_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
AgendaWizardDialogConst
.
CHKBRING_HID
,
self
.
resources
.
reschkBring_value
,
97
,
60
,
0
,
3
,
303
,
162
),
self
)
self
.
chkNotes
=
self
.
insertCheckBox
(
"chkNotes"
,
CHKUSENOTES_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
CHKNOTES_HID
,
self
.
resources
.
reschkNotes_value
,
AgendaWizardDialogConst
.
CHKUSENOTES_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
AgendaWizardDialogConst
.
CHKNOTES_HID
,
self
.
resources
.
reschkNotes_value
,
97
,
74
,
1
,
3
,
304
,
160
),
self
)
self
.
insertImage
(
"imgHelp3"
,
self
.
PROPS_IMAGE
,
(
0
,
10
,
self
.
IMGHELP1_HID
,
INFO_IMAGE_URL
,
92
,
145
,
False
,
3
,
305
,
10
))
""
,
UIConsts
.
INFOIMAGEURL
,
92
,
145
,
False
,
3
,
305
,
10
))
self
.
insertLabel
(
"lblHelp3"
,
self
.
PROPS_TEXTAREA
,
(
39
,
self
.
resources
.
reslblHelp3_value
,
True
,
104
,
145
,
3
,
306
,
199
))
...
...
@@ -227,35 +237,49 @@ class AgendaWizardDialog(WizardDialog):
(
self
.
fontDescriptor4
,
16
,
self
.
resources
.
reslblTitle5_value
,
True
,
91
,
8
,
4
,
400
,
212
))
self
.
chkConvenedBy
=
self
.
insertCheckBox
(
"chkConvenedBy"
,
CHKUSECALLEDBYNAME_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
CHKCONVENEDBY_HID
,
self
.
resources
.
reschkConvenedBy_value
,
AgendaWizardDialogConst
.
CHKUSECALLEDBYNAME_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
AgendaWizardDialogConst
.
CHKCONVENEDBY_HID
,
self
.
resources
.
reschkConvenedBy_value
,
97
,
32
,
1
,
4
,
401
,
150
),
self
)
self
.
chkPresiding
=
self
.
insertCheckBox
(
"chkPresiding"
,
CHKUSEFACILITATOR_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
CHKPRESIDING_HID
,
self
.
resources
.
reschkPresiding_value
,
AgendaWizardDialogConst
.
CHKUSEFACILITATOR_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
AgendaWizardDialogConst
.
CHKPRESIDING_HID
,
self
.
resources
.
reschkPresiding_value
,
97
,
46
,
0
,
4
,
402
,
150
),
self
)
self
.
chkNoteTaker
=
self
.
insertCheckBox
(
"chkNoteTaker"
,
CHKUSENOTETAKER_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
CHKNOTETAKER_HID
,
self
.
resources
.
reschkNoteTaker_value
,
AgendaWizardDialogConst
.
CHKUSENOTETAKER_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
AgendaWizardDialogConst
.
CHKNOTETAKER_HID
,
self
.
resources
.
reschkNoteTaker_value
,
97
,
60
,
0
,
4
,
403
,
150
),
self
)
self
.
chkTimekeeper
=
self
.
insertCheckBox
(
"chkTimekeeper"
,
CHKUSETIMEKEEPER_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
CHKTIMEKEEPER_HID
,
self
.
resources
.
reschkTimekeeper_value
,
AgendaWizardDialogConst
.
CHKUSETIMEKEEPER_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
AgendaWizardDialogConst
.
CHKTIMEKEEPER_HID
,
self
.
resources
.
reschkTimekeeper_value
,
97
,
74
,
0
,
4
,
404
,
150
),
self
)
self
.
chkAttendees
=
self
.
insertCheckBox
(
"chkAttendees"
,
CHKUSEATTENDEES_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
CHKATTENDEES_HID
,
self
.
resources
.
reschkAttendees_value
,
AgendaWizardDialogConst
.
CHKUSEATTENDEES_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
AgendaWizardDialogConst
.
CHKATTENDEES_HID
,
self
.
resources
.
reschkAttendees_value
,
97
,
88
,
1
,
4
,
405
,
150
),
self
)
self
.
chkObservers
=
self
.
insertCheckBox
(
"chkObservers"
,
CHKUSEOBSERVERS_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
CHKOBSERVERS_HID
,
self
.
resources
.
reschkObservers_value
,
AgendaWizardDialogConst
.
CHKUSEOBSERVERS_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
AgendaWizardDialogConst
.
CHKOBSERVERS_HID
,
self
.
resources
.
reschkObservers_value
,
97
,
102
,
0
,
4
,
406
,
150
),
self
)
self
.
chkResourcePersons
=
self
.
insertCheckBox
(
"chkResourcePersons"
,
CHKUSERESOURCEPERSONS_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
CHKRESOURCEPERSONS_HID
,
self
.
resources
.
reschkResourcePersons_value
,
AgendaWizardDialogConst
.
CHKUSERESOURCEPERSONS_ITEM_CHANGED
,
self
.
PROPS_CHECK
,
(
8
,
AgendaWizardDialogConst
.
CHKRESOURCEPERSONS_HID
,
self
.
resources
.
reschkResourcePersons_value
,
97
,
116
,
0
,
4
,
407
,
150
),
self
)
self
.
insertImage
(
"imgHelp4"
,
self
.
PROPS_IMAGE
,
(
0
,
10
,
self
.
IMGHELP1_HID
,
INFO_IMAGE_
URL
,
(
0
,
10
,
""
,
UIConsts
.
INFOIMAGE
URL
,
92
,
145
,
False
,
4
,
408
,
10
))
self
.
insertLabel
(
"lblHelp4"
,
self
.
PROPS_TEXTAREA
,
(
39
,
self
.
resources
.
reslblHelp4_value
,
True
,
104
,
145
,
4
,
409
,
199
))
...
...
@@ -270,17 +294,21 @@ class AgendaWizardDialog(WizardDialog):
(
8
,
self
.
resources
.
reslblResponsible_value
,
195
,
28
,
5
,
72
,
502
))
self
.
insertLabel
(
"lblDuration"
,
self
.
PROPS_TEXT
,
(
8
,
self
.
resources
.
reslblDuration_value
,
267
,
28
,
5
,
73
,
503
))
self
.
btnInsert
=
self
.
insertButton
(
"btnInsert"
,
BTNINSERT_ACTION_PERFORMED
,
self
.
PROPS_BUTTON
,
(
14
,
BTNINSERT_HID
,
self
.
btnInsert
=
self
.
insertButton
(
"btnInsert"
,
AgendaWizardDialogConst
.
BTNINSERT_ACTION_PERFORMED
,
self
.
PROPS_BUTTON
,
(
14
,
AgendaWizardDialogConst
.
BTNINSERT_HID
,
self
.
resources
.
resButtonInsert
,
92
,
136
,
5
,
580
,
40
),
self
)
self
.
btnRemove
=
self
.
insertButton
(
"btnRemove"
,
BTNREMOVE_ACTION_PERFORMED
,
self
.
PROPS_BUTTON
,
(
14
,
BTNREMOVE_HID
,
self
.
btnRemove
=
self
.
insertButton
(
"btnRemove"
,
AgendaWizardDialogConst
.
BTNREMOVE_ACTION_PERFORMED
,
self
.
PROPS_BUTTON
,
(
14
,
AgendaWizardDialogConst
.
BTNREMOVE_HID
,
self
.
resources
.
resButtonRemove
,
134
,
136
,
5
,
581
,
40
),
self
)
self
.
btnUp
=
self
.
insertButton
(
"btnUp"
,
BTNUP_ACTION_PERFORMED
,
self
.
PROPS_BUTTON
,
(
14
,
BTNUP_HID
,
self
.
btnUp
=
self
.
insertButton
(
"btnUp"
,
AgendaWizardDialogConst
.
BTNUP_ACTION_PERFORMED
,
self
.
PROPS_BUTTON
,
(
14
,
AgendaWizardDialogConst
.
BTNUP_HID
,
self
.
resources
.
resButtonUp
,
202
,
136
,
5
,
582
,
50
),
self
)
self
.
btnDown
=
self
.
insertButton
(
"btnDown"
,
BTNDOWN_ACTION_PERFORMED
,
self
.
PROPS_BUTTON
,
(
14
,
BTNDOWN_HID
,
self
.
btnDown
=
self
.
insertButton
(
"btnDown"
,
AgendaWizardDialogConst
.
BTNDOWN_ACTION_PERFORMED
,
self
.
PROPS_BUTTON
,
(
14
,
AgendaWizardDialogConst
.
BTNDOWN_HID
,
self
.
resources
.
resButtonDown
,
254
,
136
,
5
,
583
,
50
),
self
)
def
buildStep6
(
self
):
...
...
@@ -294,18 +322,21 @@ class AgendaWizardDialog(WizardDialog):
(
8
,
self
.
resources
.
reslblTemplateName_value
,
97
,
62
,
6
,
602
,
101
))
self
.
txtTemplateName
=
self
.
insertTextField
(
"txtTemplateName"
,
TXTTEMPLATENAME_TEXT_CHANGED
,
self
.
PROPS_X
,
(
12
,
TXTTEMPLATENAME_HID
,
202
,
60
,
6
,
603
,
100
),
self
)
AgendaWizardDialogConst
.
TXTTEMPLATENAME_TEXT_CHANGED
,
self
.
PROPS_X
,
(
12
,
AgendaWizardDialogConst
.
TXTTEMPLATENAME_HID
,
202
,
60
,
6
,
603
,
100
),
self
)
self
.
insertLabel
(
"lblProceed"
,
self
.
PROPS_TEXT
,
(
8
,
self
.
resources
.
reslblProceed_value
,
97
,
101
,
6
,
607
,
204
))
self
.
optCreateAgenda
=
self
.
insertRadioButton
(
"optCreateAgenda"
,
None
,
self
.
PROPS_CHECK
,
(
8
,
OPTCREATEAGENDA_HID
,
self
.
PROPS_CHECK
,
(
8
,
AgendaWizardDialogConst
.
OPTCREATEAGENDA_HID
,
self
.
resources
.
resoptCreateAgenda_value
,
103
,
113
,
1
,
6
,
608
,
198
),
self
)
self
.
optMakeChanges
=
self
.
insertRadioButton
(
"optMakeChanges"
,
None
,
self
.
PROPS_BUTTON
,
(
8
,
OPTMAKECHANGES_HID
,
self
.
resources
.
resoptMakeChanges_value
,
103
,
125
,
6
,
609
,
198
),
self
)
self
.
insertImage
(
"imgHelp6"
,
self
.
PROPS_IMAGE
,
(
0
,
10
,
self
.
IMGHELP1_HID
,
INFO_IMAGE_URL
,
92
,
145
,
False
,
6
,
610
,
10
))
self
.
PROPS_BUTTON
,
(
8
,
AgendaWizardDialogConst
.
OPTMAKECHANGES_HID
,
self
.
resources
.
resoptMakeChanges_value
,
103
,
125
,
6
,
609
,
198
),
self
)
self
.
insertImage
(
"imgHelp6"
,
self
.
PROPS_IMAGE
,
(
0
,
10
,
""
,
UIConsts
.
INFOIMAGEURL
,
92
,
145
,
False
,
6
,
610
,
10
))
self
.
insertLabel
(
"lblHelp6"
,
self
.
PROPS_TEXTAREA
,
(
39
,
self
.
resources
.
reslblHelp6_value
,
True
,
104
,
145
,
6
,
611
,
199
))
wizards/com/sun/star/wizards/agenda/AgendaWizardDialogConst.py
Dosyayı görüntüle @
ec20c94a
...
...
@@ -17,64 +17,62 @@
#
from
wizards.common.HelpIds
import
HelpIds
TXTTITLE_TEXT_CHANGED
=
"txtTitleTextChanged"
TXTDATE_TEXT_CHANGED
=
"txtDateTextChanged"
TXTTIME_TEXT_CHANGED
=
"txtTimeTextChanged"
TXTLOCATION_TEXT_CHANGED
=
"txtLocationTextChanged"
CHKMINUTES_ITEM_CHANGED
=
"chkMinutesItemChanged"
CHKUSEMEETINGTYPE_ITEM_CHANGED
=
"chkUseMeetingTypeItemChanged"
CHKUSEREAD_ITEM_CHANGED
=
"chkUseReadItemChanged"
CHKUSEBRING_ITEM_CHANGED
=
"chkUseBringItemChanged"
CHKUSENOTES_ITEM_CHANGED
=
"chkUseNotesItemChanged"
CHKUSECALLEDBYNAME_ITEM_CHANGED
=
"chkUseCalledByItemChanged"
CHKUSEFACILITATOR_ITEM_CHANGED
=
"chkUseFacilitatorItemChanged"
CHKUSENOTETAKER_ITEM_CHANGED
=
"chkUseNoteTakerItemChanged"
CHKUSETIMEKEEPER_ITEM_CHANGED
=
"chkUseTimeKeeperItemChanged"
CHKUSEATTENDEES_ITEM_CHANGED
=
"chkUseAttendeesItemChanged"
CHKUSEOBSERVERS_ITEM_CHANGED
=
"chkUseObserversItemChanged"
CHKUSERESOURCEPERSONS_ITEM_CHANGED
=
"chkUseResourcePersonsItemChanged"
LISTPAGEDESIGN_ACTION_PERFORMED
=
"pageDesignChanged"
TXTTEMPLATENAME_TEXT_CHANGED
=
"templateTitleChanged"
BTNTEMPLATEPATH_ACTION_PERFORMED
=
"saveAs"
BTNINSERT_ACTION_PERFORMED
=
"insertRow"
BTNREMOVE_ACTION_PERFORMED
=
"removeRow"
BTNUP_ACTION_PERFORMED
=
"rowUp"
BTNDOWN_ACTION_PERFORMED
=
"rowDown"
INFO_IMAGE_URL
=
"private:resource/dbu/image/19205"
HID
=
41051
LISTPAGEDESIGN_HID
=
HelpIds
.
getHelpIdString
(
HID
+
6
)
CHKMINUTES_HID
=
HelpIds
.
getHelpIdString
(
HID
+
7
)
TXTTIME_HID
=
HelpIds
.
getHelpIdString
(
HID
+
8
)
TXTDATE_HID
=
HelpIds
.
getHelpIdString
(
HID
+
9
)
TXTTITLE_HID
=
HelpIds
.
getHelpIdString
(
HID
+
10
)
CBLOCATION_HID
=
HelpIds
.
getHelpIdString
(
HID
+
11
)
class
AgendaWizardDialogConst
:
TXTTITLE_TEXT_CHANGED
=
"txtTitleTextChanged"
TXTDATE_TEXT_CHANGED
=
"txtDateTextChanged"
TXTTIME_TEXT_CHANGED
=
"txtTimeTextChanged"
TXTLOCATION_TEXT_CHANGED
=
"txtLocationTextChanged"
CHKMINUTES_ITEM_CHANGED
=
"chkMinutesItemChanged"
CHKUSEMEETINGTYPE_ITEM_CHANGED
=
"chkUseMeetingTypeItemChanged"
CHKUSEREAD_ITEM_CHANGED
=
"chkUseReadItemChanged"
CHKUSEBRING_ITEM_CHANGED
=
"chkUseBringItemChanged"
CHKUSENOTES_ITEM_CHANGED
=
"chkUseNotesItemChanged"
CHKUSECALLEDBYNAME_ITEM_CHANGED
=
"chkUseCalledByItemChanged"
CHKUSEFACILITATOR_ITEM_CHANGED
=
"chkUseFacilitatorItemChanged"
CHKUSENOTETAKER_ITEM_CHANGED
=
"chkUseNoteTakerItemChanged"
CHKUSETIMEKEEPER_ITEM_CHANGED
=
"chkUseTimeKeeperItemChanged"
CHKUSEATTENDEES_ITEM_CHANGED
=
"chkUseAttendeesItemChanged"
CHKUSEOBSERVERS_ITEM_CHANGED
=
"chkUseObserversItemChanged"
CHKUSERESOURCEPERSONS_ITEM_CHANGED
=
"chkUseResourcePersonsItemChanged"
LISTPAGEDESIGN_ACTION_PERFORMED
=
"pageDesignChanged"
TXTTEMPLATENAME_TEXT_CHANGED
=
"templateTitleChanged"
BTNTEMPLATEPATH_ACTION_PERFORMED
=
"saveAs"
BTNINSERT_ACTION_PERFORMED
=
"insertRow"
BTNREMOVE_ACTION_PERFORMED
=
"removeRow"
BTNUP_ACTION_PERFORMED
=
"rowUp"
BTNDOWN_ACTION_PERFORMED
=
"rowDown"
CHKMEETINGTITLE_HID
=
HelpIds
.
getHelpIdString
(
HID
+
12
)
CHKREAD_HID
=
HelpIds
.
getHelpIdString
(
HID
+
13
)
CHKBRING_HID
=
HelpIds
.
getHelpIdString
(
HID
+
14
)
CHKNOTES_HID
=
HelpIds
.
getHelpIdString
(
HID
+
15
)
LISTPAGEDESIGN_HID
=
HelpIds
.
getHelpIdString
(
HID
+
6
)
CHKMINUTES_HID
=
HelpIds
.
getHelpIdString
(
HID
+
7
)
TXTTIME_HID
=
HelpIds
.
getHelpIdString
(
HID
+
8
)
TXTDATE_HID
=
HelpIds
.
getHelpIdString
(
HID
+
9
)
TXTTITLE_HID
=
HelpIds
.
getHelpIdString
(
HID
+
10
)
CBLOCATION_HID
=
HelpIds
.
getHelpIdString
(
HID
+
11
)
CHKCONVENEDBY_HID
=
HelpIds
.
getHelpIdString
(
HID
+
16
)
CHKPRESIDING_HID
=
HelpIds
.
getHelpIdString
(
HID
+
17
)
CHKNOTETAKER_HID
=
HelpIds
.
getHelpIdString
(
HID
+
18
)
CHKTIMEKEEPER_HID
=
HelpIds
.
getHelpIdString
(
HID
+
19
)
CHKATTENDEES_HID
=
HelpIds
.
getHelpIdString
(
HID
+
20
)
CHKOBSERVERS_HID
=
HelpIds
.
getHelpIdString
(
HID
+
21
)
CHKRESOURCEPERSONS_HID
=
HelpIds
.
getHelpIdString
(
HID
+
22
)
CHKMEETINGTITLE_HID
=
HelpIds
.
getHelpIdString
(
HID
+
12
)
CHKREAD_HID
=
HelpIds
.
getHelpIdString
(
HID
+
13
)
CHKBRING_HID
=
HelpIds
.
getHelpIdString
(
HID
+
14
)
CHKNOTES_HID
=
HelpIds
.
getHelpIdString
(
HID
+
15
)
TXTTEMPLATENAME_HID
=
HelpIds
.
getHelpIdString
(
HID
+
23
)
TXTTEMPLATEPATH_HID
=
HelpIds
.
getHelpIdString
(
HID
+
24
)
BTNTEMPLATEPATH_HID
=
HelpIds
.
getHelpIdString
(
HID
+
25
)
CHKCONVENEDBY_HID
=
HelpIds
.
getHelpIdString
(
HID
+
16
)
CHKPRESIDING_HID
=
HelpIds
.
getHelpIdString
(
HID
+
17
)
CHKNOTETAKER_HID
=
HelpIds
.
getHelpIdString
(
HID
+
18
)
CHKTIMEKEEPER_HID
=
HelpIds
.
getHelpIdString
(
HID
+
19
)
CHKATTENDEES_HID
=
HelpIds
.
getHelpIdString
(
HID
+
20
)
CHKOBSERVERS_HID
=
HelpIds
.
getHelpIdString
(
HID
+
21
)
CHKRESOURCEPERSONS_HID
=
HelpIds
.
getHelpIdString
(
HID
+
22
)
OPTCREATEAGENDA_HID
=
HelpIds
.
getHelpIdString
(
HID
+
26
)
OPTMAKECHANGES_HID
=
HelpIds
.
getHelpIdString
(
HID
+
27
)
TXTTEMPLATENAME_HID
=
HelpIds
.
getHelpIdString
(
HID
+
23
)
TXTTEMPLATEPATH_HID
=
HelpIds
.
getHelpIdString
(
HID
+
24
)
BTNTEMPLATEPATH_HID
=
HelpIds
.
getHelpIdString
(
HID
+
25
)
BTNINSERT_HID
=
HelpIds
.
getHelpIdString
(
HID
+
28
)
BTNREMOVE_HID
=
HelpIds
.
getHelpIdString
(
HID
+
29
)
BTNUP_HID
=
HelpIds
.
getHelpIdString
(
HID
+
30
)
BTNDOWN_HID
=
HelpIds
.
getHelpIdString
(
HID
+
31
)
OPTCREATEAGENDA_HID
=
HelpIds
.
getHelpIdString
(
HID
+
26
)
OPTMAKECHANGES_HID
=
HelpIds
.
getHelpIdString
(
HID
+
27
)
LAST_HID
=
HID
+
32
BTNINSERT_HID
=
HelpIds
.
getHelpIdString
(
HID
+
28
)
BTNREMOVE_HID
=
HelpIds
.
getHelpIdString
(
HID
+
29
)
BTNUP_HID
=
HelpIds
.
getHelpIdString
(
HID
+
30
)
BTNDOWN_HID
=
HelpIds
.
getHelpIdString
(
HID
+
31
)
wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py
Dosyayı görüntüle @
ec20c94a
...
...
@@ -15,14 +15,19 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
from
AgendaWizardDialog
import
*
from
AgendaTemplate
import
*
import
traceback
from
.AgendaWizardDialog
import
AgendaWizardDialog
from
.AgendaWizardDialogConst
import
HID
from
.AgendaTemplate
import
AgendaTemplate
,
TopicsControl
,
FileAccess
from
CGAgenda
import
CGAgenda
from
wizards.ui.PathSelection
import
PathSelection
from
wizards.ui.event.UnoDataAware
import
UnoDataAware
from
wizards.ui.event.RadioDataAware
import
RadioDataAware
from
wizards.common.NoValidPathException
import
NoValidPathException
from
wizards.common.SystemDialog
import
SystemDialog
from
..ui.PathSelection
import
PathSelection
from
..ui.event.UnoDataAware
import
UnoDataAware
from
..ui.event.RadioDataAware
import
RadioDataAware
from
..common.NoValidPathException
import
NoValidPathException
from
..common.SystemDialog
import
SystemDialog
from
..common.Desktop
import
Desktop
from
..common.HelpIds
import
HelpIds
from
..common.Configuration
import
Configuration
from
com.sun.star.view.DocumentZoomType
import
OPTIMAL
from
com.sun.star.awt.VclWindowPeerAttribute
import
YES_NO
,
DEF_NO
...
...
@@ -43,31 +48,20 @@ class AgendaWizardDialogImpl(AgendaWizardDialog):
def
leaveStep
(
self
,
OldStep
,
NewStep
):
pass
'''
used in developement to start the wizard
'''
@classmethod
def
main
(
self
,
args
):
def
main
(
self
):
#Call the wizard remotely(see README)
try
:
ConnectStr
=
\
"uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
try
:
xLocMSF
=
Desktop
.
connect
(
ConnectStr
)
wizard
=
AgendaWizardDialogImpl
(
xLocMSF
)
wizard
.
startWizard
()
except
Exception
,
exception
:
traceback
.
print_exc
()
'''
read the configuration data, open the specified template,
initialize the template controller (AgendaTemplate) and
set the status of the displayed template to the one
read from the configuration.
build the dialog.
Synchronize the dialog to the same status (read from
the configuration).
show the dialog.
'''
lw
=
AgendaWizardDialogImpl
(
xLocMSF
)
lw
.
startWizard
()
except
Exception
as
e
:
print
(
"Wizard failure exception "
+
str
(
type
(
e
))
+
" message "
+
str
(
e
)
+
" args "
+
str
(
e
.
args
)
+
traceback
.
format_exc
())
def
startWizard
(
self
):
self
.
running
=
True
...
...
@@ -134,8 +128,7 @@ class AgendaWizardDialogImpl(AgendaWizardDialog):
self
.
myPathSelection
.
sDefaultDirectory
=
self
.
sUserTemplatePath
self
.
myPathSelection
.
sDefaultName
=
"myAgendaTemplate.ott"
self
.
myPathSelection
.
sDefaultFilter
=
"writer8_template"
self
.
myPathSelection
.
addSelectionListener
(
self
.
myPathSelectionListener
())
self
.
myPathSelection
.
addSelectionListener
(
self
)
def
initializePaths
(
self
):
try
:
...
...
@@ -173,7 +166,8 @@ class AgendaWizardDialogImpl(AgendaWizardDialog):
self
.
agenda
.
readConfiguration
(
root
,
"cp_"
)
self
.
setControlProperty
(
"listPageDesign"
,
"StringItemList"
,
tuple
(
self
.
agendaTemplates
[
0
]))
"listPageDesign"
,
"StringItemList"
,
tuple
(
self
.
agendaTemplates
.
keys
()))
self
.
checkSavePath
()
UnoDataAware
.
attachListBox
(
self
.
agenda
,
"cp_AgendaType"
,
self
.
listPageDesign
,
True
)
.
updateUI
()
...
...
@@ -271,7 +265,7 @@ class AgendaWizardDialogImpl(AgendaWizardDialog):
if
AgendaWizardDialogImpl
.
pageDesign
is
not
SelectedItemPos
:
AgendaWizardDialogImpl
.
pageDesign
=
SelectedItemPos
self
.
agendaTemplate
.
load
(
self
.
agendaTemplates
[
1
]
[
SelectedItemPos
],
self
.
agendaTemplates
.
values
()
[
SelectedItemPos
],
self
.
topicsControl
.
scrollfields
)
except
Exception
:
traceback
.
print_exc
()
...
...
@@ -422,7 +416,7 @@ class AgendaWizardDialogImpl(AgendaWizardDialog):
if
fileAccess
.
exists
(
self
.
sPath
,
True
):
answer
=
SystemDialog
.
showMessageBox
(
self
.
xMSF
,
"MessBox"
,
YES_NO
+
DEF_NO
,
self
.
resources
.
res
FileExists
,
self
.
resources
.
res
OverwriteWarning
,
self
.
xUnoDialog
.
Peer
)
if
answer
==
3
:
# user said: no, do not overwrite
...
...
wizards/com/sun/star/wizards/agenda/AgendaWizardDialogResources.py
Dosyayı görüntüle @
ec20c94a
...
...
@@ -166,5 +166,5 @@ class AgendaWizardDialogResources(Resource):
self
.
resButtonDown
=
self
.
getResText
(
AgendaWizardDialogResources
.
RID_AGENDAWIZARDDIALOG_START
+
71
)
self
.
res
FileExists
=
self
.
getResText
(
self
.
res
OverwriteWarning
=
self
.
getResText
(
AgendaWizardDialogResources
.
RID_COMMON_START
+
19
)
wizards/com/sun/star/wizards/agenda/TopicsControl.py
Dosyayı görüntüle @
ec20c94a
...
...
@@ -16,11 +16,12 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
from
threading
import
RLock
from
CGTopic
import
CGTopic
from
wizards.ui.ControlScroller
import
*
from
AgendaWizardDialogConst
import
LAST_HID
from
wizards.common.Properties
import
Properties
from
wizards.ui.event.CommonListener
import
FocusListenerProcAdapter
,
KeyListenerProcAdapter
from
.CGTopic
import
CGTopic
from
..ui.ControlScroller
import
*
from
.AgendaWizardDialogConst
import
HID
from
..common.Properties
import
Properties
from
..ui.event.CommonListener
import
FocusListenerProcAdapter
,
\
KeyListenerProcAdapter
from
com.sun.star.awt.Key
import
DOWN
,
UP
,
TAB
from
com.sun.star.awt.KeyModifier
import
SHIFT
,
MOD1
...
...
@@ -115,7 +116,7 @@ class TopicsControl(ControlScroller):
def
__init__
(
self
,
dialog
,
xmsf
,
agenda
):
try
:
super
(
TopicsControl
,
self
)
.
__init__
(
dialog
,
xmsf
,
5
,
92
,
38
,
212
,
5
,
18
,
LAST_HID
)
dialog
,
xmsf
,
5
,
92
,
38
,
212
,
5
,
18
,
HID
+
32
)
self
.
initializeScrollFields
(
agenda
)
# set some focus listeners for TAB scroll down and up...
# prepare scroll down on tab press...
...
...
wizards/com/sun/star/wizards/common/FileAccess.py
Dosyayı görüntüle @
ec20c94a
...
...
@@ -307,7 +307,7 @@ class FileAccess(object):
return
False
@classmethod
def
getFolderTitles
(
self
,
xMSF
,
FilterName
,
FolderName
,
resDict
):
def
getFolderTitles
(
self
,
xMSF
,
FilterName
,
FolderName
,
resDict
=
None
):
#Returns and ordered dict containing the template's name and path
LocLayoutFiles
=
{}
...
...
@@ -326,6 +326,9 @@ class FileAccess(object):
fileName
=
self
.
getFilename
(
i
)
if
FilterName
is
None
or
fileName
.
startswith
(
FilterName
):
xDocInterface
.
loadFromMedium
(
i
,
tuple
())
if
resDict
is
None
:
title
=
xDocInterface
.
Title
else
:
if
xDocInterface
.
Title
in
resDict
:
# localise string at runtime
title
=
resDict
[
xDocInterface
.
Title
]
...
...
wizards/com/sun/star/wizards/ui/UnoDialog2.py
Dosyayı görüntüle @
ec20c94a
...
...
@@ -20,7 +20,8 @@ from .UIConsts import UIConsts
from
..common.Desktop
import
Desktop
from
..common.PropertyNames
import
PropertyNames
from
.event.CommonListener
import
ItemListenerProcAdapter
,
\
ActionListenerProcAdapter
,
TextListenerProcAdapter
ActionListenerProcAdapter
,
TextListenerProcAdapter
,
\
AdjustmentListenerProcAdapter
'''
This class contains convenience methods for inserting components to a dialog.
...
...
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