CFx SDK Documentation  2020SP3
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 
OdEditorReactor::XrefSubcommandActivities
XrefSubcommandActivities
Definition: Editor.h:271
RxEvent.h
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
OdRxEventReactor
Definition: RxEvent.h:56
OdEditorReactor::beginDoubleClick
virtual void beginDoubleClick(const OdGePoint3d &clickPoint)
OdEditorReactor::dwgFileOpened
virtual void dwgFileOpened(OdDbDatabase *pDb, const OdString &filename)
IdArrays.h
OdEditorReactor::beginRestore
virtual void beginRestore(OdDbDatabase *pToDb, const OdString &filename, OdDbDatabase *pFromDb)
OdEditorReactor::undoSubcommandEnd
virtual void undoSubcommandEnd(int activity)
OdEditorReactor::beginRightClick
virtual void beginRightClick(const OdGePoint3d &clickPoint)
OdEditorReactor::docFrameMovedOrResized
virtual void docFrameMovedOrResized(OdHWnd hwndDocFrame, bool moved)
OdDbObjectId
Definition: DbObjectId.h:99
OdEditorReactor::layoutSwitched
virtual void layoutSwitched(const OdString &newLayoutName)
OdEditorReactor::endAttach
virtual void endAttach(OdDbDatabase *pToDb)
RxNames.h
OdArray< OdDbObjectId, OdMemoryAllocator< OdDbObjectId > >
OdEditor
Definition: Editor.h:878
TD_PackPop.h
OdEditorReactor::endRestore
virtual void endRestore(OdDbDatabase *pToDb)
OdEditorReactor::mainFrameMovedOrResized
virtual void mainFrameMovedOrResized(OdHWnd hwndMainFrame, bool moved)
OdEditorReactor::undoSubcommandControl
virtual void undoSubcommandControl(int activity, int option)
OdEditorReactor::undoSubcommandMark
virtual void undoSubcommandMark(int activity)
OdArrayPreDef.h
OdEditorReactor::beginAttach
virtual void beginAttach(OdDbDatabase *pToDb, const OdString &filename, OdDbDatabase *pFromDb)
OdEditorReactor::sysVarChanged
virtual void sysVarChanged(OdDbDatabase *pDb, const OdString &varName)
OdEditorReactor::undoSubcommandBack
virtual void undoSubcommandBack(int activity)
OdEditorReactor::abortAttach
virtual void abortAttach(OdDbDatabase *pFromDb)
OdSmartPtr
Definition: SmartPtr.h:58
OdEditorReactor::endDwgOpen
virtual void endDwgOpen(const OdString &filename)
OdEditorReactor::redirected
virtual void redirected(OdDbObjectId newId, OdDbObjectId oldId)
OdGePoint3d
Definition: GePoint3d.h:55
OdHWnd
ptrdiff_t OdHWnd
Definition: OdPlatformSettings.h:891
OdEditorReactor::modelessOperationEnded
virtual void modelessOperationEnded(const OdString &contextString)
OdEditorReactor::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdEditorReactor)
DbObjectId.h
OdEditorReactor::xrefSubcommandOverlayItem
virtual void xrefSubcommandOverlayItem(int activity, const OdString &xrefPath)
OdIfc::kStart
@ kStart
Definition: IfcAttributesEnum.h:1096
OdEditorReactorPtr
OdSmartPtr< OdEditorReactor > OdEditorReactorPtr
Definition: Editor.h:869
OdEditorPtr
OdSmartPtr< OdEditor > OdEditorPtr
Definition: Editor.h:886
OdEditorReactor
Definition: Editor.h:56
OdEditorReactor::xrefSubcommandBindItem
virtual void xrefSubcommandBindItem(int activity, OdDbObjectId blockId)
OdEditorReactor::beginDwgOpen
virtual void beginDwgOpen(const OdString &filename)
OdEditor::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdEditor)
OdEditorReactor::toolbarBitmapSizeWillChange
virtual void toolbarBitmapSizeWillChange(bool largeBitmaps)
TD_PackPush.h
OdEditorReactor::comandeered
virtual void comandeered(OdDbDatabase *pToDb, OdDbObjectId id, OdDbDatabase *pFromDb)
OdEditorReactor::xrefSubcommandAttachItem
virtual void xrefSubcommandAttachItem(int activity, const OdString &xrefPath)
OdEditorReactor::pickfirstModified
virtual void pickfirstModified()
OdEditorReactor::sysVarWillChange
virtual void sysVarWillChange(OdDbDatabase *pDb, const OdString &varName)
OdEditorReactor::modelessOperationWillStart
virtual void modelessOperationWillStart(const OdString &contextString)
OdRxEvent
Definition: RxEvent.h:648
OdEditorReactor::xrefSubcommandDetachItem
virtual void xrefSubcommandDetachItem(int activity, OdDbObjectId blockId)
OdEditorReactor::objectsLazyLoaded
virtual void objectsLazyLoaded(const OdDbObjectIdArray &objectIds)
OdEditorReactor::quitAborted
virtual void quitAborted()
OdEditorReactor::undoSubcommandBegin
virtual void undoSubcommandBegin(int activity)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdEditorReactor::xrefSubcommandPathItem
virtual void xrefSubcommandPathItem(int activity, OdDbObjectId blockId, const OdString &newPath)
OdEditorReactor::abortRestore
virtual void abortRestore(OdDbDatabase *pToDb)
odedEditor
TOOLKIT_EXPORT OdEditorPtr odedEditor()
OdEditorReactor::xrefSubcommandReloadItem
virtual void xrefSubcommandReloadItem(int activity, OdDbObjectId blockId)
OdEditorReactor::toolbarBitmapSizeChanged
virtual void toolbarBitmapSizeChanged(bool largeBitmaps)
OdEditorReactor::undoSubcommandNumber
virtual void undoSubcommandNumber(int activity, int numSteps)
OdEditorReactor::xrefSubcommandUnloadItem
virtual void xrefSubcommandUnloadItem(int activity, OdDbObjectId blockId)
OdEditorReactor::otherAttach
virtual void otherAttach(OdDbDatabase *pToDb, OdDbDatabase *pFromDb)
OdEditorReactor::beginQuit
virtual void beginQuit()
OdEditorReactor::undoSubcommandAuto
virtual void undoSubcommandAuto(int activity, bool undoAuto)
OdEditorReactor::beginClose
virtual void beginClose(OdDbDatabase *pDb)
OdEditorReactor::quitWillStart
virtual void quitWillStart()
OdPdfPublish::Geometry::kEnd
@ kEnd
Definition: PdfPublishCommon.h:478