diff options
author | Behrend Cornelius <bc@openoffice.org> | 2001-08-31 14:17:21 +0000 |
---|---|---|
committer | Behrend Cornelius <bc@openoffice.org> | 2001-08-31 14:17:21 +0000 |
commit | 3dfd05700cda93102ee457baf7ecf66bebf7ef3d (patch) | |
tree | 6d6b2df08f2c0de8e94d5b0430c4c9a3094843a4 /wizards/source/formwizard/Language.xba | |
parent | 6b38d974b6ba211fb17f965fd2a9ac84be7c40d3 (diff) |
#91535# Link is inserted; DateTimefields now in Grid available
Diffstat (limited to 'wizards/source/formwizard/Language.xba')
-rw-r--r-- | wizards/source/formwizard/Language.xba | 154 |
1 files changed, 66 insertions, 88 deletions
diff --git a/wizards/source/formwizard/Language.xba b/wizards/source/formwizard/Language.xba index 3cfdda968826..96eedcd2a183 100644 --- a/wizards/source/formwizard/Language.xba +++ b/wizards/source/formwizard/Language.xba @@ -27,11 +27,11 @@ Dim sMsgCreatedForm as String Dim sMsgErrCouldNotOpenObject as String Dim sMsgErrNameToLong as String -' Internal Logic + Dim Form_ilFormTitleSuggestPrefix as String -Dim sMsgDatetime_DateComponent as String -Dim sMsgDatetime_TimeComponent as String +Dim sTimeAppendix as String +Dim sDateAppendix as String Public sGoOn as String Public sReady as String @@ -42,7 +42,6 @@ Public XPixelFactor as Long Public YPixelFactor as Long - Sub LoadLanguage () sMsgWizardName = GetResText(RID_FORM + 0) sMsgErrMsg = GetResText(RID_COMMON + 6) @@ -60,8 +59,8 @@ Sub LoadLanguage () ' Internal Logic Form_ilFormTitleSuggestPrefix = GetResText(RID_FORM + 3) - sMsgDatetime_DateComponent = GetResText(RID_FORM + 4) - sMsgDatetime_TimeComponent = GetResText(RID_FORM + 5) + sDateAppendix = GetResText(RID_FORM + 4) + sTimeAppendix = GetResText(RID_FORM + 5) sReady = GetResText(RID_COMMON + 0) SetDialogLanguage() @@ -147,127 +146,106 @@ Sub InitializeWidthList() End If WidthList(0,0) = com.sun.star.sdbc.DataType.BIT ' = -7; - WidthList(0,1) = 8 - WidthList(0,2) = cCheckbox - WidthList(0,3) = False - WidthList(0,4) = "CheckBox" + WidthList(0,1) = cCheckbox + WidthList(0,2) = False + WidthList(0,3) = "CheckBox" WidthList(1,0) = com.sun.star.sdbc.DataType.TINYINT ' = -6; - WidthList(1,1) = 20 - WidthList(1,2) = cNumericBox - WidthList(1,3) = False - WidthList(1,4) = "FormattedField" + WidthList(1,1) = cNumericBox + WidthList(1,2) = False + WidthList(1,3) = "FormattedField" WidthList(2,0) = com.sun.star.sdbc.DataType.SMALLINT ' = 5; - WidthList(2,1) = 20 - WidthList(2,2) = cNumericBox - WidthList(2,3) = False - WidthList(2,4) = "FormattedField" + WidthList(2,1) = cNumericBox + WidthList(2,2) = False + WidthList(2,3) = "FormattedField" WidthList(3,0) = com.sun.star.sdbc.DataType.INTEGER ' = 4; - WidthList(3,1) = 30 - WidthList(3,2) = cNumericBox - WidthList(3,3) = False - WidthList(3,4) = "FormattedField" + WidthList(3,1) = cNumericBox + WidthList(3,2) = False + WidthList(3,3) = "FormattedField" WidthList(4,0) = com.sun.star.sdbc.DataType.BIGINT ' = -5; - WidthList(4,1) = 30 - WidthList(4,2) = cNumericBox - WidthList(4,3) = False - WidthList(4,4) = "FormattedField" + WidthList(4,1) = cNumericBox + WidthList(4,2) = False + WidthList(4,3) = "FormattedField" WidthList(5,0) = com.sun.star.sdbc.DataType.FLOAT ' = 6; - WidthList(5,1) = 40 - WidthList(5,2) = cNumericBox - WidthList(5,3) = False - WidthList(5,4) = "FormattedField" + WidthList(5,1) = cNumericBox + WidthList(5,2) = False + WidthList(5,3) = "FormattedField" WidthList(6,0) = com.sun.star.sdbc.DataType.REAL ' = 7; - WidthList(6,1) = 40 'Property 'Scale', keine maximalwerte - WidthList(6,2) = cNumericBox - WidthList(6,3) = False - WidthList(6,4) = "FormattedField" + WidthList(6,1) = cNumericBox + WidthList(6,2) = False + WidthList(6,3) = "FormattedField" WidthList(7,0) = com.sun.star.sdbc.DataType.DOUBLE ' = 8; - WidthList(7,1) = 40' dynamisch erstellen - 'Property 'Scale' - WidthList(7,2) = cNumericBox - WidthList(7,3) = False - WidthList(7,4) = "FormattedField" + WidthList(7,1) = cNumericBox + WidthList(7,2) = False + WidthList(7,3) = "FormattedField" WidthList(8,0) = com.sun.star.sdbc.DataType.NUMERIC ' = 2; - WidthList(8,1) = 40 - WidthList(8,2) = cNumericBox - WidthList(8,3) = False - WidthList(8,4) = "FormattedField" + WidthList(8,1) = cNumericBox + WidthList(8,2) = False + WidthList(8,3) = "FormattedField" WidthList(9,0) = com.sun.star.sdbc.DataType.DECIMAL ' = 3; (mit Nachkommastellen) - WidthList(9,1) = 40 ' ToDo: Dies muss in einer Routine errechnet werden - WidthList(9,2) = cNumericBox - WidthList(9,3) = False - WidthList(9,4) = "FormattedField" + WidthList(9,1) = cNumericBox + WidthList(9,2) = False + WidthList(9,3) = "FormattedField" WidthList(10,0) = com.sun.star.sdbc.DataType.CHAR ' = 1; - WidthList(10,1) = 30 - WidthList(10,2) = cTextBox - WidthList(10,3) = False - WidthList(10,4) = "TextField" + WidthList(10,1) = cTextBox + WidthList(10,2) = False + WidthList(10,3) = "TextField" ' Todo: Sollte die Feldlänge vielleicht lieber aus den Metadaten ausgelesen werden? WidthList(11,0) = com.sun.star.sdbc.DataType.VARCHAR ' = 12; - WidthList(11,1) = 30 - WidthList(11,2) = cTextBox - WidthList(11,3) = True - WidthList(11,4) = "TextField" + WidthList(11,1) = cTextBox + WidthList(11,2) = True + WidthList(11,3) = "TextField" WidthList(12,0) = com.sun.star.sdbc.DataType.LONGVARCHAR ' = -1; - WidthList(12,1) = 50 - WidthList(12,2) = cTextBox - WidthList(12,3) = True - WidthList(12,4) = "TextField" - + WidthList(12,1) = cTextBox + WidthList(12,2) = True + WidthList(12,3) = "TextField" + WidthList(13,0) = com.sun.star.sdbc.DataType.DATE ' = 91; - WidthList(13,1) = 20 - WidthList(13,2) = cDateBox - WidthList(13,3) = False - WidthList(13,4) = "DateField" + WidthList(13,1) = cDateBox + WidthList(13,2) = False + WidthList(13,3) = "DateField" WidthList(14,0) = com.sun.star.sdbc.DataType.TIME ' = 92; - WidthList(14,1) = 20 - WidthList(14,2) = cTimeBox - WidthList(14,3) = False - WidthList(14,4) = "TimeField" + WidthList(14,1) = cTimeBox + WidthList(14,2) = False + WidthList(14,3) = "TimeField" WidthList(15,0) = com.sun.star.sdbc.DataType.TIMESTAMP ' = 93; - WidthList(15,1) = 20 ' Todo: Dieses Control ist keine cDatebox sondern Kollektion aus Time und Datefield - WidthList(15,2) = cDateBox - WidthList(15,3) = False - WidthList(15,4) = "DateField" + WidthList(15,1) = cDateBox + WidthList(15,2) = False + WidthList(15,3) = "DateField" ImgWidthList(0,0) = com.sun.star.sdbc.DataType.BINARY ' = -2; - ImgWidthList(0,1) = 1000 - ImgWidthList(0,2) = cImageControl - ImgWidthList(0,3) = False - ImgWidthList(0,4) = "ImageControl" + ImgWidthList(0,1) = cImageControl + ImgWidthList(0,2) = False + ImgWidthList(0,3) = "ImageControl" ImgWidthList(1,0) = com.sun.star.sdbc.DataType.VARBINARY ' = -3; - ImgWidthList(1,1) = 1000 - ImgWidthList(1,2) = cImageControl - ImgWidthList(1,3) = False - ImgWidthList(1,4) = "ImageControl" + ImgWidthList(1,1) = cImageControl + ImgWidthList(1,2) = False + ImgWidthList(1,3) = "ImageControl" ImgWidthList(2,0) = com.sun.star.sdbc.DataType.LONGVARBINARY ' = -4; - ImgWidthList(2,1) = 1000 - ImgWidthList(2,2) = cImageControl - ImgWidthList(2,3) = False - ImgWidthList(2,4) = "ImageControl" + ImgWidthList(2,1) = cImageControl + ImgWidthList(2,2) = False + ImgWidthList(2,3) = "ImageControl" ImgWidthList(3,0) = com.sun.star.sdbc.DataType.BLOB ' = 2004; - ImgWidthList(3,1) = 1000 - ImgWidthList(3,2) = cImageControl - ImgWidthList(3,3) = False - ImgWidthList(3,4) = "ImageControl" + ImgWidthList(3,1) = cImageControl + ImgWidthList(3,2) = False + ImgWidthList(3,3) = "ImageControl" ' Note: the following Fieldtypes cannot be presented ' Todo: This should be mentioned in the help |