mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-24 22:48:25 +02:00
LCL: Delete the pcfDelphi* and pcfKylix* clipboard formats. Issue #27194.
git-svn-id: trunk@56488 -
This commit is contained in:
parent
cb90757df0
commit
3f7ccb5d63
@ -308,22 +308,22 @@ end;
|
|||||||
|
|
||||||
function CF_Picture: TClipboardFormat;
|
function CF_Picture: TClipboardFormat;
|
||||||
begin
|
begin
|
||||||
Result:=PredefinedClipboardFormat(pcfDelphiPicture);
|
Result:=PredefinedClipboardFormat(pcfPicture);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function CF_MetaFilePict: TClipboardFormat;
|
function CF_MetaFilePict: TClipboardFormat;
|
||||||
begin
|
begin
|
||||||
Result:=PredefinedClipboardFormat(pcfDelphiMetaFilePict);
|
Result:=PredefinedClipboardFormat(pcfMetaFilePict);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function CF_Object: TClipboardFormat;
|
function CF_Object: TClipboardFormat;
|
||||||
begin
|
begin
|
||||||
Result:=PredefinedClipboardFormat(pcfDelphiObject);
|
Result:=PredefinedClipboardFormat(pcfObject);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function CF_Component: TClipboardFormat;
|
function CF_Component: TClipboardFormat;
|
||||||
begin
|
begin
|
||||||
Result:=PredefinedClipboardFormat(pcfDelphiComponent);
|
Result:=PredefinedClipboardFormat(pcfComponent);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure FreeAllClipboards;
|
procedure FreeAllClipboards;
|
||||||
|
@ -619,10 +619,7 @@ begin
|
|||||||
if List<>nil then FreeMem(List);
|
if List<>nil then FreeMem(List);
|
||||||
end;
|
end;
|
||||||
if not Result then begin
|
if not Result then begin
|
||||||
Result:=
|
Result := (PredefinedClipboardFormat(pcfPicture)=FormatID) and (HasPictureFormat);
|
||||||
((PredefinedClipboardFormat(pcfPicture)=FormatID)
|
|
||||||
or (PredefinedClipboardFormat(pcfDelphiPicture)=FormatID))
|
|
||||||
and (HasPictureFormat);
|
|
||||||
end;
|
end;
|
||||||
end else
|
end else
|
||||||
Result:=false;
|
Result:=false;
|
||||||
|
@ -244,7 +244,6 @@ const
|
|||||||
begin
|
begin
|
||||||
inherited Create;
|
inherited Create;
|
||||||
Add(PredefinedClipboardFormat(pcfBitmap), TBitmap);
|
Add(PredefinedClipboardFormat(pcfBitmap), TBitmap);
|
||||||
//Add(PredefinedClipboardFormat(pcfDelphiBitmap), TBitmap);
|
|
||||||
Add(PredefinedClipboardFormat(pcfPixmap), TPixmap);
|
Add(PredefinedClipboardFormat(pcfPixmap), TPixmap);
|
||||||
//Add(PredefinedClipboardFormat(pcfIcon), TCustomIcon);
|
//Add(PredefinedClipboardFormat(pcfIcon), TCustomIcon);
|
||||||
Add(ClipboardRegisterFormat(sMimeTypePng), TPortableNetworkGraphic);
|
Add(ClipboardRegisterFormat(sMimeTypePng), TPortableNetworkGraphic);
|
||||||
|
@ -488,7 +488,6 @@ begin
|
|||||||
begin
|
begin
|
||||||
List.Clear;
|
List.Clear;
|
||||||
List.Add(PredefinedClipboardMimeTypes[pcfBitmap]);
|
List.Add(PredefinedClipboardMimeTypes[pcfBitmap]);
|
||||||
//List.Add(PredefinedClipboardMimeTypes[pcfDelphiBitmap]);
|
|
||||||
List.Add(PredefinedClipboardMimeTypes[pcfPixmap]);
|
List.Add(PredefinedClipboardMimeTypes[pcfPixmap]);
|
||||||
end else
|
end else
|
||||||
inherited GetSupportedSourceMimeTypes(List);
|
inherited GetSupportedSourceMimeTypes(List);
|
||||||
@ -568,7 +567,6 @@ begin
|
|||||||
{$IFDEF VerboseLCLTodos}{$note Make oo}{$ENDIF}
|
{$IFDEF VerboseLCLTodos}{$note Make oo}{$ENDIF}
|
||||||
if (ClassType=TBitmap) or (ClassType=TPixmap) or (ClassType=TCustomIcon) then begin
|
if (ClassType=TBitmap) or (ClassType=TPixmap) or (ClassType=TCustomIcon) then begin
|
||||||
if (AnsiCompareText(AMimeType,PredefinedClipboardMimeTypes[pcfBitmap])=0)
|
if (AnsiCompareText(AMimeType,PredefinedClipboardMimeTypes[pcfBitmap])=0)
|
||||||
//or (AnsiCompareText(AMimeType,PredefinedClipboardMimeTypes[pcfDelphiBitmap])=0)
|
|
||||||
or (AnsiCompareText(AMimeType,PredefinedClipboardMimeTypes[pcfPixmap])=0) then
|
or (AnsiCompareText(AMimeType,PredefinedClipboardMimeTypes[pcfPixmap])=0) then
|
||||||
begin
|
begin
|
||||||
LoadFromStream(AStream);
|
LoadFromStream(AStream);
|
||||||
|
@ -340,8 +340,6 @@ begin
|
|||||||
until (DbgFormatID=0);
|
until (DbgFormatID=0);
|
||||||
Windows.CloseClipboard;
|
Windows.CloseClipboard;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
// if FormatID=PredefinedClipboardFormat(pcfDelphiBitmap)
|
|
||||||
// then FormatID := CF_BITMAP;
|
|
||||||
if (FormatID=0) or (Stream=nil) or
|
if (FormatID=0) or (Stream=nil) or
|
||||||
not Windows.IsClipboardFormatAvailable(FormatID) then exit;
|
not Windows.IsClipboardFormatAvailable(FormatID) then exit;
|
||||||
|
|
||||||
|
@ -407,8 +407,6 @@ begin
|
|||||||
until (DbgFormatID=0);
|
until (DbgFormatID=0);
|
||||||
Windows.CloseClipboard;
|
Windows.CloseClipboard;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
//if FormatID=PredefinedClipboardFormat(pcfDelphiBitmap)
|
|
||||||
// then FormatID := CF_BITMAP;
|
|
||||||
if (FormatID=0) or (Stream=nil) or
|
if (FormatID=0) or (Stream=nil) or
|
||||||
not Windows.IsClipboardFormatAvailable(FormatID) then exit;
|
not Windows.IsClipboardFormatAvailable(FormatID) then exit;
|
||||||
|
|
||||||
|
@ -388,8 +388,6 @@ var
|
|||||||
begin
|
begin
|
||||||
//DebugLn('TWin32WidgetSet.ClipboardGetData - Start');
|
//DebugLn('TWin32WidgetSet.ClipboardGetData - Start');
|
||||||
Result := false;
|
Result := false;
|
||||||
// if FormatID=PredefinedClipboardFormat(pcfDelphiBitmap)
|
|
||||||
// then FormatID := CF_BITMAP;
|
|
||||||
if (FormatID=0) or (Stream=nil) or
|
if (FormatID=0) or (Stream=nil) or
|
||||||
not Windows.IsClipboardFormatAvailable(FormatID) then exit;
|
not Windows.IsClipboardFormatAvailable(FormatID) then exit;
|
||||||
|
|
||||||
|
@ -2712,23 +2712,10 @@ type
|
|||||||
pcfPixmap,
|
pcfPixmap,
|
||||||
pcfIcon,
|
pcfIcon,
|
||||||
pcfPicture,
|
pcfPicture,
|
||||||
|
pcfMetaFilePict,
|
||||||
pcfObject,
|
pcfObject,
|
||||||
pcfComponent,
|
pcfComponent,
|
||||||
pcfCustomData,
|
pcfCustomData
|
||||||
|
|
||||||
// Delphi definitions (only for compatibility)
|
|
||||||
pcfDelphiText,
|
|
||||||
// pcfDelphiBitmap,
|
|
||||||
pcfDelphiPicture,
|
|
||||||
pcfDelphiMetaFilePict,
|
|
||||||
pcfDelphiObject,
|
|
||||||
pcfDelphiComponent {,
|
|
||||||
|
|
||||||
// Kylix definitions (only for compatibility)
|
|
||||||
pcfKylixPicture,
|
|
||||||
pcfKylixBitmap,
|
|
||||||
pcfKylixDrawing,
|
|
||||||
pcfKylixComponent }
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const
|
const
|
||||||
@ -2738,23 +2725,10 @@ const
|
|||||||
'image/xpm',
|
'image/xpm',
|
||||||
'image/lcl.icon',
|
'image/lcl.icon',
|
||||||
'image/lcl.picture',
|
'image/lcl.picture',
|
||||||
|
'image/lcl.metafilepict',
|
||||||
'application/lcl.object',
|
'application/lcl.object',
|
||||||
'application/lcl.component',
|
'application/lcl.component',
|
||||||
'application/lcl.customdata',
|
'application/lcl.customdata'
|
||||||
|
|
||||||
// Delphi definitions (only for compatibility)
|
|
||||||
'text/plain',
|
|
||||||
{ 'image/delphi.bitmap', }
|
|
||||||
'Delphi Picture',
|
|
||||||
'image/delphi.metafilepict',
|
|
||||||
'application/delphi.object',
|
|
||||||
'Delphi Component' {,
|
|
||||||
|
|
||||||
// Kylix definitons (only for compatibility)
|
|
||||||
'image/delphi.picture',
|
|
||||||
'image/delphi.bitmap',
|
|
||||||
'image/delphi.drawing',
|
|
||||||
'application/delphi.component' }
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user