CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbLayoutManager.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 _ODDBLAYOUTMANAGER_INCLUDED_
28#define _ODDBLAYOUTMANAGER_INCLUDED_
29
30#include "TD_PackPush.h"
31
32#include "RxObject.h"
33#include "DbDatabase.h"
34#include "DbLayout.h"
35
36class OdDbLayoutManagerImpl;
37
49{
50public:
61 virtual void layoutCreated(
62 const OdString& layoutName,
63 const OdDbObjectId& layoutId);
64
74 virtual void layoutToBeRemoved(
75 const OdString& layoutName,
76 const OdDbObjectId& layoutId);
77
87 virtual void layoutRemoved(
88 const OdString& layoutName,
89 const OdDbObjectId& layoutId);
90
100 virtual void abortLayoutRemoved(
101 const OdString& layoutName,
102 const OdDbObjectId& layoutId);
103
113 virtual void layoutToBeCopied(
114 const OdString& layoutName,
115 const OdDbObjectId& layoutId);
116
128 virtual void layoutCopied(
129 const OdString& oldLayoutName,
130 const OdDbObjectId& oldLayoutId,
131 const OdString& newLayoutName,
132 const OdDbObjectId& newLayoutId);
133
143 virtual void abortLayoutCopied(
144 const OdString& layoutName,
145 const OdDbObjectId& layoutId);
146
157 virtual void layoutToBeRenamed(
158 const OdString& oldLayoutName,
159 const OdString& newLayoutName,
160 const OdDbObjectId& layoutId);
161
172 virtual void layoutRenamed(
173 const OdString& oldLayoutName,
174 const OdString& newLayoutName,
175 const OdDbObjectId& layoutId);
176
187 virtual void abortLayoutRename(
188 const OdString& oldLayoutName,
189 const OdString& newLayoutName,
190 const OdDbObjectId& layoutId);
191
201 virtual void layoutSwitched(
202 const OdString& newLayoutName,
203 const OdDbObjectId& newLayoutId);
204
215 const OdString& newTableName,
216 const OdDbObjectId& layoutId);
217
228 const OdString& layoutName,
229 const OdDbObjectId& layoutId);
230};
231
236
244{
245public:
247
250 virtual void setCurrentLayout(OdDbDatabase* pDb, const OdDbObjectId& layoutId);
251 virtual OdString findActiveLayout(const OdDbDatabase* pDb, bool allowModel) const;
253 virtual OdDbObjectId findLayoutNamed(const OdDbDatabase* pDb, const OdString& name) const;
254 virtual void deleteLayout(OdDbDatabase* pDb, const OdString& delname);
255 virtual OdDbObjectId createLayout(OdDbDatabase* pDb, const OdString& newname, OdDbObjectId* pBlockTableRecId = 0);
256 virtual void renameLayout(OdDbDatabase* pDb, const OdString& oldname, const OdString& newname);
257 virtual OdDbObjectId cloneLayout(OdDbDatabase* pDb, const OdDbLayout* pLayout, const OdString& newname, int newTabOrder = 0);
258
260 virtual bool isVpnumClipped(const OdDbDatabase* pDb, int index) const;
261 virtual int countLayouts(const OdDbDatabase* pDb) const;
262 virtual void addReactor(OdDbLayoutManagerReactor * newObj);
264private:
265 friend class OdDbLayoutManagerImpl;
266protected:
267 OdDbLayoutManager(OdDbLayoutManagerImpl* pImpl);
268 OdDbLayoutManagerImpl* m_pImpl;
269};
270
272
273//FELIX_CHANGE_BEGIN
275//FELIX_CHANGE_END
276
277#include "TD_PackPop.h"
278
279#endif //_ODDBLAYOUTMANAGER_INCLUDED_
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
TOOLKIT_EXPORT void fxSetLayoutReactorsEnabled(OdDbLayoutManagerPtr p, bool enable)
OdSmartPtr< OdDbLayoutManager > OdDbLayoutManagerPtr
OdSmartPtr< OdDbLayoutManagerReactor > OdDbLayoutManagerReactorPtr
virtual OdDbObjectId findLayoutNamed(const OdDbDatabase *pDb, const OdString &name) const
virtual OdDbObjectId getNonRectVPIdFromClipId(const OdDbObjectId &clipId) const
virtual OdString findActiveLayout(const OdDbDatabase *pDb, bool allowModel) const
OdDbLayoutManager(OdDbLayoutManagerImpl *pImpl)
virtual OdDbObjectId getActiveLayoutBTRId(const OdDbDatabase *pDb) const
virtual int countLayouts(const OdDbDatabase *pDb) const
virtual OdDbObjectId createLayout(OdDbDatabase *pDb, const OdString &newname, OdDbObjectId *pBlockTableRecId=0)
virtual void setCurrentLayout(OdDbDatabase *pDb, const OdDbObjectId &layoutId)
virtual void addReactor(OdDbLayoutManagerReactor *newObj)
virtual OdDbObjectId cloneLayout(OdDbDatabase *pDb, const OdDbLayout *pLayout, const OdString &newname, int newTabOrder=0)
ODRX_DECLARE_MEMBERS(OdDbLayoutManager)
virtual void deleteLayout(OdDbDatabase *pDb, const OdString &delname)
OdDbLayoutManagerImpl * m_pImpl
virtual void removeReactor(OdDbLayoutManagerReactor *delObj)
virtual bool isVpnumClipped(const OdDbDatabase *pDb, int index) const
virtual void renameLayout(OdDbDatabase *pDb, const OdString &oldname, const OdString &newname)
virtual ~OdDbLayoutManager()
virtual void layoutToBeRemoved(const OdString &layoutName, const OdDbObjectId &layoutId)
virtual void layoutToBeCopied(const OdString &layoutName, const OdDbObjectId &layoutId)
virtual void layoutToBeDeactivated(const OdString &layoutName, const OdDbObjectId &layoutId)
virtual void layoutToBeRenamed(const OdString &oldLayoutName, const OdString &newLayoutName, const OdDbObjectId &layoutId)
virtual void layoutRenamed(const OdString &oldLayoutName, const OdString &newLayoutName, const OdDbObjectId &layoutId)
virtual void abortLayoutCopied(const OdString &layoutName, const OdDbObjectId &layoutId)
virtual void abortLayoutRemoved(const OdString &layoutName, const OdDbObjectId &layoutId)
virtual void layoutRemoved(const OdString &layoutName, const OdDbObjectId &layoutId)
ODRX_DECLARE_MEMBERS(OdDbLayoutManagerReactor)
virtual void layoutCreated(const OdString &layoutName, const OdDbObjectId &layoutId)
virtual void layoutSwitched(const OdString &newLayoutName, const OdDbObjectId &newLayoutId)
virtual void plotStyleTableChanged(const OdString &newTableName, const OdDbObjectId &layoutId)
virtual void abortLayoutRename(const OdString &oldLayoutName, const OdString &newLayoutName, const OdDbObjectId &layoutId)
virtual void layoutCopied(const OdString &oldLayoutName, const OdDbObjectId &oldLayoutId, const OdString &newLayoutName, const OdDbObjectId &newLayoutId)
GLuint index
Definition: gles2_ext.h:265
GLuint const GLchar * name
Definition: gles2_ext.h:265