CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Editor.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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
40class OdDbDatabase;
41
42
54{
55public:
57
70 virtual void beginDwgOpen(
71 const OdString& filename);
72
85 virtual void endDwgOpen(
86 const OdString& filename);
87
96 virtual void beginClose(
97 OdDbDatabase* pDb);
102 virtual void dwgFileOpened(
103 OdDbDatabase* pDb,
104 const OdString& filename);
105
125 virtual void beginAttach(
126 OdDbDatabase* pToDb,
127 const OdString& filename,
128 OdDbDatabase* pFromDb);
129
145 virtual void otherAttach(
146 OdDbDatabase* pToDb,
147 OdDbDatabase* pFromDb);
148
162 virtual void abortAttach(
163 OdDbDatabase* pFromDb);
164
178 virtual void endAttach(
179 OdDbDatabase* pToDb);
180
193 virtual void redirected(
194 OdDbObjectId newId,
195 OdDbObjectId oldId);
196
210 virtual void comandeered(
211 OdDbDatabase* pToDb,
212 OdDbObjectId id,
213 OdDbDatabase* pFromDb);
214
215
234 virtual void beginRestore(
235 OdDbDatabase* pToDb,
236 const OdString& filename,
237 OdDbDatabase* pFromDb);
238
251 virtual void abortRestore(
252 OdDbDatabase* pToDb);
265 virtual void endRestore(
266 OdDbDatabase* pToDb);
267
269 {
270 kStart = 0,
271 kStartItem = 2,
272 kEndItem = 3,
273 kEnd = 4,
274 kWillAbort = 5,
275 kAborted = 6,
276 kStartXBindBlock = 7,
277 kStartXBindSymbol = 8
278 };
279
316 int activity,
317 OdDbObjectId blockId);
318
356 int activity,
357 const OdString& xrefPath);
358
396 int activity,
397 const OdString& xrefPath);
398
432 int activity,
433 OdDbObjectId blockId);
434
464 int activity, OdDbObjectId blockId,
465 const OdString& newPath);
466
500 int activity,
501 OdDbObjectId blockId);
502
528 int activity,
529 OdDbObjectId blockId);
530
553 virtual void undoSubcommandAuto(
554 int activity,
555 bool undoAuto);
556
589 int activity,
590 int option);
591
614 int activity);
615
637 virtual void undoSubcommandEnd(
638 int activity);
639
661 virtual void undoSubcommandMark(
662 int activity);
663
685 virtual void undoSubcommandBack(
686 int activity);
687
710 int activity,
711 int numSteps);
712
717 virtual void pickfirstModified();
718
724 virtual void layoutSwitched(
725 const OdString& newLayoutName);
726
737 OdHWnd hwndDocFrame,
738 bool moved);
739
749 OdHWnd hwndMainFrame,
750 bool moved);
751
761 virtual void beginDoubleClick(
762 const OdGePoint3d& clickPoint);
763
773 virtual void beginRightClick(
774 const OdGePoint3d& clickPoint);
775
788 bool largeBitmaps);
789
802 bool largeBitmaps);
803
809 virtual void objectsLazyLoaded(const OdDbObjectIdArray& objectIds);
810
817 virtual void beginQuit();
818
826 virtual void quitAborted();
827
838 virtual void quitWillStart();
839
848 const OdString& contextString);
849
857 virtual void modelessOperationEnded(const OdString& contextString);
858
859 virtual void sysVarChanged(OdDbDatabase* pDb, const OdString& varName);
860
861 virtual void sysVarWillChange(OdDbDatabase* pDb, const OdString& varName);
862
863 virtual void xrefSubCommandStart(OdDbDatabase* pHostDb, OdXrefSubCommand subCmd, const OdDbObjectIdArray& btrIds,
864 const OdStringArray& btrNames, const OdStringArray& paths);
865
866 virtual void xrefSubCommandStart(OdDbDatabase* pHostDb, OdXrefSubCommand subCmd, const OdDbObjectIdArray& btrIds,
867 const OdStringArray& btrNames, const OdStringArray& paths, bool& veto) ODRX_OVERRIDE;
868};
869
874
882{
883public:
885};
886
891
893
894#include "TD_PackPop.h"
895
896#endif // _ODED_H_INCLUDED_
897
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdEditorReactor > OdEditorReactorPtr
Definition: Editor.h:873
TOOLKIT_EXPORT OdEditorPtr odedEditor()
OdSmartPtr< OdEditor > OdEditorPtr
Definition: Editor.h:890
ptrdiff_t OdHWnd
#define ODRX_OVERRIDE
OdXrefSubCommand
Definition: RxEvent.h:46
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:269
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 xrefSubCommandStart(OdDbDatabase *pHostDb, OdXrefSubCommand subCmd, const OdDbObjectIdArray &btrIds, const OdStringArray &btrNames, const OdStringArray &paths)
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 xrefSubCommandStart(OdDbDatabase *pHostDb, OdXrefSubCommand subCmd, const OdDbObjectIdArray &btrIds, const OdStringArray &btrNames, const OdStringArray &paths, bool &veto) ODRX_OVERRIDE
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)