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
2bd57a62
Kaydet (Commit)
2bd57a62
authored
Tem 11, 2011
tarafından
Xisco Fauli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#37290: migrate Basic to new resource service
üst
34fd3756
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
Misc.xba
wizards/source/tools/Misc.xba
+10
-7
No files found.
wizards/source/tools/Misc.xba
Dosyayı görüntüle @
2bd57a62
...
...
@@ -271,14 +271,18 @@ End Sub
Function InitResources(Description, ShortDescription as String) as boolean
Dim xResource as Object
Dim aArgs(0) as String
On Error Goto ErrorOcurred
oResSrv = createUnoService(
"
com.sun.star.resource.VclStringResourceLoader
"
)
If (IsNull(oResSrv)) then
aArgs(0) = ShortDescription
oConfigProvider = createUnoService(
"
com.sun.star.configuration.ConfigurationProvider
"
)
xResource = getProcessServiceManager().createInstanceWithArguments(
"
org.libreoffice.resource.ResourceIndexAccess
"
, aArgs() )
If (IsNull(xResource)) then
InitResources = FALSE
MsgBox(
Description
&
"
: No resource loader found
"
, 16, GetProductName()
)
MsgBox(
"
could not initialize ResourceIndexAccess
"
)
Else
InitResources = TRUE
oResSrv
.FileName = ShortDescription
oResSrv
= xResource.getByName(
"
String
"
)
End If
Exit Function
ErrorOcurred:
...
...
@@ -294,7 +298,7 @@ End Function
Function GetResText( nID as integer ) As string
On Error Goto ErrorOcurred
If Not IsNull(oResSrv) Then
GetResText = oResSrv.get
String
( nID )
GetResText = oResSrv.get
ByIndex
( nID )
Else
GetResText =
""
End If
...
...
@@ -814,4 +818,4 @@ End Sub
Function CalIsLeapYear(ByVal iYear as Integer) as Boolean
CalIsLeapYear = ((iYear Mod 4 = 0) And ((iYear Mod 100
<>
0) Or (iYear Mod 400 = 0)))
End Function
</script:module>
\ No newline at end of file
</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