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
3d3594a2
Kaydet (Commit)
3d3594a2
authored
Agu 20, 2018
tarafından
Matthias Seidel
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deleted whitespace, fixed missing paranthesis
üst
4d45eb6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ReadDir.xba
wizards/source/gimmicks/ReadDir.xba
+9
-9
No files found.
wizards/source/gimmicks/ReadDir.xba
Dosyayı görüntüle @
3d3594a2
...
@@ -90,7 +90,7 @@ Dim FileNames() as String
...
@@ -90,7 +90,7 @@ Dim FileNames() as String
ToggleDialogControls(False)
ToggleDialogControls(False)
oProgressBar.ProgressValueMin = 0
oProgressBar.ProgressValueMin = 0
oProgressBar.ProgressValueMax = 100
oProgressBar.ProgressValueMax = 100
bStartUpRun
= True
bStartUpRun = True
nOldHeight = 200
nOldHeight = 200
nOldY = SBPAGEY
nOldY = SBPAGEY
nOldX = SBPAGEX
nOldX = SBPAGEX
...
@@ -159,7 +159,7 @@ Dim FileNames() as String
...
@@ -159,7 +159,7 @@ Dim FileNames() as String
nOldLevel = iCurLevel
nOldLevel = iCurLevel
Next i
Next i
ToggleDialogControls(True)
ToggleDialogControls(True)
DlgReadDir.Model.cmdGoOn.Enabled = False
DlgReadDir.Model.cmdGoOn.Enabled = False
End Sub
End Sub
...
@@ -169,7 +169,7 @@ Dim aPoint As New com.sun.star.awt.Point
...
@@ -169,7 +169,7 @@ Dim aPoint As New com.sun.star.awt.Point
aPoint.X = CalculateXPoint()
aPoint.X = CalculateXPoint()
aPoint.Y = nOldY + SBRELDIST * nOldHeight
aPoint.Y = nOldY + SBRELDIST * nOldHeight
nOldY
= aPoint.Y
nOldY = aPoint.Y
oTextShape = oDocument.createInstance(
"
com.sun.star.drawing.TextShape
"
)
oTextShape = oDocument.createInstance(
"
com.sun.star.drawing.TextShape
"
)
oTextShape.LineStyle = 1
oTextShape.LineStyle = 1
...
@@ -180,7 +180,7 @@ Dim aPoint As New com.sun.star.awt.Point
...
@@ -180,7 +180,7 @@ Dim aPoint As New com.sun.star.awt.Point
oTextShape.TextAutoGrowHeight = TRUE
oTextShape.TextAutoGrowHeight = TRUE
oTextShape.String = FileName
oTextShape.String = FileName
'
Configure Size And Position of the TextShape
according to its Scripting
'
Configure Size And Position of the TextShape according to its Scripting
aPoint.X = iLevelPos(iCurLevel,SBBASEX)
aPoint.X = iLevelPos(iCurLevel,SBBASEX)
oTextShape.Position = aPoint
oTextShape.Position = aPoint
CreateTextShape() = oTextShape
CreateTextShape() = oTextShape
...
@@ -249,7 +249,7 @@ Dim MaxFileIndex as Integer
...
@@ -249,7 +249,7 @@ Dim MaxFileIndex as Integer
m = m + 1
m = m + 1
DirContent() = oUcbObject.GetFolderContents(Source,True)
DirContent() = oUcbObject.GetFolderContents(Source,True)
If Ubound(DirContent())
<>
-1 Then
If Ubound(DirContent())
<>
-1 Then
MaxFileIndex
= Ubound(DirContent())
MaxFileIndex
= Ubound(DirContent())
For i = 0 to MaxFileIndex
For i = 0 to MaxFileIndex
FileName = DirContent(i)
FileName = DirContent(i)
FileNameList(n,0) = FileName
FileNameList(n,0) = FileName
...
@@ -266,7 +266,7 @@ Dim MaxFileIndex as Integer
...
@@ -266,7 +266,7 @@ Dim MaxFileIndex as Integer
End If
End If
Next i
Next i
End If
End If
Loop Until m
>
Ubound(DirList()
Loop Until m
>
Ubound(DirList()
)
ReDim Preserve FileNameList(n-1,1) as String
ReDim Preserve FileNameList(n-1,1) as String
ReadSourceDirectory() = FileNameList()
ReadSourceDirectory() = FileNameList()
End Function
End Function
...
@@ -277,16 +277,16 @@ Sub CloseDialog
...
@@ -277,16 +277,16 @@ Sub CloseDialog
End Sub
End Sub
Sub
AdjustPageHeight(lShapeHeight, FileCount)
Sub
AdjustPageHeight(lShapeHeight, FileCount)
Dim lNecHeight as Long
Dim lNecHeight as Long
Dim lBorders as Long
Dim lBorders as Long
oDocument.LockControllers
oDocument.LockControllers
lBorders = oPage.BorderTop + oPage.BorderBottom
lBorders = oPage.BorderTop + oPage.BorderBottom
lNecHeight = SBPAGEY + (FileCount * SBRELDIST * lShapeHeight)
lNecHeight = SBPAGEY + (FileCount * SBRELDIST * lShapeHeight)
If lNecHeight
>
(oPage.Height - lBorders) Then
If lNecHeight
>
(oPage.Height - lBorders) Then
oPage.Height = lNecHeight + lBorders + 500
oPage.Height = lNecHeight + lBorders + 500
End If
End If
oDocument.UnlockControllers
oDocument.UnlockControllers
End Sub
End Sub
...
...
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