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
93a8ef5a
Kaydet (Commit)
93a8ef5a
authored
Mar 28, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up C-style casts from pointers to void
Change-Id: I98cf0c0eee558662d1e3dd20cca99ec1ca8c9a2c
üst
2828d92e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
28 deletions
+28
-28
scrollabledialog.cxx
toolkit/source/awt/scrollabledialog.cxx
+1
-1
vclxaccessiblecomponent.cxx
toolkit/source/awt/vclxaccessiblecomponent.cxx
+5
-5
vclxbitmap.cxx
toolkit/source/awt/vclxbitmap.cxx
+2
-2
vclxfont.cxx
toolkit/source/awt/vclxfont.cxx
+1
-1
vclxgraphics.cxx
toolkit/source/awt/vclxgraphics.cxx
+1
-1
vclxprinter.cxx
toolkit/source/awt/vclxprinter.cxx
+1
-1
vclxtoolkit.cxx
toolkit/source/awt/vclxtoolkit.cxx
+5
-5
vclxwindow.cxx
toolkit/source/awt/vclxwindow.cxx
+12
-12
No files found.
toolkit/source/awt/scrollabledialog.cxx
Dosyayı görüntüle @
93a8ef5a
...
@@ -106,7 +106,7 @@ void ScrollableWrapper<T>::lcl_Scroll( long nX, long nY )
...
@@ -106,7 +106,7 @@ void ScrollableWrapper<T>::lcl_Scroll( long nX, long nY )
template
<
class
T
>
template
<
class
T
>
sal_IntPtr
ScrollableWrapper
<
T
>::
LinkStubScrollBarHdl
(
void
*
pThis
,
void
*
pCaller
)
sal_IntPtr
ScrollableWrapper
<
T
>::
LinkStubScrollBarHdl
(
void
*
pThis
,
void
*
pCaller
)
{
{
return
((
ScrollableWrapper
<
T
>*
)
pThis
)
->
ScrollBarHdl
(
(
ScrollBar
*
)
pCaller
);
return
((
ScrollableWrapper
<
T
>*
)
pThis
)
->
ScrollBarHdl
(
static_cast
<
ScrollBar
*>
(
pCaller
)
);
}
}
template
<
class
T
>
template
<
class
T
>
...
...
toolkit/source/awt/vclxaccessiblecomponent.cxx
Dosyayı görüntüle @
93a8ef5a
...
@@ -144,7 +144,7 @@ uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::GetChildAc
...
@@ -144,7 +144,7 @@ uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::GetChildAc
// and returns its accessible
// and returns its accessible
// MT: Change this later, normally a show/hide event shouldn't have the vcl::Window* in pData.
// MT: Change this later, normally a show/hide event shouldn't have the vcl::Window* in pData.
vcl
::
Window
*
pChildWindow
=
(
vcl
::
Window
*
)
rVclWindowEvent
.
GetData
(
);
vcl
::
Window
*
pChildWindow
=
static_cast
<
vcl
::
Window
*>
(
rVclWindowEvent
.
GetData
()
);
if
(
pChildWindow
&&
GetWindow
()
==
pChildWindow
->
GetAccessibleParentWindow
()
)
if
(
pChildWindow
&&
GetWindow
()
==
pChildWindow
->
GetAccessibleParentWindow
()
)
return
pChildWindow
->
GetAccessible
(
rVclWindowEvent
.
GetId
()
==
VCLEVENT_WINDOW_SHOW
);
return
pChildWindow
->
GetAccessible
(
rVclWindowEvent
.
GetId
()
==
VCLEVENT_WINDOW_SHOW
);
else
else
...
@@ -200,7 +200,7 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind
...
@@ -200,7 +200,7 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind
break
;
break
;
case
VCLEVENT_WINDOW_CHILDDESTROYED
:
case
VCLEVENT_WINDOW_CHILDDESTROYED
:
{
{
vcl
::
Window
*
pWindow
=
(
vcl
::
Window
*
)
rVclWindowEvent
.
GetData
(
);
vcl
::
Window
*
pWindow
=
static_cast
<
vcl
::
Window
*>
(
rVclWindowEvent
.
GetData
()
);
DBG_ASSERT
(
pWindow
,
"VCLEVENT_WINDOW_CHILDDESTROYED - Window=?"
);
DBG_ASSERT
(
pWindow
,
"VCLEVENT_WINDOW_CHILDDESTROYED - Window=?"
);
if
(
pWindow
->
GetAccessible
(
false
).
is
()
)
if
(
pWindow
->
GetAccessible
(
false
).
is
()
)
{
{
...
@@ -265,7 +265,7 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind
...
@@ -265,7 +265,7 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind
break
;
break
;
case
VCLEVENT_WINDOW_FRAMETITLECHANGED
:
case
VCLEVENT_WINDOW_FRAMETITLECHANGED
:
{
{
OUString
aOldName
(
*
((
OUString
*
)
rVclWindowEvent
.
GetData
())
);
OUString
aOldName
(
*
static_cast
<
OUString
*>
(
rVclWindowEvent
.
GetData
())
);
OUString
aNewName
(
getAccessibleName
()
);
OUString
aNewName
(
getAccessibleName
()
);
aOldValue
<<=
aOldName
;
aOldValue
<<=
aOldName
;
aNewValue
<<=
aNewName
;
aNewValue
<<=
aNewName
;
...
@@ -297,7 +297,7 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind
...
@@ -297,7 +297,7 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind
break
;
break
;
case
VCLEVENT_WINDOW_MENUBARADDED
:
case
VCLEVENT_WINDOW_MENUBARADDED
:
{
{
MenuBar
*
pMenuBar
=
(
MenuBar
*
)
rVclWindowEvent
.
GetData
(
);
MenuBar
*
pMenuBar
=
static_cast
<
MenuBar
*>
(
rVclWindowEvent
.
GetData
()
);
if
(
pMenuBar
)
if
(
pMenuBar
)
{
{
uno
::
Reference
<
accessibility
::
XAccessible
>
xChild
(
pMenuBar
->
GetAccessible
()
);
uno
::
Reference
<
accessibility
::
XAccessible
>
xChild
(
pMenuBar
->
GetAccessible
()
);
...
@@ -311,7 +311,7 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind
...
@@ -311,7 +311,7 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind
break
;
break
;
case
VCLEVENT_WINDOW_MENUBARREMOVED
:
case
VCLEVENT_WINDOW_MENUBARREMOVED
:
{
{
MenuBar
*
pMenuBar
=
(
MenuBar
*
)
rVclWindowEvent
.
GetData
(
);
MenuBar
*
pMenuBar
=
static_cast
<
MenuBar
*>
(
rVclWindowEvent
.
GetData
()
);
if
(
pMenuBar
)
if
(
pMenuBar
)
{
{
uno
::
Reference
<
accessibility
::
XAccessible
>
xChild
(
pMenuBar
->
GetAccessible
()
);
uno
::
Reference
<
accessibility
::
XAccessible
>
xChild
(
pMenuBar
->
GetAccessible
()
);
...
...
toolkit/source/awt/vclxbitmap.cxx
Dosyayı görüntüle @
93a8ef5a
...
@@ -65,7 +65,7 @@ IMPL_XTYPEPROVIDER_END
...
@@ -65,7 +65,7 @@ IMPL_XTYPEPROVIDER_END
SvMemoryStream
aMem
;
SvMemoryStream
aMem
;
WriteDIB
(
maBitmap
.
GetBitmap
(),
aMem
,
false
,
true
);
WriteDIB
(
maBitmap
.
GetBitmap
(),
aMem
,
false
,
true
);
return
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
(
(
sal_Int8
*
)
aMem
.
GetData
(
),
aMem
.
Tell
()
);
return
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
(
static_cast
<
sal_Int8
const
*>
(
aMem
.
GetData
()
),
aMem
.
Tell
()
);
}
}
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
VCLXBitmap
::
getMaskDIB
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
VCLXBitmap
::
getMaskDIB
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
...
@@ -74,7 +74,7 @@ IMPL_XTYPEPROVIDER_END
...
@@ -74,7 +74,7 @@ IMPL_XTYPEPROVIDER_END
SvMemoryStream
aMem
;
SvMemoryStream
aMem
;
WriteDIB
(
maBitmap
.
GetMask
(),
aMem
,
false
,
true
);
WriteDIB
(
maBitmap
.
GetMask
(),
aMem
,
false
,
true
);
return
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
(
(
sal_Int8
*
)
aMem
.
GetData
(
),
aMem
.
Tell
()
);
return
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
(
static_cast
<
sal_Int8
const
*>
(
aMem
.
GetData
()
),
aMem
.
Tell
()
);
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
toolkit/source/awt/vclxfont.cxx
Dosyayı görüntüle @
93a8ef5a
...
@@ -178,7 +178,7 @@ sal_Int32 VCLXFont::getStringWidthArray( const OUString& str, ::com::sun::star::
...
@@ -178,7 +178,7 @@ sal_Int32 VCLXFont::getStringWidthArray( const OUString& str, ::com::sun::star::
{
{
vcl
::
Font
aOldFont
=
pOutDev
->
GetFont
();
vcl
::
Font
aOldFont
=
pOutDev
->
GetFont
();
pOutDev
->
SetFont
(
maFont
);
pOutDev
->
SetFont
(
maFont
);
long
*
pDXA
=
(
long
*
)
alloca
(
str
.
getLength
()
*
sizeof
(
long
));
long
*
pDXA
=
static_cast
<
long
*>
(
alloca
(
str
.
getLength
()
*
sizeof
(
long
)
));
nRet
=
pOutDev
->
GetTextArray
(
str
,
pDXA
);
nRet
=
pOutDev
->
GetTextArray
(
str
,
pDXA
);
rDXArray
=
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int32
>
(
str
.
getLength
()
);
rDXArray
=
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int32
>
(
str
.
getLength
()
);
for
(
int
i
=
0
;
i
<
str
.
getLength
();
i
++
)
for
(
int
i
=
0
;
i
<
str
.
getLength
();
i
++
)
...
...
toolkit/source/awt/vclxgraphics.cxx
Dosyayı görüntüle @
93a8ef5a
...
@@ -494,7 +494,7 @@ void VCLXGraphics::drawTextArray( sal_Int32 x, sal_Int32 y, const OUString& rTex
...
@@ -494,7 +494,7 @@ void VCLXGraphics::drawTextArray( sal_Int32 x, sal_Int32 y, const OUString& rTex
if
(
mpOutputDevice
)
if
(
mpOutputDevice
)
{
{
InitOutputDevice
(
INITOUTDEV_CLIPREGION
|
INITOUTDEV_RASTEROP
|
INITOUTDEV_COLORS
|
INITOUTDEV_FONT
);
InitOutputDevice
(
INITOUTDEV_CLIPREGION
|
INITOUTDEV_RASTEROP
|
INITOUTDEV_COLORS
|
INITOUTDEV_FONT
);
long
*
pDXA
=
(
long
*
)
alloca
(
rText
.
getLength
()
*
sizeof
(
long
));
long
*
pDXA
=
static_cast
<
long
*>
(
alloca
(
rText
.
getLength
()
*
sizeof
(
long
)
));
for
(
int
i
=
0
;
i
<
rText
.
getLength
();
i
++
)
for
(
int
i
=
0
;
i
<
rText
.
getLength
();
i
++
)
{
{
pDXA
[
i
]
=
rLongs
[
i
];
pDXA
[
i
]
=
rLongs
[
i
];
...
...
toolkit/source/awt/vclxprinter.cxx
Dosyayı görüntüle @
93a8ef5a
...
@@ -244,7 +244,7 @@ void VCLXPrinterPropertySet::selectForm( const OUString& rFormDescription ) thro
...
@@ -244,7 +244,7 @@ void VCLXPrinterPropertySet::selectForm( const OUString& rFormDescription ) thro
SvMemoryStream
aMem
;
SvMemoryStream
aMem
;
aMem
.
WriteUInt32
(
BINARYSETUPMARKER
);
aMem
.
WriteUInt32
(
BINARYSETUPMARKER
);
WriteJobSetup
(
aMem
,
GetPrinter
()
->
GetJobSetup
()
);
WriteJobSetup
(
aMem
,
GetPrinter
()
->
GetJobSetup
()
);
return
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
(
(
sal_Int8
*
)
aMem
.
GetData
(
),
aMem
.
Tell
()
);
return
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
(
static_cast
<
sal_Int8
const
*>
(
aMem
.
GetData
()
),
aMem
.
Tell
()
);
}
}
void
VCLXPrinterPropertySet
::
setBinarySetup
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>&
data
)
throw
(
::
com
::
sun
::
star
::
beans
::
PropertyVetoException
,
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
void
VCLXPrinterPropertySet
::
setBinarySetup
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>&
data
)
throw
(
::
com
::
sun
::
star
::
beans
::
PropertyVetoException
,
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
...
...
toolkit/source/awt/vclxtoolkit.cxx
Dosyayı görüntüle @
93a8ef5a
...
@@ -480,8 +480,8 @@ extern "C"
...
@@ -480,8 +480,8 @@ extern "C"
{
{
static
int
SAL_CALL
ComponentInfoCompare
(
const
void
*
pFirst
,
const
void
*
pSecond
)
static
int
SAL_CALL
ComponentInfoCompare
(
const
void
*
pFirst
,
const
void
*
pSecond
)
{
{
return
(
strcmp
(
((
ComponentInfo
*
)
pFirst
)
->
pName
,
return
(
strcmp
(
static_cast
<
ComponentInfo
const
*>
(
pFirst
)
->
pName
,
((
ComponentInfo
*
)
pSecond
)
->
pName
)
);
static_cast
<
ComponentInfo
const
*>
(
pSecond
)
->
pName
)
);
}
}
}
}
...
@@ -505,11 +505,11 @@ sal_uInt16 ImplGetComponentType( const OUString& rServiceName )
...
@@ -505,11 +505,11 @@ sal_uInt16 ImplGetComponentType( const OUString& rServiceName )
else
else
aSearch
.
pName
=
"window"
;
aSearch
.
pName
=
"window"
;
ComponentInfo
*
pInf
=
(
ComponentInfo
*
)
bsearch
(
&
aSearch
,
ComponentInfo
*
pInf
=
static_cast
<
ComponentInfo
*>
(
bsearch
(
&
aSearch
,
(
void
*
)
aComponentInfos
,
(
void
*
)
aComponentInfos
,
sizeof
(
aComponentInfos
)
/
sizeof
(
ComponentInfo
),
sizeof
(
aComponentInfos
)
/
sizeof
(
ComponentInfo
),
sizeof
(
ComponentInfo
),
sizeof
(
ComponentInfo
),
ComponentInfoCompare
);
ComponentInfoCompare
)
)
;
return
pInf
?
pInf
->
nWinType
:
0
;
return
pInf
?
pInf
->
nWinType
:
0
;
}
}
...
@@ -595,7 +595,7 @@ static void SAL_CALL ToolkitWorkerFunction( void* pArgs )
...
@@ -595,7 +595,7 @@ static void SAL_CALL ToolkitWorkerFunction( void* pArgs )
{
{
osl_setThreadName
(
"VCLXToolkit VCL main thread"
);
osl_setThreadName
(
"VCLXToolkit VCL main thread"
);
VCLXToolkit
*
pTk
=
(
VCLXToolkit
*
)
pArgs
;
VCLXToolkit
*
pTk
=
static_cast
<
VCLXToolkit
*>
(
pArgs
)
;
bInitedByVCLToolkit
=
InitVCL
();
bInitedByVCLToolkit
=
InitVCL
();
if
(
bInitedByVCLToolkit
)
if
(
bInitedByVCLToolkit
)
{
{
...
...
toolkit/source/awt/vclxwindow.cxx
Dosyayı görüntüle @
93a8ef5a
...
@@ -466,7 +466,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
...
@@ -466,7 +466,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
{
::
com
::
sun
::
star
::
awt
::
PaintEvent
aEvent
;
::
com
::
sun
::
star
::
awt
::
PaintEvent
aEvent
;
aEvent
.
Source
=
(
::
cppu
::
OWeakObject
*
)
this
;
aEvent
.
Source
=
(
::
cppu
::
OWeakObject
*
)
this
;
aEvent
.
UpdateRect
=
AWTRectangle
(
*
(
Rectangle
*
)
rVclWindowEvent
.
GetData
(
)
);
aEvent
.
UpdateRect
=
AWTRectangle
(
*
static_cast
<
Rectangle
*>
(
rVclWindowEvent
.
GetData
()
)
);
aEvent
.
Count
=
0
;
aEvent
.
Count
=
0
;
mpImpl
->
getPaintListeners
().
windowPaint
(
aEvent
);
mpImpl
->
getPaintListeners
().
windowPaint
(
aEvent
);
}
}
...
@@ -651,7 +651,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
...
@@ -651,7 +651,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
if
(
mpImpl
->
getKeyListeners
().
getLength
()
)
if
(
mpImpl
->
getKeyListeners
().
getLength
()
)
{
{
::
com
::
sun
::
star
::
awt
::
KeyEvent
aEvent
(
VCLUnoHelper
::
createKeyEvent
(
::
com
::
sun
::
star
::
awt
::
KeyEvent
aEvent
(
VCLUnoHelper
::
createKeyEvent
(
*
(
KeyEvent
*
)
rVclWindowEvent
.
GetData
(
),
*
this
*
static_cast
<
KeyEvent
*>
(
rVclWindowEvent
.
GetData
()
),
*
this
)
);
)
);
mpImpl
->
getKeyListeners
().
keyPressed
(
aEvent
);
mpImpl
->
getKeyListeners
().
keyPressed
(
aEvent
);
}
}
...
@@ -662,7 +662,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
...
@@ -662,7 +662,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
if
(
mpImpl
->
getKeyListeners
().
getLength
()
)
if
(
mpImpl
->
getKeyListeners
().
getLength
()
)
{
{
::
com
::
sun
::
star
::
awt
::
KeyEvent
aEvent
(
VCLUnoHelper
::
createKeyEvent
(
::
com
::
sun
::
star
::
awt
::
KeyEvent
aEvent
(
VCLUnoHelper
::
createKeyEvent
(
*
(
KeyEvent
*
)
rVclWindowEvent
.
GetData
(
),
*
this
*
static_cast
<
KeyEvent
*>
(
rVclWindowEvent
.
GetData
()
),
*
this
)
);
)
);
mpImpl
->
getKeyListeners
().
keyReleased
(
aEvent
);
mpImpl
->
getKeyListeners
().
keyReleased
(
aEvent
);
}
}
...
@@ -670,7 +670,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
...
@@ -670,7 +670,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
break
;
break
;
case
VCLEVENT_WINDOW_COMMAND
:
case
VCLEVENT_WINDOW_COMMAND
:
{
{
CommandEvent
*
pCmdEvt
=
(
CommandEvent
*
)
rVclWindowEvent
.
GetData
(
);
CommandEvent
*
pCmdEvt
=
static_cast
<
CommandEvent
*>
(
rVclWindowEvent
.
GetData
()
);
if
(
mpImpl
->
getMouseListeners
().
getLength
()
&&
(
pCmdEvt
->
GetCommand
()
==
COMMAND_CONTEXTMENU
)
)
if
(
mpImpl
->
getMouseListeners
().
getLength
()
&&
(
pCmdEvt
->
GetCommand
()
==
COMMAND_CONTEXTMENU
)
)
{
{
// COMMAND_CONTEXTMENU als mousePressed mit PopupTrigger = sal_True versenden...
// COMMAND_CONTEXTMENU als mousePressed mit PopupTrigger = sal_True versenden...
...
@@ -698,7 +698,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
...
@@ -698,7 +698,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
break
;
break
;
case
VCLEVENT_WINDOW_MOUSEMOVE
:
case
VCLEVENT_WINDOW_MOUSEMOVE
:
{
{
MouseEvent
*
pMouseEvt
=
(
MouseEvent
*
)
rVclWindowEvent
.
GetData
(
);
MouseEvent
*
pMouseEvt
=
static_cast
<
MouseEvent
*>
(
rVclWindowEvent
.
GetData
()
);
if
(
mpImpl
->
getMouseListeners
().
getLength
()
&&
(
pMouseEvt
->
IsEnterWindow
()
||
pMouseEvt
->
IsLeaveWindow
()
)
)
if
(
mpImpl
->
getMouseListeners
().
getLength
()
&&
(
pMouseEvt
->
IsEnterWindow
()
||
pMouseEvt
->
IsLeaveWindow
()
)
)
{
{
awt
::
MouseEvent
aEvent
(
VCLUnoHelper
::
createMouseEvent
(
*
pMouseEvt
,
*
this
)
);
awt
::
MouseEvent
aEvent
(
VCLUnoHelper
::
createMouseEvent
(
*
pMouseEvt
,
*
this
)
);
...
@@ -726,7 +726,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
...
@@ -726,7 +726,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
{
if
(
mpImpl
->
getMouseListeners
().
getLength
()
)
if
(
mpImpl
->
getMouseListeners
().
getLength
()
)
{
{
awt
::
MouseEvent
aEvent
(
VCLUnoHelper
::
createMouseEvent
(
*
(
MouseEvent
*
)
rVclWindowEvent
.
GetData
(
),
*
this
)
);
awt
::
MouseEvent
aEvent
(
VCLUnoHelper
::
createMouseEvent
(
*
static_cast
<
MouseEvent
*>
(
rVclWindowEvent
.
GetData
()
),
*
this
)
);
Callback
aCallback
=
::
boost
::
bind
(
Callback
aCallback
=
::
boost
::
bind
(
&
MouseListenerMultiplexer
::
mousePressed
,
&
MouseListenerMultiplexer
::
mousePressed
,
&
mpImpl
->
getMouseListeners
(),
&
mpImpl
->
getMouseListeners
(),
...
@@ -740,7 +740,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
...
@@ -740,7 +740,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
{
if
(
mpImpl
->
getMouseListeners
().
getLength
()
)
if
(
mpImpl
->
getMouseListeners
().
getLength
()
)
{
{
awt
::
MouseEvent
aEvent
(
VCLUnoHelper
::
createMouseEvent
(
*
(
MouseEvent
*
)
rVclWindowEvent
.
GetData
(
),
*
this
)
);
awt
::
MouseEvent
aEvent
(
VCLUnoHelper
::
createMouseEvent
(
*
static_cast
<
MouseEvent
*>
(
rVclWindowEvent
.
GetData
()
),
*
this
)
);
Callback
aCallback
=
::
boost
::
bind
(
Callback
aCallback
=
::
boost
::
bind
(
&
MouseListenerMultiplexer
::
mouseReleased
,
&
MouseListenerMultiplexer
::
mouseReleased
,
&
mpImpl
->
getMouseListeners
(),
&
mpImpl
->
getMouseListeners
(),
...
@@ -754,7 +754,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
...
@@ -754,7 +754,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
{
if
(
mpImpl
->
getDockableWindowListeners
().
getLength
()
)
if
(
mpImpl
->
getDockableWindowListeners
().
getLength
()
)
{
{
DockingData
*
pData
=
(
DockingData
*
)
rVclWindowEvent
.
GetData
(
);
DockingData
*
pData
=
static_cast
<
DockingData
*>
(
rVclWindowEvent
.
GetData
()
);
if
(
pData
)
if
(
pData
)
{
{
...
@@ -775,7 +775,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
...
@@ -775,7 +775,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
{
if
(
mpImpl
->
getDockableWindowListeners
().
getLength
()
)
if
(
mpImpl
->
getDockableWindowListeners
().
getLength
()
)
{
{
DockingData
*
pData
=
(
DockingData
*
)
rVclWindowEvent
.
GetData
(
);
DockingData
*
pData
=
static_cast
<
DockingData
*>
(
rVclWindowEvent
.
GetData
()
);
if
(
pData
)
if
(
pData
)
{
{
...
@@ -806,7 +806,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
...
@@ -806,7 +806,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
{
if
(
mpImpl
->
getDockableWindowListeners
().
getLength
()
)
if
(
mpImpl
->
getDockableWindowListeners
().
getLength
()
)
{
{
EndDockingData
*
pData
=
(
EndDockingData
*
)
rVclWindowEvent
.
GetData
(
);
EndDockingData
*
pData
=
static_cast
<
EndDockingData
*>
(
rVclWindowEvent
.
GetData
()
);
if
(
pData
)
if
(
pData
)
{
{
...
@@ -824,7 +824,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
...
@@ -824,7 +824,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
{
if
(
mpImpl
->
getDockableWindowListeners
().
getLength
()
)
if
(
mpImpl
->
getDockableWindowListeners
().
getLength
()
)
{
{
sal_Bool
*
p_bFloating
=
(
sal_Bool
*
)
rVclWindowEvent
.
GetData
(
);
sal_Bool
*
p_bFloating
=
static_cast
<
sal_Bool
*>
(
rVclWindowEvent
.
GetData
()
);
::
com
::
sun
::
star
::
lang
::
EventObject
aEvent
;
::
com
::
sun
::
star
::
lang
::
EventObject
aEvent
;
aEvent
.
Source
=
(
::
cppu
::
OWeakObject
*
)
this
;
aEvent
.
Source
=
(
::
cppu
::
OWeakObject
*
)
this
;
...
@@ -854,7 +854,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
...
@@ -854,7 +854,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
{
if
(
mpImpl
->
getDockableWindowListeners
().
getLength
()
)
if
(
mpImpl
->
getDockableWindowListeners
().
getLength
()
)
{
{
EndPopupModeData
*
pData
=
(
EndPopupModeData
*
)
rVclWindowEvent
.
GetData
(
);
EndPopupModeData
*
pData
=
static_cast
<
EndPopupModeData
*>
(
rVclWindowEvent
.
GetData
()
);
if
(
pData
)
if
(
pData
)
{
{
...
...
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