summaryrefslogtreecommitdiff
path: root/wizards/source
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2002-10-16 09:06:22 +0000
committerBehrend Cornelius <bc@openoffice.org>2002-10-16 09:06:22 +0000
commit005ffe4c18ecbbed8f61f8be5928e7f6145fdf9b (patch)
tree5c860bfac8f8ffad0b86a5760648296d1531e532 /wizards/source
parent32d656ba0665a3a5b38e784cc8b08422b0a8241a (diff)
#104114# creation of new document now changed
Diffstat (limited to 'wizards/source')
-rw-r--r--wizards/source/formwizard/Layouter.xba2
-rw-r--r--wizards/source/formwizard/tools.xba9
2 files changed, 8 insertions, 3 deletions
diff --git a/wizards/source/formwizard/Layouter.xba b/wizards/source/formwizard/Layouter.xba
index a6d82b8dedd9..47f3ed3cf79e 100644
--- a/wizards/source/formwizard/Layouter.xba
+++ b/wizards/source/formwizard/Layouter.xba
@@ -131,7 +131,7 @@ End Function
Sub OpenFormDocument()
Dim NoArgs() as new com.sun.star.beans.PropertyValue
Dim oViewSettings as Object
- oDocument = StarDesktop.LoadComponentFromURL(&quot;private:factory/swriter&quot;, &quot;_blank&quot;, 0, NoArgs())
+ oDocument = CreateNewDocument(&quot;swriter&quot;)
oProgressbar = oDocument.GetCurrentController.GetFrame.CreateStatusIndicator()
oProgressbar.Start(&quot;&quot;, 100)
oDocument.ApplyFormDesignMode = False
diff --git a/wizards/source/formwizard/tools.xba b/wizards/source/formwizard/tools.xba
index 0d5da836c9cd..b9e584d27b1c 100644
--- a/wizards/source/formwizard/tools.xba
+++ b/wizards/source/formwizard/tools.xba
@@ -179,12 +179,15 @@ Function SetNumerics(ByVal oLocObject as Object, iLocFieldType as Integer) as Ob
oLocObject.EffectiveMax = 127
oLocObject.EffectiveMin = -128
Case com.sun.star.sdbc.DataType.FLOAT, com.sun.star.sdbc.DataType.REAL, com.sun.star.sdbc.DataType.DOUBLE, com.sun.star.sdbc.DataType.DECIMAL, com.sun.star.sdbc.DataType.NUMERIC
+&apos;Todo: oLocObject.DecimalAccuracy = ...
oLocObject.EffectiveDefault = CurDefaultValue
+&apos; Todo: HelpText???
End Select
If oLocObject.PropertySetinfo.HasPropertyByName(&quot;Width&quot;)Then &apos; Note: an Access AutoincrementField does not provide this property Width
oLocObject.Width = CurFieldLength + CurScale + 1
End If
If CurIsCurrency Then
+&apos;Todo: How do you set currencies?
End If
ElseIf CurControlType = cTextBox Then &apos;com.sun.star.sdbc.DataType.CHAR, com.sun.star.sdbc.DataType.VARCHAR, com.sun.star.sdbc.DataType.LONGVARCHAR
If oLocObject.MaxTextLen = 0 Or oLocObject.MaxTextLen &gt; 30 Then
@@ -195,10 +198,12 @@ Function SetNumerics(ByVal oLocObject as Object, iLocFieldType as Integer) as Ob
End If
oLocObject.DefaultText = CurDefaultValue
ElseIf CurControlType = cDateBox Then
- ElseIf CurControlType = cTimeBox Then &apos;com.sun.star.sdbc.DataType.DATE, com.sun.star.sdbc.DataType.TIME
+&apos; Todo Why does this not work?: oLocObject.DefaultDate = CurDefaultValue
+ ElseIf CurControlType = cTimeBox Then &apos; com.sun.star.sdbc.DataType.DATE, com.sun.star.sdbc.DataType.TIME
oLocObject.DefaultTime = CurDefaultValue
+&apos; Todo: Property TimeFormat? frome where?
ElseIf CurControlType = cCheckBox Then
-&apos;Todo Why does this not work?: oLocObject.DefautState = CurDefaultValue
+&apos; Todo Why does this not work?: oLocObject.DefautState = CurDefaultValue
End If
If oLocObject.PropertySetInfo.HasPropertybyName(&quot;FormatKey&quot;) Then
On Local Error Resume Next