summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorTom Verbeek <tv@openoffice.org>2001-04-25 11:41:49 +0000
committerTom Verbeek <tv@openoffice.org>2001-04-25 11:41:49 +0000
commit868bf5b96d671fe53581c3e930b0510c25496f76 (patch)
treeb377e5502e65ac181df6eeeebe4205163c78c9a9 /wizards
parentd42df69c7e48f8a5270036e428d08e8b0876f655 (diff)
fixed 'LoadLibrary'
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/template/ModuleAgenda.xba18
-rw-r--r--wizards/source/template/Samples.xba2
2 files changed, 10 insertions, 10 deletions
diff --git a/wizards/source/template/ModuleAgenda.xba b/wizards/source/template/ModuleAgenda.xba
index 8291940012f5..b840c05bd009 100644
--- a/wizards/source/template/ModuleAgenda.xba
+++ b/wizards/source/template/ModuleAgenda.xba
@@ -10,13 +10,13 @@ Dim DlgAgenda_gMyName as String
Public TemplateDialog as Object
Public DialogModel as Object
Public sTrueContent as String
-Public Bookmarkname as String
+Public Bookmarkname as String
Sub Initialize()
&apos; User sets the type of minutes
- LoadLibrary( &quot;Tools&quot; )
+ BasicLibraries.LoadLibrary( &quot;Tools&quot; )
TemplateDialog = LoadDialog(&quot;Template&quot;, &quot;TemplateDialog&quot;)
DialogModel = TemplateDialog.Model
DialogModel.Step = 1
@@ -44,12 +44,12 @@ End Sub
Sub ModifyTemplate()
Dim oDocument, oBookmarks, oBookmark, oBookmarkCursor, oTextField as Object
Dim i as Integer
-
+
oDocument = StarDesktop.ActiveFrame.Controller.Model
oBookMarks = oDocument.Bookmarks
On Local Error Goto NOBOOKMARK
-&apos; Todo: auch beim Schließen des Dialogs muss was passieren
+&apos; Todo: auch beim Schließen des Dialogs muss was passieren
TemplateDialog.EndExecute
DialogExited = TRUE
oBookmarkCursor = CreateBookmarkCursor(oDocument, BookmarkName)
@@ -89,7 +89,7 @@ Sub NewTopic
Dim oDocument, oBookmarks, oBookmark, oBookmarkCursor, oTextField as Object
Dim oBaustein, oAutoText, oAutoGroup as Object
Dim i as Integer
-
+
oDocument = StarDesktop.ActiveFrame.Controller.Model
oBookMarkCursor = CreateBookMarkCursor(oDocument, &quot;NextTopic&quot;)
oTextField = oBookMarkCursor.TextField
@@ -118,7 +118,7 @@ Dim oBookmarkCursor as Object
Dim oFormats, oLocale as Object
Dim iDateTimeKey as Integer
- LoadLibrary( &quot;Tools&quot; )
+ BasicLibraries.LoadLibrary( &quot;Tools&quot; )
oDocument = StarDesktop.ActiveFrame.Controller.Model
oUserField = oDocument.CreateInstance(&quot;com.sun.star.text.TextField.ExtendedUser&quot;)
@@ -151,7 +151,7 @@ Function CreateBookMarkCursor(oDocument as Object,sBookmarkName as String)
Else
Msgbox &quot;Bookmark &quot; &amp; sBookmarkName &amp; &quot; is not defined!&quot;
End If
-End Function
+End Function
@@ -179,7 +179,7 @@ Dim BtnFinishAgenda As Object
If AgendaFinished Then
DisposeControl(oDocument, &quot;BtnAddAgendaTopic&quot;)
DisposeControl(oDocument, &quot;BtnFinishAgenda&quot;)
-
+
oBookmarkCursor = CreateBookMarkCursor(oDocument,&quot;NextTopic&quot;)
oBookMarkCursor.GotoEnd(True)
oBookmarkCursor.Text.insertString(oBookmarkCursor,&quot;&quot;,True)
@@ -197,7 +197,7 @@ Dim CurTag as String
Dim Taglist() as String
CurTag = aEvent.Source.Model.Tag
Taglist() = ArrayoutOfString(CurTag, &quot;;&quot;)
- Bookmarkname = TagList(0)
+ Bookmarkname = TagList(0)
sTrueContent = TagList(1)
End Sub
</script:module> \ No newline at end of file
diff --git a/wizards/source/template/Samples.xba b/wizards/source/template/Samples.xba
index 9c71f04d653a..00407ef7bc77 100644
--- a/wizards/source/template/Samples.xba
+++ b/wizards/source/template/Samples.xba
@@ -34,7 +34,7 @@ Dim RValue as Integer
Dim oNewDocument as Object
Dim mFileProperties(0) as New com.sun.star.beans.PropertyValue
PrepareForEditing = NULL
- LoadLibrary( &quot;Tools&quot; )
+ BasicLibraries.LoadLibrary( &quot;Tools&quot; )
If InitResources(&quot;&apos;Template&apos;&quot;, &quot;tpl&quot;) then
If IsMissing(oDocument) Then
oDocument = StarDesktop.ActiveFrame.Controller.Model