Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
c57d50dc
Kaydet (Commit)
c57d50dc
authored
Tem 13, 2011
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
callcatcher: remove Printer::Foo
üst
30bfcd14
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
104 deletions
+0
-104
print.hxx
vcl/inc/vcl/print.hxx
+0
-5
print.cxx
vcl/source/gdi/print.cxx
+0
-56
print2.cxx
vcl/source/gdi/print2.cxx
+0
-43
No files found.
vcl/inc/vcl/print.hxx
Dosyayı görüntüle @
c57d50dc
...
...
@@ -272,7 +272,6 @@ private:
static
SAL_DLLPRIVATE
sal_uLong
ImplSalPrinterErrorCodeToVCL
(
sal_uLong
nError
);
private
:
SAL_DLLPRIVATE
void
ImplEndPrint
();
SAL_DLLPRIVATE
sal_Bool
EndJob
();
SAL_DLLPRIVATE
Printer
(
const
Printer
&
rPrinter
);
SAL_DLLPRIVATE
Printer
&
operator
=
(
const
Printer
&
rPrinter
);
...
...
@@ -281,7 +280,6 @@ public:
SAL_DLLPRIVATE
void
ImplEndPage
();
public
:
void
DrawGradientEx
(
OutputDevice
*
pOut
,
const
Rectangle
&
rRect
,
const
Gradient
&
rGradient
);
void
DrawGradientEx
(
OutputDevice
*
pOut
,
const
PolyPolygon
&
rPolyPoly
,
const
Gradient
&
rGradient
);
protected
:
...
...
@@ -290,7 +288,6 @@ protected:
public
:
Printer
();
Printer
(
const
Window
*
pWindow
);
Printer
(
const
JobSetup
&
rJobSetup
);
Printer
(
const
QueueInfo
&
rQueueInfo
);
Printer
(
const
XubString
&
rPrinterName
);
...
...
@@ -329,7 +326,6 @@ public:
sal_Bool
SetOrientation
(
Orientation
eOrient
);
Orientation
GetOrientation
()
const
;
DuplexMode
GetDuplexMode
()
const
;
sal_Bool
SetDuplexMode
(
DuplexMode
);
// returns the angle that a landscape page will be turned counterclockwise
// wrt to portrait. The return value may be only valid for
...
...
@@ -363,7 +359,6 @@ public:
sal_Bool
IsPrinting
()
const
{
return
mbPrinting
;
}
sal_Bool
AbortJob
();
const
XubString
&
GetCurJobName
()
const
{
return
maJobName
;
}
sal_uInt16
GetCurPage
()
const
{
return
mnCurPage
;
}
sal_Bool
IsJobActive
()
const
{
return
mbJobActive
;
}
...
...
vcl/source/gdi/print.cxx
Dosyayı görüntüle @
c57d50dc
...
...
@@ -667,14 +667,6 @@ Printer::Printer()
// -----------------------------------------------------------------------
Printer
::
Printer
(
const
Window
*
pWindow
)
{
ImplInitData
();
ImplInitDisplay
(
pWindow
);
}
// -----------------------------------------------------------------------
Printer
::
Printer
(
const
JobSetup
&
rJobSetup
)
:
maJobSetup
(
rJobSetup
)
{
...
...
@@ -1336,13 +1328,6 @@ const PaperInfo& Printer::GetPaperInfo( int nPaper ) const
// -----------------------------------------------------------------------
DuplexMode
Printer
::
GetDuplexMode
()
const
{
return
maJobSetup
.
ImplGetConstData
()
->
meDuplexMode
;
}
// -----------------------------------------------------------------------
sal_Bool
Printer
::
SetDuplexMode
(
DuplexMode
eDuplex
)
{
if
(
mbInPrintPage
)
...
...
@@ -1455,15 +1440,6 @@ sal_uLong Printer::ImplSalPrinterErrorCodeToVCL( sal_uLong nError )
// -----------------------------------------------------------------------
void
Printer
::
ImplEndPrint
()
{
mbPrinting
=
sal_False
;
mnCurPrintPage
=
0
;
maJobName
.
Erase
();
}
// -----------------------------------------------------------------------
IMPL_LINK
(
Printer
,
ImplDestroyPrinterAsync
,
void
*
,
pSalPrinter
)
{
SalPrinter
*
pPrinter
=
(
SalPrinter
*
)
pSalPrinter
;
...
...
@@ -1510,38 +1486,6 @@ sal_Bool Printer::EndJob()
// -----------------------------------------------------------------------
sal_Bool
Printer
::
AbortJob
()
{
// Wenn wir einen Queue-Printer haben, kann man diesen noch mit
// AbortJob() abbrechen, solange dieser noch am Drucken ist
if
(
!
IsJobActive
()
&&
!
IsPrinting
()
)
return
sal_False
;
mbJobActive
=
sal_False
;
mbInPrintPage
=
sal_False
;
mpJobGraphics
=
NULL
;
if
(
mpPrinter
)
{
mbPrinting
=
sal_False
;
mnCurPage
=
0
;
mnCurPrintPage
=
0
;
maJobName
.
Erase
();
ImplReleaseGraphics
();
mbDevOutput
=
sal_False
;
mpPrinter
->
AbortJob
();
Application
::
PostUserEvent
(
LINK
(
this
,
Printer
,
ImplDestroyPrinterAsync
),
mpPrinter
);
mpPrinter
=
NULL
;
return
sal_True
;
}
return
sal_False
;
}
// -----------------------------------------------------------------------
void
Printer
::
ImplStartPage
()
{
if
(
!
IsJobActive
()
)
...
...
vcl/source/gdi/print2.cxx
Dosyayı görüntüle @
c57d50dc
...
...
@@ -1579,47 +1579,4 @@ void Printer::DrawGradientEx( OutputDevice* pOut, const Rectangle& rRect, const
pOut
->
DrawGradient
(
rRect
,
rGradient
);
}
// -----------------------------------------------------------------------------
void
Printer
::
DrawGradientEx
(
OutputDevice
*
pOut
,
const
PolyPolygon
&
rPolyPoly
,
const
Gradient
&
rGradient
)
{
const
PrinterOptions
&
rPrinterOptions
=
GetPrinterOptions
();
if
(
rPrinterOptions
.
IsReduceGradients
()
)
{
if
(
PRINTER_GRADIENT_STRIPES
==
rPrinterOptions
.
GetReducedGradientMode
()
)
{
if
(
!
rGradient
.
GetSteps
()
||
(
rGradient
.
GetSteps
()
>
rPrinterOptions
.
GetReducedGradientStepCount
()
)
)
{
Gradient
aNewGradient
(
rGradient
);
aNewGradient
.
SetSteps
(
rPrinterOptions
.
GetReducedGradientStepCount
()
);
pOut
->
DrawGradient
(
rPolyPoly
,
aNewGradient
);
}
else
pOut
->
DrawGradient
(
rPolyPoly
,
rGradient
);
}
else
{
const
Color
&
rStartColor
=
rGradient
.
GetStartColor
();
const
Color
&
rEndColor
=
rGradient
.
GetEndColor
();
const
long
nR
=
(
(
(
long
)
rStartColor
.
GetRed
()
*
rGradient
.
GetStartIntensity
()
)
/
100L
+
(
(
long
)
rEndColor
.
GetRed
()
*
rGradient
.
GetEndIntensity
()
)
/
100L
)
>>
1
;
const
long
nG
=
(
(
(
long
)
rStartColor
.
GetGreen
()
*
rGradient
.
GetStartIntensity
()
)
/
100L
+
(
(
long
)
rEndColor
.
GetGreen
()
*
rGradient
.
GetEndIntensity
()
)
/
100L
)
>>
1
;
const
long
nB
=
(
(
(
long
)
rStartColor
.
GetBlue
()
*
rGradient
.
GetStartIntensity
()
)
/
100L
+
(
(
long
)
rEndColor
.
GetBlue
()
*
rGradient
.
GetEndIntensity
()
)
/
100L
)
>>
1
;
const
Color
aColor
(
(
sal_uInt8
)
nR
,
(
sal_uInt8
)
nG
,
(
sal_uInt8
)
nB
);
pOut
->
Push
(
PUSH_LINECOLOR
|
PUSH_FILLCOLOR
);
pOut
->
SetLineColor
(
aColor
);
pOut
->
SetFillColor
(
aColor
);
pOut
->
DrawPolyPolygon
(
rPolyPoly
);
pOut
->
Pop
();
}
}
else
pOut
->
DrawGradient
(
rPolyPoly
,
rGradient
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment