richmemo: breaking up richmemo to (runtime) package and design

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7275 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
skalogryz 2020-01-13 13:56:26 +00:00
parent cc8edbe51e
commit 95f1b45254
4 changed files with 117 additions and 70 deletions

View File

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<Package Version="4">
<PathDelim Value="\"/>
<Name Value="richmemo_design"/>
<Type Value="RunAndDesignTime"/>
<CompilerOptions>
<Version Value="11"/>
<PathDelim Value="\"/>
<SearchPaths>
<IncludeFiles Value="ide"/>
<OtherUnitFiles Value="ide"/>
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
</CompilerOptions>
<Files Count="3">
<Item1>
<Filename Value="ide\rtfeditpropdialog.lfm"/>
<Type Value="LFM"/>
</Item1>
<Item2>
<Filename Value="ide\rtfeditpropdialog.pas"/>
<UnitName Value="RtfEditPropDialog"/>
</Item2>
<Item3>
<Filename Value="richmemoregister.pas"/>
<HasRegisterProc Value="True"/>
<UnitName Value="richmemoregister"/>
</Item3>
</Files>
<RequiredPkgs Count="3">
<Item1>
<PackageName Value="richmemopackage"/>
</Item1>
<Item2>
<PackageName Value="IDEIntf"/>
</Item2>
<Item3>
<PackageName Value="FCL"/>
</Item3>
</RequiredPkgs>
<UsageOptions>
<UnitPath Value="$(PkgOutDir)"/>
</UsageOptions>
<PublishOptions>
<Version Value="2"/>
<UseFileFilters Value="True"/>
</PublishOptions>
</Package>
</CONFIG>

View File

@ -0,0 +1,22 @@
{ This file was automatically created by Lazarus. Do not edit!
This source is only used to compile and install the package.
}
unit richmemo_design;
{$warn 5023 off : no warning about unused units}
interface
uses
RtfEditPropDialog, richmemoregister, LazarusPackageIntf;
implementation
procedure Register;
begin
RegisterUnit('richmemoregister', @richmemoregister.Register);
end;
initialization
RegisterPackage('richmemo_design', @Register);
end.

View File

