zjf
2023-03-06 392b76515f40376b6d36f40a114850ef63650384
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
/////////////////////////////////////////////////////////////////////////////// 
// Copyright (C) 2002-2016, Open Design Alliance (the "Alliance"). 
// All rights reserved. 
// 
// This software and its documentation and related materials are owned by 
// the Alliance. The software may only be incorporated into application 
// programs owned by members of the Alliance, subject to a signed 
// Membership Agreement and Supplemental Software License Agreement with the
// Alliance. The structure and organization of this software are the valuable  
// trade secrets of the Alliance and its suppliers. The software is also 
// protected by copyright law and international treaty provisions. Application  
// programs incorporating this software must include the following statement 
// with their copyright notices:
//   
//   This application incorporates Teigha(R) software pursuant to a license 
//   agreement with Open Design Alliance.
//   Teigha(R) Copyright (C) 2002-2016 by Open Design Alliance. 
//   All rights reserved.
//
// By use of this software, its documentation or related materials, you 
// acknowledge and accept the above terms.
///////////////////////////////////////////////////////////////////////////////
 
 
 
 
#ifndef   _ODED_H_INCLUDED_
#define   _ODED_H_INCLUDED_
 
#include "TD_PackPush.h"
 
#include "RxNames.h"
#include "RxEvent.h"
#include "OdArrayPreDef.h"
#include "DbObjectId.h"
#include "IdArrays.h"
 
#define ODED_EDITOR_OBJ OD_T("OdEditor")
 
