1
1
// %attributes = {"invisible":true}
2
- // ----------------------------------------------------
3
- // Project method : Editor_SEL_Get_font_size
4
- // Database: 4D Labels
5
- // ID[FE76B784355147EA9AE5478E5B7FA7E6]
6
- // Created #19-5-2015 by Vincent de Lachaux
7
- // ----------------------------------------------------
8
- // Description:
9
- //
10
- // ----------------------------------------------------
11
- // Declarations
2
+ // ----------------------------------------------------
3
+ // Project method : Editor_SEL_Get_font_size
4
+ // Database: 4D Labels
5
+ // ID[FE76B784355147EA9AE5478E5B7FA7E6]
6
+ // Created #19-5-2015 by Vincent de Lachaux
7
+ // ----------------------------------------------------
8
+ // Description:
9
+ //
10
+ // ----------------------------------------------------
11
+ // Declarations
12
12
C_LONGINT:C283 ($0 )
13
13
C_TEXT:C284 ($1 )
14
14
15
15
C_BOOLEAN:C305 ($Boo_text )
16
- C_LONGINT:C283 ($Lon_fontSize ;$Lon_i ;$Lon_parameters ;$Lon_value )
17
- C_TEXT:C284 ($Dom_label ;$Dom_object ;$Txt_ID )
16
+ C_LONGINT:C283 ($Lon_fontSize ; $Lon_i ; $Lon_parameters ; $Lon_value )
17
+ C_TEXT:C284 ($Dom_label ; $Dom_object ; $Txt_ID )
18
18
19
- ARRAY TEXT:C222 ($tDom_selected ;0 )
19
+ ARRAY TEXT:C222 ($tDom_selected ; 0 )
20
20
21
21
If (False:C215)
22
- C_LONGINT:C283 (Editor_SEL_Get_font_size ; $0 )
23
- C_TEXT:C284 (Editor_SEL_Get_font_size ; $1 )
22
+ C_LONGINT:C283 (Editor_SEL_Get_font_size ; $0 )
23
+ C_TEXT:C284 (Editor_SEL_Get_font_size ; $1 )
24
24
End if
25
25
26
- // ----------------------------------------------------
27
- // Initialisations
26
+ // ----------------------------------------------------
27
+ // Initialisations
28
28
$Lon_parameters := Count parameters:C259
29
29
30
- If (Asserted:C1132 ($Lon_parameters >= 0 ;"Missing parameter" ))
30
+ If (Asserted:C1132 ($Lon_parameters >= 0 ; "Missing parameter" ))
31
31
32
- // NO PARAMETERS REQUIRED
32
+ // NO PARAMETERS REQUIRED
33
33
34
- // Optional parameters
34
+ // Optional parameters
35
35
If ($Lon_parameters>= 1)
36
36
37
37
$Dom_label := $1
38
38
39
39
Else
40
40
41
- Editor_Get_grips (- > $Dom_label )
41
+ Editor_Get_grips (- > $Dom_label )
42
42
43
43
End if
44
44
50
50
51
51
End if
52
52
53
- // ----------------------------------------------------
54
- For ($Lon_i;1; Editor_SEL_Get_count ($Dom_label ;- > $tDom_selected ))
53
+ // ----------------------------------------------------
54
+ For ($Lon_i; 1; Editor_SEL_Get_count ($Dom_label ; - > $tDom_selected ))
55
55
56
- DOM GET XML ATTRIBUTE BY NAME:C728 ($tDom_selected {$Lon_i };"object-id" ;$Txt_ID )
56
+ DOM GET XML ATTRIBUTE BY NAME:C728 ($tDom_selected {$Lon_i }; "object-id" ; $Txt_ID )
57
57
58
- $Dom_object := Editor_OB_Get_type ($Dom_label ;$Txt_ID ;- > $Boo_text )
58
+ $Dom_object := Editor_OB_Get_type ($Dom_label ; $Txt_ID ; - > $Boo_text )
59
59
60
60
If ($Boo_text)
61
61
62
- DOM GET XML ATTRIBUTE BY NAME:C728 ($Dom_object ;"font-size" ;$Lon_value )
62
+ DOM GET XML ATTRIBUTE BY NAME:C728 ($Dom_object ; "font-size" ; $Lon_value )
63
63
64
64
If ($Lon_fontSize= - 1)
65
65
66
- // first one
66
+ // first one
67
67
$Lon_fontSize := $Lon_value
68
68
69
69
Else
@@ -78,9 +78,9 @@ For ($Lon_i;1;Editor_SEL_Get_count ($Dom_label;->$tDom_selected))
78
78
End if
79
79
End for
80
80
81
- // ----------------------------------------------------
82
- // Return
83
- $0 := $Lon_fontSize
81
+ // ----------------------------------------------------
82
+ // Return
83
+ return $Lon_fontSize
84
84
85
- // ----------------------------------------------------
86
- // End
85
+ // ----------------------------------------------------
86
+ // End
0 commit comments