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
0f492c41
Kaydet (Commit)
0f492c41
authored
Mar 31, 2014
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cosmetics
Change-Id: Ibda0c9b7ef68f040af2459ceb7328e5641f21446
üst
7eef30b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
24 deletions
+5
-24
eventhandler.hxx
svx/source/inc/eventhandler.hxx
+5
-24
No files found.
svx/source/inc/eventhandler.hxx
Dosyayı görüntüle @
0f492c41
...
...
@@ -17,17 +17,14 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SVX_S
DR_EVENT
_EVENTHANDLER_HXX
#define INCLUDED_SVX_S
DR_EVENT
_EVENTHANDLER_HXX
#ifndef INCLUDED_SVX_S
OURCE_INC
_EVENTHANDLER_HXX
#define INCLUDED_SVX_S
OURCE_INC
_EVENTHANDLER_HXX
#include <sal/types.h>
#include <vector>
#include <vcl/timer.hxx>
// predeclarations
namespace
sdr
{
namespace
event
...
...
@@ -35,13 +32,10 @@ namespace sdr
class
BaseEvent
;
class
EventHandler
;
// typedefs for a list of BaseEvents
typedef
::
std
::
vector
<
BaseEvent
*
>
BaseEventVector
;
}
// end of namespace event
}
// end of namespace sdr
namespace
sdr
{
namespace
event
...
...
@@ -49,13 +43,11 @@ namespace sdr
class
BaseEvent
{
// the EventHandler this event is registered at
EventHandler
&
mrEventHandler
;
EventHandler
&
mrEventHandler
;
public
:
// basic constructor.
BaseEvent
(
EventHandler
&
rEventHandler
);
// destructor
virtual
~
BaseEvent
();
// the called method if the event is triggered
...
...
@@ -64,15 +56,13 @@ namespace sdr
}
// end of namespace event
}
// end of namespace sdr
namespace
sdr
{
namespace
event
{
class
EventHandler
{
BaseEventVector
maVector
;
BaseEventVector
maVector
;
// to allow BaseEvents to use the add/remove functionality
friend
class
BaseEvent
;
...
...
@@ -86,23 +76,18 @@ namespace sdr
BaseEvent
*
GetEvent
();
public
:
// basic constructor.
EventHandler
();
// destructor
virtual
~
EventHandler
();
// Trigger and consume the events
virtual
void
ExecuteEvents
();
// for control
bool
IsEmpty
()
const
;
};
}
// end of namespace event
}
// end of namespace sdr
namespace
sdr
{
namespace
event
...
...
@@ -110,10 +95,8 @@ namespace sdr
class
TimerEventHandler
:
public
EventHandler
,
public
Timer
{
public
:
// basic constructor.
TimerEventHandler
(
sal_uInt32
nTimeout
=
1L
);
// destructor
virtual
~
TimerEventHandler
();
// The timer when it is triggered; from class Timer
...
...
@@ -125,8 +108,6 @@ namespace sdr
}
// end of namespace event
}
// end of namespace sdr
#endif // INCLUDED_SVX_SDR_EVENT_EVENTHANDLER_HXX
#endif // INCLUDED_SVX_SOURCE_INC_EVENTHANDLER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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