@ -1,16 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<CONFIG> <CONFIG>
<Package Version="4"> <Package Version="5">
<PathDelim Value="\"/> <PathDelim Value="\"/>
<Name Value="richmemopackage"/> <Name Value="richmemopackage"/>
<Type Value="RunAndDesignTime"/> <Author Value="Dmitry &apos;skalogryz&apos; Boyarintsev"/>
<Author Value="Dmitry 'skalogryz' Boyarintsev"/>
<CompilerOptions> <CompilerOptions>
<Version Value="11"/> <Version Value="11"/>
<PathDelim Value="\"/> <PathDelim Value="\"/>
<SearchPaths> <SearchPaths>
<IncludeFiles Value="cocoa;qt;qt5"/> <IncludeFiles Value="cocoa;qt;qt5"/>
<OtherUnitFiles Value="win32;carbon;gtk2;cocoa;qt;qt5;ide"/> <OtherUnitFiles Value="win32;carbon;gtk2;cocoa;qt;qt5"/>
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/> <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
</SearchPaths> </SearchPaths>
<Parsing> <Parsing>
@ -28,117 +27,100 @@
"/> "/>
<License Value="LGPL"/> <License Value="LGPL"/>
<Version Major="1"/> <Version Major="1"/>
<Files Count="20"> <Files>
<Item1> <Item>
<Filename Value="wsrichmemo.pas"/> <Filename Value="wsrichmemo.pas"/>
<AddToUsesPkgSection Value="False"/> <AddToUsesPkgSection Value="False"/>
<UnitName Value="WSRichMemo"/> <UnitName Value="WSRichMemo"/>
</Item1> </Item>
<Item2> <Item>
<Filename Value="win32\win32richmemo.pas"/> <Filename Value="win32\win32richmemo.pas"/>
<AddToUsesPkgSection Value="False"/> <AddToUsesPkgSection Value="False"/>
<UnitName Value="Win32RichMemo"/> <UnitName Value="Win32RichMemo"/>
</Item2> </Item>
<Item3> <Item>
<Filename Value="win32\win32richmemoproc.pas"/> <Filename Value="win32\win32richmemoproc.pas"/>
<AddToUsesPkgSection Value="False"/> <AddToUsesPkgSection Value="False"/>
<UnitName Value="Win32RichMemoProc"/> <UnitName Value="Win32RichMemoProc"/>
</Item3> </Item>
<Item4> <Item>
<Filename Value="richmemofactory.pas"/> <Filename Value="richmemofactory.pas"/>
<UnitName Value="RichMemoFactory"/> <UnitName Value="RichMemoFactory"/>
</Item4> </Item>
<Item5> <Item>
<Filename Value="richmemoregister.pas"/>
<HasRegisterProc Value="True"/>
<UnitName Value="richmemoregister"/>
</Item5>
<Item6>
<Filename Value="richmemopackage.lrs"/> <Filename Value="richmemopackage.lrs"/>
<Type Value="LRS"/> <Type Value="LRS"/>
</Item6> </Item>
<Item7> <Item>
<Filename Value="carbon\carbonrichmemo.pas"/> <Filename Value="carbon\carbonrichmemo.pas"/>
<AddToUsesPkgSection Value="False"/> <AddToUsesPkgSection Value="False"/>
<UnitName Value="CarbonRichMemo"/> <UnitName Value="CarbonRichMemo"/>
</Item7> </Item>
<Item8> <Item>
<Filename Value="richmemo.pas"/> <Filename Value="richmemo.pas"/>
<AddToUsesPkgSection Value="False"/> <AddToUsesPkgSection Value="False"/>
<UnitName Value="RichMemo"/> <UnitName Value="RichMemo"/>
</Item8> </Item>
<Item9> <Item>
<Filename Value="gtk2\gtk2richmemo.pas"/> <Filename Value="gtk2\gtk2richmemo.pas"/>
<AddToUsesPkgSection Value="False"/> <AddToUsesPkgSection Value="False"/>
<UnitName Value="gtk2richmemo"/> <UnitName Value="gtk2richmemo"/>
</Item9> </Item>
<Item10> <Item>
<Filename Value="richmemortf.pas"/> <Filename Value="richmemortf.pas"/>
<UnitName Value="RichMemoRTF"/> <UnitName Value="RichMemoRTF"/>
</Item10> </Item>
<Item11> <Item>
<Filename Value="rtfdata.inc"/> <Filename Value="rtfdata.inc"/>
<Type Value="Include"/> <Type Value="Include"/>
</Item11> </Item>
<Item12> <Item>
<Filename Value="cocoa\cocoarichmemo.pas"/> <Filename Value="cocoa\cocoarichmemo.pas"/>
<AddToUsesPkgSection Value="False"/> <AddToUsesPkgSection Value="False"/>
<UnitName Value="cocoarichmemo"/> <UnitName Value="cocoarichmemo"/>
</Item12> </Item>
<Item13> <Item>
<Filename Value="richmemoutils.pas"/> <Filename Value="richmemoutils.pas"/>
<UnitName Value="RichMemoUtils"/> <UnitName Value="RichMemoUtils"/>
</Item13> </Item>
<Item14> <Item>
<Filename Value="richmemohelpers.pas"/> <Filename Value="richmemohelpers.pas"/>
<UnitName Value="RichMemoHelpers"/> <UnitName Value="RichMemoHelpers"/>
</Item14> </Item>
<Item15> <Item>
<Filename Value="qt\qtrichmemo.pas"/> <Filename Value="qt\qtrichmemo.pas"/>
<AddToUsesPkgSection Value="False"/> <AddToUsesPkgSection Value="False"/>
<UnitName Value="qtrichmemo"/> <UnitName Value="qtrichmemo"/>
</Item15> </Item>
<Item16> <Item>
<Filename Value="rtfparspre211.pas"/> <Filename Value="rtfparspre211.pas"/>
<UnitName Value="RTFParsPre211"/> <UnitName Value="RTFParsPre211"/>
</Item16> </Item>
<Item17> <Item>
<Filename Value="ide\rtfeditpropdialog.pas"/>
<UnitName Value="RtfEditPropDialog"/>
</Item17>
<Item18>
<Filename Value="ide\rtfeditpropdialog.lfm"/>
<Type Value="LFM"/>
</Item18>
<Item19>
<Filename Value="win32\win32richmemoole.pas"/> <Filename Value="win32\win32richmemoole.pas"/>
<AddToUsesPkgSection Value="False"/> <AddToUsesPkgSection Value="False"/>
<UnitName Value="Win32RichMemoOle"/> <UnitName Value="Win32RichMemoOle"/>
</Item19> </Item>
<Item20> <Item>
<Filename Value="qt5\qt5richmemo.pas"/> <Filename Value="qt5\qt5richmemo.pas"/>
<AddToUsesPkgSection Value="False"/> <AddToUsesPkgSection Value="False"/>
<UnitName Value="qt5richmemo"/> <UnitName Value="qt5richmemo"/>
</Item20> </Item>
</Files> </Files>
<RequiredPkgs Count="3"> <RequiredPkgs>
<Item1> <Item>
<PackageName Value="IDEIntf"/>
</Item1>
<Item2>
<PackageName Value="LCL"/> <PackageName Value="LCL"/>
</Item2> </Item>
<Item3> <Item>
<PackageName Value="FCL"/> <PackageName Value="FCL"/>
<MinVersion Major="1" Valid="True"/> <MinVersion Major="1" Valid="True"/>
</Item3> </Item>
</RequiredPkgs> </RequiredPkgs>
<UsageOptions> <UsageOptions>
<UnitPath Value="$(PkgOutDir)"/> <UnitPath Value="$(PkgOutDir)"/>
</UsageOptions> </UsageOptions>
<PublishOptions> <PublishOptions>
<Version Value="2"/> <Version Value="2"/>
<IgnoreBinaries Value="False"/>
</PublishOptions> </PublishOptions>
<CustomOptions Items="ExternHelp" Version="2"> <CustomOptions Items="ExternHelp" Version="2">
<_ExternHelp Items="Count"/> <_ExternHelp Items="Count"/>

View File

@ -4,19 +4,12 @@
unit richmemopackage; unit richmemopackage;
{$warn 5023 off : no warning about unused units}
interface interface
uses uses
RichMemoFactory, richmemoregister, RichMemoRTF, RichMemoUtils, RichMemoFactory, RichMemoRTF, RichMemoUtils, RichMemoHelpers, RTFParsPre211;
RichMemoHelpers, RTFParsPre211, RtfEditPropDialog, LazarusPackageIntf;
implementation implementation
procedure Register;
begin
RegisterUnit('richmemoregister', @richmemoregister.Register);
end;
initialization
RegisterPackage('richmemopackage', @Register);
end. end.