IEvent.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
11 
12 /*=================================================================================**/
21 /*=================================================================================**/
26 {
27 protected:
28 /*---------------------------------------------------------------------------------**/
35 virtual int _GetHandlerPriority () = 0;
36 
37 };
38 
39 /*=================================================================================**/
44 {
45 protected:
46 
55 virtual bool _OnWheelMotion (MSWindowP gwP, UInt32 modifierKeys, long xPos, long yPos, long wheelDelta) = 0;
56 };
57 
58 /*=================================================================================**/
63 {
65 virtual IPrintEngineCP GetPrintEngine() const = 0;
66 
68 virtual IPlotterCP GetPrintEnginePlotter() const = 0;
69 
71 virtual bool GetIsPreview() const = 0;
72 
74 virtual bool GetIsPartOfPrintSet() const = 0;
75 };
76 
77 /*=================================================================================**/
82 {
84 virtual IPrintEngineCP GetPrintEngine() const = 0;
85 
87 virtual IPlotterCP GetPrintEnginePlotter() const = 0;
88 
90 virtual bool GetIsPreview() const = 0;
91 
93 virtual bool GetIsPartOfPrintSet() const = 0;
94 
96 virtual bool GetIsSuccess() const = 0;
97 };
98 
99 /*=================================================================================**/
110 {
114 virtual void BeginPrintPage (IBeginPrintPageParamP param) = 0;
115 
121 virtual void EndPrintPage (IEndPrintPageParamP param) = 0;
122 };
123 
124 /*=================================================================================**/
129 {
130 private:
131  virtual void MakeClassAbstract() = 0;
132 public:
133 
134 public:
138 MSCORE_EXPORT void AddEditActionSource (IEditActionSourceP source);
139 
143 MSCORE_EXPORT void DropEditActionSource (IEditActionSourceP source);
144 
147 MSCORE_EXPORT void AddMouseWheelHandler (IMouseWheelHandler* mwHandler);
148 
152 MSCORE_EXPORT void DropMouseWheelHandler (IMouseWheelHandler* mwHandler);
153 
156 MSCORE_EXPORT void AddPrintEventHandler (IPrintEventHandler* handler);
157 
161 MSCORE_EXPORT void DropPrintEventHandler (IPrintEventHandler* handler);
162 
164 MSCORE_EXPORT static MstnEventManagerR GetManager();
165 };
166 
168 
170 
Applications should implement this interface to become an EditActionSource for right mouse clicks in ...
Definition: IEditActionSource.h:58
#define END_BENTLEY_MSTNPLATFORM_NAMESPACE
Definition: DgnPlatform.h:30
An Event Handler that can be installed in a PrioritizedEventHandlerList.
Definition: IEvent.h:25
An Event Handler for responding to Mouse Wheel events.
Definition: IEvent.h:43
#define bsiInterface
Definition: basedefs.h:31
#define BEGIN_BENTLEY_MSTNPLATFORM_NAMESPACE
Definition: DgnPlatform.h:29
uint32_t UInt32
Definition: Bentley.r.h:128
IManager * GetManager()
Return a pointer to the one and only relationship manager.
An event handler interface for responding to per-page printing system events.
Definition: IEvent.h:109
Manager for events associated with MicroStation.
Definition: IEvent.h:128
Parameters passed to BeginPrintPage event method.
Definition: IEvent.h:62
Parameters passed to EndPrintPage event method.
Definition: IEvent.h:81

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.