CFx SDK Documentation  2023 SP0
Editor.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 
26 
27 #ifndef _ODED_H_INCLUDED_
28 #define _ODED_H_INCLUDED_
29 
30 #include "TD_PackPush.h"
31 
32 #include "RxNames.h"
33 #include "RxEvent.h"
34 #include "OdArrayPreDef.h"
35 #include "DbObjectId.h"
36 #include "IdArrays.h"
37 
38 #define ODED_EDITOR_OBJ OD_T("OdEditor")
39 
40 class OdDbDatabase;
41 
42 
56 {
57 public:
59 
72  virtual void beginDwgOpen(
73  const OdString& filename);
74 
87  virtual void endDwgOpen(
88  const OdString& filename);
89 
98  virtual void beginClose(
99  OdDbDatabase* pDb);
104  virtual void dwgFileOpened(
105  OdDbDatabase* pDb,
106  const OdString& filename);
107 
127  virtual void beginAttach(
128  OdDbDatabase* pToDb,
129  const OdString& filename,
130  OdDbDatabase* pFromDb);
131 
147  virtual void otherAttach(
148  OdDbDatabase* pToDb,
149  OdDbDatabase* pFromDb);
150 
164  virtual void abortAttach(
165  OdDbDatabase* pFromDb);
166 
180  virtual void endAttach(
181  OdDbDatabase* pToDb);
182 
195  virtual void redirected(
196  OdDbObjectId newId,
197  OdDbObjectId oldId);
198 
212  virtual void comandeered(
213  OdDbDatabase* pToDb,
214  OdDbObjectId id,
215  OdDbDatabase* pFromDb);
216 
217 
236  virtual void beginRestore(
237  OdDbDatabase* pToDb,
238  const OdString& filename,
239  OdDbDatabase* pFromDb);
240 
253  virtual void abortRestore(
254  OdDbDatabase* pToDb);
267  virtual void endRestore(
268  OdDbDatabase* pToDb);
269 
271  {
272  kStart = 0,
273  kStartItem = 2,
274  kEndItem = 3,
275  kEnd = 4,
276  kWillAbort = 5,
277  kAborted = 6,
278  kStartXBindBlock = 7,
279  kStartXBindSymbol = 8
280  };
281 
318  int activity,
319  OdDbObjectId blockId);
320 
358  int activity,
359  const OdString& xrefPath);
360 
398  int activity,
399  const OdString& xrefPath);
400 
434  int activity,
435  OdDbObjectId blockId);
436 
466  int activity, OdDbObjectId blockId,
467  const OdString& newPath);
468 
502  int activity,
503  OdDbObjectId blockId);
504 
530  int activity,
531  OdDbObjectId blockId);
532 
555  virtual void undoSubcommandAuto(
556  int activity,
557  bool undoAuto);
558 
590  virtual void undoSubcommandControl(
591  int activity,
592  int option);
593 
615  virtual void undoSubcommandBegin(
616  int activity);
617 
639  virtual void undoSubcommandEnd(
640  int activity);
641 
663  virtual void undoSubcommandMark(
664  int activity);
665 
687  virtual void undoSubcommandBack(
688  int activity);
689 
711  virtual void undoSubcommandNumber(
712  int activity,
713  int numSteps);
714 
719  virtual void pickfirstModified();
720 
726  virtual void layoutSwitched(
727  const OdString& newLayoutName);
728 
739  OdHWnd hwndDocFrame,
740  bool moved);
741 
751  OdHWnd hwndMainFrame,
752  bool moved);
753 
763  virtual void beginDoubleClick(
764  const OdGePoint3d& clickPoint);
765 
775  virtual void beginRightClick(
776  const OdGePoint3d& clickPoint);
777 
790  bool largeBitmaps);
791 
804  bool largeBitmaps);
805 
811  virtual void objectsLazyLoaded(const OdDbObjectIdArray& objectIds);
812 
819  virtual void beginQuit();
820 
828  virtual void quitAborted();
829 
840  virtual void quitWillStart();
841 
850  const OdString& contextString);
851 
859  virtual void modelessOperationEnded(const OdString& contextString);
860 
861  virtual void sysVarChanged(OdDbDatabase* pDb, const OdString& varName);
862 
863  virtual void sysVarWillChange(OdDbDatabase* pDb, const OdString& varName);
864 };
865 
870 
878 {
879 public:
881 };
882 
887 
889 
890 #include "TD_PackPop.h"
891 
892 #endif // _ODED_H_INCLUDED_
893 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdEditorReactor > OdEditorReactorPtr
Definition: Editor.h:869
TOOLKIT_EXPORT OdEditorPtr odedEditor()
OdSmartPtr< OdEditor > OdEditorPtr
Definition: Editor.h:886
ptrdiff_t OdHWnd
ODRX_DECLARE_MEMBERS(OdEditor)
virtual void beginClose(OdDbDatabase *pDb)
ODRX_DECLARE_MEMBERS(OdEditorReactor)
virtual void sysVarWillChange(OdDbDatabase *pDb, const OdString &varName)
virtual void quitAborted()
virtual void toolbarBitmapSizeWillChange(bool largeBitmaps)
virtual void endRestore(OdDbDatabase *pToDb)
virtual void undoSubcommandBack(int activity)
virtual void undoSubcommandEnd(int activity)
virtual void beginDoubleClick(const OdGePoint3d &clickPoint)
virtual void quitWillStart()
virtual void xrefSubcommandOverlayItem(int activity, const OdString &xrefPath)
virtual void dwgFileOpened(OdDbDatabase *pDb, const OdString &filename)
virtual void beginRestore(OdDbDatabase *pToDb, const OdString &filename, OdDbDatabase *pFromDb)
virtual void undoSubcommandMark(int activity)
virtual void xrefSubcommandBindItem(int activity, OdDbObjectId blockId)
virtual void otherAttach(OdDbDatabase *pToDb, OdDbDatabase *pFromDb)
virtual void mainFrameMovedOrResized(OdHWnd hwndMainFrame, bool moved)
virtual void beginRightClick(const OdGePoint3d &clickPoint)
virtual void redirected(OdDbObjectId newId, OdDbObjectId oldId)
virtual void modelessOperationWillStart(const OdString &contextString)
virtual void xrefSubcommandAttachItem(int activity, const OdString &xrefPath)
XrefSubcommandActivities
Definition: Editor.h:271
virtual void abortRestore(OdDbDatabase *pToDb)
virtual void endAttach(OdDbDatabase *pToDb)
virtual void comandeered(OdDbDatabase *pToDb, OdDbObjectId id, OdDbDatabase *pFromDb)
virtual void abortAttach(OdDbDatabase *pFromDb)
virtual void objectsLazyLoaded(const OdDbObjectIdArray &objectIds)
virtual void beginQuit()
virtual void undoSubcommandControl(int activity, int option)
virtual void xrefSubcommandReloadItem(int activity, OdDbObjectId blockId)
virtual void xrefSubcommandUnloadItem(int activity, OdDbObjectId blockId)
virtual void undoSubcommandBegin(int activity)
virtual void xrefSubcommandDetachItem(int activity, OdDbObjectId blockId)
virtual void toolbarBitmapSizeChanged(bool largeBitmaps)
virtual void beginDwgOpen(const OdString &filename)
virtual void layoutSwitched(const OdString &newLayoutName)
virtual void endDwgOpen(const OdString &filename)
virtual void pickfirstModified()
virtual void docFrameMovedOrResized(OdHWnd hwndDocFrame, bool moved)
virtual void undoSubcommandNumber(int activity, int numSteps)
virtual void modelessOperationEnded(const OdString &contextString)
virtual void xrefSubcommandPathItem(int activity, OdDbObjectId blockId, const OdString &newPath)
virtual void undoSubcommandAuto(int activity, bool undoAuto)
virtual void beginAttach(OdDbDatabase *pToDb, const OdString &filename, OdDbDatabase *pFromDb)
virtual void sysVarChanged(OdDbDatabase *pDb, const OdString &varName)