class OdDbDatabase;
 
 
/** \details
    This class is the base class for custom classes that receive notification
    of OdEditor events.
 
    \note
    The default implementations of all methods in this class do nothing but return.
    
    \sa
    TD_Db
    
    <group Other_Classes>
*/
class TOOLKIT_EXPORT OdEditorReactor : public OdRxEventReactor 
public:
  ODRX_DECLARE_MEMBERS(OdEditorReactor);
 
  /** \details
    Notification function called whenever a .dwg file is about to be opened.
    
    \param filename [in]  Name of the .dwg file.
    
    \remarks
    This function is called before the operation.
    
    \sa
    * dwgFileOpened
    * endDwgOpen
  */
  virtual void beginDwgOpen(
    const OdString& filename);
    
  /** \details
    Notification function called whenever a .dwg file has been opened.
    
    \param filename [in]  Name of the .dwg file.
    
    \remarks
    This function is called after the operation.
    
    \sa
    * beginDwgOpen
    * dwgFileOpened
  */
  virtual void endDwgOpen(
    const OdString& filename);
    
  /** \details
    Notification function called whenever an OdDbDatabase instance is about to be closed.
    
    \param pDb [in]  Pointer to the database being closed.
    
    \remarks
    This function is called before the operation.
  */
  virtual void beginClose(
    OdDbDatabase* pDb);
  /** \sa
    * beginDwgOpen
    * endDwgOpen
  */
  virtual void dwgFileOpened(
    OdDbDatabase* pDb, 
    const OdString& filename);
  
  /** \details
    Notification function called whenever an Xref database is about 
    to be attached to a host database.
    
    \param pToDb [in]  Host database.
    \param pFromDb [in]  Xref database.
    \param filename [in]  Xref filename.
    
    \remarks
    This function is called before the operation.
    
    \remarks
    filename may not have a path or extension.
    
    \sa
    * abortAttach
    * endAttach  
    * otherAttach
  */
  virtual void beginAttach(
    OdDbDatabase* pToDb, 
    const OdString& filename, 
    OdDbDatabase* pFromDb);
    
  /** \details
    Notification function called whenever an Xref database has been attached to a host database.
    
    \param pToDb [in]  Host database.
    \param pFromDb [in]  Xref database.
    
    \remarks
    This function is called after the operation, and is sent just after
    beginDeepCloneXlation.
    
    \sa
    * abortAttach
    * beginAttach
    * endAttach  
  */
  virtual void otherAttach(
    OdDbDatabase* pToDb, 
    OdDbDatabase* pFromDb);
    
  /** \details
    Notification function called whenever the attachment of an Xref database has failed.
    
    \param pToDb [in]  Host database.
    
    \remarks
    This function is called after the operation.
        
    \sa
    * beginAttach
    * endAttach  
    * otherAttach
  */
  virtual void abortAttach(
    OdDbDatabase* pFromDb);
    
  /** \details
    Notification function called whenever the attachment of an Xref database has succeeded.
    
    \param pToDb [in]  Host database.
    
    \remarks
    This function is called after the operation.
        
    \sa
    * abortAttach
    * beginAttach
    * otherAttach
  */
  virtual void endAttach(
    OdDbDatabase* pToDb);
    
  /** \details
    Notification function called whenever an Object ID in an Xref database has been
    modified to point at an associated object in a host database. 
    
    \param oldId [in]  Object Id in the Xref database.
    \param neId [in]  Object Id in the host database.
    
    \remarks
    This function is called after the operation.
    
    Redirection is used to implement VISRETAIN.
  */
  virtual void redirected(
    OdDbObjectId newId, 
    OdDbObjectId oldId);
    
  /** \details
    Notification function called whenever an object in an Xref database has been comandeered.
    
    \param pToDb [in]  Host database.
    \param pFromDb [in]  Xref database.
    \param objectId [in]  Object ID of the comandeered object.
    
    \remarks
    Rather than copy an Xref dependent object to the host database, the Object ID of the object
    is merely appended to the host database symbol table with the name of the Xref prepended to it.
    
    Thus, the block BAR in the xrefed database FOO, becomes FOO|BAR in the host database.
  */
  virtual void comandeered(
    OdDbDatabase* pToDb, 
    OdDbObjectId id, 
    OdDbDatabase* pFromDb);
    
  
  /** \details
    Notification function called whenever an Xref database is about 
    to be reloaded to a host database, when the Xref drawing file is unchanged.
    
    \param pToDb [in]  Host database.
    \param pFromDb [in]  Xref database.
    \param filename [in]  Xref filename.
    
    \remarks
    This function is called before the operation.
    
    \remarks
    filename may not have a path or extension.
    
    \sa
    * abortRestore
    * endRestore  
  */
  virtual void beginRestore(
    OdDbDatabase* pToDb, 
    const OdString& filename, 
    OdDbDatabase* pFromDb);
 
  /** \details
    Notification function called whenever the restore of an Xref database has failed.
    
    \param pToDb [in]  Host database.
    
    \remarks
    This function is called after the operation.
        
    \sa
    * beginRestore
    * endRestore  
  */
  virtual void abortRestore(
    OdDbDatabase* pToDb);
  /** \details
    Notification function called whenever the restore of an Xref database has succeeded.
    
    \param pToDb [in]  Host database.
    
    \remarks
    This function is called after the operation.
        
    \sa
    * abortRestore
    * beginAttach
  */
  virtual void endRestore(
    OdDbDatabase* pToDb);
  
  enum XrefSubcommandActivities
  {    
    kStart = 0,
    kStartItem = 2,
    kEndItem = 3,
    kEnd = 4,
    kWillAbort = 5,
    kAborted = 6,
    kStartXBindBlock = 7,
    kStartXBindSymbol = 8
  };
 
  /** \details
    Notification function called during an Xref Bind operation.
    
    \param activity [in]  Bind activity.
    \param blockId [in]  Object ID of the Xref.
    
    \remarks
    This function will be called multiple times as an Xrefs are bound.
    
    activity must be one of the following:
    
    <table>
    Name                Value     Description
    kStart              0         The Bind has started. blockId is undefined.
    kStartItem          2         The Bind of the Xref with the specified blockId has been started. 
                                  Notification will be made for the 
                                  original Xref and any dependent Xrefs.
    kEndItem            3         The Bind of the Xref with the specified blockId has been successfully completed. 
                                  Notification will be made for the 
                                  original Xref and any dependent Xrefs.
    kEnd                4         The Bind has completed successfully. blockId is undefined.
    kAborted            6         The Bind has failed to complete for the Xref with the specified blockId. 
    kStartXBindBlock    7         Notification of an Xref-dependent block being bound.
    kStartXBindSymbol   8         Notification of all other Xref-dependent symbols.
    </table>
 
    \sa
    * xrefSubcommandAttachItem
    * xrefSubcommandDetachItem 
    * xrefSubcommandOverlayItem
    * xrefSubcommandPathItem
    * xrefSubcommandReloadItem
    * xrefSubcommandUnloadItem
    
  */
  virtual void xrefSubcommandBindItem(
    int activity, 
    OdDbObjectId blockId);
    
  /** \details
    Notification function called during an Xref Attach operation.
    
    \param activity [in]  Attach activity.
    \param xrefPath [in]  Xref path.
    
    \remarks
    This function will called multiple times as an Xrefs are attached. 
    
    activity must be one of the following:
    
    <table>
    Name                Value     Description
    kStart              0         The Attach has started. xrefPath is undefined.
    kStartItem          2         The Attach of the Xref with the specified path has been started. 
                                  Notification will be made for the 
                                  original Xref and any dependent Xrefs.
    kEndItem            3         The Attach of the Xref with the specified path has been successfully completed. 
                                  Notification will be made for the 
                                  original Xref and any dependent Xrefs.
    kEnd                4         The Attach has completed successfully. xrefPath is undefined.
    kAborted            6         The Attach has failed to complete for the Xref with the specified filename. 
    </table>
    
    \note
    This function can be triggered by any action that results in the resolution of Xrefs. 
    This includes plot, IGES and DXF input, block redefinition, and Xref Reload operations.
 
    \sa
    * xrefSubcommandBindItem
    * xrefSubcommandDetachItem 
    * xrefSubcommandOverlayItem
    * xrefSubcommandPathItem
    * xrefSubcommandReloadItem
    * xrefSubcommandUnloadItem
  */
  virtual void xrefSubcommandAttachItem(
    int activity, 
    const OdString& xrefPath);
 
  /** \details
    Notification function called during an Xref Overlay operation.
    
    \param activity [in]  Overlay activity.
    \param xrefPath [in]  Xref path.
    
    \remarks
    This function will called multiple times as an Xrefs are overlayed. 
    
    activity must be one of the following:
    
    <table>
    Name                Value     Description
    kStart              0         The Overlay has started. xrefPath is undefined.
    kStartItem          2         The Overlay of the Xref with the specified path has been started. 
                                  Notification will be made for the 
                                  original Xref and any dependent Xrefs.
    kEndItem            3         The Overlay of the Xref with the specified path has been successfully completed. 
                                  Notification will be made for the 
                                  original Xref and any dependent Xrefs.
    kEnd                4         The Overlay has completed successfully. xrefPath is undefined.
    kAborted            6         The Overlay has failed to complete for the Xref with the specified filename. 
    </table>
    
    \note
    This function can be triggered by any action that results in the resolution of Xrefs. 
    This includes plot, IGES and DXF input, block redefinition, and Xref Reload operations.
 
    \sa
    * xrefSubcommandAttachItem
    * xrefSubcommandBindItem
    * xrefSubcommandDetachItem 
    * xrefSubcommandPathItem
    * xrefSubcommandReloadItem
    * xrefSubcommandUnloadItem
  */
  virtual void xrefSubcommandOverlayItem(
    int activity, 
    const OdString& xrefPath);
    
  /** \details
    Notification function called during an Xref Detach operation.
    
    \param activity [in]  Detach activity.
    \param blockId [in]  Object ID of the Xref.
    
    \remarks
    This function will be called multiple times as an Xrefs are detached.
    
    activity must be one of the following:
    
    <table>
    Name                Value     Description
    kStart              0         The Detach has started. blockId is undefined.
    kStartItem          2         The Detach of the Xref with the specified blockId has been started. 
                                  Notification will be made for the 
                                  original Xref and any dependent Xrefs.
    kEndItem            3         The Detach of the Xref with the specified blockId has been successfully completed. 
                                  Notification will be made for the 
                                  original Xref and any dependent Xrefs.
    kEnd                4         The Detach has completed successfully. blockId is undefined.
    kAborted            6         The Detach has failed to complete for the Xref with the specified blockId. 
    </table>
 
    \sa
    * xrefSubcommandAttachItem
    * xrefSubcommandBindItem
    * xrefSubcommandOverlayItem
    * xrefSubcommandPathItem
    * xrefSubcommandReloadItem
    * xrefSubcommandUnloadItem
  */
  virtual void xrefSubcommandDetachItem(
    int activity, 
    OdDbObjectId blockId);
    
  /** \details
    Notification function called during an Xref Path operation.
    
    \param activity [in]  Path activity.
    \param newPath [in]  New Xref path.
    \param blockId [in]  Object ID of the Xref.
    
    \remarks
    
    activity must be one of the following:
    
    <table>
    Name                Value     Description
    kStart              0         The Path operation has started. blockId and newPath are undefined.
    kStartItem          2         The Path operation the Xref with the specified blockId has been started. 
    kEndItem            3         The Path of the Xref with the specified blockId has been successfully changed to newPath.  
    kEnd                4         The Path operation has completed successfully. blockId and newPath are undefined.
    kAborted            6         The Path has failed to complete for the Xref with the specified blockId. 
    </table>
 
    \sa
    * xrefSubcommandAttachItem
    * xrefSubcommandBindItem
    * xrefSubcommandDetachItem 
    * xrefSubcommandOverlayItem
    * xrefSubcommandReloadItem
    * xrefSubcommandUnloadItem
  */
  virtual void xrefSubcommandPathItem(
    int activity, OdDbObjectId blockId, 
    const OdString& newPath);
    
  /** \details
    Notification function called during an Xref Reload operation.
    
    \param activity [in]  Reload activity.
    \param blockId [in]  Object ID of the Xref.
    
    \remarks
    This function will be called multiple times as an Xrefs are reloaded.
    
    activity must be one of the following:
    
    <table>
    Name                Value     Description
    kStart              0         The Reload has started. blockId is undefined.
    kStartItem          2         The Reload of the Xref with the specified blockId has been started. 
                                  Notification will be made for the 
                                  original Xref and any dependent Xrefs.
    kEndItem            3         The Reload of the Xref with the specified blockId has been successfully completed. 
                                  Notification will be made for the 
                                  original Xref and any dependent Xrefs.
    kEnd                4         The Reload has completed successfully. blockId is undefined.
    kAborted            6         The Reload has failed to complete for the Xref with the specified blockId. 
    </table>
 
    \sa
    * xrefSubcommandAttachItem
    * xrefSubcommandBindItem
    * xrefSubcommandDetachItem 
    * xrefSubcommandOverlayItem
    * xrefSubcommandPathItem
    * xrefSubcommandUnloadItem
  */
  virtual void xrefSubcommandReloadItem(
    int activity, 
    OdDbObjectId blockId);
    
  /** \details
    Notification function called during an Xref Unload operation.
    
    \param activity [in]  Reload activity.
    \param blockId [in]  Object ID of the Xref.
    
    \remarks
    This function will be called multiple times as an Xrefs are unloaded.
    
    activity must be one of the following:
    
    <table>
    Name                Value     Description
    kStart              0         The Unload has started. blockId is undefined.
    kStartItem          2         The Unload of the Xref with the specified blockId has been started. 
                                  Notification will be made for the 
                                  original Xref and any dependent Xrefs.
    kEndItem            3         The Unload of the Xref with the specified blockId has been successfully completed. 
                                  Notification will be made for the 
                                  original Xref and any dependent Xrefs.
    kEnd                4         The Unload has completed successfully. blockId is undefined.
    kAborted            6         The Unload has failed to complete for the Xref with the specified blockId. 
    </table>
  */
  virtual void xrefSubcommandUnloadItem(
    int activity, 
    OdDbObjectId blockId);
  
  /** \details
    Notification function called during an Undo Auto operation.
    
    \param activity [in]  Auto activity.
    \param undoAuto [in]  True if and only if Undo Auto mode is on.
        
    \remarks
    activity will always be:
    
    <table>
    Name                Value     Description
    kEnd                4         The Auto operation has completed successfully.
    </table>
 
    \sa
    * undoSubcommandBack
    * undoSubcommandBegin
    * undoSubcommandControl
    * undoSubcommandEnd
    * undoSubcommandMark
    * undoSubcommandNumber
  */
  virtual void undoSubcommandAuto(
    int activity, 
    bool undoAuto);
    
  /** \details
    Notification function called during an Undo Control operation.
    
    \param activity [in]  Control activity.
    \param option [in]  Undo option.
        
    \remarks
    activity will always be:
    
    <table>
    Name                Value     Description
    kEnd                4         The Control operation has completed successfully.
    </table>
 
    option must be one of the following:
    
    <table>
    Name    Value   Description
    kNone   0       Undo None 
    kOne    1       Undo One  
    kAll    2       Undo All 
    </table>
 
    \sa
    * undoSubcommandAuto
    * undoSubcommandBack
    * undoSubcommandBegin
    * undoSubcommandEnd
    * undoSubcommandMark
    * undoSubcommandNumber
  */
  virtual void undoSubcommandControl(
    int activity, 
    int option);
    
  /** \details
    Notification function called during an Undo Begin or Undo Group operation.
    
    \param activity [in]  Begin activity.
        
    \remarks
    activity will always be:
    
    <table>
    Name                Value     Description
    kStart              0         The Undo Begin/Group has started.
    </table>
 
    \sa
    * undoSubcommandAuto
    * undoSubcommandBack
    * undoSubcommandControl
    * undoSubcommandEnd
    * undoSubcommandMark
    * undoSubcommandNumber
  */
  virtual void undoSubcommandBegin(
    int activity);
    
  /** \details
    Notification function called during an Undo End or Undo Group operation.
    
    \param activity [in]  End activity.
        
    \remarks
    activity will always be:
    
    <table>
    Name                Value     Description
    kStart              0         The Undo End has started.
    </table>
 
    \sa
    * undoSubcommandAuto
    * undoSubcommandBack
    * undoSubcommandBegin
    * undoSubcommandControl
    * undoSubcommandMark
    * undoSubcommandNumber
  */
  virtual void undoSubcommandEnd(
    int activity);
    
  /** \details
    Notification function called during an Undo Mark operation.
    
    \param activity [in]  Mark activity.
        
    \remarks
    activity will always be:
    
    <table>
    Name                Value     Description
    kStart              0         The Undo Mark has started.
    </table>
 
    \sa
    * undoSubcommandAuto
    * undoSubcommandBack
    * undoSubcommandBegin
    * undoSubcommandControl
    * undoSubcommandEnd
    * undoSubcommandNumber
  */
  virtual void undoSubcommandMark(
    int activity);
    
  /** \details
    Notification function called during an Undo Back operation.
    
    \param activity [in]  Back activity.
        
    \remarks
    activity will always be:
    
    <table>
    Name                Value     Description
    kStart              0         The Undo Back has started.
    </table>
 
    \sa
    * undoSubcommandAuto
    * undoSubcommandBegin
    * undoSubcommandControl
    * undoSubcommandEnd
    * undoSubcommandMark
    * undoSubcommandNumber
  */
  virtual void undoSubcommandBack(
    int activity);
    
  /** \details
    Notification function called during an Undo <number>operation.
    
    \param activity [in]  Number activity.
    \param numSteps [in]  Number of steps to be undone.    
    \remarks
    activity will always be:
    
    <table>
    Name                Value     Description
    kStart              0         The Undo Back has started.
    </table>
 
    \sa
    * undoSubcommandAuto
    * undoSubcommandBack
    * undoSubcommandBegin
    * undoSubcommandControl
    * undoSubcommandEnd
    * undoSubcommandMark
  */
  virtual void undoSubcommandNumber(
    int activity, 
    int numSteps);
  
  /** \details
    Notification function called to indicate the 
    number of entities in the pickfirst selection set has been changed.
  */
  virtual void pickfirstModified();
  
  /** \details
    Notification function called to indicate the current layout has changed.
    
    \param newLayoutName [in]  New layout name.  
  */
  virtual void layoutSwitched(
    const OdString& newLayoutName);
  
  /** \details
    Notification function called to indicate an MDI document frame window has been moved or resized.
    
    \param hwndDocFrame [in]  HWND of document frame.
    \param moved [in]  True if moved, false if resized.
    
    \sa
    mainFrameMovedOrResized
  */
  virtual void docFrameMovedOrResized(
    OdHWnd hwndDocFrame, 
    bool moved);
 
  /** \details
    Notification function called to indicate the Editor main frame window has been moved or resized.
    
    \param hwndMainFrame [in]  HWND of the main frame.
    \param moved [in]  True if moved, false if resized.
    \sa
    docFrameMovedOrResized
  */
  virtual void mainFrameMovedOrResized(
    OdHWnd hwndMainFrame, 
    bool moved);
  
  /** \details
    Notification function called to indicate the mouse button has been double-clicked
    in the graphics screen area.
    
    \param clickPoint [in]  WCS double-click point.
    
    \sa
    beginRightClick
  */
  virtual void beginDoubleClick(
    const OdGePoint3d& clickPoint);
 
  /** \details
    Notification function called to indicate the mouse button has been right-clicked
    in the graphics area.
    
    \param clickPoint [in]  WCS right-click point.
    
    \sa
    beginDoubleClick
  */
  virtual void beginRightClick(
  const OdGePoint3d& clickPoint);
  
  /** \details
    Notification function called to indicate the toolbar bitmap size is about to change.
    
    \param largeBitmaps [in]  True if and only if large bitmaps. 
    
      \remarks
      This function is called before the operation.
 
    \sa
    toolbarBitmapSizeChanged
  */
  virtual void toolbarBitmapSizeWillChange(
    bool largeBitmaps);
    
  /** \details
    Notification function called to indicate the toolbar bitmap size has changed.
    
    \param largeBitmaps [in]  True if and only if large bitmaps. 
    
      \remarks
      This function is called after the operation.
 
    \sa
    toolbarBitmapSizeWillChange
  */
  virtual void toolbarBitmapSizeChanged(
    bool largeBitmaps);
  
  /** \details
    Notification function called after objects are lazy during a partial open of a drawing.
    
    \param objectIDs [in]  Object IDs lazy loaded.
  */
      virtual void objectsLazyLoaded(const OdDbObjectIdArray& objectIds);
  
  /** \details
    Notification function called whenever the Editor is about to shut down.
    
    \remarks
    Calling veto() will cancel the shutdown.    
  */
  virtual void beginQuit();
  
  /** \details
    Notification function called whenever the Editor has failed to shut down.
 
    \sa
    * beginQuit
    * quitWillStart
  */
  virtual void quitAborted();
 
  /** \details
    Notification function called whenever the Editor is about to shut down.
 
    \remarks
    This function is called after beginQuit was not vetoed.
    
    \sa
    * beginQuit
    * quitAborted
  */
  virtual void quitWillStart();
 
  /** \details
    Notification function called whenever a modeless operation is about to start.
 
    \param contextString [in]  Context string identifying the operation.
    \sa
    modelessOperationEnded
  */
    virtual void modelessOperationWillStart(
    const OdString& contextString);
 
  /** \details
    Notification function called whenever a modeless operation has ended.
 
    \param contextString [in]  Context string identifying the operation.
    \sa
    modelessOperationWillStart
  */
    virtual void modelessOperationEnded(const OdString& contextString);
 
  virtual void sysVarChanged(OdDbDatabase* pDb, const OdString& varName);
  
  virtual void sysVarWillChange(OdDbDatabase* pDb, const OdString& varName);
};
 
/** \details
    This template class is a specialization of the OdSmartPtr class for OdEditorReactor object pointers.
*/
typedef OdSmartPtr<OdEditorReactor> OdEditorReactorPtr;
 
/** \details
    This class manages application level OdEditorReactor instances.
    
    Library: TD_Db
    <group Other_Classes>
*/
class TOOLKIT_EXPORT OdEditor : public OdRxEvent 
public:
  ODRX_DECLARE_MEMBERS(OdEditor);
};
 
/** \details
This template class is a specialization of the OdSmartPtr class for OdEditor object pointers.
*/
typedef OdSmartPtr<OdEditor> OdEditorPtr;
 
TOOLKIT_EXPORT OdEditorPtr odedEditor();
 
#include "TD_PackPop.h"
 
#endif // _ODED_H_INCLUDED_