CFx SDK Documentation  2020SP3
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_
OdDbLayoutManagerReactor::layoutCreated
virtual void layoutCreated(const OdString &layoutName, const OdDbObjectId &layoutId)
OdDbLayoutManager::getActiveLayoutBTRId
virtual OdDbObjectId getActiveLayoutBTRId(const OdDbDatabase *pDb) const
fxSetLayoutReactorsEnabled
TOOLKIT_EXPORT void fxSetLayoutReactorsEnabled(OdDbLayoutManagerPtr p, bool enable)
OdDbLayoutManagerReactor::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbLayoutManagerReactor)
OdDbLayoutManager::~OdDbLayoutManager
virtual ~OdDbLayoutManager()
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
OdDbLayoutManagerReactor::abortLayoutRename
virtual void abortLayoutRename(const OdString &oldLayoutName, const OdString &newLayoutName, const OdDbObjectId &layoutId)
OdDbLayoutManager
Definition: DbLayoutManager.h:248
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdDbLayoutManagerPtr
OdSmartPtr< OdDbLayoutManager > OdDbLayoutManagerPtr
Definition: DbLayoutManager.h:275
OdRxObject
Definition: RxObject.h:564
OdDbObjectId
Definition: DbObjectId.h:99
OdDbLayoutManagerReactor::layoutToBeRemoved
virtual void layoutToBeRemoved(const OdString &layoutName, const OdDbObjectId &layoutId)
OdDbLayoutManagerReactor::layoutSwitched
virtual void layoutSwitched(const OdString &newLayoutName, const OdDbObjectId &newLayoutId)
OdDbLayoutManager::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbLayoutManager)
OdDbLayoutManagerReactor::layoutToBeRenamed
virtual void layoutToBeRenamed(const OdString &oldLayoutName, const OdString &newLayoutName, const OdDbObjectId &layoutId)
OdDbLayoutManager::addReactor
virtual void addReactor(OdDbLayoutManagerReactor *newObj)
TD_PackPop.h
RxObject.h
OdDbLayoutManagerReactor::layoutRenamed
virtual void layoutRenamed(const OdString &oldLayoutName, const OdString &newLayoutName, const OdDbObjectId &layoutId)
OdDbLayoutManagerReactor::abortLayoutRemoved
virtual void abortLayoutRemoved(const OdString &layoutName, const OdDbObjectId &layoutId)
index
GLuint index
Definition: gles2_ext.h:265
OdDbLayoutManagerReactor::layoutCopied
virtual void layoutCopied(const OdString &oldLayoutName, const OdDbObjectId &oldLayoutId, const OdString &newLayoutName, const OdDbObjectId &newLayoutId)
DbLayout.h
OdDbLayoutManager::findActiveLayout
virtual OdString findActiveLayout(const OdDbDatabase *pDb, bool allowModel) const
OdDbLayoutManagerReactor::layoutToBeCopied
virtual void layoutToBeCopied(const OdString &layoutName, const OdDbObjectId &layoutId)
OdSmartPtr
Definition: SmartPtr.h:58
OdDbLayoutManager::renameLayout
virtual void renameLayout(OdDbDatabase *pDb, const OdString &oldname, const OdString &newname)
DbDatabase.h
OdDbLayoutManagerReactor::plotStyleTableChanged
virtual void plotStyleTableChanged(const OdString &newTableName, const OdDbObjectId &layoutId)
OdDbLayoutManager::setCurrentLayout
virtual void setCurrentLayout(OdDbDatabase *pDb, const OdDbObjectId &layoutId)
OdDbLayoutManager::OdDbLayoutManager
OdDbLayoutManager()
OdDbLayoutManager::m_pImpl
OdDbLayoutManagerImpl * m_pImpl
Definition: DbLayoutManager.h:272
OdDbLayoutManagerReactor
Definition: DbLayoutManager.h:51
OdDbLayoutManager::cloneLayout
virtual OdDbObjectId cloneLayout(OdDbDatabase *pDb, const OdDbLayout *pLayout, const OdString &newname, int newTabOrder=0)
TD_PackPush.h
OdDbLayoutManagerReactorPtr
OdSmartPtr< OdDbLayoutManagerReactor > OdDbLayoutManagerReactorPtr
Definition: DbLayoutManager.h:237
OdDbLayoutManagerReactor::abortLayoutCopied
virtual void abortLayoutCopied(const OdString &layoutName, const OdDbObjectId &layoutId)
OdDbLayout
Definition: DbLayout.h:48
OdDbLayoutManager::countLayouts
virtual int countLayouts(const OdDbDatabase *pDb) const
OdDbLayoutManager::isVpnumClipped
virtual bool isVpnumClipped(const OdDbDatabase *pDb, int index) const
OdDbLayoutManager::deleteLayout
virtual void deleteLayout(OdDbDatabase *pDb, const OdString &delname)
OdDbLayoutManager::findLayoutNamed
virtual OdDbObjectId findLayoutNamed(const OdDbDatabase *pDb, const OdString &name) const
OdDbLayoutManager::OdDbLayoutManager
OdDbLayoutManager(OdDbLayoutManagerImpl *pImpl)
OdDbLayoutManagerReactor::layoutRemoved
virtual void layoutRemoved(const OdString &layoutName, const OdDbObjectId &layoutId)
OdDbLayoutManager::removeReactor
virtual void removeReactor(OdDbLayoutManagerReactor *delObj)
OdDbLayoutManager::createLayout
virtual OdDbObjectId createLayout(OdDbDatabase *pDb, const OdString &newname, OdDbObjectId *pBlockTableRecId=0)
OdDbLayoutManagerReactor::layoutToBeDeactivated
virtual void layoutToBeDeactivated(const OdString &layoutName, const OdDbObjectId &layoutId)
OdDbLayoutManager::getNonRectVPIdFromClipId
virtual OdDbObjectId getNonRectVPIdFromClipId(const OdDbObjectId &clipId) const
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40