CFx SDK Documentation  2022 SP0
DbLayoutManager.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 _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 
36 class OdDbLayoutManagerImpl;
37 
51 {
52 public:
63  virtual void layoutCreated(
64  const OdString& layoutName,
65  const OdDbObjectId& layoutId);
66 
76  virtual void layoutToBeRemoved(
77  const OdString& layoutName,
78  const OdDbObjectId& layoutId);
79 
89  virtual void layoutRemoved(
90  const OdString& layoutName,
91  const OdDbObjectId& layoutId);
92 
102  virtual void abortLayoutRemoved(
103  const OdString& layoutName,
104  const OdDbObjectId& layoutId);
105 
115  virtual void layoutToBeCopied(
116  const OdString& layoutName,
117  const OdDbObjectId& layoutId);
118 
130  virtual void layoutCopied(
131  const OdString& oldLayoutName,
132  const OdDbObjectId& oldLayoutId,
133  const OdString& newLayoutName,
134  const OdDbObjectId& newLayoutId);
135 
145  virtual void abortLayoutCopied(
146  const OdString& layoutName,
147  const OdDbObjectId& layoutId);
148 
159  virtual void layoutToBeRenamed(
160  const OdString& oldLayoutName,
161  const OdString& newLayoutName,
162  const OdDbObjectId& layoutId);
163 
174  virtual void layoutRenamed(
175  const OdString& oldLayoutName,
176  const OdString& newLayoutName,
177  const OdDbObjectId& layoutId);
178 
189  virtual void abortLayoutRename(
190  const OdString& oldLayoutName,
191  const OdString& newLayoutName,
192  const OdDbObjectId& layoutId);
193 
203  virtual void layoutSwitched(
204  const OdString& newLayoutName,
205  const OdDbObjectId& newLayoutId);
206 
216  virtual void plotStyleTableChanged(
217  const OdString& newTableName,
218  const OdDbObjectId& layoutId);
219 
229  virtual void layoutToBeDeactivated(
230  const OdString& layoutName,
231  const OdDbObjectId& layoutId);
232 };
233 
238 
248 {
249 public:
251 
254  virtual void setCurrentLayout(OdDbDatabase* pDb, const OdDbObjectId& layoutId);
255  virtual OdString findActiveLayout(const OdDbDatabase* pDb, bool allowModel) const;
256  virtual OdDbObjectId getActiveLayoutBTRId(const OdDbDatabase* pDb) const;
257  virtual OdDbObjectId findLayoutNamed(const OdDbDatabase* pDb, const OdString& name) const;
258  virtual void deleteLayout(OdDbDatabase* pDb, const OdString& delname);
259  virtual OdDbObjectId createLayout(OdDbDatabase* pDb, const OdString& newname, OdDbObjectId* pBlockTableRecId = 0);
260  virtual void renameLayout(OdDbDatabase* pDb, const OdString& oldname, const OdString& newname);
261  virtual OdDbObjectId cloneLayout(OdDbDatabase* pDb, const OdDbLayout* pLayout, const OdString& newname, int newTabOrder = 0);
262 
263  virtual OdDbObjectId getNonRectVPIdFromClipId(const OdDbObjectId& clipId) const;
264  virtual bool isVpnumClipped(const OdDbDatabase* pDb, int index) const;
265  virtual int countLayouts(const OdDbDatabase* pDb) const;
266  virtual void addReactor(OdDbLayoutManagerReactor * newObj);
267  virtual void removeReactor(OdDbLayoutManagerReactor * delObj);
268 private:
269  friend class OdDbLayoutManagerImpl;
270 protected:
271  OdDbLayoutManager(OdDbLayoutManagerImpl* pImpl);
272  OdDbLayoutManagerImpl* m_pImpl;
273 };
274 
276 
277 //FELIX_CHANGE_BEGIN
279 //FELIX_CHANGE_END
280 
281 #include "TD_PackPop.h"
282 
283 #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