Skip to content

Commit

Permalink
remove all 4D.Write@
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland-Lannuzel committed Jul 16, 2024
1 parent 32db17a commit d7ad35c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Project/Sources/Classes/WPdocument.4dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Class constructor($document : 4D:C1709.WriteDocument)
Class constructor($document : Object) //4D.WriteDocument)

If (Count parameters:C259=0)
This:C1470.document:=WP New:C1317
Expand Down Expand Up @@ -328,7 +328,7 @@ Function getPosition($layout : Integer)->$information : Object
//mark:-STYLE SHEET

Function newStyleSheet($styleSheetType : Integer; $styleSheetName : Text)->$styleSheet : cs:C1710.WPstyleSheet
var $stylesheet4D : 4D:C1709.WriteStyleSheet
var $stylesheet4D : Object //4D.WriteStyleSheet

$stylesheet4D:=WP New style sheet:C1650(This:C1470.document; $styleSheetType; $styleSheetName)
$styleSheet:=cs:C1710.WPstyleSheet.new(stylesheet4D)
Expand Down
2 changes: 1 addition & 1 deletion Project/Sources/Classes/WPelement.4dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Class constructor($element : 4D:C1709.WriteElement)
Class constructor($element : Object) //4D.WriteElement)
This:C1470.element:=$element
This:C1470.document:=This:C1470.element.owner

Expand Down
2 changes: 1 addition & 1 deletion Project/Sources/Classes/WPrange.4dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Class constructor($range : 4D:C1709.WriteRange)
Class constructor($range : Object) //4D.WriteRange)
This:C1470.range:=$range
This:C1470.document:=This:C1470.range.owner

Expand Down
16 changes: 8 additions & 8 deletions Project/Sources/Classes/WPsection.4dm
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Class constructor($target : Object; $index : Integer)

Case of
: (OB Instance of:C1731($target; 4D:C1709.WriteSection)) // regular call, from cs.WRdocument
This:C1470.section:=$target
: (OB Instance of:C1731($target; 4D:C1709.WriteDocument)) // direct call, from 4D Code
This:C1470.section:=WP Get section:C1581($target; $index)
End case
//Case of
//: (OB Instance of($target; 4D.WriteSection)) // regular call, from cs.WRdocument
//This.section:=$target

//: (OB Instance of($target; 4D.WriteDocument)) // direct call, from 4D Code
//This.section:=WP Get section($target; $index)

//End case

//mark:-PAGE COUNT (CALCULATED ATTRIBUTE)

Expand Down
2 changes: 1 addition & 1 deletion Project/Sources/Classes/WPstyleSheet.4dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Class constructor($styleSheet : 4D:C1709.WriteStyleSheet)
Class constructor($styleSheet : Object) //4D.WriteStyleSheet)
This:C1470.styleSheet:=$styleSheet


Expand Down

0 comments on commit d7ad35c

Please sign in to comment.