diff options
Diffstat (limited to 'wizards/source/webwizard/Language.xba')
-rw-r--r-- | wizards/source/webwizard/Language.xba | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/wizards/source/webwizard/Language.xba b/wizards/source/webwizard/Language.xba index a3c8bc66fdb0..c1d5eadee5a0 100644 --- a/wizards/source/webwizard/Language.xba +++ b/wizards/source/webwizard/Language.xba @@ -3,6 +3,8 @@ <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Language" script:language="StarBasic">Option Explicit + + Sub LoadLanguage() If InitResources("WebWizard","wwz") Then WebWiz_gErrContentNotFound = GetResText(1101) @@ -16,16 +18,38 @@ Sub LoadLanguage() End Sub -Sub GetPaths - TextureDir = GetOfficeSubPath("Gallery", "www-back/") - GraphicsDir = GetOfficeSubPath("Gallery", "www-graf/") - BulletDir = GetOfficeSubPath("Gallery", "bullets/") - PhotosDir = GetPathSettings("Gallery", False, 1) -End Sub +Function GetWebWizardPaths() as Boolean +Dim TemplatePath as String + TextureDir = GetOfficeSubPath("Gallery","www-back") + If TextureDir <> "" Then + GraphicsDir = GetOfficeSubPath("Gallery","www-graf/") + If GraphicsDir <> "" Then + BulletDir = GetOfficeSubPath("Gallery", "bullets/") + If BulletDir <> "" Then + PhotosDir = GetPathSettings("Gallery", False, 1) + If PhotosDir <> "" Then + TemplatePath = GetOfficeSubPath("Template", "wizard/web/") + If TemplatePath <> "" Then + SOBitmapPath = GetOfficeSubPath("Template", "wizard/bitmap") + If SOBitmapPath <> "" Then + GetWebwizardPaths() = True + Exit Function + End If + End If + End If + End If + End If + End If + If Not IsNull(oDocument) Then + oBaseDocument.dispose() + End If + GetWebWizardPaths() = False +End Function + Sub OpenWebDialog() - Dim SOBitmapPath,sBitmapPath as String + Dim sBitmapPath as String Dim BufferNames() as String Dim SelList(0) as Integer SelList(0) = 0 @@ -52,8 +76,6 @@ Sub OpenWebDialog() BufferNames() = ArrayfromMultiArray(Style, 1) DialogModel.lbStyles.StringItemList() = BufferNames() DialogModel.lbStyles.SelectedItems() = SelList() - - SOBitmapPath = GetOfficeSubPath("Template", "wizard/bitmap") sBitmapPath = SOBitmapPath & "webwizard.bmp" DialogModel.ImagePreview.ImageURL = sBitmapPath |