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
efa0451d
Kaydet (Commit)
efa0451d
authored
Şub 10, 2013
tarafından
Xisco Fauli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pyagenda: remove placeholder when text is not empty
Change-Id: I06ae1815ec1bd904e944929f1b50a0ee95a6a5ae
üst
2f7bd777
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
AgendaDocument.py
wizards/com/sun/star/wizards/agenda/AgendaDocument.py
+7
-4
No files found.
wizards/com/sun/star/wizards/agenda/AgendaDocument.py
Dosyayı görüntüle @
efa0451d
...
...
@@ -662,7 +662,6 @@ class ItemsTable(object):
# should this section be visible?
visible
=
False
# write items
# ===========
cellName
=
""
'''
now go through all items that belong to this
...
...
@@ -689,8 +688,6 @@ class ItemsTable(object):
if
not
visible
:
return
'''
remove obsolete rows
====================
if the cell that was last written is the current cell,
it means this is the end of the table, so we end here.
(because after getting the cellName above,
...
...
@@ -889,6 +886,7 @@ class PlaceholderTextElement(TextElement):
self
.
text
=
placeHolderText_
self
.
hint
=
hint_
self
.
xmsf
=
xmsf_
self
.
xTextContentList
=
[]
def
write
(
self
,
textRange
):
textRange
.
String
=
self
.
placeHolderText
...
...
@@ -896,11 +894,16 @@ class PlaceholderTextElement(TextElement):
try
:
xTextContent
=
AgendaDocument
.
createPlaceHolder
(
self
.
xmsf
,
self
.
text
,
self
.
hint
)
self
.
xTextContentList
.
append
(
xTextContent
)
textRange
.
Text
.
insertTextContent
(
textRange
.
Start
,
xTextContent
,
True
)
except
Exception
:
traceback
.
print_exc
()
else
:
if
self
.
xTextContentList
:
for
i
in
self
.
xTextContentList
:
textRange
.
Text
.
removeTextContent
(
i
)
self
.
xTextContentList
=
[]
'''
An Agenda element which writes no text, but inserts a placeholder, and formats
it using a ParaStyleName.
...
...
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