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
fb6af74f
Kaydet (Commit)
fb6af74f
authored
Agu 07, 2003
tarafından
Jens-Heiner Rechtien
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS qadev0xa (1.1.20); FILE MERGED
2003/07/04 13:57:12 cn 1.1.20.1: CHG: #110380# fix for XSortable
üst
38754f2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
2 deletions
+49
-2
sc_ScTableSheetObj.xba
...tests/basic/mod/sc/ScTableSheetObj/sc_ScTableSheetObj.xba
+49
-2
No files found.
qadevOOo/tests/basic/mod/sc/ScTableSheetObj/sc_ScTableSheetObj.xba
Dosyayı görüntüle @
fb6af74f
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
'*
'*
'* $RCSfile: sc_ScTableSheetObj.xba,v $
'* $RCSfile: sc_ScTableSheetObj.xba,v $
'*
'*
'* $Revision: 1.
1
$
'* $Revision: 1.
2
$
'*
'*
'* last change:$Date: 2003-0
1-27 18:00:44
$
'* last change:$Date: 2003-0
8-07 15:07:05
$
'*
'*
'* The Contents of this file are made available subject to the terms of
'* The Contents of this file are made available subject to the terms of
'* either of the following licenses
'* either of the following licenses
...
@@ -107,4 +107,51 @@ Exit Sub
...
@@ -107,4 +107,51 @@ Exit Sub
ErrHndl:
ErrHndl:
Test.Exception()
Test.Exception()
End Sub
End Sub
Function modifyDescriptor(descr As Variant) As Variant
On Error Goto ErrHndl
Dim i As Integer, n as Integer
Dim oCell As Object
Dim vFields(0) as new com.sun.star.table.TableSortField
for i = 0 to 10 - 1
oCell = oObj.getCellByPosition(0, i)
oCell.String = "" + (10 - i)
oCell.setFormula(10 - i)
next i
'ShowNameValuePair(descr)
vFields(0).IsCaseSensitive = false
vFields(0).IsAscending = true
vFields(0).FieldType = com.sun.star.table.TableSortFieldType.ALPHANUMERIC
for i = 0 to ubound(descr)
if descr(i).Name = "IsSortColumns" then descr(i).Value = false
if descr(i).Name = "SortFields" then descr(i).Value = vFields()
next i
modifyDescriptor() = descr
Exit Function
ErrHndl:
Out.Log("Exception in ScTableSheetObj.modifyDescriptor() :")
Test.Exception()
end Function
Function checkSort() As Boolean
On Error Goto ErrHndl
Dim i As Integer, oCell As Object
Dim bOK As Boolean
bOK = true
for i = 0 to 10 - 1
oCell = oObj.getCellByPosition(0,i)
bOK = bOK AND oCell.String = "" + (i + 1)
out.dbg(oCell.String + ":" + (i+1))
next i
checkSort() = bOK
Exit Function
ErrHndl:
Out.Log("Exception in ScTableSheetObj.checkSort() :")
Test.Exception()
end Function
</script:module>
</script:module>
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