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
acff30cd
Kaydet (Commit)
acff30cd
authored
Mar 02, 2004
tarafından
Lars Oppermann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i25594# ui events
üst
a95cef65
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
380 additions
and
0 deletions
+380
-0
mouseevent.cxx
unoxml/source/events/mouseevent.cxx
+149
-0
mouseevent.hxx
unoxml/source/events/mouseevent.hxx
+92
-0
uievent.cxx
unoxml/source/events/uievent.cxx
+82
-0
uievent.hxx
unoxml/source/events/uievent.hxx
+57
-0
No files found.
unoxml/source/events/mouseevent.cxx
0 → 100644
Dosyayı görüntüle @
acff30cd
#include "mouseevent.hxx"
namespace
DOM
{
namespace
events
{
sal_Int32
SAL_CALL
CMouseEvent
::
getScreenX
()
throw
(
RuntimeException
)
{
return
m_screenX
;
}
sal_Int32
SAL_CALL
CMouseEvent
::
getScreenY
()
throw
(
RuntimeException
)
{
return
m_screenY
;
}
sal_Int32
SAL_CALL
CMouseEvent
::
getClientX
()
throw
(
RuntimeException
)
{
return
m_clientX
;
}
sal_Int32
SAL_CALL
CMouseEvent
::
getClientY
()
throw
(
RuntimeException
)
{
return
m_clientY
;
}
sal_Bool
SAL_CALL
CMouseEvent
::
getCtrlKey
()
throw
(
RuntimeException
)
{
return
m_ctrlKey
;
}
sal_Bool
SAL_CALL
CMouseEvent
::
getShiftKey
()
throw
(
RuntimeException
)
{
return
m_shiftKey
;
}
sal_Bool
SAL_CALL
CMouseEvent
::
getAltKey
()
throw
(
RuntimeException
)
{
return
m_altKey
;
}
sal_Bool
SAL_CALL
CMouseEvent
::
getMetaKey
()
throw
(
RuntimeException
)
{
return
m_metaKey
;
}
sal_Int16
SAL_CALL
CMouseEvent
::
getButton
()
throw
(
RuntimeException
)
{
return
m_button
;
}
Reference
<
XEventTarget
>
SAL_CALL
CMouseEvent
::
getRelatedTarget
()
throw
(
RuntimeException
)
{
return
m_relatedTarget
;
}
void
SAL_CALL
CMouseEvent
::
initMouseEvent
(
const
OUString
&
typeArg
,
sal_Bool
canBubbleArg
,
sal_Bool
cancelableArg
,
const
Reference
<
XAbstractView
>&
viewArg
,
sal_Int32
detailArg
,
sal_Int32
screenXArg
,
sal_Int32
screenYArg
,
sal_Int32
clientXArg
,
sal_Int32
clientYArg
,
sal_Bool
ctrlKeyArg
,
sal_Bool
altKeyArg
,
sal_Bool
shiftKeyArg
,
sal_Bool
metaKeyArg
,
sal_Int16
buttonArg
,
const
Reference
<
XEventTarget
>&
relatedTargetArg
)
throw
(
RuntimeException
)
{
CUIEvent
::
initUIEvent
(
typeArg
,
canBubbleArg
,
cancelableArg
,
viewArg
,
detailArg
);
m_screenX
=
screenXArg
;
m_screenY
=
screenYArg
;
m_clientX
=
clientXArg
;
m_clientY
=
clientYArg
;
m_ctrlKey
=
ctrlKeyArg
;
m_altKey
=
altKeyArg
;
m_shiftKey
=
shiftKeyArg
;
m_metaKey
=
metaKeyArg
;
m_button
=
buttonArg
;
}
// delegate to CUIEvent, since we are inheriting from CUIEvent and XUIEvent
Reference
<
XAbstractView
>
SAL_CALL
CMouseEvent
::
getView
()
throw
(
RuntimeException
)
{
return
CUIEvent
::
getView
();
}
sal_Int32
SAL_CALL
CMouseEvent
::
getDetail
()
throw
(
RuntimeException
)
{
return
CUIEvent
::
getDetail
();
}
void
SAL_CALL
CMouseEvent
::
initUIEvent
(
const
OUString
&
typeArg
,
sal_Bool
canBubbleArg
,
sal_Bool
cancelableArg
,
const
Reference
<
XAbstractView
>&
viewArg
,
sal_Int32
detailArg
)
throw
(
RuntimeException
)
{
CUIEvent
::
initUIEvent
(
typeArg
,
canBubbleArg
,
cancelableArg
,
viewArg
,
detailArg
);
}
OUString
SAL_CALL
CMouseEvent
::
getType
()
throw
(
RuntimeException
)
{
return
CUIEvent
::
getType
();
}
Reference
<
XEventTarget
>
SAL_CALL
CMouseEvent
::
getTarget
()
throw
(
RuntimeException
)
{
return
CUIEvent
::
getTarget
();
}
Reference
<
XEventTarget
>
SAL_CALL
CMouseEvent
::
getCurrentTarget
()
throw
(
RuntimeException
)
{
return
CUIEvent
::
getCurrentTarget
();
}
PhaseType
SAL_CALL
CMouseEvent
::
getEventPhase
()
throw
(
RuntimeException
)
{
return
CUIEvent
::
getEventPhase
();
}
sal_Bool
SAL_CALL
CMouseEvent
::
getBubbles
()
throw
(
RuntimeException
)
{
return
CEvent
::
getBubbles
();
}
sal_Bool
SAL_CALL
CMouseEvent
::
getCancelable
()
throw
(
RuntimeException
)
{
return
CUIEvent
::
getCancelable
();
}
com
::
sun
::
star
::
util
::
Time
SAL_CALL
CMouseEvent
::
getTimeStamp
()
throw
(
RuntimeException
)
{
return
CUIEvent
::
getTimeStamp
();
}
void
SAL_CALL
CMouseEvent
::
stopPropagation
()
throw
(
RuntimeException
)
{
CUIEvent
::
stopPropagation
();
}
void
SAL_CALL
CMouseEvent
::
preventDefault
()
throw
(
RuntimeException
)
{
CUIEvent
::
preventDefault
();
}
void
SAL_CALL
CMouseEvent
::
initEvent
(
const
OUString
&
eventTypeArg
,
sal_Bool
canBubbleArg
,
sal_Bool
cancelableArg
)
throw
(
RuntimeException
)
{
// base initializer
CUIEvent
::
initEvent
(
eventTypeArg
,
canBubbleArg
,
cancelableArg
);
}
}}
\ No newline at end of file
unoxml/source/events/mouseevent.hxx
0 → 100644
Dosyayı görüntüle @
acff30cd
#ifndef __MOUSEEVENT_HXX
#define __MOUSEEVENT_HXX
#include <sal/types.h>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase3.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/xml/dom/events/EventType.hpp>
#include <com/sun/star/xml/dom/events/PhaseType.hpp>
#include <com/sun/star/xml/dom/events/AttrChangeType.hpp>
#include <com/sun/star/xml/dom/events/XEvent.hpp>
#include <com/sun/star/xml/dom/events/XUIEvent.hpp>
#include <com/sun/star/xml/dom/events/XMouseEvent.hpp>
#include "event.hxx"
#include "uievent.hxx"
using
namespace
rtl
;
namespace
DOM
{
namespace
events
{
class
CMouseEvent
:
public
cppu
::
ImplInheritanceHelper1
<
CUIEvent
,
XMouseEvent
>
{
friend
class
CEventDispatcher
;
protected
:
sal_Int32
m_screenX
;
sal_Int32
m_screenY
;
sal_Int32
m_clientX
;
sal_Int32
m_clientY
;
sal_Bool
m_ctrlKey
;
sal_Bool
m_shiftKey
;
sal_Bool
m_altKey
;
sal_Bool
m_metaKey
;
sal_Int16
m_button
;
Reference
<
XEventTarget
>
m_relatedTarget
;
public
:
virtual
sal_Int32
SAL_CALL
getScreenX
()
throw
(
RuntimeException
);
virtual
sal_Int32
SAL_CALL
getScreenY
()
throw
(
RuntimeException
);
virtual
sal_Int32
SAL_CALL
getClientX
()
throw
(
RuntimeException
);
virtual
sal_Int32
SAL_CALL
getClientY
()
throw
(
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getCtrlKey
()
throw
(
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getShiftKey
()
throw
(
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getAltKey
()
throw
(
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getMetaKey
()
throw
(
RuntimeException
);
virtual
sal_Int16
SAL_CALL
getButton
()
throw
(
RuntimeException
);
virtual
Reference
<
XEventTarget
>
SAL_CALL
getRelatedTarget
()
throw
(
RuntimeException
);
virtual
void
SAL_CALL
initMouseEvent
(
const
OUString
&
typeArg
,
sal_Bool
canBubbleArg
,
sal_Bool
cancelableArg
,
const
Reference
<
XAbstractView
>&
viewArg
,
sal_Int32
detailArg
,
sal_Int32
screenXArg
,
sal_Int32
screenYArg
,
sal_Int32
clientXArg
,
sal_Int32
clientYArg
,
sal_Bool
ctrlKeyArg
,
sal_Bool
altKeyArg
,
sal_Bool
shiftKeyArg
,
sal_Bool
metaKeyArg
,
sal_Int16
buttonArg
,
const
Reference
<
XEventTarget
>&
relatedTargetArg
)
throw
(
RuntimeException
);
// delegate to CUIevent
virtual
Reference
<
XAbstractView
>
SAL_CALL
getView
()
throw
(
RuntimeException
);
virtual
sal_Int32
SAL_CALL
getDetail
()
throw
(
RuntimeException
);
virtual
void
SAL_CALL
initUIEvent
(
const
OUString
&
typeArg
,
sal_Bool
canBubbleArg
,
sal_Bool
cancelableArg
,
const
Reference
<
XAbstractView
>&
viewArg
,
sal_Int32
detailArg
)
throw
(
RuntimeException
);
virtual
OUString
SAL_CALL
getType
()
throw
(
RuntimeException
);
virtual
Reference
<
XEventTarget
>
SAL_CALL
getTarget
()
throw
(
RuntimeException
);
virtual
Reference
<
XEventTarget
>
SAL_CALL
getCurrentTarget
()
throw
(
RuntimeException
);
virtual
PhaseType
SAL_CALL
getEventPhase
()
throw
(
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getBubbles
()
throw
(
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getCancelable
()
throw
(
RuntimeException
);
virtual
com
::
sun
::
star
::
util
::
Time
SAL_CALL
getTimeStamp
()
throw
(
RuntimeException
);
virtual
void
SAL_CALL
stopPropagation
()
throw
(
RuntimeException
);
virtual
void
SAL_CALL
preventDefault
()
throw
(
RuntimeException
);
virtual
void
SAL_CALL
initEvent
(
const
OUString
&
eventTypeArg
,
sal_Bool
canBubbleArg
,
sal_Bool
cancelableArg
)
throw
(
RuntimeException
);
};
}}
#endif
unoxml/source/events/uievent.cxx
0 → 100644
Dosyayı görüntüle @
acff30cd
#include "event.hxx"
#include "uievent.hxx"
namespace
DOM
{
namespace
events
{
Reference
<
XAbstractView
>
SAL_CALL
CUIEvent
::
getView
()
throw
(
RuntimeException
)
{
return
m_view
;
}
sal_Int32
SAL_CALL
CUIEvent
::
getDetail
()
throw
(
RuntimeException
)
{
return
m_detail
;
}
void
SAL_CALL
CUIEvent
::
initUIEvent
(
const
OUString
&
typeArg
,
sal_Bool
canBubbleArg
,
sal_Bool
cancelableArg
,
const
Reference
<
XAbstractView
>&
viewArg
,
sal_Int32
detailArg
)
throw
(
RuntimeException
)
{
initEvent
(
typeArg
,
canBubbleArg
,
cancelableArg
);
m_view
=
viewArg
;
m_detail
=
detailArg
;
}
// delegate to CEvent, since we are inheriting from CEvent and XEvent
OUString
SAL_CALL
CUIEvent
::
getType
()
throw
(
RuntimeException
)
{
return
CEvent
::
getType
();
}
Reference
<
XEventTarget
>
SAL_CALL
CUIEvent
::
getTarget
()
throw
(
RuntimeException
)
{
return
CEvent
::
getTarget
();
}
Reference
<
XEventTarget
>
SAL_CALL
CUIEvent
::
getCurrentTarget
()
throw
(
RuntimeException
)
{
return
CEvent
::
getCurrentTarget
();
}
PhaseType
SAL_CALL
CUIEvent
::
getEventPhase
()
throw
(
RuntimeException
)
{
return
CEvent
::
getEventPhase
();
}
sal_Bool
SAL_CALL
CUIEvent
::
getBubbles
()
throw
(
RuntimeException
)
{
return
CEvent
::
getBubbles
();
}
sal_Bool
SAL_CALL
CUIEvent
::
getCancelable
()
throw
(
RuntimeException
)
{
// mutation events cannot be canceled
return
sal_False
;
}
com
::
sun
::
star
::
util
::
Time
SAL_CALL
CUIEvent
::
getTimeStamp
()
throw
(
RuntimeException
)
{
return
CEvent
::
getTimeStamp
();
}
void
SAL_CALL
CUIEvent
::
stopPropagation
()
throw
(
RuntimeException
)
{
CEvent
::
stopPropagation
();
}
void
SAL_CALL
CUIEvent
::
preventDefault
()
throw
(
RuntimeException
)
{
CEvent
::
preventDefault
;
}
void
SAL_CALL
CUIEvent
::
initEvent
(
const
OUString
&
eventTypeArg
,
sal_Bool
canBubbleArg
,
sal_Bool
cancelableArg
)
throw
(
RuntimeException
)
{
// base initializer
CEvent
::
initEvent
(
eventTypeArg
,
canBubbleArg
,
cancelableArg
);
}
}}
\ No newline at end of file
unoxml/source/events/uievent.hxx
0 → 100644
Dosyayı görüntüle @
acff30cd
#ifndef __UIEVENT_HXX
#define __UIEVENT_HXX
#include <sal/types.h>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase3.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/xml/dom/events/EventType.hpp>
#include <com/sun/star/xml/dom/events/PhaseType.hpp>
#include <com/sun/star/xml/dom/events/AttrChangeType.hpp>
#include <com/sun/star/xml/dom/events/XEvent.hpp>
#include <com/sun/star/xml/dom/events/XUIEvent.hpp>
#include <com/sun/star/xml/dom/views/XAbstractView.hpp>
#include "event.hxx"
using
namespace
rtl
;
using
namespace
com
::
sun
::
star
::
xml
::
dom
::
views
;
namespace
DOM
{
namespace
events
{
class
CUIEvent
:
public
cppu
::
ImplInheritanceHelper1
<
CEvent
,
XUIEvent
>
{
friend
class
CEventDispatcher
;
protected
:
sal_Int32
m_detail
;
Reference
<
XAbstractView
>
m_view
;
public
:
virtual
Reference
<
XAbstractView
>
SAL_CALL
getView
()
throw
(
RuntimeException
);
virtual
sal_Int32
SAL_CALL
getDetail
()
throw
(
RuntimeException
);
virtual
void
SAL_CALL
initUIEvent
(
const
OUString
&
typeArg
,
sal_Bool
canBubbleArg
,
sal_Bool
cancelableArg
,
const
Reference
<
XAbstractView
>&
viewArg
,
sal_Int32
detailArg
)
throw
(
RuntimeException
);
virtual
~
CUIEvent
();
// delegate to CEvent, since we are inheriting from CEvent and XEvent
virtual
OUString
SAL_CALL
getType
()
throw
(
RuntimeException
);
virtual
Reference
<
XEventTarget
>
SAL_CALL
getTarget
()
throw
(
RuntimeException
);
virtual
Reference
<
XEventTarget
>
SAL_CALL
getCurrentTarget
()
throw
(
RuntimeException
);
virtual
PhaseType
SAL_CALL
getEventPhase
()
throw
(
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getBubbles
()
throw
(
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getCancelable
()
throw
(
RuntimeException
);
virtual
com
::
sun
::
star
::
util
::
Time
SAL_CALL
getTimeStamp
()
throw
(
RuntimeException
);
virtual
void
SAL_CALL
stopPropagation
()
throw
(
RuntimeException
);
virtual
void
SAL_CALL
preventDefault
()
throw
(
RuntimeException
);
virtual
void
SAL_CALL
initEvent
(
const
OUString
&
eventTypeArg
,
sal_Bool
canBubbleArg
,
sal_Bool
cancelableArg
)
throw
(
RuntimeException
);
};
}}
#endif
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