mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 22:49:30 +02:00
printers, added debug define for cups
git-svn-id: trunk@16184 -
This commit is contained in:
parent
4c807adbc8
commit
f9b471de56
@ -1,3 +1,7 @@
|
||||
{$IFDEF DebugCUPS}
|
||||
{$DEFINE LogPrintoutFile}
|
||||
{$ENDIF}
|
||||
|
||||
{**************************************************************
|
||||
Implementation for cupsprinter
|
||||
***************************************************************}
|
||||
@ -761,6 +765,9 @@ begin
|
||||
{$ENDIF}
|
||||
end;
|
||||
Result:=fCachedOrientation;
|
||||
{$IFDEF DebugCUPS}
|
||||
DebugLn('DoGetOrientation: result=%d',[ord(Result)]);
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
procedure TCUPSPrinter.DoSetOrientation(aValue: TPrinterOrientation);
|
||||
@ -779,6 +786,9 @@ begin
|
||||
SetOptionsOfPrinter;
|
||||
|
||||
St:=IntToStr(Ord(aValue)+3);
|
||||
{$IFDEF DebugCUPS}
|
||||
DebugLn('Orientation-Requested=%s',[st]);
|
||||
{$ENDIF}
|
||||
cupsAddOption('orientation-requested',St);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user