diff --git a/components/xdev_toolkit/CvtHelp.pas b/components/xdev_toolkit/CvtHelp.pas index 7b6a5593c..f7f5ff943 100644 --- a/components/xdev_toolkit/CvtHelp.pas +++ b/components/xdev_toolkit/CvtHelp.pas @@ -14,6 +14,13 @@ program CvtHelp; License: Modified LGPL. } +{$IFDEF FPC} + {$MODE Delphi} +{$ELSE} + {$APPTYPE CONSOLE} +{$ENDIF} +{$R+,Q+} + uses SysUtils, Classes; diff --git a/components/xdev_toolkit/RtfDoc.pas b/components/xdev_toolkit/RtfDoc.pas index 09c5010fc..1d164acbe 100644 --- a/components/xdev_toolkit/RtfDoc.pas +++ b/components/xdev_toolkit/RtfDoc.pas @@ -13,6 +13,10 @@ unit RtfDoc; interface +{$IFDEF FPC} + {$MODE Delphi} +{$ENDIF} + uses SysUtils, RtfPars; diff --git a/components/xdev_toolkit/TestRtfDoc.pas b/components/xdev_toolkit/TestRtfDoc.pas index 4cf68d74c..64ce199b2 100644 --- a/components/xdev_toolkit/TestRtfDoc.pas +++ b/components/xdev_toolkit/TestRtfDoc.pas @@ -4,6 +4,13 @@ program TestRtfDoc; Test program for RtfDoc unit. } +{$IFDEF FPC} + {$MODE Delphi} +{$ELSE} + {$APPTYPE CONSOLE} +{$ENDIF} +{$R+,Q+} + uses SysUtils, RtfPars, {Free Pascal unit with TRtfParser class and rtf constants} diff --git a/components/xdev_toolkit/ViewDoc.pas b/components/xdev_toolkit/ViewDoc.pas index 12f63894d..2aeecf323 100644 --- a/components/xdev_toolkit/ViewDoc.pas +++ b/components/xdev_toolkit/ViewDoc.pas @@ -15,6 +15,10 @@ unit ViewDoc; interface +{$IFDEF FPC} + {$MODE Delphi} +{$ENDIF} + uses SysUtils, Classes, diff --git a/components/xdev_toolkit/ViewWith.pas b/components/xdev_toolkit/ViewWith.pas index 16589dea8..dc904c05d 100644 --- a/components/xdev_toolkit/ViewWith.pas +++ b/components/xdev_toolkit/ViewWith.pas @@ -4,6 +4,13 @@ program ViewWith; Test program for ViewDoc unit. } +{$IFDEF FPC} + {$MODE Delphi} +{$ELSE} + {$APPTYPE CONSOLE} +{$ENDIF} +{$R+,Q+} + uses SysUtils, ViewDoc; diff --git a/components/xdev_toolkit/XDevStatus.html b/components/xdev_toolkit/XDevStatus.html index 1644ccf30..1014f7ddd 100644 --- a/components/xdev_toolkit/XDevStatus.html +++ b/components/xdev_toolkit/XDevStatus.html @@ -17,6 +17,7 @@
+
The XDev Toolkit source code is here: http://web.fastermac.net/~MacPgmr/XDev/downloads
+You can also download the XDev Toolkit files via Subversion:
+ + svn co https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/xdev_toolkit [local dir]
+ +Substitute your local directory where you want the files downloaded for "[local dir]".
+ All source code included in the XDev Toolkit is released under the Modified LGPL license.
-
-fpc -Sd DfmToLfm.pas +With Free Pascal:
+ + fpc dfmtolfm
+ +With Delphi:
+ + dcc32 dfmtolfm
- -dfmtolfm +With Windows:
+ dfmtolfm
+With OS X and Linux:
+ ./dfmtolfm
+
-
-
-
+ makepasx myprogram.dpr
+ makepasx myform.pas
+MakePasX tries to insert the conditionals needed to compile with Lazarus, while +retaining compatibility with Delphi. After converting you can test to see that +the files can still be compiled by Delphi. You may have to make minor manual adjustments +if the converter couldn't figure out your code. Also, you can look at the source +code of the converter to see what it's doing.
+ +
+ dfmtolfm myform.dfm
+This creates an .lfm file that should be compatible with Lazarus. With Linux you +can use the -d switch to delete the font names from the .lfm file. This generally +makes for a better look on Linux, which doesn't have the same TrueType fonts that +Windows and OS X have. Default fonts will be substituted at runtime. With Windows +you can use the -p switch to add a parent's font to controls with no font, +which generally makes for a better look on Windows.
+Important! Make sure your .dfm files are text files. If not, save them as text +files with Delphi before attempting to convert them.
+ +
+ lazres myform.lrs myform.lfm
+Note: The lazres source code is located in the Lazarus tools folder. Open +project file lazres.lpi in Lazarus and compile it in the IDE.
+ +
+ +
-
+ +
+a list of constants that you'll need to use with TRtfDoc (rtfdata.inc is +in Free Pascal's /packages/fcl-base/src/inc folder).
For more information on the RTF specification, refer to Microsoft's documentation.
@@ -278,7 +341,7 @@ also be able to output version information to a Lazarus .lpi file.
http://wiki.lazarus.freepascal.org/Deploying_Your_Application