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
4442d226
Kaydet (Commit)
4442d226
authored
Eyl 01, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert OutDevSupportType to scoped enum
Change-Id: I7a1e4448dfff0ea6909149533d228829d980796c
üst
619d5fce
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
22 additions
and
22 deletions
+22
-22
optionsdrawinglayer.hxx
include/svtools/optionsdrawinglayer.hxx
+1
-1
vclenum.hxx
include/vcl/vclenum.hxx
+1
-1
optionsdrawinglayer.cxx
svtools/source/config/optionsdrawinglayer.cxx
+1
-1
overlayselection.cxx
svx/source/sdr/overlay/overlayselection.cxx
+1
-1
svpgdi.cxx
vcl/headless/svpgdi.cxx
+2
-2
salgdicommon.cxx
vcl/quartz/salgdicommon.cxx
+2
-2
line.cxx
vcl/source/outdev/line.cxx
+2
-2
polygon.cxx
vcl/source/outdev/polygon.cxx
+3
-3
polyline.cxx
vcl/source/outdev/polyline.cxx
+2
-2
transparent.cxx
vcl/source/outdev/transparent.cxx
+2
-2
salgdi2.cxx
vcl/unx/generic/gdi/salgdi2.cxx
+2
-2
genpspgraphics.cxx
vcl/unx/generic/print/genpspgraphics.cxx
+1
-1
salgdi2.cxx
vcl/win/gdi/salgdi2.cxx
+2
-2
No files found.
include/svtools/optionsdrawinglayer.hxx
Dosyayı görüntüle @
4442d226
...
...
@@ -95,7 +95,7 @@ class SVT_DLLPUBLIC SvtOptionsDrawinglayer
sal_uInt32
GetMaximumPaperBottomMargin
()
const
;
// #i95644# helper to check if AA is allowed on this system. Currently, for WIN its disabled
// and OutDevSupport
_
TransparentRect is checked (this hits XRenderExtension, e.g.
// and OutDevSupport
Type::
TransparentRect is checked (this hits XRenderExtension, e.g.
// currently for SunRay as long as not supported there)
bool
IsAAPossibleOnThisSystem
()
const
;
...
...
include/vcl/vclenum.hxx
Dosyayı görüntüle @
4442d226
...
...
@@ -81,7 +81,7 @@ enum class FontHintStyle { NONE, Slight, Medium, Full };
typedef
sal_uInt32
sal_UCS4
;
// TODO: this should be moved to rtl
enum
OutDevSupportType
{
OutDevSupport_TransparentRect
,
OutDevSupport_
B2DDraw
};
enum
class
OutDevSupportType
{
TransparentRect
,
B2DDraw
};
struct
ItalicMatrix
{
...
...
svtools/source/config/optionsdrawinglayer.cxx
Dosyayı görüntüle @
4442d226
...
...
@@ -677,7 +677,7 @@ bool SvtOptionsDrawinglayer_Impl::IsAAPossibleOnThisSystem() const
#endif
// check XRenderExtension
if
(
m_bAllowAA
&&
!
Application
::
GetDefaultDevice
()
->
SupportsOperation
(
OutDevSupport
_
TransparentRect
))
if
(
m_bAllowAA
&&
!
Application
::
GetDefaultDevice
()
->
SupportsOperation
(
OutDevSupport
Type
::
TransparentRect
))
{
pThat
->
m_bAllowAA
=
false
;
}
...
...
svx/source/sdr/overlay/overlayselection.cxx
Dosyayı görüntüle @
4442d226
...
...
@@ -80,7 +80,7 @@ namespace sdr
return
OverlayType
::
Invert
;
}
if
(
!
pOut
->
SupportsOperation
(
OutDevSupport
_
TransparentRect
))
if
(
!
pOut
->
SupportsOperation
(
OutDevSupport
Type
::
TransparentRect
))
{
// not possible when no fast transparence paint is supported on the system
return
OverlayType
::
Invert
;
...
...
vcl/headless/svpgdi.cxx
Dosyayı görüntüle @
4442d226
...
...
@@ -1400,8 +1400,8 @@ bool SvpSalGraphics::supportsOperation(OutDevSupportType eType) const
{
switch
(
eType
)
{
case
OutDevSupport
_
TransparentRect
:
case
OutDevSupport
_
B2DDraw
:
case
OutDevSupport
Type
:
:
TransparentRect
:
case
OutDevSupport
Type
:
:
B2DDraw
:
return
true
;
}
return
false
;
...
...
vcl/quartz/salgdicommon.cxx
Dosyayı görüntüle @
4442d226
...
...
@@ -1892,8 +1892,8 @@ bool AquaSalGraphics::supportsOperation( OutDevSupportType eType ) const
bool
bRet
=
false
;
switch
(
eType
)
{
case
OutDevSupport
_
TransparentRect
:
case
OutDevSupport
_
B2DDraw
:
case
OutDevSupport
Type
:
:
TransparentRect
:
case
OutDevSupport
Type
:
:
B2DDraw
:
bRet
=
true
;
break
;
default
:
...
...
vcl/source/outdev/line.cxx
Dosyayı görüntüle @
4442d226
...
...
@@ -115,7 +115,7 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt )
// #i101598# support AA and snap for lines, too
if
((
mnAntialiasing
&
AntialiasingFlags
::
EnableB2dDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
_
B2DDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
Type
::
B2DDraw
)
&&
ROP_OVERPAINT
==
GetRasterOp
()
&&
IsLineColor
())
{
...
...
@@ -159,7 +159,7 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt )
void
OutputDevice
::
drawLine
(
basegfx
::
B2DPolyPolygon
aLinePolyPolygon
,
const
LineInfo
&
rInfo
)
{
const
bool
bTryAA
((
mnAntialiasing
&
AntialiasingFlags
::
EnableB2dDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
_
B2DDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
Type
::
B2DDraw
)
&&
ROP_OVERPAINT
==
GetRasterOp
()
&&
IsLineColor
());
basegfx
::
B2DPolyPolygon
aFillPolyPolygon
;
...
...
vcl/source/outdev/polygon.cxx
Dosyayı görüntüle @
4442d226
...
...
@@ -64,7 +64,7 @@ void OutputDevice::DrawPolyPolygon( const tools::PolyPolygon& rPolyPoly )
// use b2dpolygon drawing if possible
if
((
mnAntialiasing
&
AntialiasingFlags
::
EnableB2dDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
_
B2DDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
Type
::
B2DDraw
)
&&
ROP_OVERPAINT
==
GetRasterOp
()
&&
(
IsLineColor
()
||
IsFillColor
()))
{
...
...
@@ -177,7 +177,7 @@ void OutputDevice::DrawPolygon( const tools::Polygon& rPoly )
// use b2dpolygon drawing if possible
if
((
mnAntialiasing
&
AntialiasingFlags
::
EnableB2dDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
_
B2DDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
Type
::
B2DDraw
)
&&
ROP_OVERPAINT
==
GetRasterOp
()
&&
(
IsLineColor
()
||
IsFillColor
()))
{
...
...
@@ -280,7 +280,7 @@ void OutputDevice::ImplDrawPolyPolygonWithB2DPolyPolygon(const basegfx::B2DPolyP
InitFillColor
();
if
((
mnAntialiasing
&
AntialiasingFlags
::
EnableB2dDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
_
B2DDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
Type
::
B2DDraw
)
&&
ROP_OVERPAINT
==
GetRasterOp
()
&&
(
IsLineColor
()
||
IsFillColor
()))
{
...
...
vcl/source/outdev/polyline.cxx
Dosyayı görüntüle @
4442d226
...
...
@@ -213,7 +213,7 @@ void OutputDevice::DrawPolyLine( const basegfx::B2DPolygon& rB2DPolygon,
InitFillColor
();
const
bool
bTryAA
((
mnAntialiasing
&
AntialiasingFlags
::
EnableB2dDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
_
B2DDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
Type
::
B2DDraw
)
&&
ROP_OVERPAINT
==
GetRasterOp
()
&&
IsLineColor
());
...
...
@@ -313,7 +313,7 @@ bool OutputDevice::DrawPolyLineDirect( const basegfx::B2DPolygon& rB2DPolygon,
const
bool
bTryAA
(
bBypassAACheck
||
((
mnAntialiasing
&
AntialiasingFlags
::
EnableB2dDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
_
B2DDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
Type
::
B2DDraw
)
&&
ROP_OVERPAINT
==
GetRasterOp
()
&&
IsLineColor
()));
...
...
vcl/source/outdev/transparent.cxx
Dosyayı görüntüle @
4442d226
...
...
@@ -233,7 +233,7 @@ void OutputDevice::DrawTransparent( const basegfx::B2DPolyPolygon& rB2DPolyPoly,
InitFillColor
();
if
((
mnAntialiasing
&
AntialiasingFlags
::
EnableB2dDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
_
B2DDraw
)
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
Type
::
B2DDraw
)
&&
(
ROP_OVERPAINT
==
GetRasterOp
())
)
{
// b2dpolygon support not implemented yet on non-UNX platforms
...
...
@@ -305,7 +305,7 @@ bool OutputDevice::DrawTransparentNatively ( const tools::PolyPolygon& rPolyPoly
static
const
char
*
pDisableNative
=
getenv
(
"SAL_DISABLE_NATIVE_ALPHA"
);
if
(
!
pDisableNative
&&
mpGraphics
->
supportsOperation
(
OutDevSupport
_
B2DDraw
)
mpGraphics
->
supportsOperation
(
OutDevSupport
Type
::
B2DDraw
)
#if defined UNX && ! defined MACOSX && ! defined IOS
&&
GetBitCount
()
>
8
#endif
...
...
vcl/unx/generic/gdi/salgdi2.cxx
Dosyayı görüntüle @
4442d226
...
...
@@ -254,8 +254,8 @@ bool X11SalGraphics::supportsOperation( OutDevSupportType eType ) const
bool
bRet
=
false
;
switch
(
eType
)
{
case
OutDevSupport
_
TransparentRect
:
case
OutDevSupport
_
B2DDraw
:
case
OutDevSupport
Type
:
:
TransparentRect
:
case
OutDevSupport
Type
:
:
B2DDraw
:
{
XRenderPeer
&
rPeer
=
XRenderPeer
::
GetInstance
();
const
SalDisplay
*
pSalDisp
=
GetDisplay
();
...
...
vcl/unx/generic/print/genpspgraphics.cxx
Dosyayı görüntüle @
4442d226
...
...
@@ -436,7 +436,7 @@ void GenPspGraphics::drawPolyPolygon( sal_uInt32 nPoly,
bool
GenPspGraphics
::
drawPolyPolygon
(
const
basegfx
::
B2DPolyPolygon
&
,
double
/*fTransparency*/
)
{
// TODO: implement and advertise OutDevSupport
_
B2DDraw support
// TODO: implement and advertise OutDevSupport
Type::
B2DDraw support
return
false
;
}
...
...
vcl/win/gdi/salgdi2.cxx
Dosyayı görüntüle @
4442d226
...
...
@@ -45,10 +45,10 @@ bool WinSalGraphics::supportsOperation( OutDevSupportType eType ) const
switch
(
eType
)
{
case
OutDevSupport
_
TransparentRect
:
case
OutDevSupport
Type
:
:
TransparentRect
:
bRet
=
mbVirDev
||
mbWindow
;
break
;
case
OutDevSupport
_
B2DDraw
:
case
OutDevSupport
Type
:
:
B2DDraw
:
bRet
=
bAllowForTest
;
break
;
default
:
break
;
...
...
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