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
56d7b9db
Kaydet (Commit)
56d7b9db
authored
Agu 30, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I3bb7559101c27eacefbf43f751f96135f8792845
üst
146a4ec3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
27 deletions
+23
-27
DragSource.cxx
vcl/aqua/source/dtrans/DragSource.cxx
+4
-4
DragSourceContext.cxx
vcl/aqua/source/dtrans/DragSourceContext.cxx
+2
-3
DragSourceContext.hxx
vcl/aqua/source/dtrans/DragSourceContext.hxx
+1
-6
salgdicommon.hxx
vcl/inc/aqua/salgdicommon.hxx
+16
-14
No files found.
vcl/aqua/source/dtrans/DragSource.cxx
Dosyayı görüntüle @
56d7b9db
...
@@ -119,7 +119,7 @@ Sequence<OUString> dragSource_getSupportedServiceNames()
...
@@ -119,7 +119,7 @@ Sequence<OUString> dragSource_getSupportedServiceNames()
(
void
)
anImage
;
(
void
)
anImage
;
(
void
)
aPoint
;
(
void
)
aPoint
;
DragSourceDragEvent
dsde
(
static_cast
<
OWeakObject
*>
(
mDragSource
),
DragSourceDragEvent
dsde
(
static_cast
<
OWeakObject
*>
(
mDragSource
),
new
DragSourceContext
(
mDragSource
)
,
new
DragSourceContext
,
mDragSource
,
mDragSource
,
DNDConstants
::
ACTION_COPY
,
DNDConstants
::
ACTION_COPY
,
DNDConstants
::
ACTION_COPY
);
DNDConstants
::
ACTION_COPY
);
...
@@ -139,7 +139,7 @@ Sequence<OUString> dragSource_getSupportedServiceNames()
...
@@ -139,7 +139,7 @@ Sequence<OUString> dragSource_getSupportedServiceNames()
bDropSuccess
=
DragSource
::
g_DropSuccess
;
bDropSuccess
=
DragSource
::
g_DropSuccess
;
DragSourceDropEvent
dsde
(
static_cast
<
OWeakObject
*>
(
mDragSource
),
DragSourceDropEvent
dsde
(
static_cast
<
OWeakObject
*>
(
mDragSource
),
new
DragSourceContext
(
mDragSource
)
,
new
DragSourceContext
,
static_cast
<
XDragSource
*
>
(
mDragSource
),
static_cast
<
XDragSource
*
>
(
mDragSource
),
SystemToOfficeDragActions
(
operation
),
SystemToOfficeDragActions
(
operation
),
bDropSuccess
);
bDropSuccess
);
...
@@ -154,7 +154,7 @@ Sequence<OUString> dragSource_getSupportedServiceNames()
...
@@ -154,7 +154,7 @@ Sequence<OUString> dragSource_getSupportedServiceNames()
(
void
)
draggedImage
;
(
void
)
draggedImage
;
(
void
)
screenPoint
;
(
void
)
screenPoint
;
DragSourceDragEvent
dsde
(
static_cast
<
OWeakObject
*>
(
mDragSource
),
DragSourceDragEvent
dsde
(
static_cast
<
OWeakObject
*>
(
mDragSource
),
new
DragSourceContext
(
mDragSource
)
,
new
DragSourceContext
,
mDragSource
,
mDragSource
,
DNDConstants
::
ACTION_COPY
,
DNDConstants
::
ACTION_COPY
,
DNDConstants
::
ACTION_COPY
);
DNDConstants
::
ACTION_COPY
);
...
@@ -263,7 +263,7 @@ void SAL_CALL DragSource::startDrag(const DragGestureEvent& trigger,
...
@@ -263,7 +263,7 @@ void SAL_CALL DragSource::startDrag(const DragGestureEvent& trigger,
trigger
.
Event
>>=
mMouseEvent
;
trigger
.
Event
>>=
mMouseEvent
;
m_MouseButton
=
mMouseEvent
.
Buttons
;
m_MouseButton
=
mMouseEvent
.
Buttons
;
mXDragSrcListener
=
listener
;
mXDragSrcListener
=
listener
;
mXCurrentContext
=
static_cast
<
XDragSourceContext
*>
(
new
DragSourceContext
(
this
)
);
mXCurrentContext
=
static_cast
<
XDragSourceContext
*>
(
new
DragSourceContext
);
auto_ptr
<
AquaClipboard
>
clipb
(
new
AquaClipboard
(
NULL
,
false
));
auto_ptr
<
AquaClipboard
>
clipb
(
new
AquaClipboard
(
NULL
,
false
));
g_XTransferable
=
transferable
;
g_XTransferable
=
transferable
;
clipb
->
setContents
(
g_XTransferable
,
uno
::
Reference
<
XClipboardOwner
>
());
clipb
->
setContents
(
g_XTransferable
,
uno
::
Reference
<
XClipboardOwner
>
());
...
...
vcl/aqua/source/dtrans/DragSourceContext.cxx
Dosyayı görüntüle @
56d7b9db
...
@@ -28,9 +28,8 @@ using namespace com::sun::star::datatransfer::dnd::DNDConstants;
...
@@ -28,9 +28,8 @@ using namespace com::sun::star::datatransfer::dnd::DNDConstants;
using
namespace
com
::
sun
::
star
::
uno
;
using
namespace
com
::
sun
::
star
::
uno
;
using
namespace
cppu
;
using
namespace
cppu
;
DragSourceContext
::
DragSourceContext
(
DragSource
*
pSource
)
:
DragSourceContext
::
DragSourceContext
()
:
WeakComponentImplHelper1
<
XDragSourceContext
>
(
m_aMutex
),
WeakComponentImplHelper1
<
XDragSourceContext
>
(
m_aMutex
)
m_pDragSource
(
pSource
)
{
{
}
}
...
...
vcl/aqua/source/dtrans/DragSourceContext.hxx
Dosyayı görüntüle @
56d7b9db
...
@@ -27,8 +27,6 @@
...
@@ -27,8 +27,6 @@
#include <boost/utility.hpp>
#include <boost/utility.hpp>
#include "DragSource.hxx"
// This class fires events to XDragSourceListener implementations.
// This class fires events to XDragSourceListener implementations.
// Of that interface only dragDropEnd and dropActionChanged are called.
// Of that interface only dragDropEnd and dropActionChanged are called.
// The functions dragEnter, dragExit and dragOver are not supported
// The functions dragEnter, dragExit and dragOver are not supported
...
@@ -40,7 +38,7 @@ class DragSourceContext: public cppu::BaseMutex,
...
@@ -40,7 +38,7 @@ class DragSourceContext: public cppu::BaseMutex,
private
::
boost
::
noncopyable
private
::
boost
::
noncopyable
{
{
public
:
public
:
DragSourceContext
(
DragSource
*
pSource
);
DragSourceContext
();
~
DragSourceContext
();
~
DragSourceContext
();
virtual
sal_Int32
SAL_CALL
getCurrentCursor
(
)
virtual
sal_Int32
SAL_CALL
getCurrentCursor
(
)
...
@@ -54,9 +52,6 @@ public:
...
@@ -54,9 +52,6 @@ public:
virtual
void
SAL_CALL
transferablesFlavorsChanged
(
)
virtual
void
SAL_CALL
transferablesFlavorsChanged
(
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
);
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
);
private
:
DragSource
*
m_pDragSource
;
};
};
...
...
vcl/inc/aqua/salgdicommon.hxx
Dosyayı görüntüle @
56d7b9db
...
@@ -9,26 +9,28 @@ class RGBAColor
...
@@ -9,26 +9,28 @@ class RGBAColor
public
:
public
:
RGBAColor
(
SalColor
);
RGBAColor
(
SalColor
);
RGBAColor
(
float
fRed
,
float
fGreen
,
float
fBlue
,
float
fAlpha
);
//NOTUSEDYET
RGBAColor
(
float
fRed
,
float
fGreen
,
float
fBlue
,
float
fAlpha
);
//NOTUSEDYET
const
float
*
AsArray
()
const
{
return
&
m_fRed
;
}
const
float
*
AsArray
()
const
{
return
m_fRGBA
;
}
bool
IsVisible
()
const
{
return
m_f
Alpha
>
0
;
}
bool
IsVisible
()
const
{
return
m_f
RGBA
[
3
]
>
0
;
}
void
SetAlpha
(
float
fAlpha
)
{
m_f
Alpha
=
fAlpha
;
}
void
SetAlpha
(
float
fAlpha
)
{
m_f
RGBA
[
3
]
=
fAlpha
;
}
private
:
private
:
float
m_fR
ed
,
m_fGreen
,
m_fBlue
,
m_fAlpha
;
float
m_fR
GBA
[
4
];
// red, green, blue, alpha
};
};
inline
RGBAColor
::
RGBAColor
(
SalColor
nSalColor
)
inline
RGBAColor
::
RGBAColor
(
SalColor
nSalColor
)
:
m_fRed
(
SALCOLOR_RED
(
nSalColor
)
*
(
1.0
/
255
))
{
,
m_fGreen
(
SALCOLOR_GREEN
(
nSalColor
)
*
(
1.0
/
255
))
m_fRGBA
[
0
]
=
SALCOLOR_RED
(
nSalColor
)
*
(
1.0
/
255
);
,
m_fBlue
(
SALCOLOR_BLUE
(
nSalColor
)
*
(
1.0
/
255
))
m_fRGBA
[
1
]
=
SALCOLOR_GREEN
(
nSalColor
)
*
(
1.0
/
255
);
,
m_fAlpha
(
1.0
)
// opaque
m_fRGBA
[
2
]
=
SALCOLOR_BLUE
(
nSalColor
)
*
(
1.0
/
255
);
{}
m_fRGBA
[
3
]
=
1.0
;
// opaque
}
inline
RGBAColor
::
RGBAColor
(
float
fRed
,
float
fGreen
,
float
fBlue
,
float
fAlpha
)
inline
RGBAColor
::
RGBAColor
(
float
fRed
,
float
fGreen
,
float
fBlue
,
float
fAlpha
)
:
m_fRed
(
fRed
)
{
,
m_fGreen
(
fGreen
)
m_fRGBA
[
0
]
=
fRed
;
,
m_fBlue
(
fBlue
)
m_fRGBA
[
1
]
=
fGreen
;
,
m_fAlpha
(
fAlpha
)
m_fRGBA
[
2
]
=
fBlue
;
{}
m_fRGBA
[
3
]
=
fAlpha
;
}
class
XorEmulation
class
XorEmulation
{
{
...
...
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