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
0ff42915
Kaydet (Commit)
0ff42915
authored
Kas 08, 2012
tarafından
Xisco Fauli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pyagenda: remove duplicate code
Change-Id: I673818e6ab3ed5c430b9891af5c4bd5fe7ab146f
üst
531b7136
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
AgendaTemplate.py
wizards/com/sun/star/wizards/agenda/AgendaTemplate.py
+7
-8
No files found.
wizards/com/sun/star/wizards/agenda/AgendaTemplate.py
Dosyayı görüntüle @
0ff42915
...
@@ -173,7 +173,6 @@ class AgendaTemplate(TextDocument):
...
@@ -173,7 +173,6 @@ class AgendaTemplate(TextDocument):
def
redraw
(
self
,
itemName
):
def
redraw
(
self
,
itemName
):
AgendaTemplate
.
xTextDocument
.
lockControllers
()
AgendaTemplate
.
xTextDocument
.
lockControllers
()
try
:
try
:
print
"kinki"
# get the table in which the item is...
# get the table in which the item is...
itemsTable
=
AgendaTemplate
.
itemsMap
[
itemName
]
itemsTable
=
AgendaTemplate
.
itemsMap
[
itemName
]
# rewrite the table.
# rewrite the table.
...
@@ -450,9 +449,9 @@ class AgendaTemplate(TextDocument):
...
@@ -450,9 +449,9 @@ class AgendaTemplate(TextDocument):
@classmethod
@classmethod
def
writeTitle
(
self
,
te
,
tr
,
text
):
def
writeTitle
(
self
,
te
,
tr
,
text
):
if
text
is
None
:
if
text
is
None
:
te
.
t
ext
=
""
te
.
placeHolderT
ext
=
""
else
:
else
:
te
.
t
ext
=
text
te
.
placeHolderT
ext
=
text
te
.
write
(
tr
)
te
.
write
(
tr
)
@classmethod
@classmethod
...
@@ -1141,18 +1140,18 @@ inserts a placeholder instead.
...
@@ -1141,18 +1140,18 @@ inserts a placeholder instead.
class
PlaceholderTextElement
(
TextElement
):
class
PlaceholderTextElement
(
TextElement
):
def
__init__
(
self
,
textRange
,
placeHolderText_
,
hint_
,
xmsf_
):
def
__init__
(
self
,
textRange
,
placeHolderText_
,
hint_
,
xmsf_
):
super
(
PlaceholderTextElement
,
self
)
.
__init__
(
textRange
,
placeHolderText_
)
super
(
PlaceholderTextElement
,
self
)
.
__init__
(
textRange
,
""
)
self
.
placeHolderT
ext
=
placeHolderText_
self
.
t
ext
=
placeHolderText_
self
.
hint
=
hint_
self
.
hint
=
hint_
self
.
xmsf
=
xmsf_
self
.
xmsf
=
xmsf_
def
write
(
self
,
textRange
):
def
write
(
self
,
textRange
):
textRange
.
String
=
self
.
t
ext
textRange
.
String
=
self
.
placeHolderT
ext
if
self
.
text
is
None
or
self
.
t
ext
==
""
:
if
self
.
placeHolderText
is
None
or
self
.
placeHolderT
ext
==
""
:
try
:
try
:
xTextContent
=
AgendaTemplate
.
createPlaceHolder
(
xTextContent
=
AgendaTemplate
.
createPlaceHolder
(
self
.
xmsf
,
self
.
placeHolderT
ext
,
self
.
hint
)
self
.
xmsf
,
self
.
t
ext
,
self
.
hint
)
textRange
.
Text
.
insertTextContent
(
textRange
.
Text
.
insertTextContent
(
textRange
.
Start
,
xTextContent
,
True
)
textRange
.
Start
,
xTextContent
,
True
)
except
Exception
,
ex
:
except
Exception
,
ex
:
...
...
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