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
5bbc0068
Kaydet (Commit)
5bbc0068
authored
Ock 20, 2013
tarafından
Xisco Fauli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pyagenda: table's cells are TextElement
Change-Id: Ica2289b710369b8d319991fde311d10f64acd295
üst
7f038472
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
12 deletions
+18
-12
AgendaDocument.py
wizards/com/sun/star/wizards/agenda/AgendaDocument.py
+14
-8
TopicsControl.py
wizards/com/sun/star/wizards/agenda/TopicsControl.py
+3
-3
ControlScroller.py
wizards/com/sun/star/wizards/ui/ControlScroller.py
+1
-1
No files found.
wizards/com/sun/star/wizards/agenda/AgendaDocument.py
Dosyayı görüntüle @
5bbc0068
...
...
@@ -844,16 +844,18 @@ class Topics(object):
# analyze the structure of the topic rows.
while
not
cursor
.
RangeName
==
afterLastCell
:
cell
=
Topics
.
table
.
getCellByName
(
cursor
.
RangeName
)
# first I store the content and para style of the cell
ae
=
TextElement
(
cell
,
cell
.
String
)
# if the cell contains a relevant <...>
# i add the text element to the hash,
# so it's text can be updated later.
try
:
if
items
[
cell
.
CellName
]
is
not
None
:
self
.
topicItems
[
cell
.
String
.
lower
()
.
lstrip
()]
=
cell
self
.
topicItems
[
cell
.
String
.
lower
()
.
lstrip
()]
=
ae
except
KeyError
:
pass
Topics
.
topicCells
.
append
(
cell
)
Topics
.
topicCells
.
append
(
ae
)
# goto next cell.
cursor
.
goRight
(
1
,
False
)
'''
...
...
@@ -886,22 +888,25 @@ class Topics(object):
size
=
topic
-
len
(
self
.
writtenTopics
)
self
.
writtenTopics
+=
[
None
]
*
size
self
.
writtenTopics
.
insert
(
topic
,
""
)
# make sure thre
r
are enough rows for me...
# make sure thre
e
are enough rows for me...
rows
=
self
.
agenda
.
getRowCount
(
Topics
.
table
)
reqRows
=
1
+
(
topic
+
1
)
*
Topics
.
rowsPerTopic
firstRow
=
reqRows
-
Topics
.
rowsPerTopic
+
1
diff
=
reqRows
-
rows
if
diff
>
0
:
self
.
agenda
.
insertTableRows
(
Topics
.
table
,
rows
,
diff
)
# set the item's text...
'''self.setItemText(Topics.numCell, data[0].Value)
self
.
agenda
.
insertTableRows
(
Topics
.
table
,
rows
,
diff
)
self
.
setItemText
(
Topics
.
numCell
,
data
[
0
]
.
Value
)
self
.
setItemText
(
Topics
.
topicCell
,
data
[
1
]
.
Value
)
self
.
setItemText
(
Topics
.
responsibleCell
,
data
[
2
]
.
Value
)
self.setItemText(Topics.timeCell, data[3].Value)
'''
self
.
setItemText
(
Topics
.
timeCell
,
data
[
3
]
.
Value
)
# now write !
cursor
=
Topics
.
table
.
createCursorByCellName
(
"A"
+
str
(
firstRow
))
for
i
in
Topics
.
topicCells
:
self
.
write
(
Topics
.
table
.
getCellByName
(
cursor
.
RangeName
))
i
.
placeHolderText
=
\
Topics
.
table
.
getCellByName
(
cursor
.
RangeName
)
.
String
i
.
write
()
cursor
.
goRight
(
1
,
False
)
# now format !
cursor
.
gotoCellByName
(
"A"
+
str
(
firstRow
),
False
)
...
...
@@ -961,7 +966,8 @@ class Topics(object):
cursor
.
goRight
(
cursorMoves
,
False
)
xc
=
Topics
.
table
.
getCellByName
(
cursor
.
RangeName
)
# and write it !
te
.
write
(
xc
)
te
.
placeHolderText
=
xc
.
String
te
.
write
()
'''writes the given topic.
if the first topic was involved, reformat the
...
...
wizards/com/sun/star/wizards/agenda/TopicsControl.py
Dosyayı görüntüle @
5bbc0068
...
...
@@ -392,12 +392,12 @@ class TopicsControl(ControlScroller):
'''
while
len
(
ControlScroller
.
scrollfields
)
>
1
\
and
self
.
isRowEmpty
(
len
(
ControlScroller
.
scrollfields
)
-
2
):
removeLastRow
()
self
.
removeLastRow
()
cr
=
self
.
ControlGroupVector
[
ControlScroller
.
scrollfields
.
size
-
ControlScroller
.
nscrollvalue
-
1
]
len
(
ControlScroller
.
scrollfields
)
-
ControlScroller
.
nscrollvalue
-
1
]
# if a remove was performed, set focus
#to the last row with some data in it...
self
.
focus
(
getControl
(
cr
,
column
))
self
.
focus
(
self
.
getControl
(
cr
,
column
))
# update the preview document.
self
.
reduceDocumentToTopics
()
...
...
wizards/com/sun/star/wizards/ui/ControlScroller.py
Dosyayı görüntüle @
5bbc0068
...
...
@@ -99,7 +99,7 @@ class ControlScroller(object):
if
_ntotfieldcount
is
not
None
:
self
.
setTotalFieldCount
(
_ntotfieldcount
)
if
_nscrollvalue
>=
0
:
ControlScroller
.
xScrollBar
.
xDialog
Model
.
ScrollValue
=
_nscrollvalue
ControlScroller
.
xScrollBar
.
Model
.
ScrollValue
=
_nscrollvalue
self
.
scrollControls
()
@classmethod
...
...
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