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
4e642a3f
Kaydet (Commit)
4e642a3f
authored
Mar 22, 2014
tarafından
Khaled Hosny
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
No need for these (void)s
Change-Id: I946009c4ffacf51c7f144acf85060ccd4a31620a
üst
ac466bc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
54 deletions
+20
-54
outdev2.cxx
vcl/source/gdi/outdev2.cxx
+7
-20
print.cxx
vcl/source/gdi/print.cxx
+13
-34
No files found.
vcl/source/gdi/outdev2.cxx
Dosyayı görüntüle @
4e642a3f
...
@@ -328,14 +328,10 @@ void OutputDevice::DrawOutDev( const Point& rDestPt, const Size& rDestSize,
...
@@ -328,14 +328,10 @@ void OutputDevice::DrawOutDev( const Point& rDestPt, const Size& rDestSize,
}
}
}
}
void
OutputDevice
::
DrawOutDev
(
const
Point
&
rDestPt
,
const
Size
&
rDestSize
,
void
OutputDevice
::
DrawOutDev
(
const
Point
&
/*rDestPt*/
,
const
Size
&
/*rDestSize*/
,
const
Point
&
rSrcPt
,
const
Size
&
rSrcSize
,
const
Point
&
/*rSrcPt*/
,
const
Size
&
/*rSrcSize*/
,
const
Printer
&
/*
rOutDev
*/
)
const
Printer
&
/*
rOutDev
*/
)
{
{
(
void
)
rDestPt
;
(
void
)
rDestSize
;
(
void
)
rSrcPt
;
(
void
)
rSrcSize
;
// This should never occur! You can't call this function on a Printer instance
// This should never occur! You can't call this function on a Printer instance
DBG_ASSERT
(
false
,
"Don't use OutputDevice::DrawOutDev(...) with printer devices!"
);
DBG_ASSERT
(
false
,
"Don't use OutputDevice::DrawOutDev(...) with printer devices!"
);
}
}
...
@@ -379,10 +375,8 @@ void OutputDevice::CopyArea( const Point& rDestPt,
...
@@ -379,10 +375,8 @@ void OutputDevice::CopyArea( const Point& rDestPt,
mpAlphaVDev
->
CopyArea
(
rDestPt
,
rSrcPt
,
rSrcSize
,
nFlags
);
mpAlphaVDev
->
CopyArea
(
rDestPt
,
rSrcPt
,
rSrcSize
,
nFlags
);
}
}
void
OutputDevice
::
CopyAreaFinal
(
SalTwoRect
&
aPosAry
,
sal_uInt32
nFlags
)
void
OutputDevice
::
CopyAreaFinal
(
SalTwoRect
&
aPosAry
,
sal_uInt32
/*nFlags*/
)
{
{
(
void
)
nFlags
;
if
(
aPosAry
.
mnSrcWidth
&&
aPosAry
.
mnSrcHeight
&&
aPosAry
.
mnDestWidth
&&
aPosAry
.
mnDestHeight
)
if
(
aPosAry
.
mnSrcWidth
&&
aPosAry
.
mnSrcHeight
&&
aPosAry
.
mnDestWidth
&&
aPosAry
.
mnDestHeight
)
{
{
aPosAry
.
mnDestWidth
=
aPosAry
.
mnSrcWidth
;
aPosAry
.
mnDestWidth
=
aPosAry
.
mnSrcWidth
;
...
@@ -2276,18 +2270,11 @@ void OutputDevice::ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask
...
@@ -2276,18 +2270,11 @@ void OutputDevice::ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask
}
}
}
}
void
OutputDevice
::
ImplPrintMask
(
const
Bitmap
&
rMask
,
const
Color
&
rMaskColor
,
void
OutputDevice
::
ImplPrintMask
(
const
Bitmap
&
/*rMask*/
,
const
Color
&
/*rMaskColor*/
,
const
Point
&
rDestPt
,
const
Size
&
rDestSize
,
const
Point
&
/*rDestPt*/
,
const
Size
&
/*rDestSize*/
,
const
Point
&
rSrcPtPixel
,
const
Size
&
rSrcSizePixel
)
const
Point
&
/*rSrcPtPixel*/
,
const
Size
&
/*rSrcSizePixel*/
)
{
{
// let's leave this for Printer
// let's leave this for Printer
(
void
)
rMask
;
(
void
)
rMaskColor
;
(
void
)
rDestPt
;
(
void
)
rDestSize
;
(
void
)
rSrcPtPixel
;
(
void
)
rSrcSizePixel
;
return
;
return
;
}
}
...
...
vcl/source/gdi/print.cxx
Dosyayı görüntüle @
4e642a3f
...
@@ -212,61 +212,40 @@ bool PrinterOptions::ReadFromConfig( bool i_bFile )
...
@@ -212,61 +212,40 @@ bool PrinterOptions::ReadFromConfig( bool i_bFile )
}
}
bool
Printer
::
DrawTransformBitmapExDirect
(
bool
Printer
::
DrawTransformBitmapExDirect
(
const
basegfx
::
B2DHomMatrix
&
aFullTransform
,
const
basegfx
::
B2DHomMatrix
&
/*aFullTransform*/
,
const
BitmapEx
&
rBitmapEx
)
const
BitmapEx
&
/*rBitmapEx*/
)
{
{
// printers can't draw bitmaps directly
// printers can't draw bitmaps directly
(
void
)
aFullTransform
;
(
void
)
rBitmapEx
;
return
false
;
return
false
;
}
}
bool
Printer
::
TransformReduceBitmapExTargetRange
(
bool
Printer
::
TransformReduceBitmapExTargetRange
(
const
basegfx
::
B2DHomMatrix
&
aFullTransform
,
const
basegfx
::
B2DHomMatrix
&
/*aFullTransform*/
,
basegfx
::
B2DRange
&
aVisibleRange
,
basegfx
::
B2DRange
&
/*aVisibleRange*/
,
double
&
fMaximumArea
)
double
&
/*fMaximumArea*/
)
{
{
// deliberately do nothing - you can't reduce the
// deliberately do nothing - you can't reduce the
// target range for a printer at all
// target range for a printer at all
(
void
)
aFullTransform
;
(
void
)
aVisibleRange
;
(
void
)
fMaximumArea
;
return
true
;
return
true
;
}
}
void
Printer
::
DrawOutDev
(
const
Point
&
rDestPt
,
const
Size
&
rDestSize
,
void
Printer
::
DrawOutDev
(
const
Point
&
/*rDestPt*/
,
const
Size
&
/*rDestSize*/
,
const
Point
&
rSrcPt
,
const
Size
&
rSrcSize
)
const
Point
&
/*rSrcPt*/
,
const
Size
&
/*rSrcSize*/
)
{
{
(
void
)
rDestPt
;
(
void
)
rDestSize
;
(
void
)
rSrcPt
;
(
void
)
rSrcSize
;
DBG_ASSERT
(
false
,
"Don't use OutputDevice::DrawOutDev(...) with printer devices!"
);
DBG_ASSERT
(
false
,
"Don't use OutputDevice::DrawOutDev(...) with printer devices!"
);
}
}
void
Printer
::
DrawOutDev
(
const
Point
&
rDestPt
,
const
Size
&
rDestSize
,
void
Printer
::
DrawOutDev
(
const
Point
&
/*rDestPt*/
,
const
Size
&
/*rDestSize*/
,
const
Point
&
rSrcPt
,
const
Size
&
rSrcSize
,
const
Point
&
/*rSrcPt*/
,
const
Size
&
/*rSrcSize*/
,
const
OutputDevice
&
rOutDev
)
const
OutputDevice
&
/*rOutDev*/
)
{
{
(
void
)
rDestPt
;
(
void
)
rDestSize
;
(
void
)
rSrcPt
;
(
void
)
rSrcSize
;
(
void
)
rOutDev
;
DBG_ASSERT
(
false
,
"Don't use OutputDevice::DrawOutDev(...) with printer devices!"
);
DBG_ASSERT
(
false
,
"Don't use OutputDevice::DrawOutDev(...) with printer devices!"
);
}
}
void
Printer
::
CopyArea
(
const
Point
&
rDestPt
,
void
Printer
::
CopyArea
(
const
Point
&
/*rDestPt*/
,
const
Point
&
rSrcPt
,
const
Size
&
rSrcSize
,
const
Point
&
/*rSrcPt*/
,
const
Size
&
/*rSrcSize*/
,
sal_uInt16
nFlags
)
sal_uInt16
/*nFlags*/
)
{
{
(
void
)
rDestPt
;
(
void
)
rSrcPt
;
(
void
)
rSrcSize
;
(
void
)
nFlags
;
DBG_ASSERT
(
false
,
"Don't use OutputDevice::CopyArea(...) with printer devices!"
);
DBG_ASSERT
(
false
,
"Don't use OutputDevice::CopyArea(...) with printer devices!"
);
}
}
...
...
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