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
1b5ea3ef
Kaydet (Commit)
1b5ea3ef
authored
Ock 21, 2003
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updates needed for document support (improved support for refresh)
üst
df0fb4af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
2 deletions
+44
-2
ScriptBinding.xba
scripting/workben/bindings/ScriptBinding.xba
+44
-2
No files found.
scripting/workben/bindings/ScriptBinding.xba
Dosyayı görüntüle @
1b5ea3ef
...
@@ -41,12 +41,54 @@ REM ------ Storage Refresh Function ------
...
@@ -41,12 +41,54 @@ REM ------ Storage Refresh Function ------
sub RefreshUserScripts()
sub RefreshUserScripts()
'
TDB - change Menu bindings to allow user to refresh all, user, share or document script
RefreshAppScripts(
"
USER
"
)
end sub
sub RefreshAllScripts()
RefreshAppScripts(
"
USER
"
)
RefreshAppScripts(
"
SHARE
"
)
RefreshDocumentScripts
end sub
sub RefreshAppScripts( appName as String )
On Error Goto ErrorHandler
smgr = getProcessServiceManager()
context = smgr.getPropertyValue(
"
DefaultContext
"
)
scriptstoragemgr = context.getValueByName(
"
/singletons/drafts.com.sun.star.script.framework.storage.theScriptStorageManager
"
)
scriptstoragemgr.refreshScriptStorage( appName )
Exit sub
ErrorHandler:
reset
MsgBox (
"
Error: Unable to refresh Java (scripts)
"
+ chr$(10) + chr$(10)+
"
Detail:
"
&
error$ + chr$(10) + chr$(10)+
"
Action: Please restart Office
"
,0,
"
Error
"
)
end sub
sub RefreshDocumentScripts()
On Error Goto ErrorHandler
smgr = getProcessServiceManager()
smgr = getProcessServiceManager()
context = smgr.getPropertyValue(
"
DefaultContext
"
)
context = smgr.getPropertyValue(
"
DefaultContext
"
)
scriptstoragemgr = context.getValueByName(
"
/singletons/drafts.com.sun.star.script.framework.storage.theScriptStorageManager
"
)
scriptstoragemgr = context.getValueByName(
"
/singletons/drafts.com.sun.star.script.framework.storage.theScriptStorageManager
"
)
storage = scriptstoragemgr.getScriptStorage( 1 )
oDocURL = ThisComponent.GetCurrentController.getModel.getURL
storage.refresh()
On Error Goto ErrorHandlerDoc
scriptstoragemgr.refreshScriptStorage( oDocURL )
Exit sub
ErrorHandlerDoc:
reset
'
Ignore document script errors as it will happen when refreshing an unsaved doc
Exit sub
ErrorHandler:
reset
MsgBox (
"
Error: Unable to refresh Java (scripts)
"
+ chr$(10) + chr$(10)+
"
Detail:
"
&
error$ + chr$(10) + chr$(10)+
"
Action: Please restart Office
"
,0,
"
Error
"
)
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