lcl: remove ver2_2_x defines

git-svn-id: trunk@36368 -
This commit is contained in:
paul 2012-03-27 07:16:11 +00:00
parent 283454d1f8
commit 880401dbb8
28 changed files with 22 additions and 129 deletions

View File

@ -546,10 +546,8 @@ procedure Register;
implementation implementation
{$ifndef ver2_2}
{$R forms/finddlgunit.lfm} {$R forms/finddlgunit.lfm}
{$R forms/replacedlgunit.lfm} {$R forms/replacedlgunit.lfm}
{$ENDIF}
uses uses
Math, WSDialogs; Math, WSDialogs;

View File

@ -1809,10 +1809,8 @@ begin
if Keys and MK_LButton <> 0 then Include(Result, ssLeft); if Keys and MK_LButton <> 0 then Include(Result, ssLeft);
if Keys and MK_RButton <> 0 then Include(Result, ssRight); if Keys and MK_RButton <> 0 then Include(Result, ssRight);
if Keys and MK_MButton <> 0 then Include(Result, ssMiddle); if Keys and MK_MButton <> 0 then Include(Result, ssMiddle);
{$ifndef ver2_2_0}
if Keys and MK_XBUTTON1 <> 0 then Include(Result, ssExtra1); if Keys and MK_XBUTTON1 <> 0 then Include(Result, ssExtra1);
if Keys and MK_XBUTTON2 <> 0 then Include(Result, ssExtra2); if Keys and MK_XBUTTON2 <> 0 then Include(Result, ssExtra2);
{$endif}
if GetKeyState(VK_MENU) < 0 then Include(Result, ssAlt); if GetKeyState(VK_MENU) < 0 then Include(Result, ssAlt);
if (GetKeyState(VK_LWIN) < 0) or (GetKeyState(VK_RWIN) < 0) then Include(Result, ssMeta); if (GetKeyState(VK_LWIN) < 0) or (GetKeyState(VK_RWIN) < 0) then Include(Result, ssMeta);
end; end;
@ -1830,10 +1828,8 @@ begin
if ssLeft in ShiftState then Result := Result or MK_LBUTTON; if ssLeft in ShiftState then Result := Result or MK_LBUTTON;
if ssRight in ShiftState then Result := Result or MK_RBUTTON; if ssRight in ShiftState then Result := Result or MK_RBUTTON;
if ssMiddle in ShiftState then Result := Result or MK_MBUTTON; if ssMiddle in ShiftState then Result := Result or MK_MBUTTON;
{$ifndef ver2_2_0}
if ssExtra1 in ShiftState then Result := Result or MK_XBUTTON1; if ssExtra1 in ShiftState then Result := Result or MK_XBUTTON1;
if ssExtra2 in ShiftState then Result := Result or MK_XBUTTON2; if ssExtra2 in ShiftState then Result := Result or MK_XBUTTON2;
{$endif}
end; end;
function WindowStateToStr(const State: TWindowState): string; function WindowStateToStr(const State: TWindowState): string;

View File

@ -56,9 +56,7 @@ procedure ShowCalendarPopup(const Position: TPoint; ADate: TDateTime;
implementation implementation
{$ifndef ver2_2}
{$R *.lfm} {$R *.lfm}
{$ENDIF}
procedure ShowCalendarPopup(const Position: TPoint; ADate: TDateTime; procedure ShowCalendarPopup(const Position: TPoint; ADate: TDateTime;
const CalendarDisplaySettings: TDisplaySettings; const CalendarDisplaySettings: TDisplaySettings;

View File

@ -1075,8 +1075,8 @@ type
protected protected
function GetClipRect: TRect; override; function GetClipRect: TRect; override;
procedure SetClipRect(const ARect: TRect); override; procedure SetClipRect(const ARect: TRect); override;
function GetClipping: Boolean; {$ifndef ver2_2}override;{$endif} function GetClipping: Boolean; override;
procedure SetClipping(const AValue: boolean); {$ifndef ver2_2}override;{$endif} procedure SetClipping(const AValue: boolean); override;
function GetPixel(X,Y: Integer): TColor; virtual; function GetPixel(X,Y: Integer): TColor; virtual;
procedure CreateBrush; virtual; procedure CreateBrush; virtual;
procedure CreateFont; virtual; procedure CreateFont; virtual;

View File

@ -159,7 +159,7 @@ type
procedure WriteData(AStream: TStream); virtual; procedure WriteData(AStream: TStream); virtual;
procedure ReadData(AStream: TStream); virtual; procedure ReadData(AStream: TStream); virtual;
function Equals(Obj: TObject): boolean; function Equals(Obj: TObject): boolean;
{$if not (defined(ver2_2_2) or defined(ver2_2_0))}{$IF FPC_FULLVERSION>=20402}override;{$ENDIF}{$ENDIF} {$IF FPC_FULLVERSION>=20402}override;{$ENDIF}
procedure BeginUpdate; procedure BeginUpdate;
procedure EndUpdate; procedure EndUpdate;

View File

@ -71,10 +71,8 @@ var
LogicalRect: TRect; LogicalRect: TRect;
begin begin
inherited SetClipRect(ARect); inherited SetClipRect(ARect);
{$ifndef ver2_2}
if inherited GetClipping then if inherited GetClipping then
begin begin
{$endif}
// ARect is in logical coords. CreateRectRGN accepts device coords. // ARect is in logical coords. CreateRectRGN accepts device coords.
// So we need to translate them // So we need to translate them
LogicalRect := ARect; LogicalRect := ARect;
@ -83,9 +81,7 @@ begin
RGN := CreateRectRGN(Left, Top, Right, Bottom); RGN := CreateRectRGN(Left, Top, Right, Bottom);
SelectClipRGN(Handle, RGN); SelectClipRGN(Handle, RGN);
DeleteObject(RGN); DeleteObject(RGN);
{$ifndef ver2_2}
end; end;
{$endif}
end; end;
function TCanvas.GetClipping: Boolean; function TCanvas.GetClipping: Boolean;
@ -97,9 +93,7 @@ end;
procedure TCanvas.SetClipping(const AValue: boolean); procedure TCanvas.SetClipping(const AValue: boolean);
begin begin
{$ifndef ver2_2}
inherited SetClipping(AValue); inherited SetClipping(AValue);
{$endif}
if AValue then if AValue then
SetClipRect(inherited GetClipRect) SetClipRect(inherited GetClipRect)
else else

View File

@ -1267,15 +1267,11 @@ begin
CurStream.Free; CurStream.Free;
end; end;
end else end else
{$if not (defined(ver2_2_2) or defined(ver2_2_0))}
{$IF FPC_FULLVERSION>20402} {$IF FPC_FULLVERSION>20402}
Result:=inherited Equals(Obj); Result:=inherited Equals(Obj);
{$ELSE} {$ELSE}
Result:=false; Result:=false;
{$ENDIF} {$ENDIF}
{$ELSE}
Result:=false;
{$ENDIF}
end; end;
{------------------------------------------------------------------------------ {------------------------------------------------------------------------------

View File

@ -22,11 +22,8 @@
{$ifndef CarbonDontUseCocoa} {$ifndef CarbonDontUseCocoa}
{$define CarbonUseCocoa} {$define CarbonUseCocoa}
{$endif}
{$ifndef VER2_2}{$ifndef VER2_4}{$ifndef CarbonDontUseCocoa}
{$define CarbonUseCocoaAll} {$define CarbonUseCocoaAll}
{$endif}{$endif}{$endif} {$endif}
// Show debug info when tracing: // Show debug info when tracing:

View File

@ -30,11 +30,7 @@ interface
uses uses
// Libs // Libs
CocoaAll, CocoaAll,
{$ifdef ver2_2_0}
FPCMacOSAll,
{$else}
MacOSAll, MacOSAll,
{$endif}
// LCL // LCL
Controls, Forms, Menus, Graphics, LCLType, LMessages, LCLProc, Classes, Controls, Forms, Menus, Graphics, LCLType, LMessages, LCLProc, Classes,
// Widgetset // Widgetset

View File

@ -3274,11 +3274,7 @@ begin
FillChar(XKeyEvent, SizeOf(XKeyEvent), 0); FillChar(XKeyEvent, SizeOf(XKeyEvent), 0);
XKeyEvent._Type := GDK_KEY_PRESS; XKeyEvent._Type := GDK_KEY_PRESS;
XKeyEvent.Display := XDisplay; XKeyEvent.Display := XDisplay;
{$ifdef ver2_2}
XKeyEvent.Same_Screen := True;
{$else}
XKeyEvent.Same_Screen := 1; XKeyEvent.Same_Screen := 1;
{$endif}
// Retrieve the KeyCode bounds // Retrieve the KeyCode bounds
XDisplayKeyCodes(XDisplay, @LoKey, @HiKey); XDisplayKeyCodes(XDisplay, @LoKey, @HiKey);

View File

@ -124,10 +124,6 @@ function pango_attr_gravity_new(gravity: TPangoGravity): PPangoAttribute; cdecl;
function pango_version_check(required_major, required_minor, required_micro: integer): PChar; cdecl; external pangolib; function pango_version_check(required_major, required_minor, required_micro: integer): PChar; cdecl; external pangolib;
{$if defined(VER2_2_0)}
function pango_layout_get_font_description(layout:PPangoLayout):PPangoFontDescription; cdecl; external pangolib;
{$ifend}
{$IF FPC_FULLVERSION<20501} {$IF FPC_FULLVERSION<20501}
function pango_font_family_is_monospace(family:PPangoFontFamily):gboolean; cdecl; external pangolib; function pango_font_family_is_monospace(family:PPangoFontFamily):gboolean; cdecl; external pangolib;
{$ENDIF} {$ENDIF}
@ -261,11 +257,4 @@ var
// since 2.10 // since 2.10
gtk_tree_view_set_grid_lines: procedure(tree_view: PGtkTreeView; grid_lines: TGtkTreeViewGridLines); cdecl; gtk_tree_view_set_grid_lines: procedure(tree_view: PGtkTreeView; grid_lines: TGtkTreeViewGridLines); cdecl;
gtk_tree_view_get_grid_lines: function(tree_view: PGtkTreeView): TGtkTreeViewGridLines; cdecl; gtk_tree_view_get_grid_lines: function(tree_view: PGtkTreeView): TGtkTreeViewGridLines; cdecl;
{$ifdef ver2_2}
{$ifdef darwin}
// this linklib statement is not present in gtk2.pas
{$linklib gthread-2.0}
{$endif}
{$endif}

View File

@ -29,17 +29,7 @@
{$IFNDEF DisableWindowsUnicodeSupport} {$IFNDEF DisableWindowsUnicodeSupport}
// Enable WindowsUnicodeSupport for fpc 2.2.1 and higher // Enable WindowsUnicodeSupport for fpc 2.2.1 and higher
{$IFNDEF VER2_2_0}
{$DEFINE WindowsUnicodeSupport} {$DEFINE WindowsUnicodeSupport}
{$ENDIF VER2_2_0}
{$ENDIF DisableWindowsUnicodeSupport} {$ENDIF DisableWindowsUnicodeSupport}
{$IFDEF WindowsUnicodeSupport}
{$IFDEF VER2_2_0}
// A check to prevent that WindowsUnicodeSupport is enabled for fpc 2.2.0
{$FATAL Use fpc 2.2.1 or later, if you want to enable Windows Unicode Support}
{$ENDIF}
{$ENDIF}
{$DEFINE UseVistaDialogs} {$DEFINE UseVistaDialogs}
{.$DEFINE RedirectDestroyMessages} {.$DEFINE RedirectDestroyMessages}

View File

@ -28,14 +28,6 @@ unit WinCEInt;
interface interface
{ At least FPC 2.2.1 is required if the architecture is ARM
FPC 2.0 or inferior isn't checked because it can't compile for wince }
{$ifdef CPUARM}
{$if defined(ver2_2) and (fpc_patch<1)}
// {$fatal The Lazarus WinCE Interface in Lazarus 0.9.25+ requires at least FPC 2.2.1}
{$endif}
{$endif}
{$IFDEF Trace} {$IFDEF Trace}
{$ASSERTIONS ON} {$ASSERTIONS ON}
{$ENDIF} {$ENDIF}
@ -53,7 +45,7 @@ uses
{$ifdef Win32} {$ifdef Win32}
win32compat, win32compat,
{$else} {$else}
{$ifndef ver2_2_0}aygshell,{$endif} aygshell,
{$endif} {$endif}
// Libs // Libs
Windows, Windows,

View File

@ -111,9 +111,7 @@ begin
QuoteChar := S.QuoteChar; QuoteChar := S.QuoteChar;
Delimiter := S.Delimiter; Delimiter := S.Delimiter;
NameValueSeparator := S.NameValueSeparator; NameValueSeparator := S.NameValueSeparator;
{$ifndef ver2_2_0}
TextLineBreakStyle := S.TextLineBreakStyle; TextLineBreakStyle := S.TextLineBreakStyle;
{$endif}
Text := S.Text; Text := S.Text;
end end
else else

View File

@ -10,7 +10,7 @@ uses
{$ifdef win32} {$ifdef win32}
win32compat, win32compat,
{$else} {$else}
{$ifndef ver2_2_0}oleauto, aygshell,{$endif} oleauto, aygshell,
{$endif} {$endif}
// compatibility // compatibility
// RTL, LCL // RTL, LCL

View File

@ -28,7 +28,7 @@ interface
uses uses
// Libs // Libs
{$ifndef ver2_2_0}commctrl,{$endif} commctrl,
Windows, Windows,
// LCL // LCL
Calendar, SysUtils, Controls, LCLType, Calendar, SysUtils, Controls, LCLType,

View File

@ -27,7 +27,7 @@ interface
uses uses
// RTL, FCL // RTL, FCL
Windows, Classes, SysUtils, WinExt, Forms, Windows, Classes, SysUtils, WinExt, Forms,
{$ifndef ver2_2_0}commctrl,{$endif} commctrl,
// Compatibility // Compatibility
{$ifdef Win32}win32compat,{$endif} {$ifdef Win32}win32compat,{$endif}
// LCL // LCL

View File

@ -29,7 +29,7 @@ interface
uses uses
// Libs // Libs
Windows, Windows,
{$ifndef ver2_2_0}commctrl,{$endif} commctrl,
// RTL, LCL // RTL, LCL
Classes, LCLProc, Classes, LCLProc,
LCLType, Controls, Forms, Graphics, LCLType, Controls, Forms, Graphics,

View File

@ -28,7 +28,7 @@ interface
uses uses
// RTL, FCL // RTL, FCL
Windows, SysUtils, Windows, SysUtils,
{$ifndef ver2_2_0}commctrl,{$endif} commctrl,
// Compatibility // Compatibility
{$ifdef Win32}win32compat,{$endif} {$ifdef Win32}win32compat,{$endif}
// LCL // LCL

View File

@ -29,7 +29,7 @@ interface
uses uses
// Libs // Libs
Windows, Windows,
{$ifndef ver2_2_0}commctrl,{$endif} commctrl,
// RTL, LCL // RTL, LCL
SysUtils, Classes, ImgList, GraphType, Graphics, LCLType, SysUtils, Classes, ImgList, GraphType, Graphics, LCLType,
// Widgetset // Widgetset

View File

@ -31,8 +31,8 @@ uses
Controls, InterfaceBase, LCLProc, Controls, InterfaceBase, LCLProc,
// RTL, FCL // RTL, FCL
Windows, Classes, SysUtils, Windows, Classes, SysUtils,
{$ifndef ver2_2_0}commctrl, commctrl,
{$ifndef win32}aygshell,{$endif}{$endif} {$ifndef win32}aygshell,{$endif}
// widgetset // widgetset
WinceInt, WinceProc, WinCEWSImgList, WinceInt, WinceProc, WinCEWSImgList,
WSMenus, WSLCLClasses; WSMenus, WSLCLClasses;
@ -111,11 +111,7 @@ implementation
uses strutils; uses strutils;
{$ifndef ver2_2_0}
{$R wincemenures.rc} {$R wincemenures.rc}
{$else}
{$R wincemenures.res}
{$endif}
{ helper routines } { helper routines }

View File

@ -27,7 +27,7 @@ interface
uses uses
// Libs // Libs
{$ifndef ver2_2_0}commctrl,{$endif} commctrl,
Windows, Windows,
// LCL // LCL
Spin, Controls, StdCtrls, LCLType, LCLProc, Spin, Controls, StdCtrls, LCLType, LCLProc,

View File

@ -29,7 +29,7 @@ interface
uses uses
// Libs // Libs
Windows, Windows,
{$ifndef ver2_2_0}{$ifndef win32}oleauto,{$endif}{$endif} {$ifndef win32}oleauto,{$endif}
// Compatibility // Compatibility
{$ifdef Win32}win32compat,{$endif} {$ifdef Win32}win32compat,{$endif}
// RTL, FCL, LCL // RTL, FCL, LCL

View File

@ -6,7 +6,7 @@
* * * *
* This file is part of the Lazarus Component Library (LCL) * * This file is part of the Lazarus Component Library (LCL) *
* * * *
* See the file COPYING.modifiedLGPL.txt, included in this distribution, * * See the file COPYING.modifiedLGPL.txt, included in this distribution, *
* for details about the copyright. * * for details about the copyright. *
* * * *
* This program is distributed in the hope that it will be useful, * * This program is distributed in the hope that it will be useful, *

View File

@ -49,7 +49,7 @@ unit LCLIntf;
interface interface
uses uses
{$IFDEF Windows}Windows, {$ifndef ver2_2_0}ShellApi, {$ENDIF}{$ENDIF} {$IFDEF Windows}Windows, ShellApi,{$ENDIF}
{$IFDEF UNIX}Unix, {$ENDIF} {$IFDEF UNIX}Unix, {$ENDIF}
{$IFDEF Darwin}MacOSAll, {$ENDIF} {$IFDEF Darwin}MacOSAll, {$ENDIF}
Types, Math, Classes, SysUtils, LCLType, LCLProc, GraphType, InterfaceBase, Types, Math, Classes, SysUtils, LCLType, LCLProc, GraphType, InterfaceBase,

View File

@ -60,17 +60,6 @@ uses
{$define extdecl := stdcall} {$define extdecl := stdcall}
{$endif} {$endif}
// Types for FPC 2.2.x support for WinCE
{$ifdef ver2_2}
type
TFPResourceHandle = THandle;
TFPResourceHGlobal = THandle;
{$endif}
{$ifdef ver2_2_0}
const
AllFilesMask = '*.*';
{$endif}
type type
{$IFDEF USE_UTF8BIDI_LCL} {$IFDEF USE_UTF8BIDI_LCL}
TUTF8Char = UTF8BIDI.TUTF8Char; TUTF8Char = UTF8BIDI.TUTF8Char;

View File

@ -40,9 +40,7 @@ uses
FPCAdds, TypInfo, DynQueue, LCLProc, LCLStrConsts, LazConfigStorage; FPCAdds, TypInfo, DynQueue, LCLProc, LCLStrConsts, LazConfigStorage;
{$DEFINE UseLRS} {$DEFINE UseLRS}
{$ifndef ver2_2}
{$DEFINE UseRES} {$DEFINE UseRES}
{$endif}
const const
LRSComment = // do not translate this! LRSComment = // do not translate this!
@ -180,9 +178,7 @@ type
function ReadStr: String; override; function ReadStr: String; override;
function ReadString(StringType: TValueType): String; override; function ReadString(StringType: TValueType): String; override;
function ReadWideString: WideString; override; function ReadWideString: WideString; override;
{$ifndef VER2_2}
function ReadUnicodeString: UnicodeString; override; function ReadUnicodeString: UnicodeString; override;
{$endif}
procedure SkipComponent(SkipComponentInfos: Boolean); override; procedure SkipComponent(SkipComponentInfos: Boolean); override;
procedure SkipValue; override; procedure SkipValue; override;
public public
@ -295,9 +291,7 @@ type
procedure WriteSet(Value: LongInt; SetType: Pointer); override; procedure WriteSet(Value: LongInt; SetType: Pointer); override;
procedure WriteString(const Value: String); override; procedure WriteString(const Value: String); override;
procedure WriteWideString(const Value: WideString); override; procedure WriteWideString(const Value: WideString); override;
{$ifndef VER2_2}
procedure WriteUnicodeString(const Value: UnicodeString); override; procedure WriteUnicodeString(const Value: UnicodeString); override;
{$endif}
property WriteEmptyInheritedChilds: boolean read FWriteEmptyInheritedChilds write FWriteEmptyInheritedChilds; property WriteEmptyInheritedChilds: boolean read FWriteEmptyInheritedChilds write FWriteEmptyInheritedChilds;
property Writer: TWriter read FWriter write FWriter; property Writer: TWriter read FWriter write FWriter;
@ -2331,10 +2325,8 @@ procedure LRSObjectBinaryToText(Input, Output: TStream);
vaWString: Result:='vaWString'; vaWString: Result:='vaWString';
vaInt64: Result:='vaInt64'; vaInt64: Result:='vaInt64';
vaUTF8String: Result:='vaUTF8String'; vaUTF8String: Result:='vaUTF8String';
{$IFNDEF VER2_2}
vaUString: Result:='vaUString'; vaUString: Result:='vaUString';
vaQWord : Result:='vaQWord'; vaQWord : Result:='vaQWord';
{$ENDIF}
else Result:='Unknown ValueType='+dbgs(Ord(ValueType)); else Result:='Unknown ValueType='+dbgs(Ord(ValueType));
end; end;
end; end;
@ -2491,7 +2483,7 @@ procedure LRSObjectBinaryToText(Input, Output: TStream);
ACurrency:=ReadLRSCurrency(Input); ACurrency:=ReadLRSCurrency(Input);
OutLn(FloatToStr(ACurrency)); OutLn(FloatToStr(ACurrency));
end; end;
vaWString{$IFNDEF VER2_2},vaUString{$ENDIF}: begin vaWString,vaUString: begin
AWideString:=ReadLRSWideString(Input); AWideString:=ReadLRSWideString(Input);
OutWideString(AWideString); OutWideString(AWideString);
OutLn(''); OutLn('');
@ -4156,11 +4148,7 @@ begin
Value := GetEnumValue(PTypeInfo(EnumType), Name); Value := GetEnumValue(PTypeInfo(EnumType), Name);
if Value = -1 then if Value = -1 then
PropValueError; PropValueError;
{$IFNDEF VER2_2_0}
include(tset(result),Value); include(tset(result),Value);
{$ELSE}
Result := Result or (1 shl Value);
{$ENDIF}
end; end;
except except
SkipSetBody; SkipSetBody;
@ -4210,7 +4198,6 @@ begin
//debugln('TLRSObjectReader.ReadWideString ',Result); //debugln('TLRSObjectReader.ReadWideString ',Result);
end; end;
{$ifndef VER2_2}
function TLRSObjectReader.ReadUnicodeString: UnicodeString; function TLRSObjectReader.ReadUnicodeString: UnicodeString;
var var
i: Integer; i: Integer;
@ -4221,7 +4208,6 @@ begin
Read(Pointer(@Result[1])^, i*2); Read(Pointer(@Result[1])^, i*2);
//debugln('TLRSObjectReader.ReadWideString ',Result); //debugln('TLRSObjectReader.ReadWideString ',Result);
end; end;
{$endif}
procedure TLRSObjectReader.SkipComponent(SkipComponentInfos: Boolean); procedure TLRSObjectReader.SkipComponent(SkipComponentInfos: Boolean);
var var
@ -4288,7 +4274,7 @@ begin
Count:=ReadIntegerContent; Count:=ReadIntegerContent;
SkipBytes(Count); SkipBytes(Count);
end; end;
vaWString{$IFNDEF VER2_2}, vaUString{$ENDIF}: vaWString, vaUString:
begin begin
Count:=ReadIntegerContent; Count:=ReadIntegerContent;
SkipBytes(Count*2); SkipBytes(Count*2);
@ -4861,24 +4847,12 @@ type
tset = set of 0..31; tset = set of 0..31;
var var
i: Integer; i: Integer;
{$IFDEF VER2_2_0}
Mask: LongInt;
{$ENDIF}
begin begin
WriteValue(vaSet); WriteValue(vaSet);
{$IFDEF VER2_2_0}
Mask := 1;
{$ENDIF}
for i := 0 to 31 do for i := 0 to 31 do
begin begin
{$IFNDEF VER2_2_0}
if (i in tset(Value)) then if (i in tset(Value)) then
WriteStr(GetEnumName(PTypeInfo(SetType), i)); WriteStr(GetEnumName(PTypeInfo(SetType), i));
{$ELSE}
if (Value and Mask) <> 0 then
WriteStr(GetEnumName(PTypeInfo(SetType), i));
Mask := Mask shl 1;
{$ENDIF}
end; end;
WriteStr(''); WriteStr('');
end; end;
@ -4913,7 +4887,6 @@ begin
WriteWideStringContent(Value); WriteWideStringContent(Value);
end; end;
{$ifndef VER2_2}
procedure TLRSObjectWriter.WriteUnicodeString(const Value: UnicodeString); procedure TLRSObjectWriter.WriteUnicodeString(const Value: UnicodeString);
var var
i: Integer; i: Integer;
@ -4923,7 +4896,6 @@ begin
WriteIntegerContent(i); WriteIntegerContent(i);
WriteWideStringContent(Value); WriteWideStringContent(Value);
end; end;
{$endif}
{ TLRPositionLinks } { TLRPositionLinks }
@ -5565,11 +5537,7 @@ begin
if ascii then if ascii then
fToken:=Classes.toString fToken:=Classes.toString
else else
{$ifdef ver2_2_0}
fToken:=Classes.toString
{$else}
fToken:=toWString; fToken:=toWString;
{$endif}
end; end;
procedure TUTF8Parser.HandleMinus; procedure TUTF8Parser.HandleMinus;

View File

@ -125,8 +125,8 @@ Type
function GetClipRect: TRect; override; function GetClipRect: TRect; override;
procedure SetClipRect(const ARect: TRect); override; procedure SetClipRect(const ARect: TRect); override;
function GetClipping: Boolean; {$ifndef ver2_2}override;{$endif} function GetClipping: Boolean; override;
procedure SetClipping(const AValue: boolean); {$ifndef ver2_2}override;{$endif} procedure SetClipping(const AValue: boolean); override;
procedure BeginDoc; override; procedure BeginDoc; override;
procedure EndDoc; override; procedure EndDoc; override;